mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Corentin Chary <corentin.chary@gmail.com>
To: Alan Jenkins <sourcejedi.lkml@googlemail.com>
Cc: Luciano Rocha <luciano@eurotux.com>,
	Pekka Enberg <penberg@cs.helsinki.fi>,
	linux-kernel@vger.kernel.org
Subject: Re: eeepc_hotkey adds 25s to boot
Date: Tue, 28 Jul 2009 22:08:46 +0200	[thread overview]
Message-ID: <71cd59b00907281308m3778bbaex2e4f4ba45f7014ef@mail.gmail.com> (raw)
In-Reply-To: <9b2b86520907281219g4d804f05v46af85fdb0690609@mail.gmail.com>

On Tue, Jul 28, 2009 at 9:19 PM, Alan
Jenkins<sourcejedi.lkml@googlemail.com> wrote:
> On 7/28/09, Luciano Rocha <luciano@eurotux.com> wrote:
>> On Tue, Jul 28, 2009 at 05:50:26PM +0100, Luciano Rocha wrote:
>>> On Mon, Jul 27, 2009 at 10:45:14PM +0300, Pekka Enberg wrote:
>>> > (Adding Corentin to cc)
>>> >
>>> > On Mon, Jul 27, 2009 at 10:27 PM, Luciano Rocha<luciano@eurotux.com>
>>> > wrote:
>>> > > As subject says, loading the eeepc_hotkeys driver or including it
>>> > > inside
>>> > > the kernel adds 25s to the boot process:
>>> > > [   13.990092] eeepc: Eee PC Hotkey Driver
>>> > > [   39.560645] eeepc: Hotkey init flags 0x41
>>> > > [   39.566131] eeepc: Get control methods supported: 0x101713
>>> > > [   39.566418] input: Asus EeePC extra buttons as ...
>>> > >
>>> > > Kernel is 2.6.30.3 (with tuxonice).
>>> > >
>>> > > Config and full dmesg follows.
>>> > >
>>> > > Also, a "rmmod eeepc_hotkeys" resulted in a kernel panic. If asked,
>>> > > I'll
>>> > > try to replicate it.
>>> >
>>> > Yes, please.
>>>
>>> Hm, rebooted without i2c_i801, browsed some, then did a rmmod
>>> eeepc_laptop:
>>> ERROR!!! H2M_MAILBOX still hold by MCU. command fail
>>> ERROR!!! H2M_MAILBOX still hold by MCU. command fail
>>>
>>> Two equal lines, yes. What does it mean?
>>
>> Nevermind, the wireless driver didn't like that the hardware
>> disappeared.
>
> Thanks for the bug report anyway :-).
>
> So presumably this is what caused your oops earlier.  I assume the
> wireless toggle button doesn't normally cause any errors.
>
> The new rfkill core in 2.6.31 should avoid triggering this bug.  The
> new core won't disable the wireless when the eeepc-laptop module is
> removed.
>
> But we should still fix the underlying problem.  It sounds like
> there's a narrow danger window on module unload.  And it's still there
> in 2.6.31-rc4:
>
> 1019 static void eeepc_rfkill_exit(void)
> 1020 {
> 1021         eeepc_unregister_rfkill_notifier("\\_SB.PCI0.P0P6");
> 1022         eeepc_unregister_rfkill_notifier("\\_SB.PCI0.P0P7");
> 1023         if (ehotk->wlan_rfkill)
> 1024                 rfkill_unregister(ehotk->wlan_rfkill);
>
> Really we need to perform these unregistrations "at the same time".
> The rfkill device relies on the notifier, but the notifier callback
> also uses the rfkill device.  I guess we will need to a mutex to
> synchronize unregistration (and registration).
>
> Alan
>

I think 2.6.31 is ok,

In 2.6.30, we called eeepc_unregister_rfkill_notifier after
rfkill_free, which was an error because
the notifier callback uses the rfkill device.
But I believe that the rfkill device can work without the notifier
(which is an acpi notifier).



-- 
Corentin Chary
http://xf.iksaif.net - http://uffs.org

      reply	other threads:[~2009-07-28 20:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-27 19:27 Luciano Rocha
2009-07-27 19:45 ` Pekka Enberg
2009-07-27 20:04   ` Alan Jenkins
2009-07-28 14:56     ` Luciano Rocha
2009-07-28 16:50   ` Luciano Rocha
2009-07-28 16:54     ` Luciano Rocha
2009-07-28 19:19       ` Alan Jenkins
2009-07-28 20:08         ` Corentin Chary [this message]

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=71cd59b00907281308m3778bbaex2e4f4ba45f7014ef@mail.gmail.com \
    --to=corentin.chary@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luciano@eurotux.com \
    --cc=penberg@cs.helsinki.fi \
    --cc=sourcejedi.lkml@googlemail.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

Powered by JetHome