netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [e1000] Lower the MSI unavailable message to INFO priority
@ 2007-05-15 23:56 H. Peter Anvin
  2007-05-16  0:32 ` Jeff Garzik
  0 siblings, 1 reply; 7+ messages in thread
From: H. Peter Anvin @ 2007-05-15 23:56 UTC (permalink / raw)
  To: e1000-devel, john.ronciak, jesse.brandeburg, jeffrey.t.kirsher,
	auke-jan.h.kok
  Cc: netdev, hpa

Currently, if MSI is enabled but unavailable the e1000 prints an error
message "Unable to allocate MSI interrupt Error" with ERR priority.
This is confusing to users since this is not a functionality error;
the driver will immediately afterwards try to acquire a conventional
PIC/APIC interrupt and will print another message if that fails.

Accordingly, lower the priority of this message to INFO priority, since
it does not reflect any sort of loss of functionality, but rather just a
limitation of the configuration of the runtime system.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
---
 drivers/net/e1000/e1000_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c
index 637ae8f..089ae3f 100644
--- a/drivers/net/e1000/e1000_main.c
+++ b/drivers/net/e1000/e1000_main.c
@@ -307,7 +307,7 @@ static int e1000_request_irq(struct e1000_adapter *adapter)
 	if (adapter->hw.mac_type >= e1000_82571) {
 		adapter->have_msi = TRUE;
 		if ((err = pci_enable_msi(adapter->pdev))) {
-			DPRINTK(PROBE, ERR,
+			DPRINTK(PROBE, INFO,
 			 "Unable to allocate MSI interrupt Error: %d\n", err);
 			adapter->have_msi = FALSE;
 		}
-- 
1.5.1.4


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] [e1000] Lower the MSI unavailable message to INFO priority
  2007-05-15 23:56 [PATCH] [e1000] Lower the MSI unavailable message to INFO priority H. Peter Anvin
@ 2007-05-16  0:32 ` Jeff Garzik
  2007-05-16 15:26   ` Kok, Auke
  0 siblings, 1 reply; 7+ messages in thread
From: Jeff Garzik @ 2007-05-16  0:32 UTC (permalink / raw)
  To: H. Peter Anvin
  Cc: auke-jan.h.kok, e1000-devel, netdev, jesse.brandeburg,
	john.ronciak, jeffrey.t.kirsher

H. Peter Anvin wrote:
> diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c
> index 637ae8f..089ae3f 100644
> --- a/drivers/net/e1000/e1000_main.c
> +++ b/drivers/net/e1000/e1000_main.c
> @@ -307,7 +307,7 @@ static int e1000_request_irq(struct e1000_adapter *adapter)
>  	if (adapter->hw.mac_type >= e1000_82571) {
>  		adapter->have_msi = TRUE;
>  		if ((err = pci_enable_msi(adapter->pdev))) {
> -			DPRINTK(PROBE, ERR,
> +			DPRINTK(PROBE, INFO,
>  			 "Unable to allocate MSI interrupt Error: %d\n", err);
>  			adapter->have_msi = FALSE;


Actually, it should not print any message at all.

pci_enable_msi() failure is a normal event (as you point out).  Even at 
KERN_INFO level, the message is still misleading.

	Jeff



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] [e1000] Lower the MSI unavailable message to INFO priority
  2007-05-16  0:32 ` Jeff Garzik
@ 2007-05-16 15:26   ` Kok, Auke
  2007-05-17 21:15     ` Chuck Ebbert
  0 siblings, 1 reply; 7+ messages in thread
From: Kok, Auke @ 2007-05-16 15:26 UTC (permalink / raw)
  To: Jeff Garzik
  Cc: H. Peter Anvin, e1000-devel, john.ronciak, jesse.brandeburg,
	jeffrey.t.kirsher, netdev

