Skip to content

Commit bbd8429

Browse files
committed
drm/xe: Always setup GT MMIO adjustment data
While we believed that xe_gt_mmio_init() will be called just once per GT, this might not be a case due to some tweaks that need to performed by the VF driver during early probe. To avoid leaving any stale data in case of the re-run, reset the GT MMIO adjustment data for the non-media GT case. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241114175955.2299-2-michal.wajdeczko@intel.com
1 parent 474c4dd commit bbd8429

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/xe/xe_gt.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,9 @@ void xe_gt_mmio_init(struct xe_gt *gt)
643643
if (gt->info.type == XE_GT_TYPE_MEDIA) {
644644
gt->mmio.adj_offset = MEDIA_GT_GSI_OFFSET;
645645
gt->mmio.adj_limit = MEDIA_GT_GSI_LENGTH;
646+
} else {
647+
gt->mmio.adj_offset = 0;
648+
gt->mmio.adj_limit = 0;
646649
}
647650

648651
if (IS_SRIOV_VF(gt_to_xe(gt)))

0 commit comments

Comments
 (0)