You are not logged in.

#1 2023-02-28 15:18:57

Blitz67
Member
Registered: 2012-11-03
Posts: 28

[SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

Hello everyone! Please help me!

I upgraded the Linux kernel a few hours ago: linux (6.1.12.arch1-1 -> 6.2.1.arch1-1). The device "Netac SSD 1TB" has disappeared.

The drive is connected to the controller lspci -vvvk -s 10000:e0:17.0 (the result is the same on both kernels)

10000:e0:17.0 SATA controller: Intel Corporation Tiger Lake-LP SATA Controller (rev 20) (prog-if 01 [AHCI 1.0])
        Subsystem: Intel Corporation Device 7270
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 145
        Region 0: Memory at 50200000 (32-bit, non-prefetchable) [size=8K]
        Region 1: Memory at 50202800 (32-bit, non-prefetchable) [size=256]
        Region 5: Memory at 50202000 (32-bit, non-prefetchable) [size=2K]
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
                Address: fee01000  Data: 0000
        Capabilities: [70] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot+,D3cold-)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [a8] SATA HBA v1.0 BAR4 Offset=00000004
        Kernel driver in use: ahci

udevadm info /dev/sda on linux-6.1.12.arch1-1

P: /devices/pci0000:00/0000:00:0e.0/pci10000:e0/10000:e0:17.0/ata1/host0/target0:0:0/0:0:0:0/block/sda
M: sda
U: block
T: disk
D: b 8:0
N: sda
L: 0
S: disk/by-path/pci-0000:00:0e.0-pci-10000:e0:17.0-ata-1
S: disk/by-path/pci-0000:00:0e.0-pci-10000:e0:17.0-ata-1.0
S: disk/by-id/ata-Netac_SSD_1TB_AA002434556770002203
S: disk/by-diskseq/1
Q: 1
E: DEVPATH=/devices/pci0000:00/0000:00:0e.0/pci10000:e0/10000:e0:17.0/ata1/host0/target0:0:0/0:0:0:0/block/sda
E: DEVNAME=/dev/sda
E: DEVTYPE=disk
E: DISKSEQ=1
E: MAJOR=8
E: MINOR=0
E: SUBSYSTEM=block
E: USEC_INITIALIZED=3625504
E: ID_ATA=1
E: ID_TYPE=disk
E: ID_BUS=ata
E: ID_MODEL=Netac_SSD_1TB
E: ID_MODEL_ENC=Netac\x20SSD\x201TB\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20
E: ID_REVISION=V0609B0
E: ID_SERIAL=Netac_SSD_1TB_AA002434556770002203
E: ID_SERIAL_SHORT=AA002434556770002203
E: ID_ATA_WRITE_CACHE=1
E: ID_ATA_WRITE_CACHE_ENABLED=1
E: ID_ATA_FEATURE_SET_HPA=1
E: ID_ATA_FEATURE_SET_HPA_ENABLED=1
E: ID_ATA_FEATURE_SET_PM=1
E: ID_ATA_FEATURE_SET_PM_ENABLED=1
E: ID_ATA_FEATURE_SET_SECURITY=1
E: ID_ATA_FEATURE_SET_SECURITY_ENABLED=0
E: ID_ATA_FEATURE_SET_SECURITY_ERASE_UNIT_MIN=2
E: ID_ATA_FEATURE_SET_SECURITY_ENHANCED_ERASE_UNIT_MIN=2
E: ID_ATA_FEATURE_SET_SMART=1
E: ID_ATA_FEATURE_SET_SMART_ENABLED=1
E: ID_ATA_FEATURE_SET_APM=1
E: ID_ATA_FEATURE_SET_APM_ENABLED=1
E: ID_ATA_FEATURE_SET_APM_CURRENT_VALUE=254
E: ID_ATA_DOWNLOAD_MICROCODE=1
E: ID_ATA_SATA=1
E: ID_ATA_SATA_SIGNAL_RATE_GEN2=1
E: ID_ATA_SATA_SIGNAL_RATE_GEN1=1
E: ID_ATA_ROTATION_RATE_RPM=0
E: ID_PATH=pci-0000:00:0e.0-pci-10000:e0:17.0-ata-1.0
E: ID_PATH_TAG=pci-0000_00_0e_0-pci-10000_e0_17_0-ata-1_0
E: ID_PATH_ATA_COMPAT=pci-0000:00:0e.0-pci-10000:e0:17.0-ata-1
E: ID_PART_TABLE_UUID=678c040e
E: ID_PART_TABLE_TYPE=dos
E: DEVLINKS=/dev/disk/by-path/pci-0000:00:0e.0-pci-10000:e0:17.0-ata-1 /dev/disk/by-path/pci-0000:00:0e.0-pci-10000:e0:17.0-ata-1.0 /dev/disk/by-id/ata-Netac_SSD_1TB_AA002434556770002203 /dev/disk/by-diskseq/1
E: TAGS=:systemd:
E: CURRENT_TAGS=:systemd:

