From: Stephen Hemminger <shemminger@osdl.org>
To: Daniel Drake <dsd@gentoo.org>
Cc: Thomas Glanzmann <sithglan@stud.uni-erlangen.de>,
Bill Hoover <bill@luminescent.com>,
Bertrand Jacquin <beber@gna.org>,
micheleschi@libero.it, netdev@vger.kernel.org,
teppic74@hotmail.com
Subject: Re: sky2 1.3-rc1
Date: Fri, 5 May 2006 12:43:10 -0700 [thread overview]
Message-ID: <20060505124310.1ff486f0@localhost.localdomain> (raw)
In-Reply-To: <445B9C93.4070406@gentoo.org>
On Fri, 05 May 2006 19:42:27 +0100
Daniel Drake <dsd@gentoo.org> wrote:
> Stephen Hemminger wrote:
> > What is happening is that if there is a misconfiguration and irq routing
> > is messed up (ie edge trigged). The driver will degenerate to polling every 100ms.
> > If your system is this misconfigured, then ACPI or the BIOS needs to be fixed
> > and the driver really only needs to work well enough to get the bug report out ;-)
>
> Ok, thanks for the explanation.
>
> Can you give any hints as to how we can classify this misconfiguration?
> Barry's system has a level triggered IRQ assigned to sky2, and that IRQ
> is not shared:
>
> http://bugs.gentoo.org/show_bug.cgi?id=132056#c3
>
> I'm just looking for something I can take to the ACPI developers, other
> than "its broken because Stephen said so" ;)
Try running idle_timeout=0 module parameter. In that case there will be no
polling timer. If it just hangs, then the problem is missed interrupt.
You could use this to see if you are getting irq's
--- sky2.orig/drivers/net/sky2.c
+++ sky2/drivers/net/sky2.c
@@ -2125,6 +2125,9 @@ static int sky2_poll(struct net_device *
int work_done = 0;
u32 status = sky2_read32(hw, B0_Y2_SP_EISR);
+ if (netif_msg_intr((struct sky2_port *) netdev_priv(dev0)))
+ printk(KERN_DEBUG PFX "poll status %#x\n", status);
+
if (status & Y2_IS_HW_ERR)
sky2_hw_intr(hw);
@@ -2183,6 +2186,9 @@ static irqreturn_t sky2_intr(int irq, vo
if (status == 0 || status == ~0)
return IRQ_NONE;
+ if (netif_msg_intr((struct sky2_port *) netdev_priv(dev0)))
+ printk(KERN_DEBUG PFX "irq status %#x\n", status);
+
prefetch(&hw->st_le[hw->st_idx]);
if (likely(__netif_rx_schedule_prep(dev0)))
__netif_rx_schedule(dev0);
prev parent reply other threads:[~2006-05-05 19:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1146667951.3056.25.camel@fc5test.deadmoose.com>
2006-05-03 19:05 ` sky2 1.3-rc1 Stephen Hemminger
2006-05-05 14:34 ` Daniel Drake
2006-05-05 17:35 ` Thomas Glanzmann
2006-05-05 17:45 ` Stephen Hemminger
2006-05-05 18:42 ` Daniel Drake
2006-05-05 19:43 ` Stephen Hemminger [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=20060505124310.1ff486f0@localhost.localdomain \
--to=shemminger@osdl.org \
--cc=beber@gna.org \
--cc=bill@luminescent.com \
--cc=dsd@gentoo.org \
--cc=micheleschi@libero.it \
--cc=netdev@vger.kernel.org \
--cc=sithglan@stud.uni-erlangen.de \
--cc=teppic74@hotmail.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;
as well as URLs for NNTP newsgroup(s).