Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SSD is incorrectly recognized as HDD #23

Open
tossp opened this issue Oct 3, 2021 · 1 comment
Open

SSD is incorrectly recognized as HDD #23

tossp opened this issue Oct 3, 2021 · 1 comment

Comments

@tossp
Copy link

tossp commented Oct 3, 2021

Load driver: https://raw.githubusercontent.com/tossp/rp-ext/master/mpt3sas/rpext-index.json

image

[   11.434002] usbcore: registered new interface driver usb-storage
[   11.451821] mpt3sas version 09.102.00.00 loaded
[   11.457907] mpt3sas 0000:01:00.0: can't disable ASPM; OS doesn't have ASPM control
[   11.467118] mpt2sas_cm0: 64 BIT PCI BUS DMA ADDRESSING SUPPORTED, total mem (16215452 kB)
[   11.530890] mpt2sas_cm0: MSI-X vectors supported: 16, no of cores: 4, max_msix_vectors: -1
[   11.539367] mpt2sas0-msix0: PCI-MSI-X enabled: IRQ 124
[   11.544624] mpt2sas0-msix1: PCI-MSI-X enabled: IRQ 125
[   11.549895] mpt2sas0-msix2: PCI-MSI-X enabled: IRQ 126
[   11.555138] mpt2sas0-msix3: PCI-MSI-X enabled: IRQ 127
[   11.560371] mpt2sas_cm0: iomem(0x00000000f7240000), mapped(0xffffc90000900000), size(65536)
[   11.568871] mpt2sas_cm0: ioport(0x000000000000e000), size(256)
[   11.629259] mpt2sas_cm0: sending message unit reset !!
[   11.636025] mpt2sas_cm0: message unit reset: SUCCESS
[   11.678095] usb 1-7: new full-speed USB device number 2 using xhci_hcd
[   11.693953] mpt2sas_cm0: Allocated physical memory: size(15846 kB)
[   11.700286] mpt2sas_cm0: Current Controller Queue Depth(7931),Max Controller Queue Depth(8192)
[   11.709098] mpt2sas_cm0: Scatter Gather Elements per IO(128)
[   11.759901] mpt2sas_cm0: LSISAS2308: FWVersion(20.00.07.00), ChipRevision(0x05), BiosVersion(07.39.02.00)
[   11.769736] mpt2sas_cm0: Protocol=(
[   11.773129] Initiator
[   11.775481] ,Target
[   11.776127] ),
[   11.777961] Capabilities=(
[   11.779218] TLR
[   11.781036] ,EEDP
[   11.781498] ,Snapshot Buffer
[   11.784460] ,Diag Trace Buffer
[   11.786073] ,Task Set Full
[   11.788877] ,NCQ
[   11.789259] )
[   11.791097] scsi host6: Fusion MPT SAS Host
[   11.795526] mpt2sas_cm0: sending port enable !!
[   11.802213] mpt2sas_cm0: host_add: handle(0x0001), sas_addr(0x500605b006900fa0), phys(8)
[   11.819521] Got empty serial number. Generate serial number from product.
[   11.826488] mpt2sas_cm0: port enable: SUCCESS
[   11.827158] scsi 6:0:0:0: Direct-Access     GALAX    TA1D0480A                61.3 PQ: 0 ANSI: 6
[   11.827161] scsi 6:0:0:0: SATA: handle(0x0009), sas_addr(0x4433221106000000), phy(6), device_name(0xd019662979957190)
[   11.827162] scsi 6:0:0:0: SATA: enclosure_logical_id(0x500605b006900fa0), slot(5)
[   11.827236] scsi 6:0:0:0: atapi(n), ncq(y), asyn_notify(n), smart(y), fua(y), sw_preserve(y)
[   11.827458] <redpill/scsi_notifier.c:65> Probing SCSI device using sd_probe_shim
[   11.827459] <redpill/scsi_notifier.c:77> Triggering SCSI_EVT_DEV_PROBING notifications
[   11.827460] <redpill/scsi_notifier.c:87> Calling original sd_probe()
[   11.827479] <redpill/scsi_notifier.c:91> Triggering SCSI_EVT_DEV_PROBED notifications - sd_probe() exit=0
[   11.827736] sd 6:0:0:0: [sdg] 937703088 512-byte logical blocks: (480 GB/447 GiB)
[   11.829502] scsi 6:0:1:0: Direct-Access     GALAX    TA1D0480A                61.3 PQ: 0 ANSI: 6
[   11.829504] scsi 6:0:1:0: SATA: handle(0x000a), sas_addr(0x4433221107000000), phy(7), device_name(0xd019662979937296)
[   11.829505] scsi 6:0:1:0: SATA: enclosure_logical_id(0x500605b006900fa0), slot(4)
[   11.829579] scsi 6:0:1:0: atapi(n), ncq(y), asyn_notify(n), smart(y), fua(y), sw_preserve(y)
[   11.829798] <redpill/scsi_notifier.c:65> Probing SCSI device using sd_probe_shim
[   11.829798] <redpill/scsi_notifier.c:77> Triggering SCSI_EVT_DEV_PROBING notifications
[   11.829799] <redpill/scsi_notifier.c:87> Calling original sd_probe()
[   11.829817] <redpill/scsi_notifier.c:91> Triggering SCSI_EVT_DEV_PROBED notifications - sd_probe() exit=0
[   11.830047] sd 6:0:1:0: [sdh] 937703088 512-byte logical blocks: (480 GB/447 GiB)
[   11.831870] sd 6:0:0:0: [sdg] Write Protect is off
[   11.831872] sd 6:0:0:0: [sdg] Mode Sense: 7f 00 10 08
[   11.832011] sd 6:0:0:0: [sdg] Write cache: enabled, read cache: enabled, supports DPO and FUA
[   11.834194] sd 6:0:1:0: [sdh] Write Protect is off
[   11.834196] sd 6:0:1:0: [sdh] Mode Sense: 7f 00 10 08
[   11.834333] sd 6:0:1:0: [sdh] Write cache: enabled, read cache: enabled, supports DPO and FUA
[   11.839134]  sdh: sdh1
[   11.841697] sd 6:0:0:0: [sdg] Attached SCSI disk
[   11.843661] sd 6:0:1:0: [sdh] Attached SCSI disk
[   11.941126] usb 2-4: new SuperSpeed USB device number 2 using xhci_hcd
[   11.953121] usb-storage 2-4:1.0: USB Mass Storage device detected
[   11.957969] scsi host7: usb-storage 2-4:1.0
[   11.958019] <redpill/usb_boot_shim.c:72> Found new device <vid=152d, pid=0576> - didn't match expected <vid=88aa, pid=88aa> (prev_shimmed=0)
[   12.063406] <redpill/usb_boot_shim.c:72> Found new device <vid=0665, pid=5161> - didn't match expected <vid=88aa, pid=88aa> (prev_shimmed=0)
[   12.199091] usb 1-8: new high-speed USB device number 3 using xhci_hcd
root@tsn:/volume1/homes/zh/app/redpill-tool-chain# hdparm -I /dev/sdg