udevadm info /dev/sda on linux-6.2.1.arch1-1

Unknown device "/dev/sda": No such device

This is a fragment of the output of command dmesg | grep -Ei 'ata|sata|sda|disk|ahci|10000:e0:17'

linux-6.1.12.arch1-1

scsi host0: ahci
scsi host1: ahci
ata1: SATA max UDMA/133 abar m2048@0x50202000 port 0x50202100 irq 145
ata2: SATA max UDMA/133 abar m2048@0x50202000 port 0x50202180 irq 145
ata2: SATA link down (SStatus 0 SControl 300)
ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
ata1.00: ATA-9: Netac SSD 1TB, V0609B0, max UDMA/133
ata1.00: 1953525168 sectors, multi 1: LBA48 NCQ (depth 32), AA
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access     ATA      Netac SSD 1TB    9B0  PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] Preferred minimum I/O size 512 bytes
 sda: sda1 sda2
sd 0:0:0:0: [sda] Attached SCSI disk

linux-6.2.1.arch1-1

scsi host0: ahci
scsi host1: ahci
ata1: SATA max UDMA/133 abar m2048@0x50202000 port 0x50202100 irq 145
ata2: SATA max UDMA/133 abar m2048@0x50202000 port 0x50202180 irq 145
ata1: SATA link down (SStatus 4 SControl 300)
ata2: SATA link down (SStatus 4 SControl 300)

I would appreciate any help in solving this problem.

Last edited by Blitz67 (2023-03-11 06:22:47)

Offline

#2 2023-02-28 15:20:22

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

Post the output of each of the following:

uname -a
pacman -Q linux

If the versions don't match, 1) reboot, then 2) if they still don't match, you likely didn't have your boot partition mounted during the update.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2023-02-28 15:31:13

Blitz67
Member
Registered: 2012-11-03
Posts: 28

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

Thank you for your quick response!

uname -a

Linux i5lenovo 6.2.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Sun, 26 Feb 2023 03:39:23 +0000 x86_64 GNU/Linux

pacman -Q linux

linux 6.2.1.arch1-1

The sda disk is still not present.

NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
nvme0n1     259:0    0 476,9G  0 disk 
├─nvme0n1p1 259:1    0   128M  0 part /boot
├─nvme0n1p2 259:2    0    32G  0 part 
├─nvme0n1p3 259:3    0    24G  0 part [SWAP]
└─nvme0n1p4 259:4    0 420,8G  0 part /

Let me be clear. The Netac drive is not bootable. Bootable disk is INTEL SSDPEKNW512GZ. It works fine.

Last edited by Blitz67 (2023-02-28 15:33:31)

Offline

#4 2023-02-28 15:57:54

seth
Member
Registered: 2012-09-03
Posts: 58,728

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

ata1: SATA link down (SStatus 4 SControl 300)

Please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'file=@-' 0x0.st

Also try some live distro (grml) - might be power/cable.

Offline

#5 2023-02-28 16:04:00

Blitz67
Member
Registered: 2012-11-03
Posts: 28

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

