From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 02167C5B543 for ; Sun, 1 Jun 2025 23:32:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9823210E3F2; Sun, 1 Jun 2025 23:32:09 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="fTTVsjza"; dkim-atps=neutral Received: from nyc.source.kernel.org (nyc.source.kernel.org [147.75.193.91]) by gabe.freedesktop.org (Postfix) with ESMTPS id C570610E3F2; Sun, 1 Jun 2025 23:32:08 +0000 (UTC) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by nyc.source.kernel.org (Postfix) with ESMTP id 0DAEFA4FAE8; Sun, 1 Jun 2025 23:32:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CEB4C4CEE7; Sun, 1 Jun 2025 23:32:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1748820727; bh=DXSi6g7PNQXaT15YXGovibReG3hmpnIldygqEsreSyE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fTTVsjzaD8Pj88pjB3a0+Trwzf15nN0BY8sQcqeh4fvE8zJGzZ7Kr+BCLR8eZBOqd uJdY/hT35o3OIFXNErudS21oA0GWCxb4h4LGbmT1iRijMjVFO9PDHd9PdnUxw3ocGQ KDBTAOFK1Zb7+HAhelL5R9rIV7KcJdSEAtkWQ/6lcgFFMo5oSfytauTPt0RfXV8mmf Zw2IJGWoUtKrKzSJsBFZqJsJb1vO6Nt6jw/Jo7b5WgIqnFskoS7f2XY4LWar1gSJnu L7RMoxfnwAROaIgtGZS5ucCheUG47nsZq5d/kGdF1A6j0rIJZyLcRKaEbpq3GBQ2mr Z7LGn32fVQMkw== From: Sasha Levin To: patches@lists.linux.dev, stable@vger.kernel.org Cc: Samson Tam , Alvin Lee , Ray Wu , Daniel Wheeler , Alex Deucher , Sasha Levin , harry.wentland@amd.com, sunpeng.li@amd.com, christian.koenig@amd.com, airlied@gmail.com, simona@ffwll.ch, jun.lei@amd.com, alex.hung@amd.com, navid.assadian@amd.com, Relja.Vojvodic@amd.com, wenjing.liu@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH AUTOSEL 6.14 056/102] drm/amd/display: disable EASF narrow filter sharpening Date: Sun, 1 Jun 2025 19:28:48 -0400 Message-Id: <20250601232937.3510379-56-sashal@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250601232937.3510379-1-sashal@kernel.org> References: <20250601232937.3510379-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.14.9 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" From: Samson Tam [ Upstream commit c8d7e0be8183f4375a5cf5c3efd0c678129ea4de ] [Why & How] Default should be 1 to disable EASF narrow filter sharpening. Reviewed-by: Alvin Lee Signed-off-by: Samson Tam Signed-off-by: Ray Wu Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- Now I have a complete picture. Based on my analysis, I can provide the final backporting recommendation: ## **BACKPORTING ANALYSIS: drm/amd/display: disable EASF narrow filter sharpening** ### **RECOMMENDATION: YES** ### **Analysis Summary:** **Commit Details:** - **Commit ID:** c8d7e0be8183f4375a5cf5c3efd0c678129ea4de - **Author:** Samson Tam - **Date:** Thu May 1 15:59:47 2025 -0400 - **Subject:** drm/amd/display: disable EASF narrow filter sharpening - **Files Changed:** `drivers/gpu/drm/amd/display/dc/sspl/dc_spl.c` (2 lines) **Technical Changes:** The commit makes a simple but important change: - **Line 1302:** `easf_v_sharp_factor = 0` → `easf_v_sharp_factor = 1` - **Line 1466:** `easf_h_sharp_factor = 0` → `easf_h_sharp_factor = 1` **Why This Is A Bug Fix:** 1. **Intent vs Implementation Mismatch:** The commit message clearly states "Default should be 1 to disable EASF narrow filter sharpening" 2. **Hardware Behavior:** These sharp_factor variables control AMD display hardware's 2-tap sharp filtering: - Value 0001-Fix-Clippy-warnings.patch 0002-Enhance-inference-prompt-to-utilize- CVEKERNELDIR-whe.patch 0003-Update-to-latest-version-of-clap.patch drm_amd_display_vertical_interrupt_dcn32_dcn401_backport_analysis.md = sharpening **enabled** - Value 0001-Fix-Clippy-warnings.patch drm_amd_display_vertical_interrupt_dcn32_dcn401_backport_analysis.md gfx_v12_userq_eop_interrupt_handling_backport_analysis.md verisilicon_av1_4k_analysis.md = sharpening **disabled** 3. **Consistency Fix:** Prior to this fix, the code was unintentionally enabling sharpening when it should have been disabled by default **Stability and Risk Assessment:** - **LOW RISK:** Disables a feature rather than enabling new functionality - **IMPROVES STABILITY:** Prevents potential display artifacts from unwanted sharpening - **MINIMAL SCOPE:** Only affects EASF (Edge Adaptive Scaler Filter) narrow filter functionality - **WELL-TESTED:** Has proper review chain (Reviewed-by: Alvin Lee, Tested-by: Daniel Wheeler) **Backporting Criteria Analysis:** ✅ **Fixes Important Bug:** Corrects unintended feature activation that could cause display issues ✅ **Minimal Risk:** Simple value change, disables rather than enables functionality ✅ **No New Features:** Pure bug fix, no new architectural changes ✅ **Well- Contained:** Limited to AMD display driver's scaling/filtering subsystem ✅ **Stable Tree Appropriate:** Improves hardware behavior consistency **Comparison to Historical Similar Commits:** Looking at the provided historical commits that were marked "NO" for backporting: - Those were typically **feature additions** or **complex policy changes** - This commit is fundamentally different: it's a **simple bug fix** that corrects default behavior - Unlike feature commits, this **improves stability** by disabling problematic functionality **Conclusion:** This commit should be backported to stable kernels. It fixes a bug where EASF narrow filter sharpening was unintentionally enabled by default when AMD's design intent was to have it disabled. The fix is low-risk, well- tested, and improves display subsystem stability by preventing potential artifacts from unwanted sharpening algorithms. **Final Answer: YES** - This commit meets all criteria for stable kernel backporting. drivers/gpu/drm/amd/display/dc/spl/dc_spl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/spl/dc_spl.c b/drivers/gpu/drm/amd/display/dc/spl/dc_spl.c index 047f05ab01810..5fb6c4b7410bf 100644 --- a/drivers/gpu/drm/amd/display/dc/spl/dc_spl.c +++ b/drivers/gpu/drm/amd/display/dc/spl/dc_spl.c @@ -1292,7 +1292,7 @@ static void spl_set_easf_data(struct spl_scratch *spl_scratch, struct spl_out *s if (enable_easf_v) { dscl_prog_data->easf_v_en = true; dscl_prog_data->easf_v_ring = 0; - dscl_prog_data->easf_v_sharp_factor = 0; + dscl_prog_data->easf_v_sharp_factor = 1; dscl_prog_data->easf_v_bf1_en = 1; // 1-bit, BF1 calculation enable, 0=disable, 1=enable dscl_prog_data->easf_v_bf2_mode = 0xF; // 4-bit, BF2 calculation mode /* 2-bit, BF3 chroma mode correction calculation mode */ @@ -1456,7 +1456,7 @@ static void spl_set_easf_data(struct spl_scratch *spl_scratch, struct spl_out *s if (enable_easf_h) { dscl_prog_data->easf_h_en = true; dscl_prog_data->easf_h_ring = 0; - dscl_prog_data->easf_h_sharp_factor = 0; + dscl_prog_data->easf_h_sharp_factor = 1; dscl_prog_data->easf_h_bf1_en = 1; // 1-bit, BF1 calculation enable, 0=disable, 1=enable dscl_prog_data->easf_h_bf2_mode = -- 2.39.5