From: Thomas Renninger <trenn@suse.de>
To: nokos@gmx.net
Cc: Jonathan Woithe <jwoithe@physics.adelaide.edu.au>,
linux-acpi@vger.kernel.org, "Moore,
Robert" <robert.moore@intel.com>,
"Lin, Ming M" <ming.m.lin@intel.com>
Subject: Re: [PATCH] ACPI: Support Fujitsu Lifebook S6410 in fujitsu-laptop
Date: Mon, 14 Apr 2008 14:11:43 +0200 [thread overview]
Message-ID: <1208175103.1784.72.camel@queen.suse.de> (raw)
In-Reply-To: <1208171944.888.20.camel@earth.gruber.myown>
Hi,
Robert/Ming: you might be interested in the broken SSDT table on latest
Fujitsus mentioned at the end of this mail.
On Mon, 2008-04-14 at 13:19 +0200, nokos@gmx.net wrote:
> Am Montag, den 14.04.2008, 12:46 +0200 schrieb Thomas Renninger:
> > On Sun, 2008-04-13 at 18:22 +0200, nokos@gmx.net wrote:
> > > There was an small error in the last patch, here the corrected version.
> >
> > IMO there should be two fujitsu drivers, one for:
> > ACPI_FUJITSUB1_HID "FUJ02B1"
> > e.g. acpi_fujitsu_brightness
> > or
> > acpi_fujitsu_02b1
> > and one for:
> > ACPI_FUJITSUE3_HID "FUJ02E3"
> > e.g. acpi_fujitsu_keys
> > or
> > acpi_fujitsu_02e3
> > not sure what the perfect name could be...
> >
> > There probably are machines out there which only have one of above
> > devices, then only the relevant driver should be loaded.
>
> I thought the since there is only a small functionality in each part and
> the module only registers drivers which are started only if an
> appropriate device is present it might be good to integrate it in one
> module. (in the S6410 case there is actually a third device FUJ02E1 but
> I don't know yet what it is for, there are some notifies for that device
> in the DSDT but so far I haven't triggered any of them)
One driver per device is the way to go IMO.
If you know that these devices are always present together..., but even
then it is easier to review/read and makes things more modular, e.g. you
can let the one driver depend on backlight, the other one input or
whatever other needed subsystems and e.g. only compile out brightness
support if you like to (may be convenient for backlight being managed
via video driver at some time), but still make use of the the hotkey
driver.
> The problem is this:
> The brightness adjustment stuff in the DSDT is:
> Method (_L1C, 0, NotSerialized)
> {
> Store (SSF0, Local0)
> Store (Local0, SSF0)
> And (Local0, Not (SSM0), Local0)
> Store (SSF1, Local1)
> Store (Local1, SSF1)
> And (Local1, Not (SSM1), Local1)
> Store (SSF2, Local2)
> Store (Local2, SSF2)
> And (Local2, Not (SSM2), Local2)
> If (And (Local0, 0x01))
> {
> \_SB.PCI0.GFX0.PHTK ()
> Store (0x80, BCMD)
> Store (Zero, SMIC)
> \_SB.PCI0.GFX0.AHTK ()
> If (BSWF)
> {
> If (LGreaterEqual (\_SB.OSTP (), 0x40))
> {
> \_SB.PCI0.GFX0.LCD.BLNF ()
> }
> Else
> {
> Name (BLTS, Zero)
> ...
> the \_SB.OSTP ()is the switch controlled by osi vista (0x40 for windows
> 2006)
> and the _SB.PCI0.GFX0.LCD.BLNF () is in an external table which has
> signature "\0\0\0\0" and hence is not loaded by the linux acpi system.
> Interestingly if you force it to be loaded (eg. by rewriting the
> signature in drivers/acpi/tables/tbinstal.c) the linux acpi system
> detects brightness control via ACPI_VIDEO but doesn't do anything if I
> try to change the brightness ...
>
> Also since the additional table has no signature acpidump does not dump
> it ...
Ahhh, this one.
This is related to:
http://bugzilla.kernel.org/show_bug.cgi?id=9919
In fact the bug is about another problem, but also shows this issue.
Instead of mixing things up in this bug, could you open another one and
attach acpidump and the acpidump --addr xy --length yx output of the
broken "visit" table (you can take over the address and length of the
OperationRegion), pls.
Can you then give the other guys in above bug a pointer to the newly
created and add Robert.Moore@intel.com and ming.m.lin@intel.com and me
to the list of CC'ed people. They have to decide how to deal with this
(probably) BIOS bug. I could imagine a solution similar to: The
signature is ignored for tables loaded via "load" ASL table runtime
loading commands in SLACk mode.
There were a lot table loading fixes posted for 2.6.26, but I doubt they
cover this bug.
An already uploaded broken Fujitsu SSDT(but mixed with another bug) can
be found here (comment #15):
http://bugzilla.kernel.org/show_bug.cgi?id=9919#c15
Thanks,
Thomas
next prev parent reply other threads:[~2008-04-14 12:11 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-05 3:01 [PATCH] ACPI: Support Fujitsu Lifebook S6410 in fujitsu-laptop nokos
2008-04-09 23:40 ` nokos
2008-04-13 16:22 ` nokos
2008-04-14 10:46 ` Thomas Renninger
2008-04-14 11:19 ` nokos
2008-04-14 12:11 ` Thomas Renninger [this message]
2008-04-15 3:14 ` Jonathan Woithe
2008-04-15 10:51 ` nokos
2008-04-15 23:21 ` Jonathan Woithe
2008-04-14 18:00 ` nokos
[not found] ` <1208193500.11305.17.camel@earth.gruber.myown>
[not found] ` <1208195761.1784.95.camel@queen.suse.de>
2008-04-14 18:22 ` nokos
2008-04-14 19:03 ` Thomas Renninger
2008-04-14 19:18 ` Thomas Renninger
2008-04-15 9:36 ` nokos
2008-04-15 23:12 ` Jonathan Woithe
2008-04-15 3:11 ` Jonathan Woithe
[not found] <1208366478.9921.13.camel@earth.gruber.myown>
2008-04-21 0:24 ` Jonathan Woithe
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=1208175103.1784.72.camel@queen.suse.de \
--to=trenn@suse.de \
--cc=jwoithe@physics.adelaide.edu.au \
--cc=linux-acpi@vger.kernel.org \
--cc=ming.m.lin@intel.com \
--cc=nokos@gmx.net \
--cc=robert.moore@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