Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2114368lqb; Mon, 27 May 2024 08:16:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWd4fagXEvihoGo3pZQDqlrJyOTciIuW22zRq210SI+49x4SlXX73R4vs8jTiONThSfwGnnqOiNkA7cmd6c6cHUxSH3Dmm29o6v/dsxVA== X-Google-Smtp-Source: AGHT+IFK+7MBpk7VeNZIHWdfRH88VtVSA/MrsDTqOalo/bpC03qRRBYDAbKEEQ0L5WX7otNPpWDj X-Received: by 2002:aa7:9a85:0:b0:6f8:e442:a28a with SMTP id d2e1a72fcca58-6f8f3e83c9dmr7831230b3a.21.1716823008342; Mon, 27 May 2024 08:16:48 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716823008; cv=pass; d=google.com; s=arc-20160816; b=wmExqD0awOX2IdtFHlTbdgadFM7iOp4jfwYP6r0PdVAZaUiPVHK+Zt0lJdqlkLLbOU j6zR/onDquRBcUJp+F+hEt9ClgDuTJs71K0d8C+K7bRZzxaQw7x9WGnWpGeh+mZWzf7L mhsb9wFl+CIcYV+/EkkMAklBa70Q2INU5oXLoZO2Ym1qLDGqOoJoJf7P4D3Rr/dSorMW dT2lf4BCIeqGLAEggs2OuyAni25kiec7TYK/Z9aVIzwkQC6OgANxUZS0EZIGXx/P3IWP zPw2Cd73uCCUwNgIOb4aekFm5plwlaz7foYXUyRwmVPCtfSDg8UO41bT1z/j2+a6Lyt2 /+DA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=HreHBJK3YPc5/DsSalT61uFG93msabbqDhELcY3Rqro=; fh=ZTJZ4d53UdFUbmUmZ8qn7mrdw685dfhGQBe+e/RR5OE=; b=bnaiDVPJpllA/kt/W8WIDZgzDfjXKnZBiWGVPSuUeKCjynTX18n41MUrzuo0+ZKGrv AUlLnr8n+lPS3C83zb5kRoTwJCbxTfWmYgjvehS3A96d2ZZiTtax7Ku+8NGJ8ZQ8Resk OyJs/eebfueXf729T9spmTsiT0a+1RMZ/rU5hhLrNlXqSKaDw/fdNcFDGGEaG4//01dg PZ9GRWCMhkgvsXjEjhHKivXCpm+gDQaFD2r4i5iT39fBvAFl3Icift/64lIIKlH75DK7 UE+ShndX57XpqW5QxQJz/LR0uqFKpZ10HH3PPR9fF/oyyT23iVxjBDXk7zbDzyu/Pw8m CgNQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RPckxprn; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-190935-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190935-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f918eba7d6si6063812b3a.197.2024.05.27.08.16.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 08:16:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190935-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RPckxprn; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-190935-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190935-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6DA8DB2C409 for ; Mon, 27 May 2024 14:49:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 60CCC16936D; Mon, 27 May 2024 14:19:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RPckxprn" 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 8316D168C3D; Mon, 27 May 2024 14:19:36 +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=1716819576; cv=none; b=QvaFG9bQAB+DbYxYO/UczXqZUZBE1LehcqdKL1UbQawzzTCWwBVINuftpgTb89hh7/tpbuuGRO1AR4blOTicByNMG6c0YS7ursv/OUu2X5Rq3Zr9E+1hzxWILwwnwPzG/zT5tGVKbmTT1P7yJjIJpExXMBSB1N/K08W/3UxZp3E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716819576; c=relaxed/simple; bh=fIgHyz1SU66HH2/03OqanKPPWhz+SgylrApj4NM5RgU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=eEEp4owmY7RWcJIIfiQ6O/GRBGuN1BS+FiY/OQmldHxFrTrSPksvB66m3U9H936RF4B9KvOseG+t/KWtM5YmdoJ+5nBKC7YgyssMStzyd5ivLd2kWCT/f/Ar41fq4/Desftwc14YQnt0/vJyu68GXH8EiEpwDRjLUIqXG8mffG8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RPckxprn; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3001EC32781; Mon, 27 May 2024 14:19:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716819576; bh=fIgHyz1SU66HH2/03OqanKPPWhz+SgylrApj4NM5RgU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RPckxprn9gcamZ+jlku57qFWjgtptS+/ldsYB/qvF8HDmNSv9jyyf8Dn0q67Ylqxc 0XIw1ntX95Hd7ryKRlZMxRwa+B08iSnxHocuKBzX7PkgZenAgL/PZzU0QBJXrjJU2U D6MOOK/s9UKnf0ia9NKHXg0N6aR0r4BXeMaDiHTSdiHkLU2toDNLETAJyd02gWl/f8 7HvtQL6Nk+TCmVpB7YgLqRI0zoTRwUxUaPtrt6HbaNF3xfYyZQ+H5VTJ+f9jNF8sk3 yOE2tkyVYsyemiNvJ8/nQqNvmq6VmiMAhJs/JteZh0BQyQTGWwU1efH04n4NStNsS5 U7D9gM+RaggiQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Takashi Iwai , "Rafael J . Wysocki" , Sasha Levin , rafael@kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH AUTOSEL 5.10 11/13] ACPI: video: Add backlight=native quirk for Lenovo Slim 7 16ARH7 Date: Mon, 27 May 2024 10:18:48 -0400 Message-ID: <20240527141901.3854691-11-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240527141901.3854691-1-sashal@kernel.org> References: <20240527141901.3854691-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 5.10.218 Content-Transfer-Encoding: 8bit From: Takashi Iwai [ Upstream commit c901f63dc142c48326931f164f787dfff69273d9 ] Lenovo Slim 7 16ARH7 is a machine with switchable graphics between AMD and Nvidia, and the backlight can't be adjusted properly unless acpi_backlight=native is passed. Although nvidia-wmi-backlight is present and loaded, this doesn't work as expected at all. For making it working as default, add the corresponding quirk entry with a DMI matching "LENOVO" "82UX". Link: https://bugzilla.suse.com/show_bug.cgi?id=1217750 Signed-off-by: Takashi Iwai Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/acpi/video_detect.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c index a5cb9e1d48bcc..338e1f44906a9 100644 --- a/drivers/acpi/video_detect.c +++ b/drivers/acpi/video_detect.c @@ -341,6 +341,14 @@ static const struct dmi_system_id video_detect_dmi_table[] = { DMI_MATCH(DMI_PRODUCT_NAME, "82BK"), }, }, + { + .callback = video_detect_force_native, + /* Lenovo Slim 7 16ARH7 */ + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), + DMI_MATCH(DMI_PRODUCT_NAME, "82UX"), + }, + }, { .callback = video_detect_force_native, /* Lenovo ThinkPad X131e (3371 AMD version) */ -- 2.43.0