[Bug 271238] mpr (LSI SAS3816) driver not finding ses devices in HP D6020 enclosures

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 04 May 2023 09:20:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271238

            Bug ID: 271238
           Summary: mpr (LSI SAS3816) driver not finding ses devices in HP
                    D6020 enclosures
           Product: Base System
           Version: 12.4-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: pen@lysator.liu.se

For some reason the mpr driver doesn't seem to correctly locate the SES devices
in the HP D6020 external SAS enclosures although "mprutil" sees them.

# mprutil show adapters
Device Name           Chip Name        Board Name          Firmware
/dev/mpr0             SAS3816          Dell HBA355e Adp    110f0800


root@balur01:/dev # grep 'ses[0-9] at' /var/run/dmesg.boot
ses0 at ciss0 bus 33 scbus3 target 119 lun 0
ses1 at ciss0 bus 33 scbus3 target 120 lun 0
ses2 at ahciem0 bus 0 scbus6 target 0 lun 0
ses3 at ahciem1 bus 0 scbus11 target 0 lun 0

(ses0 & ses1 are also SES devices in another D6020 enclosure which is attached
via an HP H241 "ciss" HBA adapter instead of the "mpr" (SAS3816). ses2 & ses3
are internal ses units on the server)


root@balur01:/dev # mprutil show enclosures
Slots      Logical ID     SEPHandle  EncHandle    Type
  17    3f4ee08033119100    0000       0001     Direct Attached SES-2
  18    5001438030897600    003b       0002     External SES-2
  18    5001438030889a80    0060       0003     External SES-2

root@balur01:/dev # mprutil show devices
B____T    SAS Address      Handle  Parent    Device        Speed Enc  Slot  Wdt
          500143803089763d 0017    0001      SMP Target    12    0002 00    4
00   17   5000cca25147fc2d 0018    0017      SAS Target    12    0002 01    1
00   18   5000cca251470281 0019    0017      SAS Target    12    0002 02    1
00   19   5000cca251480609 001a    0017      SAS Target    12    0002 03    1
00   20   5000cca251481745 001b    0017      SAS Target    12    0002 04    1
00   21   5000cca25148f761 001c    0017      SAS Target    12    0002 05    1
00   22   5000cca25147fee1 001d    0017      SAS Target    12    0002 06    1
00   23   5000cca251481581 001e    0017      SAS Target    12    0002 07    1
00   24   5000cca251481519 001f    0017      SAS Target    12    0002 08    1
00   25   5000cca2514111ad 0020    0017      SAS Target    ???   0002 09    1
00   26   5000c500d81abde1 0021    0017      SAS Target    ???   0002 10    1
00   27   5000cca2514a1f0d 0022    0017      SAS Target    ???   0002 11    1
00   28   5000c500cb57b0e1 0023    0017      SAS Target    ???   0002 12    1
00   29   5000cca25147f445 0024    0017      SAS Target    ???   0002 13    1
00   30   5000cca2513b3299 0025    0017      SAS Target    ???   0002 14    1
00   31   5000cca2513ea2e9 0026    0017      SAS Target    ???   0002 15    1
00   32   5000cca25146fc25 0027    0017      SAS Target    ???   0002 16    1
          5000cca251480455 0028    0017      SAS Target    ???   0002 17    1
00   34   5000c500cb6ec62d 0029    0017      SAS Target    ???   0002 18    1
00   35   5000cca251462ae1 002a    0017      SAS Target    ???   0002 19    1
00   36   5000cca25147c0b1 002b    0017      SAS Target    ???   0002 20    1
00   37   5000cca251416fa9 002c    0017      SAS Target    ???   0002 21    1
00   38   5000cca25148f615 002d    0017      SAS Target    12    0002 22    1
00   39   5000cca251481501 002e    0017      SAS Target    12    0002 23    1
00   40   5000cca2513ea3d9 002f    0017      SAS Target    12    0002 24    1
00   41   5000cca2514b74ed 0030    0017      SAS Target    12    0002 25    1
00   42   5000cca251480539 0031    0017      SAS Target    12    0002 26    1
00   43   5000cca25147fc51 0032    0017      SAS Target    12    0002 27    1
00   44   5000cca251480515 0033    0017      SAS Target    12    0002 28    1
00   45   5000cca25147fce5 0034    0017      SAS Target    12    0002 29    1
00   46   5000c500d81bf575 0035    0017      SAS Target    12    0002 30    1
00   47   5000cca2512921b9 0036    0017      SAS Target    12    0002 31    1
00   48   5000cca251469c11 0037    0017      SAS Target    12    0002 32    1
00   49   5000cca25147c43d 0038    0017      SAS Target    12    0002 33    1
00   50   5000cca25147bc99 0039    0017      SAS Target    12    0002 34    1
00   51   5000cca25147c3e5 003a    0017      SAS Target    12    0002 35    1
00   33   500143803089763c 003b    0017      SEP Target    12    0002 17    1
          5001438030889abd 003c    0002      SMP Target    12    0003 00    4
