All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: acer-wmi is unnecessarily loaded on a Lenovo Ideapad S12
@ 2010-12-29  4:30 Joey Lee
  2010-12-29 22:12 ` Ville-Pekka Vainio
  2010-12-30 10:04 ` Carlos Corbacho
  0 siblings, 2 replies; 23+ messages in thread
From: Joey Lee @ 2010-12-29  4:30 UTC (permalink / raw)
  To: vpivaini; +Cc: carlos, platform-driver-x86

Hi Vainio, 

於 二,2010-12-28 於 19:28 +0200,Ville-Pekka Vainio 提到:
> I decided to upload the files to the web instead of attaching them to
> the email since they are quite large.
> 
> ti, 2010-12-28 kello 08:36 -0700, Joey Lee kirjoitti:
> > It's not make sense acer-wmi probe on Ideapad S12 netbook, could you
> > please help to attached the following information?
> > 
> > - modinfo acer-wmi > acer-wmi.log
> 
> http://vpv.kapsi.fi/ideapad-s12/modinfo-acer-wmi.txt
> 
> > - dmesg > dmesg.log
> 
> http://vpv.kapsi.fi/ideapad-s12/dmesg-acer-wmi.txt
> 
> > - dmidecode > dmidecode.log
> 
> http://vpv.kapsi.fi/ideapad-s12/dmidecode-acer-wmi.txt
> 
> > - acpidump > acpidump.dat
> 
> http://vpv.kapsi.fi/ideapad-s12/acpidump.dat
> 

It's funny Lenovo S12's _WDG have GUID that matches with Acer AMW0.

Dump from Lenovo Ideapad S12's _WDG:

67C3371D-95A3-4C37-BB61-DD47B491DAAB:
        object_id: AB
        notify_id: 41
        reserved: 42
        instance_count: 1
        flags: 0x2 ACPI_WMI_METHOD


In acer-wmi code:

#define AMW0_GUID1              "67C3371D-95A3-4C37-BB61-DD47B491DAAB"

MODULE_ALIAS("wmi:67C3371D-95A3-4C37-BB61-DD47B491DAAB");	//match



Maybe Wistron is the ODM (or OEM) to manufacture Lenovo Ideapad S12 ?
Anyway, 
I added this Ideapad S12 to blacklist in acer-wmi driver because it must
supported by ideapad-laptop driver.

I also added Cc. to Carlos Corbacho, need his review.

Does is possible you help to test this patch?


Thank's a lot!
Joey Lee



From 194a1b499c36db057319712220af8ec7400030d7 Mon Sep 17 00:00:00 2001
From: Lee, Chun-Yi <jlee@novell.com>
Date: Wed, 29 Dec 2010 00:17:23 +0800
Subject: [PATCH] Add Lenovo Ideapad S12 to acer blacklist

The Lenovo Ideapad S12's _WDG have GUID that matches with AMW0, it causes
acer-wmi driver auto-probe when system boot but there already have
ideapad-laptop driver to support Ideapad serial.
So, add Lenovo Ideapad S12 to acer blacklist to disable it.

Signed-off-by: Lee, Chun-Yi <jlee@novell.com>
Cc: Carlos Corbacho <carlos@strangeworlds.co.uk>
---
 drivers/platform/x86/acer-wmi.c |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c
index 28288ad..387ac7c 100644
--- a/drivers/platform/x86/acer-wmi.c
+++ b/drivers/platform/x86/acer-wmi.c
@@ -310,6 +310,17 @@ static struct dmi_system_id __devinitdata acer_blacklist[] = {
 			DMI_MATCH(DMI_PRODUCT_NAME, "AOA150"),
 		},
 	},
+	/*
+	 * The Lenovo Ideapad S12 have GUID that matches with AMW0 - disable it.
+	 * There already have ideapad-laptop driver to support Ideapad serial.
+	 */
+	{
+		.ident = "Lenovo Ideapad S12",
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "20021,2959"),
+		},
+	},
 	{}
 };
 
-- 
1.6.0.2

^ permalink raw reply related	[flat|nested] 23+ messages in thread
* Re: acer-wmi is unnecessarily loaded on a Lenovo Ideapad S12
@ 2010-12-31  9:10 Joey Lee
  0 siblings, 0 replies; 23+ messages in thread
From: Joey Lee @ 2010-12-31  9:10 UTC (permalink / raw)
  To: carlos; +Cc: vpivaini, dwmw2, platform-driver-x86

Add Cc. David Woodhouse

Hi Carlos, 

