You are not logged in.
A few days ago I installed a PCIe SATA card and attached a single SATA hard drive to it. It was working great until yesterday. I did a full system update, did a reboot, and now I can't see the hard drive - the drive isn't in the output for `lsblk`.
Here is the output of `lspci -v` - I see two SATA controllers in there, but I believe they are both built-in controllers for my motherboard.:
00:00.0 Host bridge: Intel Corporation 4th Gen Core Processor DRAM Controller (rev 06)
Subsystem: Gigabyte Technology Co., Ltd Device 5000
Flags: bus master, fast devsel, latency 0
Capabilities: [e0] Vendor Specific Information: Len=0c <?>
Kernel driver in use: hsw_uncore
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor PCI Express x16 Controller (rev 06) (prog-if 00 [Normal decode])
Subsystem: Gigabyte Technology Co., Ltd Device 5000
Flags: bus master, fast devsel, latency 0, IRQ 24
Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
I/O behind bridge: e000-efff [size=4K] [16-bit]
Memory behind bridge: f7e00000-f7efffff [size=1M] [32-bit]
Prefetchable memory behind bridge: e0000000-f01fffff [size=258M] [32-bit]
Capabilities: [88] Subsystem: Gigabyte Technology Co., Ltd Device 5000
Capabilities: [80] Power Management version 3
Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [a0] Express Root Port (Slot+), IntMsgNum 0
Capabilities: [100] Virtual Channel
Capabilities: [140] Root Complex Link
Capabilities: [d94] Secondary PCI Express
Kernel driver in use: pcieport
00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06) (prog-if 00 [VGA controller])
Subsystem: Gigabyte Technology Co., Ltd Device d000
Flags: bus master, fast devsel, latency 0, IRQ 31
Memory at f7800000 (64-bit, non-prefetchable) [size=4M]
Memory at d0000000 (64-bit, prefetchable) [size=256M]
I/O ports at f000 [size=64]
Expansion ROM at 000c0000 [virtual] [disabled] [size=128K]
Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [d0] Power Management version 2
Capabilities: [a4] PCI Advanced Features
Kernel driver in use: i915
Kernel modules: i915
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
Subsystem: Intel Corporation Device 2010
Flags: bus master, fast devsel, latency 0, IRQ 35
Memory at f7f34000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [70] Express Root Complex Integrated Endpoint, IntMsgNum 0
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:14.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB xHCI (rev 04) (prog-if 30 [XHCI])
Subsystem: Gigabyte Technology Co., Ltd Device 5007
Flags: bus master, medium devsel, latency 0, IRQ 30
Memory at f7f20000 (64-bit, non-prefetchable) [size=64K]
Capabilities: [70] Power Management version 2
Capabilities: [80] MSI: Enable+ Count=1/8 Maskable- 64bit+
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
00:16.0 Communication controller: Intel Corporation 8 Series/C220 Series Chipset Family MEI Controller #1 (rev 04)
Subsystem: Gigabyte Technology Co., Ltd Device 1c3a
Flags: bus master, fast devsel, latency 0, IRQ 33
Memory at f7f3f000 (64-bit, non-prefetchable) [size=16]
Capabilities: [50] Power Management version 3
Capabilities: [8c] MSI: Enable+ Count=1/1 Maskable- 64bit+
Kernel driver in use: mei_me
Kernel modules: mei_me
00:19.0 Ethernet controller: Intel Corporation Ethernet Connection I217-V (rev 04)
DeviceName: Onboard LAN
Subsystem: Gigabyte Technology Co., Ltd Device e000
Flags: bus master, fast devsel, latency 0, IRQ 34
Memory at f7f00000 (32-bit, non-prefetchable) [size=128K]
Memory at f7f3d000 (32-bit, non-prefetchable) [size=4K]
I/O ports at f080 [size=32]
Capabilities: [c8] Power Management version 2
Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [e0] PCI Advanced Features
Kernel driver in use: e1000e
Kernel modules: e1000e
00:1a.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #2 (rev 04) (prog-if 20 [EHCI])
Subsystem: Gigabyte Technology Co., Ltd Device 5006
Flags: bus master, medium devsel, latency 0, IRQ 16
Memory at f7f3c000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [50] Power Management version 2
Capabilities: [58] Debug port: BAR=1 offset=00a0
Capabilities: [98] PCI Advanced Features
Kernel driver in use: ehci-pci
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 04)
Subsystem: Gigabyte Technology Co., Ltd Device a002
Flags: bus master, fast devsel, latency 0, IRQ 36
Memory at f7f30000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Root Complex Integrated Endpoint, IntMsgNum 0
Capabilities: [100] Virtual Channel
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #1 (rev d4) (prog-if 00 [Normal decode])
Subsystem: Gigabyte Technology Co., Ltd Device 5001
Flags: bus master, fast devsel, latency 0, IRQ 25
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: [disabled] [16-bit]
Memory behind bridge: [disabled] [32-bit]
Prefetchable memory behind bridge: [disabled] [64-bit]
Capabilities: [40] Express Root Port (Slot+), IntMsgNum 0
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: Gigabyte Technology Co., Ltd Device 5001
Capabilities: [a0] Power Management version 3
Kernel driver in use: pcieport
00:1c.4 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #5 (rev d4) (prog-if 00 [Normal decode])
Subsystem: Gigabyte Technology Co., Ltd Device 5001
Flags: bus master, fast devsel, latency 0, IRQ 26
Bus: primary=00, secondary=03, subordinate=04, sec-latency=0
I/O behind bridge: [disabled] [16-bit]
Memory behind bridge: f7d00000-f7dfffff [size=1M] [32-bit]
Prefetchable memory behind bridge: [disabled] [64-bit]
Capabilities: [40] Express Root Port (Slot+), IntMsgNum 0
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: Gigabyte Technology Co., Ltd Device 5001
Capabilities: [a0] Power Management version 3
Kernel driver in use: pcieport
00:1c.5 PCI bridge: Intel Corporation 8 Series/C220 Series Chipset Family PCI Express Root Port #6 (rev d4) (prog-if 00 [Normal decode])
Subsystem: Gigabyte Technology Co., Ltd Device 5001
Flags: bus master, fast devsel, latency 0, IRQ 27
Bus: primary=00, secondary=05, subordinate=05, sec-latency=0
I/O behind bridge: d000-dfff [size=4K] [16-bit]
Memory behind bridge: f7c00000-f7cfffff [size=1M] [32-bit]
Prefetchable memory behind bridge: [disabled] [64-bit]
Capabilities: [40] Express Root Port (Slot+), IntMsgNum 0
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [90] Subsystem: Gigabyte Technology Co., Ltd Device 5001
Capabilities: [a0] Power Management version 3
Kernel driver in use: pcieport
00:1d.0 USB controller: Intel Corporation 8 Series/C220 Series Chipset Family USB EHCI #1 (rev 04) (prog-if 20 [EHCI])
Subsystem: Gigabyte Technology Co., Ltd Device 5006
Flags: bus master, medium devsel, latency 0, IRQ 23
Memory at f7f3b000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [50] Power Management version 2
Capabilities: [58] Debug port: BAR=1 offset=00a0
Capabilities: [98] PCI Advanced Features
Kernel driver in use: ehci-pci
00:1f.0 ISA bridge: Intel Corporation Z87 Express LPC Controller (rev 04)
Subsystem: Gigabyte Technology Co., Ltd Device 5001
Flags: bus master, medium devsel, latency 0
Capabilities: [e0] Vendor Specific Information: Len=0c <?>
Kernel driver in use: lpc_ich
Kernel modules: lpc_ich
00:1f.2 SATA controller: Intel Corporation 8 Series/C220 Series Chipset Family 6-port SATA Controller 1 [AHCI mode] (rev 04) (prog-if 01 [AHCI 1.0])
Subsystem: Gigabyte Technology Co., Ltd Device b005
Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 28
I/O ports at f0d0 [size=8]
I/O ports at f0c0 [size=4]
I/O ports at f0b0 [size=8]
I/O ports at f0a0 [size=4]
I/O ports at f060 [size=32]
Memory at f7f3a000 (32-bit, non-prefetchable) [size=2K]
Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [70] Power Management version 3
Capabilities: [a8] SATA HBA v1.0
Kernel driver in use: ahci
00:1f.3 SMBus: Intel Corporation 8 Series/C220 Series Chipset Family SMBus Controller (rev 04)
Subsystem: Gigabyte Technology Co., Ltd Device 5001
Flags: medium devsel, IRQ 18
Memory at f7f39000 (64-bit, non-prefetchable) [size=256]
I/O ports at f040 [size=32]
Kernel driver in use: i801_smbus
Kernel modules: i2c_i801
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] (rev c7) (prog-if 00 [VGA controller])
Subsystem: PC Partner Limited / Sapphire Technology Radeon RX 470/480
Flags: bus master, fast devsel, latency 0, IRQ 32
Memory at e0000000 (64-bit, prefetchable) [size=256M]
Memory at f0000000 (64-bit, prefetchable) [size=2M]
I/O ports at e000 [size=256]
Memory at f7e00000 (32-bit, non-prefetchable) [size=256K]
Expansion ROM at 000c0000 [disabled] [size=128K]
Capabilities: [48] Vendor Specific Information: Len=08 <?>
Capabilities: [50] Power Management version 3
Capabilities: [58] Express Legacy Endpoint, IntMsgNum 0
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Capabilities: [150] Advanced Error Reporting
Capabilities: [200] Physical Resizable BAR
Capabilities: [270] Secondary PCI Express
Capabilities: [2b0] Address Translation Service (ATS)
Capabilities: [2c0] Page Request Interface (PRI)
Capabilities: [2d0] Process Address Space ID (PASID)
Capabilities: [320] Latency Tolerance Reporting
Capabilities: [328] Alternative Routing-ID Interpretation (ARI)
Capabilities: [370] L1 PM Substates
Kernel driver in use: amdgpu
Kernel modules: amdgpu
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590]
Subsystem: PC Partner Limited / Sapphire Technology Device aaf0
Flags: bus master, fast devsel, latency 0, IRQ 37
Memory at f7e60000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [48] Vendor Specific Information: Len=08 <?>
Capabilities: [50] Power Management version 3
Capabilities: [58] Express Legacy Endpoint, IntMsgNum 0
Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
Capabilities: [150] Advanced Error Reporting
Capabilities: [328] Alternative Routing-ID Interpretation (ARI)
Kernel driver in use: snd_hda_intel
Kernel modules: snd_hda_intel
03:00.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 41) (prog-if 01 [Subtractive decode])
Subsystem: Gigabyte Technology Co., Ltd Device 8892
Flags: bus master, fast devsel, latency 0, IRQ 16
Bus: primary=03, secondary=04, subordinate=04, sec-latency=32
I/O behind bridge: [disabled] [32-bit]
Memory behind bridge: f7d00000-f7dfffff [size=1M] [32-bit]
Prefetchable memory behind bridge: [disabled] [64-bit]
Capabilities: [90] Power Management version 2
Capabilities: [a0] Subsystem: Gigabyte Technology Co., Ltd Device 8892
04:00.0 FireWire (IEEE 1394): NEC Corporation uPD72874 [Firewarden] IEEE1394a OHCI 1.1 Link/3-port PHY Controller (rev 01) (prog-if 10 [OHCI])
Subsystem: NEC Corporation uPD72874 [Firewarden] IEEE1394a OHCI 1.1 Link/3-port PHY Controller
Flags: bus master, medium devsel, latency 32, IRQ 16
Memory at f7d00000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [60] Power Management version 2
Kernel driver in use: firewire_ohci
Kernel modules: firewire_ohci
05:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9172 SATA 6Gb/s Controller (rev 11) (prog-if 01 [AHCI 1.0])
Subsystem: Gigabyte Technology Co., Ltd Device b000
Flags: bus master, fast devsel, latency 0, IRQ 29
I/O ports at d040 [size=8]
I/O ports at d030 [size=4]
I/O ports at d020 [size=8]
I/O ports at d010 [size=4]
I/O ports at d000 [size=16]
Memory at f7c10000 (32-bit, non-prefetchable) [size=512]
Expansion ROM at f7c00000 [disabled] [size=64K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit-
Capabilities: [70] Express Legacy Endpoint, IntMsgNum 0
Capabilities: [100] Advanced Error Reporting
Kernel driver in use: ahci
Last edited by uberben (2024-07-29 19:34:22)
Offline
I've never worked with a PCIE sata card, but the first things I would try is see if the BIOS detects it or (if sata expansion cards aren't detected by BIOS) boot a live environment (Arch install media or Sysrescuecd) and see if they detect it. If not, it's probably hardware related (maybe the card isn't seated properly, cable, etc).
Offline
Tried LTS kernel os some live distro?
"pcie_aspm=off"?
Are there any bus errors in the system journal/dmesg?
Online
there were a few changes to libata and ahci.c since start of the year (which I lead to a regression) - so this was added: https://git.kernel.org/pub/scm/linux/ke … ?h=for-6.9
please post your boot log so we can see what ahci.c thinks your hba has
Offline
Booting into LTS kernel brings it back. `lspci -v` now has this entry added:
02:00.0 SATA controller: ASMedia Technology Inc. ASM1166 Serial ATA Controller (rev 02) (prog-if 01 [AHCI 1.0])
Subsystem: ASMedia Technology Inc. Device 2116
Flags: bus master, fast devsel, latency 0, IRQ 29
Memory at f7a82000 (32-bit, non-prefetchable) [size=8K]
Memory at f7a80000 (32-bit, non-prefetchable) [size=8K]
Expansion ROM at f7a00000 [disabled] [size=512K]
Capabilities: [40] Power Management version 3
Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [80] Express Endpoint, IntMsgNum 0
Capabilities: [100] Advanced Error Reporting
Capabilities: [130] Secondary PCI Express
Capabilities: [170] Latency Tolerance Reporting
Capabilities: [200] L1 PM Substates
Kernel driver in use: ahci
None of my kernel loader config files had "pcie_aspm=off", but I added it to my mainline arch loader config and now I can see the PCIe SATA card with that kernel too.
Besides potentially higher power consumption, is there a downside to having "pcie_aspm=off" in there?
Offline
potentially higher power consumption
Any bus errors in the journal w/ aspm enabled?
Do you get away w/ "ahci.mobile_lpm_policy=1"?
You could also try to limit the ASPM restriction to the specific bus: https://www.reddit.com/r/linux4noobs/co … t/kev0i1q/
Ftr: break came w/ 6.9.x => 6.10?
Online
I'll have to dig into those other things a bit later.
I'm not sure when 6.10 got installed, but considering this PCIe SATA card was working for several days and seemed to break after an update and reboot, and LTS 6.6 works fine, the 6.9 -> 6.10 update seems like it might have been the culprit.
Offline
there were a few changes to libata and ahci.c since start of the year (which I lead to a regression) - so this was added: https://git.kernel.org/pub/scm/linux/ke … ?h=for-6.9
please post your boot log so we can see what ahci.c thinks your hba has
again: please post a log of a boot with working hba and a log of a failing boot - the debug output during boot might could reveal some informations
Offline