From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1ACB42673AA; Wed, 20 May 2026 16:59:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779296391; cv=none; b=AIE7hmH5V7UAIoKE5ec1arr0oJHFBPMZc40t+j7ag3U5W8AKZX+9+XiNs+JbivZMjbnn7IufHD6WDZBjFjLggu9dTccyvdXxB/YuXXIem4MlLzidUZJ1SUDmfjbndvbOSTLSShj/y7oG/r9d09nv2BB3vX5ldFVqqQMFAQYQHc4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779296391; c=relaxed/simple; bh=xieXD+My4eMmShUlb3gvWS8T1hqo7i83NS4iieCo64E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=LkReFZ0m3kJwvsKuAPcS6iJ1myt3eUE18wfn0APXyBwiO4THqEcp9SAUh1FHWOQwUudEvykTsY5GHGa4tpuNMlX+ah6n2+flHYlYYizO6cOGtxZpvZSJgPNOsXwCtX65sBA9CqMQsT3p1nn9UVG21xzyuGGTSl8w9Y49cESp7h4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hf5k5UxN; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="hf5k5UxN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F6B81F000E9; Wed, 20 May 2026 16:59:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779296390; bh=YLuL/5W5UZjHeCglf62LebxollI9NtOfdnyI5jf5Q1Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=hf5k5UxN98dD5XgJq/014P8x97860b0xLrs2sZY4xqgw8rwA+TByjit9gnnLXqkKH vA1rwZ8cNLCNI30NOpqJuo660tb5IQBQ7i4xBceUlL+J49XmTjnOayd/BpWjH9meNU ifglT2Uwa3F8dOSXV/C5+Pm1a5ql58CJ4c4NqKbk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Vinod Govindapillai , Tvrtko Ursulin , Sasha Levin Subject: [PATCH 7.0 0740/1146] drm/i915/wm: Verify the correct plane DDB entry Date: Wed, 20 May 2026 18:16:30 +0200 Message-ID: <20260520162204.954425575@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260520162148.390695140@linuxfoundation.org> References: <20260520162148.390695140@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 7.0-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ville Syrjälä [ Upstream commit a97c88a176b6b8d116f4d3f508f3bd02bc77b462 ] Actually verify the DDB entry for the plane we're looking at instead of always verifying the cursor DDB. Fixes: 7d4561722c3b ("drm/i915: Tweak plane ddb allocation tracking") Signed-off-by: Ville Syrjälä Link: https://patch.msgid.link/20260324134843.2364-5-ville.syrjala@linux.intel.com Reviewed-by: Vinod Govindapillai (cherry picked from commit f002f7c7439de18117a31ca84dc87a59719c3dd6) Signed-off-by: Tvrtko Ursulin Signed-off-by: Sasha Levin --- drivers/gpu/drm/i915/display/skl_watermark.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/i915/display/skl_watermark.c b/drivers/gpu/drm/i915/display/skl_watermark.c index f5a6fae815d1d..fa51f976ea725 100644 --- a/drivers/gpu/drm/i915/display/skl_watermark.c +++ b/drivers/gpu/drm/i915/display/skl_watermark.c @@ -3980,8 +3980,8 @@ void intel_wm_state_verify(struct intel_atomic_state *state, } /* DDB */ - hw_ddb_entry = &hw->ddb[PLANE_CURSOR]; - sw_ddb_entry = &new_crtc_state->wm.skl.plane_ddb[PLANE_CURSOR]; + hw_ddb_entry = &hw->ddb[plane->id]; + sw_ddb_entry = &new_crtc_state->wm.skl.plane_ddb[plane->id]; if (!skl_ddb_entry_equal(hw_ddb_entry, sw_ddb_entry)) { drm_err(display->drm, -- 2.53.0