> Please post your complete system journal for the boot:

http://0x0.st/HzPd.txt

Downgrade the kernel 6.2.1.arch1-1 -> 6.1.12.arch1-1 to get the device working again.

Offline

#6 2023-02-28 16:23:33

seth
Member
Registered: 2012-09-03
Posts: 58,728

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

фев 28 18:25:46 i5lenovo kernel: pci 10000:e0:1c.4: bridge window [mem 0x00100000-0x001fffff] to [bus e1] add_size 100000 add_align 100000
фев 28 18:25:46 i5lenovo kernel: pci 10000:e0:1c.4: BAR 14: assigned [mem 0x50000000-0x501fffff]
фев 28 18:25:46 i5lenovo kernel: pci 10000:e0:17.0: BAR 0: assigned [mem 0x50200000-0x50201fff]
фев 28 18:25:46 i5lenovo kernel: pci 10000:e0:1c.4: BAR 13: no space for [io  size 0x1000]
фев 28 18:25:46 i5lenovo kernel: pci 10000:e0:1c.4: BAR 13: failed to assign [io  size 0x1000]
фев 28 18:25:46 i5lenovo kernel: pci 10000:e0:17.0: BAR 5: assigned [mem 0x50202000-0x502027ff]
фев 28 18:25:46 i5lenovo kernel: pci 10000:e0:17.0: BAR 1: assigned [mem 0x50202800-0x502028ff]
фев 28 18:25:46 i5lenovo kernel: pci 10000:e0:17.0: BAR 4: no space for [io  size 0x0020]
фев 28 18:25:46 i5lenovo kernel: pci 10000:e0:17.0: BAR 4: failed to assign [io  size 0x0020]
фев 28 18:25:46 i5lenovo kernel: pci 10000:e0:17.0: BAR 2: no space for [io  size 0x0008]
фев 28 18:25:46 i5lenovo kernel: pci 10000:e0:17.0: BAR 2: failed to assign [io  size 0x0008]
фев 28 18:25:46 i5lenovo kernel: pci 10000:e0:17.0: BAR 3: no space for [io  size 0x0004]
фев 28 18:25:46 i5lenovo kernel: pci 10000:e0:17.0: BAR 3: failed to assign [io  size 0x0004]
фев 28 18:25:46 i5lenovo kernel: pci 10000:e0:1c.4: BAR 13: no space for [io  size 0x1000]
фев 28 18:25:46 i5lenovo kernel: pci 10000:e0:1c.4: BAR 13: failed to assign [io  size 0x1000]
фев 28 18:25:46 i5lenovo kernel: pci 10000:e0:17.0: BAR 4: no space for [io  size 0x0020]
фев 28 18:25:46 i5lenovo kernel: pci 10000:e0:17.0: BAR 4: failed to assign [io  size 0x0020]
фев 28 18:25:46 i5lenovo kernel: pci 10000:e0:17.0: BAR 2: no space for [io  size 0x0008]
фев 28 18:25:46 i5lenovo kernel: pci 10000:e0:17.0: BAR 2: failed to assign [io  size 0x0008]
фев 28 18:25:46 i5lenovo kernel: pci 10000:e0:17.0: BAR 3: no space for [io  size 0x0004]
фев 28 18:25:46 i5lenovo kernel: pci 10000:e0:17.0: BAR 3: failed to assign [io  size 0x0004]
фев 28 18:25:46 i5lenovo kernel: pci 10000:e1:00.0: BAR 0: assigned [mem 0x50000000-0x50003fff 64bit]
фев 28 18:25:46 i5lenovo kernel: pci 10000:e1:00.0: BAR 7: assigned [mem 0x50004000-0x50023fff 64bit]
фев 28 18:25:46 i5lenovo kernel: pci 10000:e0:1c.4: PCI bridge to [bus e1]
фев 28 18:25:46 i5lenovo kernel: pci 10000:e0:1c.4:   bridge window [mem 0x50000000-0x501fffff]
фев 28 18:25:46 i5lenovo kernel: ahci 10000:e0:17.0: version 3.0
фев 28 18:25:46 i5lenovo kernel: ahci 10000:e0:17.0: can't derive routing for PCI INT A
фев 28 18:25:46 i5lenovo kernel: ahci 10000:e0:17.0: PCI INT A: no GSI
фев 28 18:25:46 i5lenovo kernel: ahci 10000:e0:17.0: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl SATA mode

