]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/guc: Resend potentially lost H2G MMIO request
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 28 May 2025 09:00:21 +0000 (11:00 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 2 Jun 2025 17:22:03 +0000 (19:22 +0200)
commitd65650a9d153c91f0cde0f5026268812e0b697f3
treec405c963b65707c14b564260654cc0a04f858914
parenteae784475896cbd3faa2063cb2bed6cd8e085abf
drm/xe/guc: Resend potentially lost H2G MMIO request

There could be a scenario where the VF driver is resuming faster
than the driver PF is able to complete the VF FLR sequence which
includes reset of the VF scratch registers.  This may result in
deletion of the ongoing HXG message (it could be either a host
request or a GuC response).

When we detect that HXG message was likey lost (scratch register
with HXG header was zeroed) try to send this request once more
before giving up.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Reviewed-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Link: https://lore.kernel.org/r/20250528090021.329-1-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_guc.c