public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Seth Forshee <seth.forshee@canonical.com>
Cc: "James Hogan" <james@albanarts.com>,
	"Martin Steigerwald" <Martin@lichtvoll.de>,
	"Felipe Contreras" <felipe.contreras@gmail.com>,
	"DRI mailing list" <dri-devel@lists.freedesktop.org>,
	platform-driver-x86@vger.kernel.org,
	"Henrique de Moraes Holschuh" <hmh@hmh.eng.br>,
	"Matthew Garrett" <matthew.garrett@nebula.com>,
	"Mike Galbraith" <bitbucket@online.de>,
	"Josh Boyer" <jwboyer@fedoraproject.org>,
	"Kalle Valo" <kvalo@adurom.com>,
	"Yves-Alexis Perez" <corsac@debian.org>,
	linux-acpi@vger.kernel.org,
	"Lee Chun-Yi" <joeyli.kernel@gmail.com>,
	"Ben Jencks" <ben@bjencks.net>, "Jörg Otte" <jrg.otte@gmail.com>,
	intel-gfx@lists.freedesktop.org,
	"Joerg Platte" <jplatte@naasa.net>,
	"Igor Gnatenko" <i.gnatenko.brain@gmail.com>,
	"Mika Westerberg" <mika.westerberg@linux.intel.com>,
	"Aaron Lu" <aaron.lu@intel.com>,
	"Linux-Kernel@Vger. Kernel. Org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v5 0/4] Fix Win8 backlight issue
Date: Sat, 12 Oct 2013 16:08:59 +0200	[thread overview]
Message-ID: <1838907.5CocJDsAng@vostro.rjw.lan> (raw)
In-Reply-To: <20131012133432.GA6661@thinkpad-t410>

On Saturday, October 12, 2013 08:34:32 AM Seth Forshee wrote:
> On Sat, Oct 12, 2013 at 04:44:30AM -0700, Josh Boyer wrote:
> > On Fri, Oct 11, 2013 at 4:27 PM, Rafael J. Wysocki <rjw@rjwysocki.net> wrote:
> > > On Friday, October 11, 2013 06:01:43 PM Josh Boyer wrote:
> > >> On Fri, Oct 11, 2013 at 6:10 PM, Rafael J. Wysocki <rjw@rjwysocki.net> wrote:
> > >> > On Friday, October 11, 2013 12:42:43 PM Josh Boyer wrote:
> > >> >> On Fri, Oct 11, 2013 at 9:27 AM, Aaron Lu <aaron.lu@intel.com> wrote:
> > >> >> > v5:
> > >> >> > 1 Introduce video.use_native_backlight module parameter and set its
> > >> >> >   value to false by default as suggested by Rafael. For Win8 systems
> > >> >> >   which have broken ACPI video backlight control, the parameter can be
> > >> >> >   set to 1 in kernel cmdline to skip registering ACPI video's backlight
> > >> >> >   interface. Due to this change, the acpi_video_verify_backlight_support
> > >> >> >   is moved from video_detect.c to video.c - patch 3/4;
> > >> >>
> > >> >> That's a fairly untenable position for distro kernels to be in.  They
> > >> >> now have to ask every user that reports an issue with the backlight to
> > >> >> try setting that option on the command line.  While I appreciate the
> > >> >> setting breaks things for some people, doesn't the Win8 issue impact
> > >> >> far more people?  Shouldn't it be defaulted to true?
> > >> >
> > >> > Well, we have a rule in the kernel not to introduce regressions for users even
> > >> > if they are minority.
> > >> >
> > >> >> If nothing else, can you add a config option for the default so
> > >> >> distros can use that to decide which way to default it and then work
> > >> >> on fixing the remaining users that have troubles?
> > >> >
> > >> > The current plan is to create a blacklist of systems where that option should
> > >> > be set.  We actually already have one, but it is at the _OSI() level, which
> > >> > is overkill in my view and may affect things beyond backlight.  Along with that
> > >> > we will debug systems where setting that option (to true) causes problems to
> > >> > happen, so that we'll be able to drop it going forward (hopefully).
> > >> >
> > >> > Of course, distro kernels may always change the default to true if they want.
> > >>
> > >> They can, but they'd need to either patch the kernel to do so, or code
> > >> it in userspace bootloader configs.  Having a config option they can
> > >> set to change the default makes it reasonable and contained within the
> > >> kernel.
> > >
> > > If we are to use a Kconfig option, why don't we use one instead of rather than
> > > in addition to a command line option?  Say, we have
> > > CONFIG_ACPI_VIDEO_WIN8_WORKAROUND and if that is set, the code will work like
> > > the previous version of the Aaron's patchset (the one without
> > > video.use_native_backlight)?
> > >
> > > Opinions?
> > 
> > If you only have a config option, users can't override the distro
> > settings.  If you simply have a config option for the default value,
> > the distros can set it without having to carry a patch (the primary
> > benefit), but users can still override that without having to rebuild
> > a kernel.
> 
> It sounds like the blacklist and the default value of the parameter
> would be inherently tied together, i.e. the blacklist essentially
> overrides the default value for specific machines. So when the config
> option were flipped from its default the blacklist wouldn't work
> anymore, and you'd need a second blacklist for machines which require
> video.use_native_backlight=n. I doubt anyone wants to see that happen,
> so I think we have to pick one value or the other for the default and
> make it configurable only via the command line.

