From: Mattia Dongili <malattia@linux.it>
To: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: linux-acpi@vger.kernel.org
Subject: Re: [PATCH] sony-laptop: support rfkill via ACPI interfaces
Date: Sat, 21 Mar 2009 15:32:30 +0900 [thread overview]
Message-ID: <20090321063229.GE3834@kamineko.org> (raw)
In-Reply-To: <20090321043513.GA20519@srcf.ucam.org>
On Sat, Mar 21, 2009 at 04:35:13AM +0000, Matthew Garrett wrote:
> On Sat, Mar 21, 2009 at 01:00:10PM +0900, Mattia Dongili wrote:
> > On Fri, Mar 20, 2009 at 02:00:04PM +0000, Matthew Garrett wrote:
> > > I had one machine where ECON seemed to need to be called explicitly, but
> > > I can't remember the details now. Calling it probably wouldn't hurt
> > > anything.
> >
> > seems to be a TT and Z specific thing though. The DSDT on other models
> > doesn't provide the ECON method.
>
> Yeah. As I said, I don't think there's any harm in causing it - I think
> I was getting more promising results from hotkey events in the Z when I
> called ECON, but I don't have access to that machine right now and never
> got it finished off.
Sounds reasonable.
> > > The numbers correspond to enabling all events. I couldn't think of any
> > > reason why we'd only want to enable a subset. The current nc setup code
> > > seems to enable some events and then disable them again, which I don't
> > > really understand.
> >
> > Well, the current sequence was taken from a trace in windows on a Vaio C
> > Type, then it demonstrated to be helpful on other models as well.
> > The SN07[1] method is very different from the Z and TT type to the AR, C,
> > FE, FZ and N so I'm starting to suspect that we're just seeing a new
> > generation of SNC based models. I'll see if some users with older models
> > can give the new sequence a go.
>
> Looking through, the implementation seems quite different but the
> functionality seems the same - the newer machines seem to return values
> directly, whereas older ones tended to trap into SMM. The wireless
> control (at least, the enumeration call I make) seems to be a noop on
> these older machines. It /looks/ like we can probably get some sort of
> versioning information about the interface by calling SN00. I think that
> would probably be a better approach than using DMI for this.
sure, that DMI whitelist is already annoying in its current shape.
Getting the ACPI tables to tell us what SNC version we are looking at
would be so much better.
I just grepped the DSDTs I have here and this is what I got:
DSDT.c1s.dsl: Name (SNI4, 0x344A0001)
DSDT.c71bw.dsl: Name (SNI4, 0x344A0001)
DSDT.fe21b.dsl: Name (SNI4, 0x334A0000)
DSDT.fe31m.dsl: Name (SNI4, 0x334A0000)
DSDT.fe41z.dsl: Name (SNI4, 0x334A0000)
DSDT.fe830fe.dsl: Name (SNI4, 0x334A0000)
DSDT.fz15.dsl: Name (SNI4, 0x374A0000)
DSDT.fz180e.dsl: Name (SNI4, 0x374A0000)
DSDT.n370e.dsl: Name (SNI4, 0x344A0001)
DSDT.tt11lnb.dsl: Store (0x344D0000, Index (CFGI, 0x04))
DSDT.z11awn.dsl: Store (0x334D0000, Index (CFGI, 0x04))
DSDT.z11vn.dsl: Store (0x334D0000, Index (CFGI, 0x04))
DSDT.z26gn.dsl: Store (0x334D0000, Index (CFGI, 0x04))
DSDT.z90s.dsl: Store (0x334D0000, Index (CFGI, 0x04))
VGN-AR31S-R0200J6.dsl: Name (SNI4, 0x364A0000)
VGN-AR370E-R0200J6.dsl: Name (SNI4, 0x364A0000)
VGN-C1S.dsl: Name (SNI4, 0x344A0001)
VGN-C1ZB-R0034J4.dsl: Name (SNI4, 0x344A0001)
VGN-C240E-R0080J4.dsl: Name (SNI4, 0x344A0001)
VGN-C2S-R0080J4.dsl: Name (SNI4, 0x344A0001)
VGN-C2Z-R0080J4.dsl: Name (SNI4, 0x344A0001)
VGN-FE11H-R0072J3.dsl: Name (SNI4, 0x334A0000)
VGN-FE11H-R0074J3.dsl: Name (SNI4, 0x334A0000)
VGN-FE11M-R0172J3.dsl: Name (SNI4, 0x334A0000)
VGN-FE21M-R0130J3.dsl: Name (SNI4, 0x334A0000)
VGN-FE31M.dsl: Name (SNI4, 0x334A0000)
VGN-FE41E-R0190J3.dsl: Name (SNI4, 0x334A0000)
VGN-FE41M-R0190J3.dsl: Name (SNI4, 0x334A0000)
VGN-FE41Z-R0200J3.dsl: Name (SNI4, 0x334A0000)
VGN-FE550G-R0074J3.dsl: Name (SNI4, 0x334A0000)
VGN-FE590P-R0072J3.dsl: Name (SNI4, 0x334A0000)
VGN-FE660G-R0133J3.dsl: Name (SNI4, 0x334A0000)
VGN-FE770G-R0173J3.dsl: Name (SNI4, 0x334A0000)
VGN-FE830.dsl: Name (SNI4, 0x334A0000)
VGN-FE880EH-R0200J3.dsl: Name (SNI4, 0x334A0000)
VGN-N130G-R0020J4.dsl: Name (SNI4, 0x344A0001)
VGN-N230E-R0070J4.dsl: Name (SNI4, 0x344A0001)
SNI4 or CFGI+0x04 is the only differing number and is returned with
SN00(4).
> I've put this into rawhide, so I suspect we'll hear complaints if it
> breaks things for anybody.
want to try to push your patch to mainline or would you prefer to wait?
IMO pushing it and eventually fixing support for 0x344a000[10] models is
fine. After all your snc_setup code could be easily plugged into the DMI
list for the time being and Z and TT users would be happy.
--
mattia
:wq!
next prev parent reply other threads:[~2009-03-21 6:32 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-19 21:21 [PATCH] sony-laptop: support rfkill via ACPI interfaces Matthew Garrett
2009-03-19 21:28 ` Matthew Garrett
2009-03-19 21:34 ` Norbert Preining
2009-03-19 21:44 ` Matthew Garrett
2009-03-19 21:49 ` Norbert Preining
2009-03-19 21:56 ` Matthew Garrett
2009-03-19 22:15 ` Norbert Preining
2009-03-20 0:28 ` Norbert Preining
2009-03-20 0:38 ` Matthew Garrett
2009-03-20 0:40 ` Norbert Preining
2009-03-20 1:18 ` Norbert Preining
2009-03-20 7:33 ` Matthias Welwarsky
2009-03-21 11:22 ` Matthias Welwarsky
2009-03-21 13:53 ` Matthias Welwarsky
2009-03-21 14:45 ` Mattia Dongili
2009-03-21 16:51 ` Norbert Preining
2009-03-22 17:56 ` Matthew Garrett
2009-03-22 18:03 ` Matthew Garrett
2009-03-22 20:36 ` Norbert Preining
2009-03-22 20:37 ` Matthew Garrett
2009-03-22 22:06 ` Norbert Preining
2009-03-22 22:46 ` Matthew Garrett
2009-03-22 23:10 ` Mattia Dongili
2009-03-22 23:14 ` Matthew Garrett
2009-03-23 0:08 ` Mattia Dongili
2009-03-23 0:10 ` Matthew Garrett
2009-03-23 12:30 ` Norbert Preining
2009-03-23 13:04 ` Mattia Dongili
2009-03-23 15:32 ` Norbert Preining
2009-03-23 15:43 ` Matthew Garrett
2009-03-23 16:00 ` Norbert Preining
2009-03-23 16:09 ` Matthew Garrett
2009-03-23 16:27 ` Norbert Preining
2009-03-23 16:30 ` Matthew Garrett
2009-03-23 16:37 ` Norbert Preining
2009-03-23 16:40 ` Matthew Garrett
2009-03-23 16:41 ` Norbert Preining
2009-03-23 16:51 ` Matthew Garrett
2009-03-23 17:48 ` Norbert Preining
2009-03-23 19:51 ` Matthew Garrett
2009-03-24 0:01 ` Norbert Preining
2009-03-24 0:08 ` Mattia Dongili
2009-03-23 21:48 ` Matthew Garrett
2009-03-24 0:02 ` Norbert Preining
2009-03-24 0:04 ` Matthew Garrett
2009-03-23 12:29 ` Norbert Preining
2009-03-23 14:58 ` Matthew Garrett
2009-03-21 16:18 ` Norbert Preining
2009-03-20 8:52 ` Mattia Dongili
2009-03-20 14:00 ` Matthew Garrett
2009-03-21 4:00 ` Mattia Dongili
2009-03-21 4:35 ` Matthew Garrett
2009-03-21 6:32 ` Mattia Dongili [this message]
2009-03-21 14:06 ` Matthew Garrett
2009-03-21 14:37 ` Mattia Dongili
2009-03-21 14:55 ` Matthew Garrett
2009-03-21 15:10 ` Matthew Garrett
2009-03-21 19:15 ` Matthias Welwarsky
2009-03-22 13:33 ` Matthew Garrett
2009-03-22 2:38 ` Mattia Dongili
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=20090321063229.GE3834@kamineko.org \
--to=malattia@linux.it \
--cc=linux-acpi@vger.kernel.org \
--cc=mjg59@srcf.ucam.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