From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 2C1BA21D3F9; Thu, 13 Feb 2025 14:32:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739457138; cv=none; b=s7RlKE0x8I9I2Ru0DQarTr33cSUFLC+K0RuUoTMkWt8ZsHCWLL+S0s/EVPF1BJwvkbZRlQENCwI5OCYcEsgiofCO3XXPCQtQmez8z4B9ZJSNfLI0ZhqaRaNbIiTQPak5d0td9gwlFi36kc5pz/U8MN6GFNs82gZCD1QQ/3WvUGU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739457138; c=relaxed/simple; bh=ZVMx7cnmrZRtKQzXJLKmtKRmNVYwAnPH8vwRlt5XnZQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=r+2Tyiu3Hn/sSUdmv1tX364nWdG/WCvFuSfY1uPcqOpHmegvYrdR0F8pgMPwvdjjKHqmgWjDcQoatg3x7JZXgGjM/vyV7X6RbWctYeMI16TLW8w3WGs+RFxUHWBm1lqlGKnwZFaa1sSebWnIFnGuErCrG1IJqw0hgC34UfWWiiQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eQq+1cmo; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="eQq+1cmo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E300C4CED1; Thu, 13 Feb 2025 14:32:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1739457138; bh=ZVMx7cnmrZRtKQzXJLKmtKRmNVYwAnPH8vwRlt5XnZQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eQq+1cmo6RdnTKDhz1a4VbsWiDAuJX0jeox6WWQtaH4eJX+F56ge34r/UxpZSQnXi LjI5/xwy31gw53aqUImZQVkloJY/VrdpQ7tUlaDSLxYXd8JSNnO3VnqkmiPETPTtZM 8iYL+gZGuJkT82HvHwucgQlJnKi3kSvXDDCbxL0E= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , "Dustin L. Howett" , Mario Limonciello , Harry Wentland , Sasha Levin Subject: [PATCH 6.12 019/422] drm: panel-backlight-quirks: Add Framework 13 matte panel Date: Thu, 13 Feb 2025 15:22:48 +0100 Message-ID: <20250213142437.294735852@linuxfoundation.org> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250213142436.408121546@linuxfoundation.org> References: <20250213142436.408121546@linuxfoundation.org> User-Agent: quilt/0.68 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 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: Thomas Weißschuh [ Upstream commit 916ecc0db336768d80e14ef28a8c64a775274f95 ] The value of "min_input_signal" returned from ATIF on a Framework AMD 13 is "12". This leads to a fairly bright minimum display backlight. Add a quirk to override that the minimum backlight PWM to "0" which leads to a much lower minimum brightness, which is still visible. Tested on a Framework AMD 13 BIOS 3.05 with the matte panel. Link: https://community.frame.work/t/25711/9 Link: https://community.frame.work/t/47036 Signed-off-by: Thomas Weißschuh Tested-by: Dustin L. Howett Reviewed-by: Mario Limonciello Reviewed-by: Harry Wentland Signed-off-by: Mario Limonciello Link: https://patchwork.freedesktop.org/patch/msgid/20241111-amdgpu-min-backlight-quirk-v7-3-f662851fda69@weissschuh.net Signed-off-by: Sasha Levin --- drivers/gpu/drm/drm_panel_backlight_quirks.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/drm_panel_backlight_quirks.c b/drivers/gpu/drm/drm_panel_backlight_quirks.c index 6b8bbed77c7f1..f2aefff618ddb 100644 --- a/drivers/gpu/drm/drm_panel_backlight_quirks.c +++ b/drivers/gpu/drm/drm_panel_backlight_quirks.c @@ -17,6 +17,14 @@ struct drm_panel_min_backlight_quirk { }; static const struct drm_panel_min_backlight_quirk drm_panel_min_backlight_quirks[] = { + /* 13 inch matte panel */ + { + .dmi_match.field = DMI_BOARD_VENDOR, + .dmi_match.value = "Framework", + .ident.panel_id = drm_edid_encode_panel_id('B', 'O', 'E', 0x0bca), + .ident.name = "NE135FBM-N41", + .min_brightness = 0, + }, }; static bool drm_panel_min_backlight_quirk_matches(const struct drm_panel_min_backlight_quirk *quirk, -- 2.39.5