]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Adjust mmio code to pass VF substructure to SRIOV code
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 10 Sep 2024 23:47:28 +0000 (16:47 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 11 Sep 2024 22:17:35 +0000 (15:17 -0700)
commit6fb5d1a1d376910700d054d13cefbf0812b444a9
tree5f246154978664bf9536b2c3e0057296617c2a77
parent1877c88fa9b9bdbce7a65d7cbd2aa4e29bb514af
drm/xe: Adjust mmio code to pass VF substructure to SRIOV code

Although we want to break the GT-centric nature of the MMIO code in the
general driver, the SRIOV handling still relies on data in a VF
substructure of the GT.  So add a GT backpointer, but name it
sriov_vf_gt to make it clear that it's only for this one specific
special case and will not be set or usable for anything else.

v2:
 - Store backpointer to the GT itself rather than the SRIOV-specific
   substructure.  (Michal)

Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> # v1
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240910234719.3335472-53-matthew.d.roper@intel.com
drivers/gpu/drm/xe/xe_device_types.h
drivers/gpu/drm/xe/xe_pci.c