linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug in /drivers/scsi/3w-9xxx.h
@ 2018-08-28 12:23 Frank Kammer
  2018-08-28 17:00 ` Randy Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: Frank Kammer @ 2018-08-28 12:23 UTC (permalink / raw)
  To: linux-kernel

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


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

* Re: Bug in /drivers/scsi/3w-9xxx.h
  2018-08-28 12:23 Bug in /drivers/scsi/3w-9xxx.h Frank Kammer
@ 2018-08-28 17:00 ` Randy Dunlap
  2018-08-28 17:33   ` adam radford
  0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2018-08-28 17:00 UTC (permalink / raw)
  To: Frank Kammer, linux-kernel, linux-scsi

[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

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

* Re: Bug in /drivers/scsi/3w-9xxx.h
  2018-08-28 17:00 ` Randy Dunlap
@ 2018-08-28 17:33   ` adam radford
  0 siblings, 0 replies; 3+ messages in thread
From: adam radford @ 2018-08-28 17:33 UTC (permalink / raw)
  To: rdunlap; +Cc: frank.kammer, linux-kernel, linux-scsi

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@infradead.org> 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

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

end of thread, other threads:[~2018-08-28 17:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-28 12:23 Bug in /drivers/scsi/3w-9xxx.h Frank Kammer
2018-08-28 17:00 ` Randy Dunlap
2018-08-28 17:33   ` adam radford

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).