Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Nov 2009 22:02:54 GMT
From:      Tibor Vidok <tibor.vidok@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/140728: Fast irq registration in em driver
Message-ID:  <200911202202.nAKM2sji001195@www.freebsd.org>
Resent-Message-ID: <200911202210.nAKMA1Gi084527@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         140728
>Category:       kern
>Synopsis:       Fast irq registration in em driver
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Nov 20 22:10:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Tibor Vidok
>Release:        >=FreeBSD-7.0
>Organization:
>Environment:
>Description:
I have noticed that parameters of bus_setup_intr() are not in the
correct order when em_allocate_legacy() registers the FAST IRQ handler.
I have found this error in FreeBSD-7.0 release, and is still exists in
HEAD version.

>How-To-Repeat:
Configure your kernel to use em driver with fast interrupts and try to use it.
>Fix:

In the attachment you can find the patch which solves the problem for
the HEAD version.

Patch attached with submission follows:

Index: if_em.c
===================================================================
--- if_em.c	(revision 199611)
+++ if_em.c	(working copy)
@@ -2882,7 +2882,7 @@
 	    INTR_TYPE_NET | INTR_FAST, em_irq_fast, adapter,
 #else
 	if ((error = bus_setup_intr(dev, adapter->res[0],
-	    INTR_TYPE_NET, em_irq_fast, NULL, adapter,
+	    INTR_TYPE_NET, NULL, em_irq_fast, adapter,
 #endif
 	    &adapter->tag[0])) != 0) {
 		device_printf(dev, "Failed to register fast interrupt "


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911202202.nAKM2sji001195>