/dev/sdg:

ATA device, with non-removable media
        Model Number:       GALAX TA1D0480A
        Serial Number:      920D07920E2C01758823
        Firmware Revision:  SBFM61.3
        Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
        Supported: 11 10 9 8 7 6 5
        Likely used: 11
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:    16514064
        LBA    user addressable sectors:   268435455
        LBA48  user addressable sectors:   937703088
        Logical  Sector size:                   512 bytes
        Physical Sector size:                   512 bytes
        Logical Sector-0 offset:                  0 bytes
        device size with M = 1024*1024:      457862 MBytes
        device size with M = 1000*1000:      480103 MBytes (480 GB)
        cache/buffer size  = unknown
        Form Factor: 2.5 inch
        Nominal Media Rotation Rate: Solid State Device
Capabilities:
        LBA, IORDY(can be disabled)
        Queue depth: 32
        Standby timer values: spec'd by Standard, no device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 16
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    SMART feature set
                Security Mode feature set
           *    Power Management feature set
           *    Write cache
           *    Look-ahead
           *    Host Protected Area feature set
           *    WRITE_BUFFER command
           *    READ_BUFFER command
           *    NOP cmd
           *    DOWNLOAD_MICROCODE
                SET_MAX security extension
           *    48-bit Address feature set
           *    Device Configuration Overlay feature set
           *    Mandatory FLUSH_CACHE
           *    FLUSH_CACHE_EXT
           *    SMART error logging
           *    SMART self-test
           *    General Purpose Logging feature set
           *    WRITE_{DMA|MULTIPLE}_FUA_EXT
           *    WRITE_UNCORRECTABLE_EXT command
           *    {READ,WRITE}_DMA_EXT_GPL commands
           *    Segmented DOWNLOAD_MICROCODE
           *    Gen1 signaling speed (1.5Gb/s)
           *    Gen2 signaling speed (3.0Gb/s)
           *    Gen3 signaling speed (6.0Gb/s)
           *    Native Command Queueing (NCQ)
           *    Phy event counters
           *    READ_LOG_DMA_EXT equivalent to READ_LOG_EXT
           *    DMA Setup Auto-Activate optimization
                Device-initiated interface power management
           *    Software settings preservation
           *    DOWNLOAD MICROCODE DMA command
           *    SET MAX SETPASSWORD/UNLOCK DMA commands
           *    WRITE BUFFER DMA command
           *    READ BUFFER DMA command
           *    DEVICE CONFIGURATION SET/IDENTIFY DMA commands
           *    Data Set Management TRIM supported (limit 8 blocks)
