projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe4b17c
)
drm/xe/vf: Don't try to read legacy GuC MMIO notification if VF
author
Michal Wajdeczko
<michal.wajdeczko@intel.com>
Fri, 5 Apr 2024 13:39:36 +0000
(15:39 +0200)
committer
Michal Wajdeczko
<michal.wajdeczko@intel.com>
Mon, 8 Apr 2024 12:33:15 +0000
(14:33 +0200)
Legacy SOFT_SCRATCH registers are not accessible from the VF. Any
G2H notification posted there will be handled by the PF driver.
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20240405133936.891-4-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_guc.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/xe/xe_guc.c
b/drivers/gpu/drm/xe/xe_guc.c
index 59fe73770711a458a79d70347ebe7a349121f65e..240e7a4bbff1a9e31b2c9d9bb12a5fc8fd012ee2 100644
(file)
--- a/
drivers/gpu/drm/xe/xe_guc.c
+++ b/
drivers/gpu/drm/xe/xe_guc.c
@@
-591,6
+591,9
@@
static void guc_handle_mmio_msg(struct xe_guc *guc)
struct xe_gt *gt = guc_to_gt(guc);
u32 msg;
+ if (IS_SRIOV_VF(guc_to_xe(guc)))
+ return;
+
xe_force_wake_assert_held(gt_to_fw(gt), XE_FW_GT);
msg = xe_mmio_read32(gt, SOFT_SCRATCH(15));