]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/gsc: Improve SW proxy error checking and logging
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Wed, 6 Nov 2024 00:24:01 +0000 (16:24 -0800)
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Tue, 12 Nov 2024 18:50:36 +0000 (10:50 -0800)
commit90e315a58fd903e43457fa085b6644e45c047e31
tree42d6a81657070083a1bea91ffb56081d142feb5b
parentcd8e9956552dd2155f6e5ae55eb9c268233c104a
drm/xe/gsc: Improve SW proxy error checking and logging

If an error occurs in the GSC<->CSME handshake, the GSC will send a
PROXY_END msg to the driver with the status set to an error code. We
currently don't check the status when receiving a PROXY_END message and
instead check the proxy initialization status in the FWSTS reg;
therefore, while still catching any initialization failures, we lose the
actual returned error code. This can be easily improved by checking the
status value and printing it to dmesg if it's an error.

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Alan Previn <alan.previn.teres.alexis@intel.com>
Reviewed-by: Alan Previn <alan.previn.teres.alexis@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241106002402.486700-1-daniele.ceraolospurio@intel.com
drivers/gpu/drm/xe/xe_gsc_proxy.c