From: Zhang Rui <rui.zhang@intel.com>
To: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: "Zhao, Yakui" <yakui.zhao@intel.com>,
Jesse Barnes <jbarnes@virtuousgeek.org>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
"dri-devel@lists.sourceforge.net"
<dri-devel@lists.sourceforge.net>,
"sonne@debian.org" <sonne@debian.org>,
"rpurdie@linux.intel.com" <rpurdie@linux.intel.com>,
Thomas Renninger <trenn@suse.de>, Len Brown <lenb@kernel.org>,
linux-acpi <linux-acpi@vger.kernel.org>
Subject: Re: [RFC] [intel-gfx] :The backlight issue when KMS is used
Date: Tue, 07 Apr 2009 16:48:22 +0800 [thread overview]
Message-ID: <1239094102.7661.103.camel@rzhang-dt> (raw)
In-Reply-To: <20090407082256.GA17012@srcf.ucam.org>
[-- Attachment #1: Type: text/plain, Size: 1580 bytes --]
CC Thomas, Len and linux-acpi mail list.
On Tue, 2009-04-07 at 16:22 +0800, Matthew Garrett wrote:
> On Tue, Apr 07, 2009 at 04:20:34PM +0800, Zhang Rui wrote:
>
> > All subsystems can register a set of callbacks for backlight control in
> > its own way, e.g. ACPI, platform driver, i915.
> > And the backlight manager only exports one single I/F to users, like:
> > ----|
> > |----brightness
> > |----actual_brightness
> > |----max_brightness
> > |----...
> > |----mode
> > and it supports multiple modes, e.g.
> > 1. generic ---ACPI
> > 2. platform---platform drivers
> > 3. legacy-----i915
>
> This seems to be a lot of complexity for an uncommon case. Is there any
> real need to modify the mode at runtime?
if this is implemented, the video_detect.c can be removed because we
don't need to detect the ACPI video extension when loading platform
drivers.
every driver that has its own ways to control the backlight can register
a set of callbacks and then it's the backlight manager's responsibility
to choose which one to use.
> What happens if the platform
> driver gets loaded before i915?
>
the backlight manager always choose the one with the highest priority if
multiple callbacks are registered. i.e
if (ACPI control methods are available)
changes to the "generic" mode
else if (platform specific callbacks are available)
changes to the "platform" mode
else if (i915 callbacks are available)
changes to the "legacy" mode
the backlight manager always run this logic when a new set of callbacks
is registered/unregistered.
thanks,
rui
[-- Attachment #2: backlight-manager --]
[-- Type: application/mbox, Size: 3195 bytes --]
next parent reply other threads:[~2009-04-07 8:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1238737778.3582.163.camel@localhost.localdomain>
[not found] ` <20090403092408.66809996@hobbes>
[not found] ` <20090403162906.GB23243@srcf.ucam.org>
[not found] ` <1239075911.3582.206.camel@localhost.localdomain>
[not found] ` <20090407055717.GA14710@srcf.ucam.org>
[not found] ` <1239089123.3582.228.camel@localhost.localdomain>
[not found] ` <1239092434.7661.87.camel@rzhang-dt>
[not found] ` <20090407082256.GA17012@srcf.ucam.org>
2009-04-07 8:48 ` Zhang Rui [this message]
2009-04-07 23:27 ` [RFC] [intel-gfx] :The backlight issue when KMS is used Jesse Barnes
2009-04-08 0:59 ` yakui_zhao
2009-04-08 7:54 ` Thomas Renninger
[not found] ` <20090407073845.GA15635@srcf.ucam.org>
2009-04-08 0:56 ` yakui_zhao
2009-04-08 10:17 ` Thomas Renninger
2009-04-08 10:50 ` Richard Purdie
2009-04-09 1:12 ` yakui_zhao
2009-04-09 7:42 ` Thomas Renninger
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=1239094102.7661.103.camel@rzhang-dt \
--to=rui.zhang@intel.com \
--cc=dri-devel@lists.sourceforge.net \
--cc=intel-gfx@lists.freedesktop.org \
--cc=jbarnes@virtuousgeek.org \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=mjg59@srcf.ucam.org \
--cc=rpurdie@linux.intel.com \
--cc=sonne@debian.org \
--cc=trenn@suse.de \
--cc=yakui.zhao@intel.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