public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Benjamin Li" <benli@broadcom.com>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: 2.6.27-rc5-mm1
Date: Wed, 17 Sep 2008 12:23:11 -0700	[thread overview]
Message-ID: <1221679391.4028.22.camel@localhost> (raw)
In-Reply-To: <20080916190144.46f534b4@bree.surriel.com>

Sorry for the repost... attaching the patch to the proper thread.

Hi Rik van Riel,

Please try the enclosed patch to see if it will solve your problem.

I have tested on my Dell 2900, and the 5708 LOM is operational again on
my test machine.

Thanks again.

-Ben

>From c455b36005a9b1b6a2b0036b7947d3f4bebb9f2d Mon Sep 17 00:00:00 2001
From: Benjamin Li <benli@broadcom.com>
Date: Tue, 16 Sep 2008 17:20:11 -0700
Subject: [PATCH] bnx2: Promote vector field in bnx2_irq structure from u16 to unsigned int

The bnx2 driver stores/uses the irq value from the pci_dev internally.
But when it stores the irq value, it has been performing an
integer demotion.  Because of the recent changes made to
arch/x86/kernel/io_apic.c, the new method in creating the irq value
(using build_irq_for_pci_dev()) has exposed this bug on x86 systems.

Because of this demotion when calling request_irq() from
bnx2_request_irq(), the driver would get a return code of -EINVAL.
This is because the kernel could not find the requested irq descriptor.
By storing the irq value properly, the kernel can find the correct
irq descriptor and the bnx2 driver can operate normally.

Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>

---
 drivers/net/bnx2.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/bnx2.h b/drivers/net/bnx2.h
index c3c579f..dfacd31 100644
--- a/drivers/net/bnx2.h
+++ b/drivers/net/bnx2.h
@@ -6597,7 +6597,7 @@ struct flash_spec {
 
 struct bnx2_irq {
 	irq_handler_t	handler;
-	u16		vector;
+	unsigned int	vector;
 	u8		requested;
 	char		name[16];
 };
-- 
1.5.5.1



On Tue, 2008-09-16 at 16:01 -0700, Rik van Riel wrote:
> On Tue, 16 Sep 2008 14:09:17 -0400
> Rik van Riel <riel@redhat.com> wrote:
> > On Mon, 15 Sep 2008 16:00:58 -0700
> > "Michael Chan" <mchan@broadcom.com> wrote:
> >
> > > > 05:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)
> > > > 09:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet (rev 12)
> > >
> > > Does dmesg show anything when you run ifup?
> >
> > The linux-next tree fails in the same way.  Here is the dmesg output
> > from the broadcom driver:
> 
> OK, with pci=nomsi the system boots up fine and the bnx2 driver
> works.
> 
> Looks like the MSI code in linux-next is broken on the Dell PE 1950.
> 
> --
> All rights reversed.
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 
> 
> 



  reply	other threads:[~2008-09-17 19:23 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-05  5:40 2.6.27-rc5-mm1 Andrew Morton
2008-09-05  7:20 ` 2.6.27-rc5-mm1 Takashi Iwai
2008-09-05  7:50 ` 2.6.27-rc5-mm1 Alexander Beregalov
2008-09-05  8:25   ` 2.6.27-rc5-mm1 Andrew Morton
2008-09-05 12:39 ` 2.6.27-rc5-mm1: rmmod ide-cd_mod: tried to init an initialized object, something is seriously wrong Mariusz Kozlowski
2008-09-05 13:28   ` Rafael J. Wysocki
2008-09-05 13:44     ` Mariusz Kozlowski
2008-09-05 16:25       ` Mariusz Kozlowski
2008-09-06 12:35         ` FUJITA Tomonori
2008-09-08  8:43           ` Jens Axboe
2008-09-08  9:27             ` Jens Axboe
2008-09-09  9:07               ` Mariusz Kozlowski
2008-09-09 10:29                 ` Jens Axboe
2008-09-09 12:14                   ` Mariusz Kozlowski
2008-09-09 13:21                     ` Jens Axboe
2008-09-05 17:26 ` 2.6.27-rc5-mm1: list corruption during blk_add_timer() Alexey Dobriyan
2008-09-05 19:40   ` Andrew Morton
2008-09-08  9:30     ` Jens Axboe
2008-09-05 19:32 ` [PATCH -mm] Fix dev_load() compilation again Alexey Dobriyan
2008-09-05 19:54   ` Hiroshi Shimamoto
2008-09-07  4:08     ` Stephen Rothwell
2008-09-08 22:17     ` Andrew Morton
2008-09-09  6:27       ` Johannes Berg
2008-09-09 11:07 ` 2.6.27-rc5-mm1 Dmitri Vorobiev
2008-09-11 10:16   ` 2.6.27-rc5-mm1 Dmitri Vorobiev
2008-09-11 14:59     ` 2.6.27-rc5-mm1 Kevin D. Kissell
2008-09-15 22:01 ` 2.6.27-rc5-mm1 Rik van Riel
2008-09-15 23:00   ` 2.6.27-rc5-mm1 Michael Chan
2008-09-16 18:09     ` 2.6.27-rc5-mm1 Rik van Riel
2008-09-16 23:01       ` 2.6.27-rc5-mm1 Rik van Riel
2008-09-17 19:23         ` Benjamin Li [this message]
     [not found]         ` <1221667442-4495-1-git-send-email-benli@broadcom.com>
     [not found]           ` <1221667442-4495-2-git-send-email-benli@broadcom.com>
2008-09-18 23:46             ` [PATCH] bnx2: Promote vector field in bnx2_irq structure from u16 to unsigned int David Miller

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=1221679391.4028.22.camel@localhost \
    --to=benli@broadcom.com \
    --cc=linux-kernel@vger.kernel.org \
    /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