]> www.infradead.org Git - users/hch/configfs.git/commit
drm/xe/mcr: Avoid clobbering DSS steering
authorMatt Roper <matthew.d.roper@intel.com>
Wed, 26 Jun 2024 21:05:37 +0000 (14:05 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Fri, 28 Jun 2024 21:19:38 +0000 (14:19 -0700)
commit4f82ac6102788112e599a6074d2c1f2afce923df
treeb707ec7d9a86a7c1804ea353ac275c41fc283475
parent4279635e562953c08aa27d9737311a958ce9e753
drm/xe/mcr: Avoid clobbering DSS steering

A couple copy/paste mistakes in the code that selects steering targets
for OADDRM and INSTANCE0 unintentionally clobbered the steering target
for DSS ranges in some cases.

The OADDRM/INSTANCE0 values were also not assigned as intended, although
that mistake wound up being harmless since the desired values for those
specific ranges were '0' which the kzalloc of the GT structure should
have already taken care of implicitly.

Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240626210536.1620176-2-matthew.d.roper@intel.com
drivers/gpu/drm/xe/xe_gt_mcr.c