Jeff Garzik wrote:
> H. Peter Anvin wrote:
>> diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c
>> index 637ae8f..089ae3f 100644
>> --- a/drivers/net/e1000/e1000_main.c
>> +++ b/drivers/net/e1000/e1000_main.c
>> @@ -307,7 +307,7 @@ static int e1000_request_irq(struct e1000_adapter *adapter)
>>  	if (adapter->hw.mac_type >= e1000_82571) {
>>  		adapter->have_msi = TRUE;
>>  		if ((err = pci_enable_msi(adapter->pdev))) {
>> -			DPRINTK(PROBE, ERR,
>> +			DPRINTK(PROBE, INFO,
>>  			 "Unable to allocate MSI interrupt Error: %d\n", err);
>>  			adapter->have_msi = FALSE;
> 
> 
> Actually, it should not print any message at all.
> 
> pci_enable_msi() failure is a normal event (as you point out).  Even at 
> KERN_INFO level, the message is still misleading.

I've been reworking some of this code and there is even a pci_disable_msi() 
missing in case pci_request_irq failed. I'll post a patch to clean it up in a 
second.

Cheers,

Auke

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] [e1000] Lower the MSI unavailable message to INFO priority
  2007-05-16 15:26   ` Kok, Auke
@ 2007-05-17 21:15     ` Chuck Ebbert
  2007-05-17 21:29       ` Kok, Auke
  0 siblings, 1 reply; 7+ messages in thread
From: Chuck Ebbert @ 2007-05-17 21:15 UTC (permalink / raw)
  To: Kok, Auke
  Cc: Jeff Garzik, e1000-devel, netdev, jesse.brandeburg, john.ronciak,
	jeffrey.t.kirsher, H. Peter Anvin

Kok, Auke wrote:
> Jeff Garzik wrote:
>> H. Peter Anvin wrote:
>>> diff --git a/drivers/net/e1000/e1000_main.c
>>> b/drivers/net/e1000/e1000_main.c
>>> index 637ae8f..089ae3f 100644
>>> --- a/drivers/net/e1000/e1000_main.c
>>> +++ b/drivers/net/e1000/e1000_main.c
>>> @@ -307,7 +307,7 @@ static int e1000_request_irq(struct e1000_adapter
>>> *adapter)
>>>      if (adapter->hw.mac_type >= e1000_82571) {
>>>          adapter->have_msi = TRUE;
>>>          if ((err = pci_enable_msi(adapter->pdev))) {
>>> -            DPRINTK(PROBE, ERR,
>>> +            DPRINTK(PROBE, INFO,
>>>               "Unable to allocate MSI interrupt Error: %d\n", err);
>>>              adapter->have_msi = FALSE;
>>
>>
>> Actually, it should not print any message at all.
>>
>> pci_enable_msi() failure is a normal event (as you point out).  Even
>> at KERN_INFO level, the message is still misleading.
> 
> I've been reworking some of this code and there is even a
> pci_disable_msi() missing in case pci_request_irq failed. I'll post a
> patch to clean it up in a second.

It seems ixgb needs this too (the message removal at least?)



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] [e1000] Lower the MSI unavailable message to INFO priority
  2007-05-17 21:15     ` Chuck Ebbert
@ 2007-05-17 21:29       ` Kok, Auke
  2007-05-17 21:45         ` Jeff Garzik
  0 siblings, 1 reply; 7+ messages in thread
From: Kok, Auke @ 2007-05-17 21:29 UTC (permalink / raw)
  To: Chuck Ebbert
  Cc: Jeff Garzik, e1000-devel, netdev, jesse.brandeburg, john.ronciak,
	jeffrey.t.kirsher, H. Peter Anvin

Chuck Ebbert wrote:
> Kok, Auke wrote:
>> Jeff Garzik wrote:
>>> H. Peter Anvin wrote:
>>>> diff --git a/drivers/net/e1000/e1000_main.c
>>>> b/drivers/net/e1000/e1000_main.c
>>>> index 637ae8f..089ae3f 100644
>>>> --- a/drivers/net/e1000/e1000_main.c
>>>> +++ b/drivers/net/e1000/e1000_main.c
>>>> @@ -307,7 +307,7 @@ static int e1000_request_irq(struct e1000_adapter
>>>> *adapter)
>>>>      if (adapter->hw.mac_type >= e1000_82571) {
>>>>          adapter->have_msi = TRUE;
>>>>          if ((err = pci_enable_msi(adapter->pdev))) {
>>>> -            DPRINTK(PROBE, ERR,
>>>> +            DPRINTK(PROBE, INFO,
>>>>               "Unable to allocate MSI interrupt Error: %d\n", err);
>>>>              adapter->have_msi = FALSE;
>>>
>>> Actually, it should not print any message at all.
>>>
>>> pci_enable_msi() failure is a normal event (as you point out).  Even
>>> at KERN_INFO level, the message is still misleading.
>> I've been reworking some of this code and there is even a
>> pci_disable_msi() missing in case pci_request_irq failed. I'll post a
>> patch to clean it up in a second.
> 
> It seems ixgb needs this too (the message removal at least?)

yes, I'll get there once I get a chance to get some e1000 work near completion 
first. I don't think that for ixgb this is as big of a deal for now. If MSI is 
breaking with a 10gig adapter I think people appreciate the error.

We do have to make sure that the PCI subsystem throws errors in the case it is 
justified, like when we're out of vectors, or something really bad happens 
(perhaps suspend/resumish). I assume that is the case, but I haven't checked.

Cheers,

Auke

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] [e1000] Lower the MSI unavailable message to INFO priority
  2007-05-17 21:29       ` Kok, Auke
@ 2007-05-17 21:45         ` Jeff Garzik
  2007-05-17 22:13           ` Kok, Auke
  0 siblings, 1 reply; 7+ messages in thread
From: Jeff Garzik @ 2007-05-17 21:45 UTC (permalink / raw)
  To: Kok, Auke
  Cc: Chuck Ebbert, H. Peter Anvin, e1000-devel, john.ronciak,
	jesse.brandeburg, jeffrey.t.kirsher, netdev

Kok, Auke wrote:
> for now. If MSI is breaking with a 10gig adapter I think people 
> appreciate the error.


No, that is same invalid reasoning discussed earlier in this thread. 
ixgb needs patching for this problem too.

	Jeff



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] [e1000] Lower the MSI unavailable message to INFO priority
  2007-05-17 21:45         ` Jeff Garzik
@ 2007-05-17 22:13           ` Kok, Auke
  0 siblings, 0 replies; 7+ messages in thread
From: Kok, Auke @ 2007-05-17 22:13 UTC (permalink / raw)
  To: Jeff Garzik
  Cc: Chuck Ebbert, H. Peter Anvin, e1000-devel, john.ronciak,
	jesse.brandeburg, jeffrey.t.kirsher, netdev

Jeff Garzik wrote:
> Kok, Auke wrote:
>> for now. If MSI is breaking with a 10gig adapter I think people 
>> appreciate the error.
> 
> 
> No, that is same invalid reasoning discussed earlier in this thread. 
> ixgb needs patching for this problem too.

OK then... A patch that does the exact same for ixgb as I did for e1000 is 
underway (remove #ifdef CONFIG_PCI_MSI, fix pci_disable_msi leak...).

Cheers,

Auke

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-05-17 22:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-15 23:56 [PATCH] [e1000] Lower the MSI unavailable message to INFO priority H. Peter Anvin
2007-05-16  0:32 ` Jeff Garzik
2007-05-16 15:26   ` Kok, Auke
2007-05-17 21:15     ` Chuck Ebbert
2007-05-17 21:29       ` Kok, Auke
2007-05-17 21:45         ` Jeff Garzik
2007-05-17 22:13           ` 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).