mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-13 06:10:18 -04:00
drm/xe/topology: Stop trying to fix programming mistakes
We shouldn't ever pass more DSS registers than our hardcoded limit, it should be sufficient to just assert that instead of trying to fix it, as this will never happen in the production driver. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Matt Roper <matthew.d.roper@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://lore.kernel.org/r/20250604202908.769-4-michal.wajdeczko@intel.com Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
This commit is contained in:
committed by
Matt Roper
parent
113c3f5968
commit
bfb114751a
@@ -22,8 +22,7 @@ static void load_dss_mask(struct xe_gt *gt, xe_dss_mask_t mask, int numregs,
|
||||
u32 fuse_val[XE_MAX_DSS_FUSE_REGS] = {};
|
||||
int i;
|
||||
|
||||
if (drm_WARN_ON(>_to_xe(gt)->drm, numregs > XE_MAX_DSS_FUSE_REGS))
|
||||
numregs = XE_MAX_DSS_FUSE_REGS;
|
||||
xe_gt_assert(gt, numregs <= ARRAY_SIZE(fuse_val));
|
||||
|
||||
for (i = 0; i < numregs; i++)
|
||||
fuse_val[i] = xe_mmio_read32(>->mmio, regs[i]);
|
||||
|
||||
Reference in New Issue
Block a user