Do you have the BAR conflict and/or "can't derive routing for PCI INT A" on the older kernel as well?

Offline

#7 2023-02-28 16:32:03

Blitz67
Member
Registered: 2012-11-03
Posts: 28

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

Here is the dmesg fragment from 6.1.12.arch1-1.

pci 10000:e0:17.0: BAR 0: assigned [mem 0x50200000-0x50201fff]
pci 10000:e0:17.0: BAR 5: assigned [mem 0x50202000-0x502027ff]
pci 10000:e0:17.0: BAR 1: assigned [mem 0x50202800-0x502028ff]
pci 10000:e0:17.0: BAR 4: no space for [io  size 0x0020]
pci 10000:e0:17.0: BAR 4: failed to assign [io  size 0x0020]
pci 10000:e0:17.0: BAR 2: no space for [io  size 0x0008]
pci 10000:e0:17.0: BAR 2: failed to assign [io  size 0x0008]
pci 10000:e0:17.0: BAR 3: no space for [io  size 0x0004]
pci 10000:e0:17.0: BAR 3: failed to assign [io  size 0x0004]
pci 10000:e0:17.0: BAR 4: no space for [io  size 0x0020]
pci 10000:e0:17.0: BAR 4: failed to assign [io  size 0x0020]
pci 10000:e0:17.0: BAR 2: no space for [io  size 0x0008]
pci 10000:e0:17.0: BAR 2: failed to assign [io  size 0x0008]
pci 10000:e0:17.0: BAR 3: no space for [io  size 0x0004]
pci 10000:e0:17.0: BAR 3: failed to assign [io  size 0x0004]
ahci 10000:e0:17.0: version 3.0
ahci 10000:e0:17.0: can't derive routing for PCI INT A <==== !!! Is this the message? 
ahci 10000:e0:17.0: PCI INT A: no GSI
ahci 10000:e0:17.0: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
ahci 10000:e0:17.0: flags: 64bit ncq sntf pm clo only pio slum part deso sadm sds
scsi host0: ahci
scsi host1: ahci
ata1: SATA max UDMA/133 abar m2048@0x50202000 port 0x50202100 irq 145
ata2: SATA max UDMA/133 abar m2048@0x50202000 port 0x50202180 irq 145
ata2: SATA link down (SStatus 0 SControl 300)
ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
ata1.00: ATA-9: Netac SSD 1TB, V0609B0, max UDMA/133
ata1.00: 1953525168 sectors, multi 1: LBA48 NCQ (depth 32), AA
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access     ATA      Netac SSD 1TB    9B0  PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 0:0:0:0: [sda] Preferred minimum I/O size 512 bytes
 sda: sda1 sda2
sd 0:0:0:0: [sda] Attached SCSI disk

Offline

#8 2023-02-28 16:48:32

seth
Member
Registered: 2012-09-03
Posts: 58,728

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

фев 28 18:25:46 i5lenovo kernel: pcieport 10000:e0:1c.4: can't derive routing for PCI INT A
фев 28 18:25:46 i5lenovo kernel: pcieport 10000:e0:1c.4: PCI INT A: no GSI
фев 28 18:25:46 i5lenovo kernel: pcieport 10000:e0:1c.4: PME: Signaling with IRQ 146
фев 28 18:25:46 i5lenovo kernel: vmd 0000:00:0e.0: Bound to PCI domain 10000

Doesn't seem to be there?
Does "10000:e0:1c.4" show up at all?

Offline

#9 2023-02-28 16:59:12

Blitz67
Member
Registered: 2012-11-03
Posts: 28

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

lspci -vk -s 10000:e0:1c.4

