]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/vf: Catch all unexpected register reads
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 11 Mar 2025 13:57:26 +0000 (14:57 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 12 Mar 2025 11:02:56 +0000 (12:02 +0100)
commitf990c11a63bb957ecdde4629492b334e3e42f072
tree963d45bf4599dbdb68dcf7417d76305a8d625c7c
parentd3414acf4a01c1bb28d9dc9b389862ffcc01aab4
drm/xe/vf: Catch all unexpected register reads

While we can only mimic read32 for a few GT registers for which
the PF shared the values, we shouldn't avoid calling helper code
if we try to access non-GT register, as then we miss to trigger
a debug warning. For cases where sriov_vf_gt was not set, just
use primary_gt instead.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250311135726.1998-3-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_mmio.c