From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Jani Nikula <jani.nikula@linux.intel.com>
Cc: "Linus Torvalds" <torvalds@linux-foundation.org>,
"Aaron Lu" <aaron.lu@intel.com>,
"Matthew Garrett" <mjg59@srcf.ucam.org>,
"* SAMÍ *" <miaousami@hotmail.com>,
intel-gfx <intel-gfx@lists.freedesktop.org>,
LKML <linux-kernel@vger.kernel.org>,
"ACPI Devel Maling List" <linux-acpi@vger.kernel.org>,
"Igor Gnatenko" <i.gnatenko.brain@gmail.com>
Subject: Re: [Intel-gfx] Linux 3.11-rc2 [backlight] [ASUS N56VZ]
Date: Thu, 25 Jul 2013 14:57:52 +0200 [thread overview]
Message-ID: <5730704.o2aLKRMvVz@vostro.rjw.lan> (raw)
In-Reply-To: <877ggeyg1p.fsf@intel.com>
On Thursday, July 25, 2013 03:34:10 PM Jani Nikula wrote:
> On Thu, 25 Jul 2013, "Rafael J. Wysocki" <rjw@sisk.pl> wrote:
> > On Thursday, July 25, 2013 11:09:27 AM Jani Nikula wrote:
> >> On Thu, 25 Jul 2013, "Rafael J. Wysocki" <rjw@sisk.pl> wrote:
> >> > Well, I wonder what about the appended (untested) patch?
> >>
> >> Rafael, before going there, I've been trying to wrap my (poor, rusty
> >> after vacation) head around
> >>
> >> commit 8c5bd7adb2ce47e6aa39d17b2375f69b0c0aa255
> >> Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
> >> Date: Thu Jul 18 02:08:06 2013 +0200
> >>
> >> ACPI / video / i915: No ACPI backlight if firmware expects Windows 8
> >>
> >> and I can't see how it could work.
> >
> > Well, if it didn't work, people wouldn't see either improvement or breakage
> > from it, but they do see that, so it evidently works. :-)
>
> I didn't claim it didn't work, just that *I* didn't see how it could. ;)
>
> >> First, the ACPI_VIDEO_SKIP_BACKLIGHT flag seems to be checked before
> >> it's actually set anywhere.
> >
> > Are you sure about that?
> >
> > acpi_video_bus_add() is the .add() callback routine for acpi_video_bus which
> > in fact is an ACPI driver (the naming sucks, but I didn't invent it). This
> > means that acpi_video_bus_add() can only be called *after* acpi_video_bus
> > has been registered with the ACPI subsystem (and the driver core). That
> > is done by acpi_bus_register_driver() and, guess what?, this happens in
> > __acpi_video_register(). So clearly, acpi_video_bus_add() *cannot* run before
> > __acpi_video_register().
>
> Right. I totally missed the call within the ternary operator. Thanks for
> the explanation, and apologies for the noise.
>
> >> Second, with i915 that has opregion support, __acpi_video_register()
> >> should only ever get called once. Which means the acpi_walk_namespace()
> >> with video_unregister_backlight() should never get called in register.
> >>
> >> Please enlighten me.
> >
> > Actually, that's correct, so we don't need the whole
> > video_unregister_backlight() thing, calling acpi_video_backlight_quirks() would
> > be sufficient.
> >
> > Ah, one more reason to do a full revert. I'm thinking, though, that I'll leave
> > acpi_video_backlight_quirks() as is so that it can be used by
> > acpi_video_bus_(start)|(stop)_devices(), because that doesn't seem to cause
> > problems to happen.
>
> I observe that for the regular non-quirk acpi_video_register() call,
> acpi_video_backlight_quirks() won't be called during register, but it
> will get called later. This might have subtle effects later on, don't
> you think?
Yes, it might, but after dropping ACPI_VIDEO_SKIP_BACKLIGHT it should be OK.
> As to the original problem, and your patch in this thread, what do you
> think about having another value in acpi_backlight kernel parameter for
> it? Having an i915 module parameter to tell acpi to use or not use
> quirks seems odd, since the i915 is not really taking over
> anything. It's just passing the info on to acpi.
I agree, I'm going to send a full revert in a while and we'll think what to
do about all that later.
Thanks,
Rafael
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
next prev parent reply other threads:[~2013-07-25 12:47 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-24 18:43 * SAMÍ *
[not found] ` <CAFMg4WB21dWV6c+hxzrXR_0pSfnayFPZGx0byX6pKjMS5SDoqQ@mail.gmail.com>
2013-07-24 19:29 ` Rafael J. Wysocki
2013-07-24 19:39 ` Rafael J. Wysocki
2013-07-24 20:39 ` Linus Torvalds
2013-07-24 21:02 ` [Intel-gfx] " Daniel Vetter
2013-07-24 21:05 ` Linus Torvalds
2013-07-24 21:23 ` Rafael J. Wysocki
2013-07-25 8:09 ` Jani Nikula
2013-07-25 11:58 ` Rafael J. Wysocki
2013-07-25 12:34 ` Jani Nikula
2013-07-25 12:57 ` Rafael J. Wysocki [this message]
2013-07-29 19:36 ` * SAMÍ *
2013-07-29 20:03 ` Rafael J. Wysocki
2013-07-29 21:53 ` * SAMÍ *
2013-07-29 22:11 ` Rafael J. Wysocki
2013-07-29 23:38 ` Aaron Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5730704.o2aLKRMvVz@vostro.rjw.lan \
--to=rjw@sisk.pl \
--cc=aaron.lu@intel.com \
--cc=i.gnatenko.brain@gmail.com \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jani.nikula@linux.intel.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=miaousami@hotmail.com \
--cc=mjg59@srcf.ucam.org \
--cc=torvalds@linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®