Security:
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
                supported: enhanced erase
        20min for SECURITY ERASE UNIT. 60min for ENHANCED SECURITY ERASE UNIT.
Checksum: correct
root@tsn:/volume1/homes/zh/app/redpill-tool-chain# hdparm -I /dev/sdh

/dev/sdh:

ATA device, with non-removable media
        Model Number:       GALAX TA1D0480A
        Serial Number:      920D07920E2C01758639
        Firmware Revision:  SBFM61.3
        Transport:          Serial, ATA8-AST, SATA 1.0a, SATA II Extensions, SATA Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
Standards:
        Supported: 11 10 9 8 7 6 5
        Likely used: 11
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        --
        CHS current addressable sectors:    16514064
        LBA    user addressable sectors:   268435455
        LBA48  user addressable sectors:   937703088
        Logical  Sector size:                   512 bytes
        Physical Sector size:                   512 bytes
        Logical Sector-0 offset:                  0 bytes
        device size with M = 1024*1024:      457862 MBytes
        device size with M = 1000*1000:      480103 MBytes (480 GB)
        cache/buffer size  = unknown
        Form Factor: 2.5 inch
        Nominal Media Rotation Rate: Solid State Device
Capabilities:
        LBA, IORDY(can be disabled)
        Queue depth: 32
        Standby timer values: spec'd by Standard, no device specific minimum
        R/W multiple sector transfer: Max = 16  Current = 16
        DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4
             Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    SMART feature set
                Security Mode feature set
           *    Power Management feature set
           *    Write cache
           *    Look-ahead
           *    Host Protected Area feature set
           *    WRITE_BUFFER command
           *    READ_BUFFER command
           *    NOP cmd
           *    DOWNLOAD_MICROCODE
                SET_MAX security extension
           *    48-bit Address feature set
           *    Device Configuration Overlay feature set
           *    Mandatory FLUSH_CACHE
           *    FLUSH_CACHE_EXT
           *    SMART error logging
           *    SMART self-test
           *    General Purpose Logging feature set
           *    WRITE_{DMA|MULTIPLE}_FUA_EXT
           *    WRITE_UNCORRECTABLE_EXT command
           *    {READ,WRITE}_DMA_EXT_GPL commands
           *    Segmented DOWNLOAD_MICROCODE
           *    Gen1 signaling speed (1.5Gb/s)
           *    Gen2 signaling speed (3.0Gb/s)
           *    Gen3 signaling speed (6.0Gb/s)
           *    Native Command Queueing (NCQ)
           *    Phy event counters
           *    READ_LOG_DMA_EXT equivalent to READ_LOG_EXT
           *    DMA Setup Auto-Activate optimization
                Device-initiated interface power management
           *    Software settings preservation
           *    DOWNLOAD MICROCODE DMA command
           *    SET MAX SETPASSWORD/UNLOCK DMA commands
           *    WRITE BUFFER DMA command
           *    READ BUFFER DMA command
           *    DEVICE CONFIGURATION SET/IDENTIFY DMA commands
           *    Data Set Management TRIM supported (limit 8 blocks)
