> On Jun 5, 2019, at 7:54 PM, Sonnie Hook <sonnie.h...@gmail.com> wrote: > > {0} ok probe-scsi-all > /pci@8000/pci@4/pci@0/pci@1/pci@0/usb@4,1/storage@1 > Unit 0 Removable Read Only device SlimtypeDVD A DS8ACSH LC21 > > /pci@8000/pci@4/pci@0/pci@1/pci@0/usb@4,1/hub@2/storage@1 > Unit 0 Removable Disk Generic Flash Disk 8.07 > > /pci@8000/pci@4/pci@0/pci@0/scsi@0 > > FCode Version 1.00.56, MPT Version 2.00, Firmware Version 17.00.00.00 > > Target c > Unit 0 Encl Serv device FUJITSU BBEXP 0d32 > SASAddress 500000e0e0717bbd PhyNum 14 > Target 11e Volume 0 > Unit 0 Disk LSI Logical Volume 3000 1169920000 Blocks, 598 GB > VolumeDeviceName 34a35f670ae4a0d9 VolumeWWID 04a35f670ae4a0d9
It looks like there is a SAS expander attached to the LSI,2308_2? > > {0} ok " /pci@8000/pci@4/pci@0/pci@0/scsi@0 select-dev > {0} ok .properties > Not at a device tree node. Use 'dev <device-pathname>'. > {0} ok dev /pci@8000/pci@4/pci@0/pci@0/scsi@0 > {0} ok .properties > assigned-addresses 81030010 00000000 00000000 00000000 00000100 > 83030014 00000001 00000000 00000000 00010000 > 8303001c 00000001 00040000 00000000 00040000 > 82030030 00000000 00200000 00000000 00100000 > firmware-version 17.00.00.00 > mpt-version 2.00 > local-wwid 50 00 00 e0 e0 47 49 18 > compatible pciex10cf,87 > pci10cf,87 > pciex1000,87 > pci1000,87 > model LSI,2308_2 > reg 00030000 00000000 00000000 00000000 00000000 > 01030010 00000000 00000000 00000000 00000100 > 03030014 00000000 00000000 00000000 00010000 > 0303001c 00000000 00000000 00000000 00040000 > 02030030 00000000 00000000 00000000 00100000 > version 1.00.56 > wide 00000010 > device_type scsi-sas > name scsi > #address-cells 00000004 > port-type PCIE-Endpoint > interrupts 00000001 > cache-line-size 00000010 > class-code 00010700 > subsystem-id 0000177f > subsystem-vendor-id 000010cf > revision-id 00000005 > device-id 00000087 > vendor-id 00001000 > > {0} ok " c,0" decode-unit encode-unit type > c,0 > {0} ok " 11e,0" decode-unit encode-unit type > 11e,0 > When a disk is directly attached to a LSA,2308 the canonical name shows up in the wwn format, like this: {0} ok " 9,0" decode-unit encode-unit type w5000cca01642183d,0 But it looks like it shows up in the target,lun format when attached thru an expander. Could you try out this change: diff --git a/grub-core/osdep/linux/ofpath.c b/grub-core/osdep/linux/ofpath.c index a6153d3..3f1258a 100644 --- a/grub-core/osdep/linux/ofpath.c +++ b/grub-core/osdep/linux/ofpath.c @@ -617,6 +617,9 @@ of_path_of_scsi(const char *sys_devname __attribute__((unused)), const char *dev } } + if ((vendor == LSI_VENDOR_ID) && (device_id == 0x87) && (tgt & 0xff00)) + addressing = GRUB_OFPATH_SPARC_TGT_LUN; + if (addressing == GRUB_OFPATH_SPARC_WWN_ADDR) optr += snprintf (disk, sizeof (disk), "/%s@w%lx,%x", disk_name, sas_address, lun); _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel