public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: "Aurélien Francillon" <aurel@naurel.org>
To: Pavel Machek <pavel@ucw.cz>
Cc: linux-pm@osdl.org, abhay_salunke@dell.com
Subject: Re: 2.6.14 suspend fails with "Strange, firmware/dell_r not stopped"
Date: Thu, 10 Nov 2005 04:42:16 +0100	[thread overview]
Message-ID: <4372C198.8010506@naurel.org> (raw)
In-Reply-To: <20051109214807.GC12459@elf.ucw.cz>

Pavel Machek wrote:
> Hi!
> 
> 
>>suspending to ram or disk fails on 2.6.14, with
>>CONFIG_DELL_RBU=y
>>
>>in logs i have :
>>
>>Stopping tasks: ==============================
>> stopping tasks failed (1 tasks remaining)
>>Restarting tasks...<6> Strange, firmware/dell_r not stopped
>> done
>>
>>with CONFIG_DELL_RBU=n everything is fine
> 
> 
> Apparently, DELL_RBU runs some kernel thread. Find a place in that
> kernel thread where it is okay to sleep, and add try_to_freeze()
> there.
> 
> (Or forward this to dell rbu people.)
> 							Pavel

Thanks a lot for your quick answer and for the hint,
after some investigation, it looks like it's not directly due to the
dell_rbu driver but to firmware_class, when using request_firmware_nowait :

dell_rbu
 -> request_firmware_nowait
  -> request_firmware_work_func (new kernel thread)
   -> _request_firmware
    -> wait_for_completion

and there is no timeout when _request_firmware is called with hotplug
disabled. I have added try_to_freeze() in the loop of
wait_for_completion near the call to schedule but it didn't help...
It's maybe unsafe to suspend while loading firmware this case  should
also be handled?
Another issue is that the rbu driver updates the bios, once it is
configured with the new binary it's probably unsafe to suspend because
the kernel will resume on a different bios, i don't know much of
the kernel/bios interactions but i guess it could be a buggy situation...

cheers,
Aurélien

  reply	other threads:[~2005-11-10  3:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-07 11:10 2.6.14 suspend fails with "Strange, firmware/dell_r not stopped" Aurélien Francillon
2005-11-09 21:48 ` Pavel Machek
2005-11-10  3:42   ` Aurélien Francillon [this message]
2005-11-10 10:12     ` Pavel Machek

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=4372C198.8010506@naurel.org \
    --to=aurel@naurel.org \
    --cc=abhay_salunke@dell.com \
    --cc=linux-pm@osdl.org \
    --cc=pavel@ucw.cz \
    /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