10000:e0:1c.4 PCI bridge: Intel Corporation Device a0bc (rev 20) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 146
        Bus: primary=00, secondary=e1, subordinate=e1, sec-latency=0
        I/O behind bridge: [disabled] [16-bit]
        Memory behind bridge: 50000000-501fffff [size=2M] [32-bit]
        Prefetchable memory behind bridge: [disabled] [64-bit]
        Capabilities: [40] Express Root Port (Slot+), MSI 00
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
        Capabilities: [90] Subsystem: Device 0000:0000
        Capabilities: [a0] Power Management version 3
        Capabilities: [100] Null
        Capabilities: [220] Access Control Services
        Capabilities: [150] Precision Time Measurement
        Capabilities: [200] L1 PM Substates
        Capabilities: [a30] Secondary PCI Express
        Capabilities: [a00] Downstream Port Containment
        Kernel driver in use: pcieport

Offline

#10 2023-02-28 17:00:08

seth
Member
Registered: 2012-09-03
Posts: 58,728

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

I meant in the dmesg (w/ any special messages)

Offline

#11 2023-02-28 17:01:24

Blitz67
Member
Registered: 2012-11-03
Posts: 28

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

I can give you lspci results for 6.1 and 6.2. Do you need them?

Offline

#12 2023-02-28 17:05:12

Blitz67
Member
Registered: 2012-11-03
Posts: 28

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

I meant in the dmesg (w/ any special messages)

Did I get that right?

dmesg | grep -E '10000:e0:1c\.4'

[    0.604121] pci 10000:e0:1c.4: [8086:a0bc] type 01 class 0x060400
[    0.604228] pci 10000:e0:1c.4: PME# supported from D0 D3hot D3cold
[    0.604271] pci 10000:e0:1c.4: PTM enabled (root), 4ns granularity
[    0.604348] pci 10000:e0:1c.4: Primary bus is hard wired to 0
[    0.604952] pci 10000:e0:1c.4: PCI bridge to [bus e1]
[    0.604955] pci 10000:e0:1c.4:   bridge window [io  0x0000-0x0fff]
[    0.604959] pci 10000:e0:1c.4:   bridge window [mem 0x50100000-0x501fffff]
[    0.604967] pci 10000:e0:1c.4: Primary bus is hard wired to 0
[    1.633761] pci 10000:e0:1c.4: bridge window [mem 0x00100000-0x001fffff] to [bus e1] add_size 100000 add_align 100000
[    1.633779] pci 10000:e0:1c.4: BAR 14: assigned [mem 0x50000000-0x501fffff]
[    1.633793] pci 10000:e0:1c.4: BAR 13: no space for [io  size 0x1000]
[    1.633796] pci 10000:e0:1c.4: BAR 13: failed to assign [io  size 0x1000]
[    1.633836] pci 10000:e0:1c.4: BAR 13: no space for [io  size 0x1000]
[    1.633838] pci 10000:e0:1c.4: BAR 13: failed to assign [io  size 0x1000]
[    1.633901] pci 10000:e0:1c.4: PCI bridge to [bus e1]
[    1.633910] pci 10000:e0:1c.4:   bridge window [mem 0x50000000-0x501fffff]
[    1.635758] pcieport 10000:e0:1c.4: can't derive routing for PCI INT A
[    1.635763] pcieport 10000:e0:1c.4: PCI INT A: no GSI
[    1.635887] pcieport 10000:e0:1c.4: PME: Signaling with IRQ 146
[    1.964233] pcieport 10000:e0:1c.4: can't derive routing for PCI INT A

Offline

#13 2023-02-28 17:30:58

chanow
Member
Registered: 2021-04-13
Posts: 10

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

I believe I have a related problem that I will try to explain as best as I can, so as to contribute to the thread.

I have a laptop with multiple linux distros and Windows.  This laptop has a NVME(/dev/nvme0n1), from which all OSes boot, and a standard SATA HDD(/dev/sda) used for swap and storage.  A regular Archlinux upgrade cycle updated LTS kernel to 6.1.13 and rolling to 6.1.12.arch1-1.

