Re: Bug in /drivers/scsi/3w-9xxx.h

From: adam radford
Date: Tue Aug 28 2018 - 13:33:17 EST


Frank,

host->max_id (max scsi target ID's) is set to TW_MAX_UNITS_9650SE for
your adapter, which is 32.

The firmware srl (spec revision level) for your 9650 adapter doesn't
support luns > (0 .. 16).

You could run in this mode but it hasn't been tested, and I don't
recall what the ramifications may be (if any).

-Adam



On Tue, Aug 28, 2018 at 10:02 AM Randy Dunlap <rdunlap@xxxxxxxxxxxxx> wrote:
>
> [add linux-scsi list]
>
> On 08/28/2018 05:23 AM, Frank Kammer wrote:
> > Hello,
> >
> > I have a 3ware 9650SE RAID-Controller with 20 LUNs. Using an unpachted
> > kernel (no matter which version, e.g., 4.12.14) , only 17 LUNs are shown.
> >
> > The problem is that the driver was once written for a 3ware 9550SE
> > RAID-Controlle that supports only 16 LUNs.
> > There are some changes in driver to allow 32 LUNs, but one change is
> > forgotten:
> >
> > In drivers/scsi/3w-9xxx.h, one must replace the following:
> >
> > 467c467
> > < #define TW_MAX_LUNS(srl) (srl < TW_FW_SRL_LUNS_SUPPORTED ? 1 : 16)
> > ---
> >> #define TW_MAX_LUNS(srl) (srl < TW_FW_SRL_LUNS_SUPPORTED ? 1 : 32)
> >
> > Best regards,
> > Frank Kammer
> >
>
>
> --
> ~Randy