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

From: Frank Kammer
Date: Tue Aug 28 2018 - 08:41:40 EST


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