LTS 6.1.13 was not detecting /dev/sda any more, which I noticed as booting was stuck in the message "A start job is running for /dev/disk/by-uuid/5ef2fda7-f251-4426-ba42-bba2b90b7074 (60s/no limit)", which is the swap partition on /dev/sda. The 6.1.12.arch1-1 kernel was working as usual and had no problems.  All other Linux OSes were doing fine.

Another kernel upgrade cycle to LTS 6.1.14-1-lts and rolling 6.2.1-arch1-1 was done and now both Archlinux kernels are not recognizing the SATA drive anymore.  The other OSes are stil doing fine with regards to /dev/sda.  If I remove the swap partition from /etc/fstab, both 6.1.14-1-lts and 6.2.1-arch1-1 boot fine, although /dev/sda is not detected by fdisk, gdisk, lsblk, blkid, etc.

In summary, /dev/nvme0n1 has always been fine and the last kernel version that had no problems detecting /dev/sda was 6.1.12.arch1-1.  This is only happening to Archlinux, LTS and rolling, other distros, kernels 5.19 and 5.15, are working as usual with the swap partition on /dev/sda.

I also have a older laptop with a single SATA drive (/dev/sda) and it works fine with Archlinux kernels 6.1.14-1-lts and rolling 6.2.1-arch1-1.

I searched for a while and have not seem similar reports, as of Feb 28, 2023.  The version number for 6.1.13 is not complete but I believe it might be irrelevant at this point.

Offline

#14 2023-02-28 17:40:11

d.ALT
Member
Registered: 2019-05-10
Posts: 943

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

<OT>
Reading around the forum there seems to be a lot of weird stuff going on with both latest linux and linux-lts during last days...
For example, I went upgrading latest linux-lts onto my home File Server and computer was continuously and endlessly rebooting just after trying to load the initrd (past the GRUB phase).
I was in a hurry, so I manually downgraded linux-lts to 5.15.94
</OT>


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#15 2023-02-28 18:09:49

Blitz67
Member
Registered: 2012-11-03
Posts: 28

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

However, I have an Intel NUC with a similar configuration: nvme + sda. I also upgraded it to linux 6.2.1.arch1-1 today.

lsblk 
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
sda           8:0    0 894,3G  0 disk 
└─sda1        8:1    0 894,3G  0 part /mnt/storage
nvme0n1     259:0    0 223,6G  0 disk 
├─nvme0n1p1 259:1    0   512M  0 part /boot
├─nvme0n1p2 259:2    0    36G  0 part [SWAP]
└─nvme0n1p3 259:3    0 187,1G  0 part /

The Intel NUC has an Inte Core i5-10210U processor and a SATA controller:

00:17.0 SATA controller: Intel Corporation Comet Lake SATA AHCI Controller (prog-if 01 [AHCI 1.0])
        Subsystem: Intel Corporation Device 2081
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 128
        IOMMU group: 8
        Region 0: Memory at 56320000 (32-bit, non-prefetchable) [size=8K]
        Region 1: Memory at 56323000 (32-bit, non-prefetchable) [size=256]
        Region 2: I/O ports at 3090 [size=8]
        Region 3: I/O ports at 3080 [size=4]
        Region 4: I/O ports at 3060 [size=32]
        Region 5: Memory at 56322000 (32-bit, non-prefetchable) [size=2K]
        Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
                Address: fee00338  Data: 0000
        Capabilities: [70] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot+,D3cold-)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [a8] SATA HBA v1.0 BAR4 Offset=00000004
        Kernel driver in use: ahci

dmesg | grep -Ei '00:17\.0|sda'