於 四,2010-12-30 於 10:04 +0000,Carlos Corbacho 提到:
> On Wednesday 29 December 2010 04:30:03 Joey Lee wrote:
> 
> [..]
> 
> > Maybe Wistron is the ODM (or OEM) to manufacture Lenovo Ideapad S12 ?
> > Anyway,
> > I added this Ideapad S12 to blacklist in acer-wmi driver because it must
> > supported by ideapad-laptop driver.
> > 
> > I also added Cc. to Carlos Corbacho, need his review.
> 
> I suspect this is the same as all the Acer netbooks - they provide a dummy WMI 
> interface which doesn't actually do anything. It would be nicer if there were 
> a more generic way to do this, but this will do for now (I may try to play 
> around with my Aspire One and see if I can figure out some way to detect the 
> dummy interface, without needing to resort to DMI).
> 

The issue reporter Vainio help to dump the acpi informatoin and put
here:
> - acpidump > acpidump.dat
http://vpv.kapsi.fi/ideapad-s12/acpidump.dat

There have AMW0 declare in DSDT:

        Device (AMW0)
        {  
            Name (_HID, "*pnp0c14")
            Name (_UID, 0x00)
            Name (WLMP, 0x00)
            Name (WMID, 0x00)
            Name (B0ED, Buffer (0x04)

Per Vainio's report, the wlan rfkill cann't set to un-block when he used
acer-wmi driver, but ideapad-laptop driver handle the killswitches
better.

Sorry,
I have no ideapad S12 machine for double check. Need David Woodhouse or
Ville-Pekka Vainio's confirm the ideapad-laptop driver supports Ideapad
S12 netbook.

I just simply checked the ideapad-laptop source code, it handle the
killswitch state by access EC address, if it works, then acer-wmi don't
need probe and touch the same function. So, I thought still need add
S12's dmi information to blacklist in acer-wmi to avoid conflict.

> [..]
> 
> > From: Lee, Chun-Yi <jlee@novell.com>
> > Date: Wed, 29 Dec 2010 00:17:23 +0800
> > Subject: [PATCH] Add Lenovo Ideapad S12 to acer blacklist
> > 
> > The Lenovo Ideapad S12's _WDG have GUID that matches with AMW0, it causes
> > acer-wmi driver auto-probe when system boot but there already have
> > ideapad-laptop driver to support Ideapad serial.
> > So, add Lenovo Ideapad S12 to acer blacklist to disable it.
> > 
> > Signed-off-by: Lee, Chun-Yi <jlee@novell.com>
> > Cc: Carlos Corbacho <carlos@strangeworlds.co.uk>
> 
> Acked-by: Carlos Corbacho <carlos@strangeworlds.co.uk>

Thank's a lot for your acked.

Joey Lee

> > ---
> >  drivers/platform/x86/acer-wmi.c |   11 +++++++++++
> >  1 files changed, 11 insertions(+), 0 deletions(-)
> > 
> > diff --git a/drivers/platform/x86/acer-wmi.c
> > b/drivers/platform/x86/acer-wmi.c index 28288ad..387ac7c 100644
> > --- a/drivers/platform/x86/acer-wmi.c
> > +++ b/drivers/platform/x86/acer-wmi.c
> > @@ -310,6 +310,17 @@ static struct dmi_system_id __devinitdata
> > acer_blacklist[] = { DMI_MATCH(DMI_PRODUCT_NAME, "AOA150"),
> >  		},
> >  	},
> > +	/*
> > +	 * The Lenovo Ideapad S12 have GUID that matches with AMW0 - disable it.
> > +	 * There already have ideapad-laptop driver to support Ideapad serial.
> > +	 */
> > +	{
> > +		.ident = "Lenovo Ideapad S12",
> > +		.matches = {
> > +			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
> > +			DMI_MATCH(DMI_PRODUCT_NAME, "20021,2959"),
> > +		},
> > +	},
> >  	{}
> >  };

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: acer-wmi is unnecessarily loaded on a Lenovo Ideapad S12
@ 2010-12-29 23:41 Joey Lee
  0 siblings, 0 replies; 23+ messages in thread
From: Joey Lee @ 2010-12-29 23:41 UTC (permalink / raw)
  To: vpivaini; +Cc: carlos, platform-driver-x86

Hi Vainio, 

於 四,2010-12-30 於 00:12 +0200,Ville-Pekka Vainio 提到:
> Hi Joey and others,
> 
> ti, 2010-12-28 kello 21:30 -0700, Joey Lee kirjoitti:
> > Does is possible you help to test this patch?
> 
> The patch works, thanks! acer-wmi is no longer loaded on the Ideapad
> S12.
> 

Thank's for your help to test it, I will send out the patch again to
Carlos Corbacho and other platform driver experts for review.

Joey Lee

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: acer-wmi is unnecessarily loaded on a Lenovo Ideapad S12
@ 2010-12-28 15:36 Joey Lee
  2010-12-28 17:28 ` Ville-Pekka Vainio
  0 siblings, 1 reply; 23+ messages in thread
From: Joey Lee @ 2010-12-28 15:36 UTC (permalink / raw)
  To: vpivaini; +Cc: platform-driver-x86

Hi Vainio, 

於 二,2010-12-28 於 14:31 +0200,Ville-Pekka Vainio 提到:
> Hi,
> 
> I hope I'm on the right mailing list for this issue. The kernel (I'm
> using Fedora's 2.6.37rc7) loads the acer-wmi module on a Lenovo Ideapad
> S12 netbook and I think that's not necessary. Loading the module causes
> problems with NetworkManager, the wireless network can't be enabled at
> all. This seems to happen because acer-wmi adds a soft blocked wifi
> killswitch, which can't be unblocked with rfkill.
> 
> Now that the kernel has the ideapad-laptop module, which seems to handle
> the killswitches better, acer-wmi could probably be disabled with this
> netbook. I know almost nothing about ACPI/WMI myself, which is why I'm
> writing on the list instead of just fixing this.
> 

It's odd, because acer-wmi driver in 2.6.37rc7 only auto-probe when the
it detected the following wmi GUIDs:

86 MODULE_ALIAS("wmi:67C3371D-95A3-4C37-BB61-DD47B491DAAB");
87 MODULE_ALIAS("wmi:6AF4F258-B401-42fd-BE91-3D4AC2D7C0D3");

It's not make sense acer-wmi probe on Ideapad S12 netbook, could you
please help to attached the following information?

- modinfo acer-wmi > acer-wmi.log
- dmesg > dmesg.log

better attached:
- dmidecode > dmidecode.log
- acpidump > acpidump.dat


Thank's a lot!
Joey Lee

^ permalink raw reply	[flat|nested] 23+ messages in thread
* acer-wmi is unnecessarily loaded on a Lenovo Ideapad S12
@ 2010-12-28 12:31 Ville-Pekka Vainio
  0 siblings, 0 replies; 23+ messages in thread
From: Ville-Pekka Vainio @ 2010-12-28 12:31 UTC (permalink / raw)
  To: platform-driver-x86

Hi,

I hope I'm on the right mailing list for this issue. The kernel (I'm
using Fedora's 2.6.37rc7) loads the acer-wmi module on a Lenovo Ideapad
S12 netbook and I think that's not necessary. Loading the module causes
problems with NetworkManager, the wireless network can't be enabled at
all. This seems to happen because acer-wmi adds a soft blocked wifi
killswitch, which can't be unblocked with rfkill.

Now that the kernel has the ideapad-laptop module, which seems to handle
the killswitches better, acer-wmi could probably be disabled with this
netbook. I know almost nothing about ACPI/WMI myself, which is why I'm
writing on the list instead of just fixing this.

-- 
Ville-Pekka Vainio

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2011-03-10  7:55 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-29  4:30 acer-wmi is unnecessarily loaded on a Lenovo Ideapad S12 Joey Lee
2010-12-29 22:12 ` Ville-Pekka Vainio
2010-12-30 10:04 ` Carlos Corbacho
2011-01-03 20:49   ` Matthew Garrett
2011-03-02  8:53     ` Joey Lee
2011-03-02 21:09       ` Carlos Corbacho
2011-03-03  3:17         ` Ike Panhc
2011-03-03  6:50           ` Joey Lee
2011-03-03  7:11             ` Ike Panhc
2011-03-03  7:29               ` Joey Lee
2011-03-03  7:23         ` Joey Lee
2011-03-10  6:23           ` Ozan Çağlayan
2011-03-10  6:36             ` Joey Lee
2011-03-10  6:58               ` Ozan Çağlayan
2011-03-10  7:45                 ` Joey Lee
2011-03-10  7:52                   ` Ozan Çağlayan
2011-03-04 23:59         ` Matthew Garrett
2011-03-06  2:53           ` Joey Lee
  -- strict thread matches above, loose matches on Subject: below --
2010-12-31  9:10 Joey Lee
2010-12-29 23:41 Joey Lee
2010-12-28 15:36 Joey Lee
2010-12-28 17:28 ` Ville-Pekka Vainio
2010-12-28 12:31 Ville-Pekka Vainio

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.