Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Sep 2011 01:27:09 +0400
From:      Sergey Kandaurov <pluknet@gmail.com>
To:        John Baldwin <jhb@freebsd.org>
Cc:        stable@freebsd.org
Subject:   Re: mfi(4) patch to add MSI-X support, possibly address command timeouts
Message-ID:  <CAE-mSOK8Cx=PKz65Wh52qcauPEitqNmjvZhhgxH_fsaoKzhvZg@mail.gmail.com>
In-Reply-To: <201108311717.03127.jhb@freebsd.org>
References:  <201108311334.10804.jhb@freebsd.org> <CAE-mSO%2B=RZABD-xxLHkda%2B0JkMypAibMAAbPh23=fQRL9gKXMA@mail.gmail.com> <201108311717.03127.jhb@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1 September 2011 01:17, John Baldwin <jhb@freebsd.org> wrote:
> On Wednesday, August 31, 2011 3:24:12 pm Sergey Kandaurov wrote:
>> On 31 August 2011 21:34, John Baldwin <jhb@freebsd.org> wrote:
>> > I'd like some folks to test a patch to the mfi(4) driver that may help=
 to
>> > address issues several folks have reported. =A0The patch does two thin=
gs, first
>> > it adds some dummy reads of PCI registers when checking device status =
in the
>> > interrupt handler to "flush" the writes to ACK interrupts. =A0The Linu=
x
>> > megaraid-sas driver uses this approach and some folks have tested a pa=
tch from
>> > Scott Long which had a somewhat similar effect. =A0Second, it enables =
the use of
>> > MSI-X interrupts for many newer devices.
>> >
>> > The patch is available below and at www.freebsd.org/~jhb/patches/mfi.p=
atch
>>
>> mfi0: <LSI MegaSAS Gen2> port 0x3000-0x30ff mem
>> 0x9dd40000-0x9dd43fff,0x9dd00000-0x9dd3ffff irq 26 at device 0.0 on
>> pci26
>> mfi0: Using MSI-X
>> mfi0: Megaraid SAS driver Ver 3.00
>>
>> However, booting never finishes ending up with:
>> mfi0: COMMAND 0xffffff8000b3a550 TIMEOUT AFTER 58 SECONDS
>> mfi0: COMMAND 0xffffff8000b3a550 TIMEOUT AFTER 88 SECONDS
>> mfi0: COMMAND 0xffffff8000b3a550 TIMEOUT AFTER 118 SECONDS
>> mfi0: COMMAND 0xffffff8000b3a550 TIMEOUT AFTER 148 SECONDS
>> mfi0: COMMAND 0xffffff8000b3a550 TIMEOUT AFTER 179 SECONDS
>> mfi0: COMMAND 0xffffff8000b3a550 TIMEOUT AFTER 209 SECONDS
>
> Did this work fine without the patch?

Yes, like a charm.

>
> Also, does it work fine if you disable MSI-X via 'hw.pci.enable_msix=3D0'
> in the loader?

I will try this tomorrow.
Thanks.

--=20
wbr,
pluknet



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAE-mSOK8Cx=PKz65Wh52qcauPEitqNmjvZhhgxH_fsaoKzhvZg>