From ad4a4c0c181ec1885f1132e8bf9708beb86dc27b Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 24 Feb 2022 13:02:08 +0000 Subject: [PATCH] drm/i915: Fix dbuf slice config lookup From Ville Syrjala 34f5556ddf2b5fc25696832fa4a1a7013fc80a05 in linux 5.15.y/5.15.25 698bef8ff5d2edea5d1c9d6e5adf1bfed1e8a106 in mainline linux --- sys/dev/pci/drm/i915/intel_pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/i915/intel_pm.c b/sys/dev/pci/drm/i915/intel_pm.c index 4f1fc465fd9..ac095381378 100644 --- a/sys/dev/pci/drm/i915/intel_pm.c +++ b/sys/dev/pci/drm/i915/intel_pm.c @@ -4863,7 +4863,7 @@ static u8 compute_dbuf_slices(enum pipe pipe, u8 active_pipes, bool join_mbus, { int i; - for (i = 0; i < dbuf_slices[i].active_pipes; i++) { + for (i = 0; dbuf_slices[i].active_pipes != 0; i++) { if (dbuf_slices[i].active_pipes == active_pipes && dbuf_slices[i].join_mbus == join_mbus) return dbuf_slices[i].dbuf_mask[pipe]; -- 2.20.1