summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinod Govindapillai <vinod.govindapillai@intel.com>2026-06-16 21:41:31 +0300
committerVinod Govindapillai <vinod.govindapillai@intel.com>2026-06-19 19:22:06 +0300
commitde28bb67e245dbd7f8ea1c5621e1a30e19001283 (patch)
tree2156ec9a31be7eff9ec56e3c8cd9b4918e7a43a9
parent4a68c7516c57a3d03b406c8aaa073c62149aad68 (diff)
drm/i915/display: update to the BW buddy configuration
Bspec has been updated for xe2_lpd+ platforms on how to handle the bw buddy programming in case no matching memory configuration is found w.r.t the current page mask table. The recommendation is to keep the default settings for the related registers as it is without explicitly disabling the bw buddy. v2: removed extra explanation v3: fixed typo in commit message Bspec: 68871 Suggested-by: Ville Syrjala <ville.syrjala@intel.com> Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com> Reviewed-by: MichaƂ Grzelak <michal.grzelak@intel.com> Link: https://patch.msgid.link/20260616184131.295013-1-vinod.govindapillai@intel.com
-rw-r--r--drivers/gpu/drm/i915/display/intel_display_power.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpu/drm/i915/display/intel_display_power.c b/drivers/gpu/drm/i915/display/intel_display_power.c
index dc3b31200353..8e312f5b9f6d 100644
--- a/drivers/gpu/drm/i915/display/intel_display_power.c
+++ b/drivers/gpu/drm/i915/display/intel_display_power.c
@@ -1802,9 +1802,12 @@ static void tgl_bw_buddy_init(struct intel_display *display)
if (table[config].page_mask == 0) {
drm_dbg_kms(display->drm,
"Unknown memory configuration; disabling address buddy logic.\n");
- for_each_set_bit(i, &abox_mask, BITS_PER_TYPE(abox_mask))
- intel_de_write(display, BW_BUDDY_CTL(i),
- BW_BUDDY_DISABLE);
+
+ if (DISPLAY_VER(display) < 20) {
+ for_each_set_bit(i, &abox_mask, BITS_PER_TYPE(abox_mask))
+ intel_de_write(display, BW_BUDDY_CTL(i),
+ BW_BUDDY_DISABLE);
+ }
} else {
for_each_set_bit(i, &abox_mask, BITS_PER_TYPE(abox_mask)) {
intel_de_write(display, BW_BUDDY_PAGE_MASK(i),