Good point.

Thanks!

-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

  reply	other threads:[~2013-10-12 13:57 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-11 13:27 [PATCH v5 0/4] Fix Win8 backlight issue Aaron Lu
2013-10-11 13:27 ` [PATCH v5 1/4] backlight: introduce backlight_device_registered Aaron Lu
2013-10-11 13:27 ` [PATCH v5 2/4] ACPI / video: seperate backlight control and event interface Aaron Lu
2013-10-11 13:27 ` [PATCH v5 3/4] ACPI / video: Do not register backlight if win8 and native interface exists Aaron Lu
2013-10-11 13:27 ` [PATCH v5 4/4] thinkpad-acpi: fix handle locate for video and query of _BCL Aaron Lu
2013-10-11 16:42 ` [PATCH v5 0/4] Fix Win8 backlight issue Josh Boyer
2013-10-11 21:01   ` Igor Gnatenko
2013-10-11 22:10   ` Rafael J. Wysocki
2013-10-11 22:01     ` Josh Boyer
2013-10-11 22:45       ` Rafael J. Wysocki
2013-10-11 22:53         ` Igor Gnatenko
2013-10-11 23:10           ` Rafael J. Wysocki
2013-10-11 23:27       ` Rafael J. Wysocki
2013-10-12  5:54         ` Yves-Alexis Perez
2013-10-12 14:10           ` Rafael J. Wysocki
2013-10-12 11:44         ` Josh Boyer
2013-10-12 13:34           ` Seth Forshee
2013-10-12 14:08             ` Rafael J. Wysocki [this message]
2013-10-12  6:00     ` Yves-Alexis Perez
2013-10-12 11:47       ` Josh Boyer
2013-10-15 23:33 ` Rafael J. Wysocki
2013-10-24  8:13   ` Aaron Lu
2013-10-25  6:35     ` Igor Gnatenko
2013-10-28  2:45       ` Aaron Lu
2013-10-28  8:09         ` Jani Nikula
2013-10-29  7:18           ` Aaron Lu
2013-11-15  6:07             ` [PATCH v2] ACPI / video: Add systems that should favor native backlight interface Aaron Lu
2013-11-20 20:56               ` Igor Gnatenko
2013-11-21  5:29                 ` [PATCH v2 rebased] " Aaron Lu
2013-12-24 12:20                   ` Igor Gnatenko
2013-12-24 13:59                   ` Igor Gnatenko
2013-10-30  0:40   ` [PATCH v5 0/4] Fix Win8 backlight issue Matthew Garrett
2013-10-30  0:56     ` Rafael J. Wysocki

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=1838907.5CocJDsAng@vostro.rjw.lan \
    --to=rjw@rjwysocki.net \
    --cc=Martin@lichtvoll.de \
    --cc=aaron.lu@intel.com \
    --cc=ben@bjencks.net \
    --cc=bitbucket@online.de \
    --cc=corsac@debian.org \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=felipe.contreras@gmail.com \
    --cc=hmh@hmh.eng.br \
    --cc=i.gnatenko.brain@gmail.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=james@albanarts.com \
    --cc=joeyli.kernel@gmail.com \
    --cc=jplatte@naasa.net \
    --cc=jrg.otte@gmail.com \
    --cc=jwboyer@fedoraproject.org \
    --cc=kvalo@adurom.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matthew.garrett@nebula.com \
    --cc=mika.westerberg@linux.intel.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=seth.forshee@canonical.com \
    /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