Skip to content

Commit f2b8148

Browse files
committed
drm/xe/vf: Don't try to read legacy GuC MMIO notification if VF
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 <[email protected]> Reviewed-by: Himal Prasad Ghimiray <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent fe4b17c commit f2b8148

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/xe/xe_guc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,9 @@ static void guc_handle_mmio_msg(struct xe_guc *guc)
591591
struct xe_gt *gt = guc_to_gt(guc);
592592
u32 msg;
593593

594+
if (IS_SRIOV_VF(guc_to_xe(guc)))
595+
return;
596+
594597
xe_force_wake_assert_held(gt_to_fw(gt), XE_FW_GT);
595598

596599
msg = xe_mmio_read32(gt, SOFT_SCRATCH(15));

0 commit comments

Comments
 (0)