Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2112644lqb; Mon, 27 May 2024 08:14:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXCRcLCccxewVqyjKBxv10KUENeZFc7hCgxI+BZlHrmdkhgsjstzfZVX7/jY0AynaCG0aeEfqKsLckV4RNUklct3MUVI2A+kv3tL/FtJQ== X-Google-Smtp-Source: AGHT+IEsWPfrtieQl0ojpUrT6LImn2+y3BWd0GJJymHovlDNk6eH1inA86pnjZ8gSu65FPMV0pus X-Received: by 2002:a17:902:c950:b0:1f4:ae25:3d07 with SMTP id d9443c01a7336-1f4ae253f8amr17465275ad.60.1716822841571; Mon, 27 May 2024 08:14:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716822841; cv=pass; d=google.com; s=arc-20160816; b=HpqYj4aYvkTAhARYzmr++GdIJPZcfvCrBef0bNu3IVleKsbRbdtfrxNLTvlJSno5FH gh7klUfIeHli3BWYEf+HVHkp8GfEzmFM33E/OdS6cCfzSHfQ/F1pZV4FATcOVsH+UfNO oOCfQZhc1j9L/d3ZUq7LrjTtZzxrqcayTE9a2Td3DtN6sda3APuyqFJEq9GO/y+WjjoM j1pdeB+9SDmsReNK0UmiVswElBR/95TDneuVImeDJnm+zSbgZZUIJIFU4IDnQ/Djfl8c 8zb58qQlRDm0i6gPHqmataTzsxJm3OmrDmaVxFJY58SEstE4MKg9aZ76YHFQHbbJGIM2 9r8g== 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=n+2VwaqmHUxa/prw0b8nG5NadDF9sjoe8fTmlg8lCC0VL6rDPRGt2B1mmTEiqLZAAg HRylPPYYYHHwqi21uZt1ZBlRduZhAjkD3iNGGC5MaCA1V/uHLAMLo5HvEgFf4+XZqA/f D2Ub3RbUlCMWzoHW76h+mQHpVKKfhaLhL5WKhW87pcdftOb8JB/+tsagCg/7KlxsTExu j1iD+hpHPvsJVixpVPX+Lsq39siAHrxd2heS7NIHfJt05gRrmHYG4AhcJr26t0S4mxVq LLSqs2iKAt/FByuotUFoLRJtad8Q6+uXMrSsOqtXjfz7Sdk8PB3iKCnWioPkdIBA3JcL 1xVQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=exZVWsAE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-190922-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190922-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. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1f483654081si30029525ad.488.2024.05.27.08.14.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 08:14:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190922-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=exZVWsAE; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-190922-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190922-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 1C37DB30A03 for ; Mon, 27 May 2024 14:45:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B054B155C90; Mon, 27 May 2024 14:18:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="exZVWsAE" 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 D8C7016DEDD; Mon, 27 May 2024 14:18:42 +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=1716819522; cv=none; b=mGCumTWstePviHavAKcaBQvBW0Uy/NM/J3pS77MfdF/+cQ6VcMJp7Hr4FGakBQ0v/H7zcNlXgeyDijgULlCvPfgDvCeGz2EtZlGxDAwacoP9fxiBFYUSIa+1Q7uc1IjzBqcEyHNV+dNt5nw3hsCxsFhpUOhzLuZPPCZbrHLsH+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716819522; c=relaxed/simple; bh=fIgHyz1SU66HH2/03OqanKPPWhz+SgylrApj4NM5RgU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PQbOdhn7UMLevBaklTPjy8IuR+GVj19aeX+ctieDuErx9gTXuzu2M+XlznOkQmicfrbu+AWAvIyO1BQFGIhFDlmHtZ+e9mILQtv1WXitgYSLQtZgj4qJXCSjYGlxaguUK7EY7z5nbyf2TkS2ER4HML5dJdJZXeBNwOaD77y9c6k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=exZVWsAE; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F1AEC2BBFC; Mon, 27 May 2024 14:18:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716819522; bh=fIgHyz1SU66HH2/03OqanKPPWhz+SgylrApj4NM5RgU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=exZVWsAEXppUXnJCnyBHKuS3ljc7BZsv9hZn5VPLYPN+mrUTUb15F3xB9Rleol+OK sYqwAIl5oxfN67ACMBPeDTBuZvLV/yBW1u+p+efzzJo/qQNpuSfcLFXJ5vO/YFEjuL 5RswrxbhisSRuNwpQdUNKv3r38ynspYd/CvgVHnoVYj3OUEHXN22cQn6UgQsU/sucP IxWBV8AkC/yliDOnpazJm4MnOAjPEzQnWLliLnkEsOYVUY7qx+NBpiMOqSn90jUiC+ DV2PY8JgTxqPlOCqBpXjq6Bu0aP6fBXN00p43xxY6Ienimj5PD3Vc09paQcseOAoLg 623CfKuUNAIrw== 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.15 11/13] ACPI: video: Add backlight=native quirk for Lenovo Slim 7 16ARH7 Date: Mon, 27 May 2024 10:18:05 -0400 Message-ID: <20240527141819.3854376-11-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240527141819.3854376-1-sashal@kernel.org> References: <20240527141819.3854376-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.15.160 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