* [FIX] e1000: fix irq sharing when running ethtool test
@ 2006-06-02 22:19 Auke Kok
2006-06-02 22:22 ` Jeff Garzik
0 siblings, 1 reply; 3+ messages in thread
From: Auke Kok @ 2006-06-02 22:19 UTC (permalink / raw)
To: Jeff Garzik; +Cc: NetDev, Jesse Brandeburg, Auke Kok, Kok, Auke
[-- Attachment #1: Type: text/plain, Size: 890 bytes --]
New code added in 2.6.17 caused setup_irq to print a warning when
running ethtool -t eth0 offline.
This test marks the request_irq call made by this test as a "probe" to
see if the interrupt is shared or not.
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
---
Jeff,
Because upstream and upstream-fixes have a whitespace conflict in them, I've
prepared two separate git branches to pull from so that a subsequent pull or
merge from upstream-fixes into upstream doesn't resolve into a conflict:
please pull from our git-server:
into upstream:
git-pull git://lost.foo-projects.org/~ahkok/git/netdev-2.6 upstream
into upstream-fixes:
git-pull git://lost.foo-projects.org/~ahkok/git/netdev-2.6 upstream-fixes
Cheers,
Auke
---
e1000_ethtool.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
[-- Attachment #2: e1000_setup_irq_probe.patch --]
[-- Type: text/x-patch, Size: 1199 bytes --]
e1000: fix ethtool test irq alloc as "probe"
New code added in 2.6.17 caused setup_irq to print a warning when
running ethtool -t eth0 offline.
This test marks the request_irq call made by this test as a "probe"
to see if the interrupt is shared or not.
Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
diff --git a/drivers/net/e1000/e1000_ethtool.c b/drivers/net/e1000/e1000_ethtool.c
index ecccca3..d1c705b 100644
--- a/drivers/net/e1000/e1000_ethtool.c
+++ b/drivers/net/e1000/e1000_ethtool.c
@@ -870,13 +870,16 @@ e1000_intr_test(struct e1000_adapter *ad
*data = 0;
/* Hook up test interrupt handler just for this test */
- if (!request_irq(irq, &e1000_test_intr, 0, netdev->name, netdev)) {
+ if (!request_irq(irq, &e1000_test_intr, SA_PROBEIRQ, netdev->name,
+ netdev)) {
shared_int = FALSE;
} else if (request_irq(irq, &e1000_test_intr, SA_SHIRQ,
netdev->name, netdev)){
*data = 1;
return -1;
}
+ DPRINTK(PROBE,INFO, "testing %s interrupt\n",
+ (shared_int ? "shared" : "unshared"));
/* Disable all the interrupts */
E1000_WRITE_REG(&adapter->hw, IMC, 0xFFFFFFFF);
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [FIX] e1000: fix irq sharing when running ethtool test
2006-06-02 22:19 [FIX] e1000: fix irq sharing when running ethtool test Auke Kok
@ 2006-06-02 22:22 ` Jeff Garzik
2006-06-02 22:32 ` Auke Kok
0 siblings, 1 reply; 3+ messages in thread
From: Jeff Garzik @ 2006-06-02 22:22 UTC (permalink / raw)
To: Auke Kok; +Cc: NetDev, Jesse Brandeburg, Kok, Auke
On Fri, Jun 02, 2006 at 03:19:47PM -0700, Auke Kok wrote:
> Because upstream and upstream-fixes have a whitespace conflict in them,
> I've prepared two separate git branches to pull from so that a subsequent
> pull or merge from upstream-fixes into upstream doesn't resolve into a
> conflict:
That won't work, because it creates duplicate changesets in the history.
I'll pull the upstream-fixes version, and then merge into #upstream.
Jeff
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [FIX] e1000: fix irq sharing when running ethtool test
2006-06-02 22:22 ` Jeff Garzik
@ 2006-06-02 22:32 ` Auke Kok
0 siblings, 0 replies; 3+ messages in thread
From: Auke Kok @ 2006-06-02 22:32 UTC (permalink / raw)
To: Jeff Garzik; +Cc: NetDev, Jesse Brandeburg, Kok, Auke
Jeff Garzik wrote:
> On Fri, Jun 02, 2006 at 03:19:47PM -0700, Auke Kok wrote:
>> Because upstream and upstream-fixes have a whitespace conflict in them,
>> I've prepared two separate git branches to pull from so that a subsequent
>> pull or merge from upstream-fixes into upstream doesn't resolve into a
>> conflict:
>
> That won't work, because it creates duplicate changesets in the history.
>
> I'll pull the upstream-fixes version, and then merge into #upstream.
thanks, I wish I had thought of that first!
Auke
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-06-02 22:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-02 22:19 [FIX] e1000: fix irq sharing when running ethtool test Auke Kok
2006-06-02 22:22 ` Jeff Garzik
2006-06-02 22:32 ` Auke Kok
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).