Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751575AbaK1Lzs (ORCPT ); Fri, 28 Nov 2014 06:55:48 -0500 Received: from mga02.intel.com ([134.134.136.20]:30423 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751139AbaK1Lzp (ORCPT ); Fri, 28 Nov 2014 06:55:45 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,476,1413270000"; d="scan'208";a="644994725" Message-ID: <54786294.5030105@intel.com> Date: Fri, 28 Nov 2014 19:55:00 +0800 From: Aaron Lu MIME-Version: 1.0 To: Brian Norris CC: "Rafael J. Wysocki" , ntrrgc@gmail.com, ACPI Devel Mailing List , linux-kernel@vger.kernel.org Subject: Re: [PATCH] ACPI / video: check _DOD list when creating backlight device References: <542A4949.2020208@intel.com> <1648939.GaN1bonAuX@vostro.rjw.lan> <5436470B.3030306@intel.com> <20141128095928.GA5106@norris-Latitude-E6410> In-Reply-To: <20141128095928.GA5106@norris-Latitude-E6410> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/28/2014 05:59 PM, Brian Norris wrote: > On Thu, Oct 09, 2014 at 04:27:55PM +0800, Aaron Lu wrote: >> On 10/01/2014 04:18 AM, Rafael J. Wysocki wrote: >>> On Tuesday, September 30, 2014 02:10:17 PM Aaron Lu wrote: >>>> The _DOD method lists which video output device is currently attached so >>>> we should only care about them and ignore others. An user recently >>>> reported that there are two acpi_video interfaces appeared on his system >>>> and one of them doesn't work. From the acpidump, it is found that there >>>> are more than one video output devices that have _BCM control method but >>>> the _DOD lists only one of them. So this patch checks if the video output >>>> device is in the _DOD list and will not create backlight device if it is >>>> not in the list. Also, we consider the broken _DOD case(reflected by the >>>> video->attached_count is 0) and do not change behaviour for those broken >>>> _DOD systems. >>>> >>>> Buglink: https://bugzilla.kernel.org/show_bug.cgi?id=84111 >>>> Reported-and-tested-by: ntrrgc@gmail.com >>>> Signed-off-by: Aaron Lu >>> >>> This looks reasonable to me, but I'm a little afraid that it may break >>> systems which forget to list valid interfaces in the _DOD. >> >> Indeed, this is possible. > > And indeed, there is a regression! My Dell Latituded E6410's backlight > control no longer works after this commit, and I get messages like this > instead: > > [ 57.214610] ACPI: Failed to switch the brightness > > If I revert this commit, my backlight controls work again. Also, I > regain a cooling device (?) that was being ignored: > > [ 1.332682] acpi device:02: registered as cooling_device0 > > Do you need any additional info to handle the regression, or should we > just revert the patch? Please attach acpidump, dmesg with video.dyndbg="module video +pft" in kernel cmdline, list the /sys/class/backlight with and without this commit, thanks. -Aaron > > Brian > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/