00   53   5000cca25148058d 003d    003c      SAS Target    12    0003 01    1
00   54   5000cca251480535 003e    003c      SAS Target    12    0003 02    1
00   55   5000cca25148044d 003f    003c      SAS Target    12    0003 03    1
00   56   5000cca25148f9e1 0040    003c      SAS Target    12    0003 04    1
00   57   5000cca25147b889 0041    003c      SAS Target    12    0003 05    1
00   58   5000cca2513ea329 0042    003c      SAS Target    12    0003 06    1
00   59   5000cca25147b691 0043    003c      SAS Target    12    0003 07    1
00   60   5000cca25147ff19 0044    003c      SAS Target    12    0003 08    1
00   61   5000cca25148159d 0045    003c      SAS Target    ???   0003 09    1
00   62   5000cca2513ea255 0046    003c      SAS Target    ???   0003 10    1
00   63   5000cca25140c99d 0047    003c      SAS Target    ???   0003 11    1
00   64   5000cca25148142d 0048    003c      SAS Target    ???   0003 12    1
00   65   5000cca251408441 0049    003c      SAS Target    ???   0003 13    1
00   66   5000cca2513f8065 004a    003c      SAS Target    ???   0003 14    1
00   67   5000c500cbc482ad 004b    003c      SAS Target    ???   0003 15    1
00   68   5000c500d8c4cded 004c    003c      SAS Target    ???   0003 16    1
          5000cca25147fdc5 004d    003c      SAS Target    ???   0003 17    1
00   70   5000cca2514816e5 004e    003c      SAS Target    ???   0003 18    1
00   71   5000cca2513ea465 004f    003c      SAS Target    ???   0003 19    1
00   72   5000cca251246a89 0050    003c      SAS Target    ???   0003 20    1
00   73   5000cca251480511 0051    003c      SAS Target    ???   0003 21    1
00   74   5000c500d990d735 0052    003c      SAS Target    12    0003 22    1
00   75   5000cca25142c4fd 0053    003c      SAS Target    12    0003 23    1
00   76   5000cca267d49b51 0054    003c      SAS Target    12    0003 24    1
00   77   5000cca2513ea395 0055    003c      SAS Target    12    0003 25    1
00   78   5000cca2514804d9 0056    003c      SAS Target    12    0003 26    1
00   79   5000cca2513ea345 0057    003c      SAS Target    12    0003 27    1
00   80   5000cca251459025 0058    003c      SAS Target    12    0003 28    1
00   81   5000cca2514805b1 0059    003c      SAS Target    12    0003 29    1
00   82   5000cca2514701a5 005a    003c      SAS Target    12    0003 30    1
00   83   5000cca251481661 005b    003c      SAS Target    12    0003 31    1
00   84   5000cca25148112d 005c    003c      SAS Target    12    0003 32    1
00   85   5000cca2513ea2fd 005d    003c      SAS Target    12    0003 33    1
00   86   5000cca251480439 005e    003c      SAS Target    12    0003 34    1
00   87   5000cca25142bfd1 005f    003c      SAS Target    12    0003 35    1
00   69   5001438030889abc 0060    003c      SEP Target    12    0003 17    1


One suspect thing is the "T" 33 & 69 which seems to be the SES units, which
also seems to collide with disks (see the gaps in the listing). All disks are
showing up though via camcontrol and are usable.

Any ideas?

-- 
You are receiving this mail because:
You are the assignee for the bug.