]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915/display: Update DBUF_TRACKER_STATE_SERVICE only on appropriate platforms
authorRavi Kumar Vodapalli <ravi.kumar.vodapalli@intel.com>
Wed, 8 Jan 2025 20:02:10 +0000 (01:32 +0530)
committerMatt Roper <matthew.d.roper@intel.com>
Wed, 8 Jan 2025 20:19:06 +0000 (12:19 -0800)
commit3566784817aeb1a733c95953998a29adc386d2ff
treeed56c92552ef713489d6acc61e6a2ae036fac0c1
parente995bb4adc728345d6c988efff36f4933e662703
drm/i915/display: Update DBUF_TRACKER_STATE_SERVICE only on appropriate platforms

The bspec only asks the driver to reprogram the DBUF_CTL's
DBUF_TRACKER_STATE_SERVICE field to 0x8 on DG2 and platforms with
display version 12. All other platforms should avoid reprogramming
this register at driver init.

Although we've been accidentally reprogramming DBUF_CTL on platforms
where the spec does not ask us to, that mistake has been harmless so
far because the value being programmed by the driver happened to
match the hardware's default settings.

So, update DBUF_TRACKER_STATE_SERVICE field to 0x8 only for
1. display version 12
2. DG2.
Other platforms unless stated should use their default value.

Bspec: 49213
Signed-off-by: Ravi Kumar Vodapalli <ravi.kumar.vodapalli@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250108200210.1815229-1-ravi.kumar.vodapalli@intel.com
[mattrope: Tweaked patch subject to accurately reflect content]
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/i915/display/intel_display_power.c