Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp572582pxf; Wed, 10 Mar 2021 12:06:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzP7BrqKQpv7q1fv9+/QimeGrTT+2KPCadnK+BHlsPkWg+EHTm3HbPxMg5+9F4O06j2WgiA X-Received: by 2002:a17:906:4a50:: with SMTP id a16mr165869ejv.256.1615406819584; Wed, 10 Mar 2021 12:06:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615406819; cv=none; d=google.com; s=arc-20160816; b=wS2rLUTAogoGNyHk1yqaRrlKItclUGNg8l+TdVo9luQce8UOR/UbVvW5SSJl787DzE X9ClIaVeC3WckhQ95FAG9CpplpAz3Ax08n3pSOYK+cqkvp8NfrJWTTPskAhY2wQi/BDQ XofyVWPUw58KyGiEmNLWwBs9tlShhPwPW8e5Uq73pJJh0qtAHPx+U3B6jTopMpcQtiX5 fDgTHZbu3y7JevU4cp+4qBvxq980Kxa6/MxwvOd3RJ5BOQitb57DoWALkk/RbY5Vhl3I k9I/H833Sl58kGLLxl74dRLkRTPVTWqTtJrMwps9pLe+9Yb8Sn1NbRGT61wH6ehilxFz ca0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=aS8yLDMfyfiG1fxKlkaNh70yIkkXRUp+0gBjcYM6u+M=; b=IggmA35kDCUvcUB0X2WsDn158/fFyfBMJPgJ3lJPSqqY6E+biiu4HeevHeq+V+4tVg 3iz6eMKtXHCxZplH7xbbjbz6xznaJu0yAEpRT+6Byc+MIiOvyc21n3otcoyLb0r7YSOb PtW9pz1qH0uXFLD5PqDhnQSCwWxMrtGgb/i4YtIEoXfxNRjWn35UwO3/gSv2zvSbDeXv yG9EMBwieAlP7x1J5W3z5XyksY/cDSs6eA/PgRuj4lGMjPOJp3qZ+LozW4mq7pIOWz1k 7nWMZ/mFL/be47Dh2cKWT32hedfFqMCwQJi9EBdj6NpDh03Pl1hDc5RT3xb0ymxIICby TR6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p10si255115ejg.131.2021.03.10.12.06.37; Wed, 10 Mar 2021 12:06:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231352AbhCJUFf (ORCPT + 99 others); Wed, 10 Mar 2021 15:05:35 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:56304 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230512AbhCJUFD (ORCPT ); Wed, 10 Mar 2021 15:05:03 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 014941C0B77; Wed, 10 Mar 2021 21:04:58 +0100 (CET) Date: Wed, 10 Mar 2021 21:04:58 +0100 From: Pavel Machek To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, "Jasper St. Pierre" , Chris Chiu , "Rafael J. Wysocki" , Sasha Levin Subject: Re: [PATCH 5.10 23/49] ACPI: video: Add DMI quirk for GIGABYTE GB-BXBT-2807 Message-ID: <20210310200458.GA12122@amd> References: <20210310132321.948258062@linuxfoundation.org> <20210310132322.685806668@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline In-Reply-To: <20210310132322.685806668@linuxfoundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! On Wed 2021-03-10 14:23:34, gregkh@linuxfoundation.org wrote: > From: Greg Kroah-Hartman >=20 > From: Jasper St. Pierre Something is funny with the From header here. But that's not main thing -- this patch is evil. >=20 > [ Upstream commit 25417185e9b5ff90746d50769d2a3fcd1629e254 ] >=20 > The GIGABYTE GB-BXBT-2807 is a mini-PC which uses off the shelf > components, like an Intel GPU which is meant for mobile systems. > As such, it, by default, has a backlight controller exposed. >=20 > Unfortunately, the backlight controller only confuses userspace, which > sees the existence of a backlight device node and has the unrealistic > belief that there is actually a backlight there! >=20 > Add a DMI quirk to force the backlight off on this system. > +++ b/drivers/acpi/video_detect.c > @@ -140,6 +140,13 @@ static const struct dmi_system_id video_detect_dmi_t= able[] =3D { > }, > { > .callback =3D video_detect_force_vendor, > + .ident =3D "GIGABYTE GB-BXBT-2807", > + .matches =3D { > + DMI_MATCH(DMI_SYS_VENDOR, "GIGABYTE"), > + DMI_MATCH(DMI_PRODUCT_NAME, "GB-BXBT-2807"), > + }, > + }, > + { > .ident =3D "Sony VPCEH3U1E", > .matches =3D { > DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"), Yup, and it looks like this fixes the problem for GIGABYTE GB-BXBT-2807 but re-introduces the problem for Sony VPCEH3U1E, because its .callback is now NULL. Best regards, Pavel IOW I'm suggesting this: Signed-off-by: Pavel Machek (CIP) diff --git a/drivers/acpi/video_detect.c b/drivers/acpi/video_detect.c index 811d298637cb..83cd4c95faf0 100644 --- a/drivers/acpi/video_detect.c +++ b/drivers/acpi/video_detect.c @@ -147,6 +147,7 @@ static const struct dmi_system_id video_detect_dmi_tabl= e[] =3D { }, }, { + .callback =3D video_detect_force_vendor, .ident =3D "Sony VPCEH3U1E", .matches =3D { DMI_MATCH(DMI_SYS_VENDOR, "Sony Corporation"), --=20 DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --YiEDa0DAkWCtVeE4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAmBJJmoACgkQMOfwapXb+vIsdwCfeCY3SIy6H7DZYpEFjOqUtPYg mgUAn32aOTavWmFomqX5zF/BpF2ouph2 =ZXeI -----END PGP SIGNATURE----- --YiEDa0DAkWCtVeE4--