All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Wilcox <matthew@wil.cx>
To: Stephen Hemminger <shemminger@vyatta.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>,
	linux-pci@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH 1/9] PCI: vpd handle longer delays in access (rev3)
Date: Tue, 9 Sep 2008 14:23:09 -0600	[thread overview]
Message-ID: <20080909202309.GE2772@parisc-linux.org> (raw)
In-Reply-To: <20080909182056.936398506@vyatta.com>

On Tue, Sep 09, 2008 at 11:20:41AM -0700, Stephen Hemminger wrote:
> Accessing the VPD area can take a long time.  The existing 
> VPD access code fails consistently on my hardware. There are comments
> in the SysKonnect vendor driver that it can take up to 13ms per word. 
> 
> Change the access routines to:
>   * use a mutex rather than spinning with IRQ's disabled and lock held
>   * have a much longer timeout
>   * call cond_resched while spinning

> -		udelay(10);
> +		if (fatal_signal_pending(current))
> +			return -EINTR;
> +		cond_resched();

We're back to the hammering on the pci bus problem again.  However,
cond_resched() does tell us whether we rescheduled!

		if (!cond_resched())
			udelay(10);

-- 
Matthew Wilcox				Intel Open Source Technology Centre
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."

  reply	other threads:[~2008-09-09 20:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-09 18:20 [PATCH 0/9] PCI VPD related patches Stephen Hemminger
2008-09-09 18:20 ` [PATCH 1/9] PCI: vpd handle longer delays in access (rev3) Stephen Hemminger
2008-09-09 20:23   ` Matthew Wilcox [this message]
2008-09-09 18:20 ` [PATCH 2/9] PCI: revise VPD access interface (rev3) Stephen Hemminger
2008-09-09 18:20 ` [PATCH 3/9] PCI: add interface to set visible size of VPD (rev3) Stephen Hemminger
2008-09-09 18:20 ` [PATCH 4/9] sky2: set VPD size Stephen Hemminger
2008-09-09 18:20 ` [PATCH 5/9] sky2: move VPD display into debug interface Stephen Hemminger
2008-09-09 18:20 ` [PATCH 6/9] sky2: remove VPD eeprom Stephen Hemminger
2008-09-09 18:20 ` [PATCH 7/9] skge: set VPD size Stephen Hemminger
2008-09-09 18:20 ` [PATCH 8/9] skge: add VPD display into debug interface Stephen Hemminger
2008-09-09 18:20 ` [PATCH 9/9] skge: remove VPD eeprom Stephen Hemminger
  -- strict thread matches above, loose matches on Subject: below --
2008-09-25 16:48 [PATCH 0/9] PCI vpd patches (rev4) Stephen Hemminger
2008-09-25 16:48 ` [PATCH 1/9] PCI: vpd handle longer delays in access (rev3) Stephen Hemminger
2008-09-25 18:54   ` Matthew Wilcox

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=20080909202309.GE2772@parisc-linux.org \
    --to=matthew@wil.cx \
    --cc=jbarnes@virtuousgeek.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=shemminger@vyatta.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 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.