* [PATCH 2.6.25] igb: fix legacy mode irq issue
@ 2008-02-14 3:19 Andy Gospodarek
2008-02-14 17:24 ` Kok, Auke
2008-02-15 15:54 ` Jeff Garzik
0 siblings, 2 replies; 4+ messages in thread
From: Andy Gospodarek @ 2008-02-14 3:19 UTC (permalink / raw)
To: netdev; +Cc: Auke Kok, David S. Miller, Jeff Garzik
I booted an igb kernel with the option pci=nomsi and instantly noticed
that interrupts no longer worked on my igb device. I took a look at the
interrupt initialization and quickly discovered a comment stating:
"DO NOT USE EIAME or IAME in legacy mode"
It seemed a bit odd that bits to enable IAM were being set in legacy
interrupt mode, so I dropped out the following parts and interrupts
began working fine again.
Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
---
igb_main.c | 3 ---
1 files changed, 3 deletions(-)
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c
index f3c144d..be5da09 100644
--- a/drivers/net/igb/igb_main.c
+++ b/drivers/net/igb/igb_main.c
@@ -472,9 +471,6 @@ static int igb_request_irq(struct igb_adapter *adapter)
goto request_done;
}
- /* enable IAM, auto-mask */
- wr32(E1000_IAM, IMS_ENABLE_MASK);
-
request_done:
return err;
}
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 2.6.25] igb: fix legacy mode irq issue
2008-02-14 3:19 [PATCH 2.6.25] igb: fix legacy mode irq issue Andy Gospodarek
@ 2008-02-14 17:24 ` Kok, Auke
2008-02-15 15:54 ` Jeff Garzik
1 sibling, 0 replies; 4+ messages in thread
From: Kok, Auke @ 2008-02-14 17:24 UTC (permalink / raw)
To: Andy Gospodarek; +Cc: netdev, Auke Kok, David S. Miller, Jeff Garzik
Andy Gospodarek wrote:
> I booted an igb kernel with the option pci=nomsi and instantly noticed
> that interrupts no longer worked on my igb device. I took a look at the
> interrupt initialization and quickly discovered a comment stating:
>
> "DO NOT USE EIAME or IAME in legacy mode"
>
> It seemed a bit odd that bits to enable IAM were being set in legacy
> interrupt mode, so I dropped out the following parts and interrupts
> began working fine again.
>
> Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
looks valid, I'll test and see, thanks Andy
Auke
> ---
>
> igb_main.c | 3 ---
> 1 files changed, 3 deletions(-)
>
> diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c
> index f3c144d..be5da09 100644
> --- a/drivers/net/igb/igb_main.c
> +++ b/drivers/net/igb/igb_main.c
> @@ -472,9 +471,6 @@ static int igb_request_irq(struct igb_adapter *adapter)
> goto request_done;
> }
>
> - /* enable IAM, auto-mask */
> - wr32(E1000_IAM, IMS_ENABLE_MASK);
> -
> request_done:
> return err;
> }
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2.6.25] igb: fix legacy mode irq issue
2008-02-14 3:19 [PATCH 2.6.25] igb: fix legacy mode irq issue Andy Gospodarek
2008-02-14 17:24 ` Kok, Auke
@ 2008-02-15 15:54 ` Jeff Garzik
2008-02-15 16:18 ` Kok, Auke
1 sibling, 1 reply; 4+ messages in thread
From: Jeff Garzik @ 2008-02-15 15:54 UTC (permalink / raw)
To: Andy Gospodarek; +Cc: netdev, Auke Kok, David S. Miller
Andy Gospodarek wrote:
> I booted an igb kernel with the option pci=nomsi and instantly noticed
> that interrupts no longer worked on my igb device. I took a look at the
> interrupt initialization and quickly discovered a comment stating:
>
> "DO NOT USE EIAME or IAME in legacy mode"
>
> It seemed a bit odd that bits to enable IAM were being set in legacy
> interrupt mode, so I dropped out the following parts and interrupts
> began working fine again.
>
> Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
> ---
>
> igb_main.c | 3 ---
> 1 files changed, 3 deletions(-)
>
> diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c
> index f3c144d..be5da09 100644
> --- a/drivers/net/igb/igb_main.c
> +++ b/drivers/net/igb/igb_main.c
> @@ -472,9 +471,6 @@ static int igb_request_irq(struct igb_adapter *adapter)
> goto request_done;
> }
>
> - /* enable IAM, auto-mask */
> - wr32(E1000_IAM, IMS_ENABLE_MASK);
> -
ACK from Auke? (apologies if I missed it...)
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2.6.25] igb: fix legacy mode irq issue
2008-02-15 15:54 ` Jeff Garzik
@ 2008-02-15 16:18 ` Kok, Auke
0 siblings, 0 replies; 4+ messages in thread
From: Kok, Auke @ 2008-02-15 16:18 UTC (permalink / raw)
To: Jeff Garzik; +Cc: Andy Gospodarek, netdev, David S. Miller
Jeff Garzik wrote:
> Andy Gospodarek wrote:
>> I booted an igb kernel with the option pci=nomsi and instantly noticed
>> that interrupts no longer worked on my igb device. I took a look at the
>> interrupt initialization and quickly discovered a comment stating:
>>
>> "DO NOT USE EIAME or IAME in legacy mode"
>>
>> It seemed a bit odd that bits to enable IAM were being set in legacy
>> interrupt mode, so I dropped out the following parts and interrupts
>> began working fine again.
>>
>> Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
>> ---
>>
>> igb_main.c | 3 ---
>> 1 files changed, 3 deletions(-)
>>
>> diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c
>> index f3c144d..be5da09 100644
>> --- a/drivers/net/igb/igb_main.c
>> +++ b/drivers/net/igb/igb_main.c
>> @@ -472,9 +471,6 @@ static int igb_request_irq(struct igb_adapter
>> *adapter)
>> goto request_done;
>> }
>>
>> - /* enable IAM, auto-mask */
>> - wr32(E1000_IAM, IMS_ENABLE_MASK);
>> -
>
> ACK from Auke? (apologies if I missed it...)
you did not miss it yet :)
So, in principle this patch might leave interrupts enabled way too long.
Unfortunately the code to enable IAM is way too complex for upstream-fixes so I
don't want to push that into 2.6.25. I'm scrambling right now to figure out if
this patch doesn't create endless interrupts from the hardware.
Once I'm happy with that answer I'll push/ack it
Auke
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-02-15 16:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-14 3:19 [PATCH 2.6.25] igb: fix legacy mode irq issue Andy Gospodarek
2008-02-14 17:24 ` Kok, Auke
2008-02-15 15:54 ` Jeff Garzik
2008-02-15 16:18 ` Kok, Auke
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).