Security:
        Master password revision code = 65534
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
                supported: enhanced erase
        20min for SECURITY ERASE UNIT. 60min for ENHANCED SECURITY ERASE UNIT.
Checksum: correct
[ 3634.019704] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3634.027785] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3634.034355] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3634.042425] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3636.821741] <redpill/smart_shim.c:331> sd_ioctl(HDIO_DRIVE_CMD ; ATA_CMD_ID_ATA) failed with error=-22, attempting to emulate something
[ 3636.834267] <redpill/smart_shim.c:274> Generating completely fake ATA IDENTITY
[ 3648.081485] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3648.089541] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3648.096075] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3648.104197] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3655.102005] <redpill/smart_shim.c:331> sd_ioctl(HDIO_DRIVE_CMD ; ATA_CMD_ID_ATA) failed with error=-22, attempting to emulate something
[ 3655.114652] <redpill/smart_shim.c:274> Generating completely fake ATA IDENTITY
[ 3658.160552] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3658.168643] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3658.175270] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3658.183387] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3670.216958] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3670.224992] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3670.231527] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3670.239571] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3679.478699] <redpill/smart_shim.c:331> sd_ioctl(HDIO_DRIVE_CMD ; ATA_CMD_ID_ATA) failed with error=-22, attempting to emulate something
[ 3679.491237] <redpill/smart_shim.c:274> Generating completely fake ATA IDENTITY
[ 3682.447287] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3682.455316] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3682.462025] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3682.470088] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3692.695273] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3692.703426] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3692.710070] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3692.718145] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3693.126888] <redpill/smart_shim.c:331> sd_ioctl(HDIO_DRIVE_CMD ; ATA_CMD_ID_ATA) failed with error=-22, attempting to emulate something
[ 3693.139331] <redpill/smart_shim.c:274> Generating completely fake ATA IDENTITY
[ 3704.868851] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3704.876953] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3704.883577] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3704.891626] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3705.728835] <redpill/smart_shim.c:331> sd_ioctl(HDIO_DRIVE_CMD ; ATA_CMD_ID_ATA) failed with error=-22, attempting to emulate something
[ 3705.741365] <redpill/smart_shim.c:274> Generating completely fake ATA IDENTITY
[ 3714.890921] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3714.899049] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3714.905617] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3714.913711] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3716.248082] <redpill/smart_shim.c:331> sd_ioctl(HDIO_DRIVE_CMD ; ATA_CMD_ID_ATA) failed with error=-22, attempting to emulate something
[ 3716.260652] <redpill/smart_shim.c:274> Generating completely fake ATA IDENTITY
[ 3723.719096] <redpill/smart_shim.c:331> sd_ioctl(HDIO_DRIVE_CMD ; ATA_CMD_ID_ATA) failed with error=-22, attempting to emulate something
[ 3723.731687] <redpill/smart_shim.c:274> Generating completely fake ATA IDENTITY
[ 3729.078419] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3729.086541] <redpill/smart_shim.c:388> Generating fake SMART values
[ 3729.093214] <redpill/smart_shim.c:644> Got SMART *command* - looking for feature=0xd0
[ 3729.101243] <redpill/smart_shim.c:388> Generating fake SMART values
@christinkaka
Copy link

i got the same problem, with the lsi2308 sas it card

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants