linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Colin Guthrie <gmane@colin.guthr.ie>
To: "Keng-Yü Lin" <keng-yu.lin@canonical.com>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>,
	Johannes Berg <johannes@sipsolutions.net>,
	linux-wireless@vger.kernel.org,
	platform-driver-x86@vger.kernel.org,
	Thomas Backlund <tmb@mageia.org>
Subject: Re: [Regression] Problem with rfkill on 2.6.38
Date: Tue, 10 May 2011 16:12:00 +0100	[thread overview]
Message-ID: <4DC955C0.2040905@colin.guthr.ie> (raw)
In-Reply-To: <BANLkTinVwnSei_VobfKtgzrwSP+cJSvxaQ@mail.gmail.com>

'Twas brillig, and Keng-Yü Lin at 10/05/11 15:48 did gyre and gimble:
> On Tue, May 10, 2011 at 11:36 AM, Colin Guthrie <mageia@colin.guthr.ie> wrote:
>> 'Twas brillig, and Matthew Garrett at 09/05/11 18:11 did gyre and gimble:
>>> On Mon, May 09, 2011 at 06:09:27PM +0100, Colin Guthrie wrote:
>>>
>>>> Just a quick (non-compile) followup from my last email... blacklisting
>>>> the dell-laptop module works around the issue, so I think the commit
>>>> previously mentioned is indeed the culprit (as it's the only recent
>>>> commit and does fiddle with the rfkill stuff).
>>>>
>>>> Not sure what the best track forward is, but it's certainly a
>>>> regression, so should probably be fixed or reverted until a more
>>>> complete fix is found.
>>>
>>> If you can confirm that with a build then I'll do that.
>>
>> ACK. Reverting that commit and unblacklisting the dell_laptop module
>> restores the previous, working functionality. I've flipped rfkill a few
>> times and it's always worked fine.
>>
> 
> May I have the model of your Dell laptop?

Absolutely! I have a Inspiron 6400 MM061. The WIFI PCI card is an after
market addition (upgrade from bg only to agn), but I suspect that
particular detail is unimportant.

> dell_latop has a debugfs node in /sys/kernel/debug/dell_latop/rfkill,
> can you attach the logs at both the moment when the radio devices are
> enabled and disabled? the output of the command `rfkill list` at both
> moments will helpful too.

OK, do you want this on the previous kernel (with the problem commit in
it) or the one when I've reverted it?

Here is the info from the reverted kernel (as I'm running it now!):

Wifi+BT starts enabled.


status: 0x1030C
Bit 0 : Hardware switch supported:   0
Bit 1 : Wifi locator supported:      0
Bit 2 : Wifi is supported:           1
Bit 3 : Bluetooth is supported:      1
Bit 4 : WWAN is supported:           0
Bit 5 : Wireless keyboard supported: 0
Bit 8 : Wifi is installed:           1
Bit 9 : Bluetooth is installed:      1
Bit 10: WWAN is installed:           0
Bit 16: Hardware switch is on:       1
Bit 17: Wifi is blocked:             0
Bit 18: Bluetooth is blocked:        0
Bit 19: WWAN is blocked:             0

hwswitch_state: 0x3
Bit 0 : Wifi controlled by switch:      1
Bit 1 : Bluetooth controlled by switch: 1
Bit 2 : WWAN controlled by switch:      0
Bit 7 : Wireless switch config locked:  0
Bit 8 : Wifi locator enabled:           0
Bit 15: Wifi locator setting locked:    0


$ rfkill list
0: dell-wifi: Wireless LAN
  Soft blocked: no
  Hard blocked: no
1: dell-bluetooth: Bluetooth
  Soft blocked: no
  Hard blocked: no
3: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
8: hci0: Bluetooth
  Soft blocked: no
  Hard blocked: no




<PRESS SWITCH TO DISABLE>


status: 0x6030C
Bit 0 : Hardware switch supported:   0
Bit 1 : Wifi locator supported:      0
Bit 2 : Wifi is supported:           1
Bit 3 : Bluetooth is supported:      1
Bit 4 : WWAN is supported:           0
Bit 5 : Wireless keyboard supported: 0
Bit 8 : Wifi is installed:           1
Bit 9 : Bluetooth is installed:      1
Bit 10: WWAN is installed:           0
Bit 16: Hardware switch is on:       0
Bit 17: Wifi is blocked:             1
Bit 18: Bluetooth is blocked:        1
Bit 19: WWAN is blocked:             0

hwswitch_state: 0x3
Bit 0 : Wifi controlled by switch:      1
Bit 1 : Bluetooth controlled by switch: 1
Bit 2 : WWAN controlled by switch:      0
Bit 7 : Wireless switch config locked:  0
Bit 8 : Wifi locator enabled:           0
Bit 15: Wifi locator setting locked:    0


$ rfkill list
0: dell-wifi: Wireless LAN
  Soft blocked: yes
  Hard blocked: yes
1: dell-bluetooth: Bluetooth
  Soft blocked: yes
  Hard blocked: yes
3: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: yes


> In my experience that different models of Dell laptop may have
> different reaction/behaviour on the rfkill handling. Reverting the
> patch may make your laptop working, but can cause others non-working.

Yes I suspect so, but as this is still a regression in behaviour, it
should still be reverted by policy I believe (not that it shouldn't be
fixed properly of course!)

> It should make sense and be appreciated that you attach more debug
> information for investigation on the bug.

Sure, I fully appreciate the need for this. Please feel free to ask me
for any other additional details and/or testing etc.

All the best.

Col

-- 

Colin Guthrie
gmane(at)colin.guthr.ie
http://colin.guthr.ie/

Day Job:
  Tribalogic Limited [http://www.tribalogic.net/]
Open Source:
  Mageia Contributor [http://www.mageia.org/]
  PulseAudio Hacker [http://www.pulseaudio.org/]
  Trac Hacker [http://trac.edgewall.org/]

  reply	other threads:[~2011-05-10 15:12 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-26 14:00 [Regression] Problem with rfkill on 2.6.38 Colin Guthrie
2011-04-28 11:40 ` Stanislaw Gruszka
2011-05-09  8:36 ` Johannes Berg
2011-05-09 16:30   ` Colin Guthrie
2011-05-09 17:09   ` Colin Guthrie
2011-05-09 17:11     ` Matthew Garrett
2011-05-10  9:36       ` Colin Guthrie
2011-05-10 14:48         ` Keng-Yü Lin
2011-05-10 15:12           ` Colin Guthrie [this message]
2011-06-24 10:54           ` Colin Guthrie
2011-06-24 12:29             ` Keng-Yü Lin
2011-06-24 13:23               ` John W. Linville

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=4DC955C0.2040905@colin.guthr.ie \
    --to=gmane@colin.guthr.ie \
    --cc=johannes@sipsolutions.net \
    --cc=keng-yu.lin@canonical.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mjg59@srcf.ucam.org \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=tmb@mageia.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;
as well as URLs for NNTP newsgroup(s).