[PATCH v2 0/5] VF: Setup VRAM based on received config data
Michal Wajdeczko
michal.wajdeczko at intel.com
Thu May 30 13:35:22 UTC 2024
VF drivers will obtain VRAM configuration from the GuC as part of
the VF self config. Use that configuration instead of trying to
read inaccessible registers.
But before doing that, do some cleanup of the VRAM probe code.
v1: https://patchwork.freedesktop.org/series/134097/#rev1
v2: rename xe_mmio.c static functions before move to xe_vram.c
Michal Wajdeczko (5):
drm/xe: Move XEHP_MTCFG_ADDR register definition to xe_regs.h
drm/xe: Move BAR definitions to dedicated file
drm/xe: Drop xe_ prefix from static functions in xe_mmio.c
drm/xe: Promote VRAM initialization function to own file
drm/xe/vf: Setup VRAM based on received config data
drivers/gpu/drm/xe/Makefile | 1 +
drivers/gpu/drm/xe/regs/xe_bars.h | 11 +
drivers/gpu/drm/xe/regs/xe_regs.h | 3 +
drivers/gpu/drm/xe/xe_device.c | 3 +-
drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 17 ++
drivers/gpu/drm/xe/xe_gt_sriov_vf.h | 1 +
drivers/gpu/drm/xe/xe_mmio.c | 339 +----------------------
drivers/gpu/drm/xe/xe_mmio.h | 2 -
drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c | 1 +
drivers/gpu/drm/xe/xe_vram.c | 368 +++++++++++++++++++++++++
drivers/gpu/drm/xe/xe_vram.h | 13 +
11 files changed, 421 insertions(+), 338 deletions(-)
create mode 100644 drivers/gpu/drm/xe/regs/xe_bars.h
create mode 100644 drivers/gpu/drm/xe/xe_vram.c
create mode 100644 drivers/gpu/drm/xe/xe_vram.h
--
2.43.0
More information about the Intel-xe
mailing list