[    0.561828] pci 0000:00:17.0: [8086:02d3] type 00 class 0x010601
[    0.561845] pci 0000:00:17.0: reg 0x10: [mem 0x56320000-0x56321fff]
[    0.561854] pci 0000:00:17.0: reg 0x14: [mem 0x56323000-0x563230ff]
[    0.561863] pci 0000:00:17.0: reg 0x18: [io  0x3090-0x3097]
[    0.561872] pci 0000:00:17.0: reg 0x1c: [io  0x3080-0x3083]
[    0.561881] pci 0000:00:17.0: reg 0x20: [io  0x3060-0x307f]
[    0.561890] pci 0000:00:17.0: reg 0x24: [mem 0x56322000-0x563227ff]
[    0.561940] pci 0000:00:17.0: PME# supported from D3hot
[    0.669887] pci 0000:00:17.0: Adding to iommu group 8
[    1.764885] ahci 0000:00:17.0: version 3.0
[    1.765266] ahci 0000:00:17.0: AHCI 0001.0301 32 slots 1 ports 6 Gbps 0x4 impl SATA mode
[    1.765273] ahci 0000:00:17.0: flags: 64bit ncq sntf pm clo only pio slum part deso sadm sds apst 
[    2.107938] sd 2:0:0:0: [sda] 1875385008 512-byte logical blocks: (960 GB/894 GiB)
[    2.107959] sd 2:0:0:0: [sda] Write Protect is off
[    2.107965] sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    2.107992] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.108023] sd 2:0:0:0: [sda] Preferred minimum I/O size 512 bytes
[    2.123195]  sda: sda1
[    2.123504] sd 2:0:0:0: [sda] Attached SCSI disk
[    4.988144] EXT4-fs (sda1): mounted filesystem 1b61206d-a904-4ee8-b6f1-74821ded41c0 with ordered data mode. Quota mode: none.

Maybe the chipset has some effect?

chanow, what is the configuration of your computer?

On the laptop where the sda stopped working: Intel Core i5-1135G7

Last edited by Blitz67 (2023-02-28 18:12:42)

Offline

#16 2023-02-28 18:18:30

loqs
Member
Registered: 2014-03-06
Posts: 18,047

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

If you set the kernel parameter iommu=off is the result the same?

Offline

#17 2023-02-28 18:25:16

Blitz67
Member
Registered: 2012-11-03
Posts: 28

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

loqs wrote:

If you set the kernel parameter iommu=off is the result the same?

I have set this parameter, but nothing has changed.

Offline

#18 2023-02-28 20:22:13

chanow
Member
Registered: 2021-04-13
Posts: 10

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

Blitz67 wrote:
loqs wrote:

If you set the kernel parameter iommu=off is the result the same?

I have set this parameter, but nothing has changed.

Same here, I added the parameter and no change.

My laptop is a stock Acer A515-56-32DK (i3-1115G4), to which I added a SATA HDD.  As I mentioned previously, until kernel 6.1.12.arch1-1, it was working fine with all Linux OSes installed and using /dev/sda as swap.  Only kernels > 6.1.12.arch1-1 show this weird behavior of completely ignoring the existence of /dev/sda.

Offline

#19 2023-02-28 20:38:45

topcat01
Member
Registered: 2019-09-17
Posts: 133

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

I'm assuming the BIOS is set to AHCI mode. The "SATA link down" message with the new kernel is definitely problematic. Any other BIOS settings that the OP can try? For example, some BIOSs have a SATA mode in addition to AHCI.
Also, is updating the BIOS an option?

Offline

#20 2023-02-28 20:52:05

loqs
Member
Registered: 2014-03-06
Posts: 18,047

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

What about the kernel [6] linux-6.1.r7411.g1ca06f1c1ace-1-x86_64.pkg.tar.zst from https://bugs.archlinux.org/task/77632#comment215509 if that is bad try linux-6.1.r3656.g8715c6d3100f-1-x86_64.pkg.tar.zst two posts lower on the bug report.

Offline

#21 2023-02-28 21:11:04

seth
Member
Registered: 2012-09-03
Posts: 58,728

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

Another curiosity is that

ata2: SATA link down (SStatus 0 SControl 300)

turned

ata2: SATA link down (SStatus 4 SControl 300)

Next to the bisecting kernels, try to suspend and wake the system and see whether the drive shows up.
Also, obligatory

