]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/pf: Access VF's register using dedicated MMIO view
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 24 Oct 2025 20:58:25 +0000 (22:58 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 27 Oct 2025 16:22:18 +0000 (17:22 +0100)
commit4504e780689245f01bee6ee4c19c74051bd87593
treed399e150e500930ada9a163311d17a63e8c4df87
parent071089a69e199bd810ff31c4c933bd528e502743
drm/xe/pf: Access VF's register using dedicated MMIO view

Instead of creating ad-hoc new register definitions with altered
register addresses to mimic the VF's access to these registers,
prepare new MMIO instance per required VF, with shifted internal
location of the register map.  This will allow to use unmodified
register definitions in all calls to xe_mmio() functions.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patch.msgid.link/20251024205826.4652-1-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_gt_sriov_pf.c
drivers/gpu/drm/xe/xe_mmio.c
drivers/gpu/drm/xe/xe_mmio.h