[Intel-xe] [PATCH] Revert "drm/xe: Allocate regset space for Wa_1607983814 unconditionally"
Matt Roper
matthew.d.roper at intel.com
Tue Apr 11 00:36:10 UTC 2023
This reverts commit dfa54efbe169b4fe0efbbb0adc8868e6172b41b5.
Allocating the regset space unconditionally shouldn't have been
necessary, but was an early attempt to paper over gitlab issue #232 on
some platforms; now that #232 has been fixed properly, this bandaid can
be removed.
References: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/232
Signed-off-by: Matt Roper <matthew.d.roper at intel.com>
---
drivers/gpu/drm/xe/xe_guc_ads.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/xe_guc_ads.c b/drivers/gpu/drm/xe/xe_guc_ads.c
index 304a9501b447..fd9911ffeae4 100644
--- a/drivers/gpu/drm/xe/xe_guc_ads.c
+++ b/drivers/gpu/drm/xe/xe_guc_ads.c
@@ -224,7 +224,10 @@ static size_t calculate_regset_size(struct xe_gt *gt)
xa_for_each(&hwe->reg_sr.xa, sr_idx, sr_entry)
count++;
- count += (ADS_REGSET_EXTRA_MAX + LNCFCMOCS_REG_COUNT) * XE_NUM_HW_ENGINES;
+ count += ADS_REGSET_EXTRA_MAX * XE_NUM_HW_ENGINES;
+
+ if (needs_wa_1607983814(gt_to_xe(gt)))
+ count += LNCFCMOCS_REG_COUNT;
return count * sizeof(struct guc_mmio_reg);
}
--
2.39.2
More information about the Intel-xe
mailing list