public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Jeff Garzik <jgarzik@pobox.com>
To: Roland Dreier <roland@topspin.com>
Cc: Andi Kleen <ak@muc.de>,
	Carl-Daniel Hailfinger <c-d.hailfinger.kernel.2004@gmx.net>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] new device support for forcedeth.c fourth try
Date: Tue, 22 Jun 2004 10:32:40 -0400	[thread overview]
Message-ID: <40D84308.6010803@pobox.com> (raw)
In-Reply-To: <52d63rpujb.fsf@topspin.com>

Roland Dreier wrote:
>>>>>>"Jeff" == Jeff Garzik <jgarzik@pobox.com> writes:
> 
> 
>     > Andi Kleen wrote:
>     >> Carl-Daniel Hailfinger <c-d.hailfinger.kernel.2004@gmx.net>
>     >> writes:
> 
>     >>> Known Bug: You will get a "bad: scheduling while atomic"
>     >>> message because of the msleep(500) in PHY reset.
> 
>     >>> Any suggestions how I can avoid this message? Using
>     >>> mdelay(500) has its share of problems too, because it will
>     >>> cause lost time.
> 
>     >> Use schedule_work() to push it into a worker thread.
> 
>     > Agreed.  This is what I am moving net drivers to, for slow
>     > path stuff like chip reset or twiddling the phy.
> 
> In this case is it possible to use schedule_delayed_work() to avoid
> stalling keventd for half a second?

Certainly.  Won't work in a 2.4.x backport, though.

This reminds me, I'm tempted to create a "you can sleep for a while in 
it" workqueue, to avoid tying up keventd.

	Jeff



  reply	other threads:[~2004-06-22 14:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <29ACK-1wm-17@gated-at.bofh.it>
     [not found] ` <29B5I-1QM-3@gated-at.bofh.it>
     [not found]   ` <29QeD-5kp-11@gated-at.bofh.it>
2004-06-22 10:23     ` [PATCH] new device support for forcedeth.c fourth try Andi Kleen
2004-06-22 13:44       ` Jeff Garzik
2004-06-22 13:54         ` Roland Dreier
2004-06-22 14:32           ` Jeff Garzik [this message]
2004-06-21 17:10 [PATCH] new device support for forcedeth.c second try Brian Lazara
2004-06-21 17:36 ` Carl-Daniel Hailfinger
2004-06-22  9:51   ` [PATCH] new device support for forcedeth.c fourth try Carl-Daniel Hailfinger

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=40D84308.6010803@pobox.com \
    --to=jgarzik@pobox.com \
    --cc=ak@muc.de \
    --cc=c-d.hailfinger.kernel.2004@gmx.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=roland@topspin.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