chanow wrote:

I have a laptop with multiple linux distros and Windows.

3rd link below. Mandatory.
Disable it (it's NOT the BIOS setting!) and reboot windows and linux twice for voodo reasons.
(Though since we've a kernel version dependent pattern, I doubt this is relevant)

Offline

#22 2023-02-28 22:25:24

chanow
Member
Registered: 2021-04-13
Posts: 10

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

As a double check on what I've written before regarding the kernel versions, I downgraded kernels 6.2.1-arch1-1 to 6.1.12.arch1-1, and 6.1.14-1-lts to 6.1.12-1-lts, according to instructions from https://wiki.archlinux.org/title/Downgr … the_kernel .

As expected, references to /dev/sda are all back to normal under kernels 6.1.12.arch1-1 and 6.1.12-1-lts.  Fortunately there were no dependencies that had to be downgraded along, which could have snowballed into a bunch of other packages besides the kernel ones.

So this pretty much confirms that 6.1.12 is the last version to work properly regarding /dev/sda on my laptop.  This is happening regardless of the settings related to AHCI, Windows Fast Boot, BIOS Setups, etc...

As for all other OSes, they are still fine, so I can pretty much discard hardware and firmware issues and most likely pinpoint this weird behavior on Archlinux kernels above 6.1.12.  It might be related to my specific setup, hardware, firmware, or software, but from my point of view, the higher probability still hangs over kernels above 6.1.12.  My worst fear is that whenever the kernels of the other Linux OSes are upgraded beyond 6.1.12, this odd behavior resurfaces.

Last edited by chanow (2023-02-28 22:43:41)

Offline

#23 2023-02-28 22:54:40

topcat01
Member
Registered: 2019-09-17
Posts: 133

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

Ubuntu has a mainline kernel repo which now has a 6.2 kernel. It might be worth testing if you're up for it. Sorry this is slightly off topic.
https://wiki.ubuntu.com/Kernel/MainlineBuilds

Last edited by topcat01 (2023-02-28 22:55:55)

Offline

#24 2023-03-01 01:05:03

chanow
Member
Registered: 2021-04-13
Posts: 10

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

It might be a little late, but I'd like to apologize to Blitz67, as it looks like I'm hijacking his thread, but I believe our issues are related.  Downgrading to 6.1.12.arch1-1 has restored a sense of normalcy in my case, although I will have to pin the kernel versions and prevent upgrades by using the IgnorePkg option in /etc/pacman.conf.

As an update, I have a bootable USB thumb drive with Archlinux 6.1.12.arch1-1, Archlinux 6.1.13.1-lts, Devuan with kernel 5.19, and Mint with kernel 5.15.  Except for Archlinux 6.1.13.1-lts, all of them recognize the internal SATA HDD as /dev/sda, USB Drive as /dev/sdb, and NVME as /dev/nvme0n1.  Archlinux 6.1.13.1-lts ignores the internal SATA HDD and sees the USB Drive as /dev/sda and NVME as /dev/nvme0n1.  This was done without any changes to the hardware or firmware (AHCI, EFI, Windows Fast Boot, etc...)

So for now, this is another clue that there might be some incompatibility between Archlinux kernel > 6.1.12.arch1-1 and this laptop setup with regards to the internal SATA HDD.

It might take a while, but on topcat01's suggestion, perhaps I can try upgrading the kernel on Mint, a Ubuntu derivative, and see if the same issue arises.

Offline

#25 2023-03-01 06:29:40

Blitz67
Member
Registered: 2012-11-03
Posts: 28

Re: [SOLVED] SSD drive disappeared after upgrade to linux-6.2.1.arch1-1

Dear chanow, there is no need to apologize. Any information and advice that forum users have to offer is useful to me. That is why I have asked for help.

My laptop (L3-15ITL6 ideapad - type 82HL) has no BIOS setting for SATA / AHCI. There is a BIOS update on the Lenovo website. I will try the BIOS update first.

Offline

Board footer

Powered by FluxBB