Ahci driver and Marvell 9130 on L4T R32.6.1

Hi,
I’m trying to get a marvell 9130 SATA controller to work on L4T R32.6.1, but AHCI driver return “controller reset failed (0x80000001)”. Where can there be a problem?

$ uname -a
Linux jetson-AGX 4.9.253-tegra #1 SMP PREEMPT Mon Jul 26 12:19:28 PDT 2021 aarch64 aarch64 aarch64 GNU/Linux
lsb_release
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.5 LTS
Release:        18.04
Codename:       bionic
dmesg
user@jetson-AGX:~$ dmesg | grep 0001:01:00.0
[   43.580261] pci 0001:01:00.0: [1b4b:9130] type 00 class 0x010601
[   43.580368] pci 0001:01:00.0: reg 0x10: [io  0x8000-0x8007]
[   43.580430] pci 0001:01:00.0: reg 0x14: [io  0x8040-0x8043]
[   43.580493] pci 0001:01:00.0: reg 0x18: [io  0x8100-0x8107]
[   43.580555] pci 0001:01:00.0: reg 0x1c: [io  0x8140-0x8143]
[   43.580617] pci 0001:01:00.0: reg 0x20: [io  0x800000-0x80001f]
[   43.580679] pci 0001:01:00.0: reg 0x24: [mem 0x00900000-0x009007ff]
[   43.580742] pci 0001:01:00.0: reg 0x30: [mem 0xd0000000-0xd000ffff pref]
[   43.580780] pci 0001:01:00.0: Enabling fixed DMA alias to 00.1
[   43.581093] pci 0001:01:00.0: PME# supported from D3hot
[   43.581334] iommu: Adding device 0001:01:00.0 to group 64
[   43.592941] pci 0001:01:00.0: BAR 6: assigned [mem 0x1230000000-0x123000ffff pref]
[   43.592947] pci 0001:01:00.0: BAR 5: assigned [mem 0x1230010000-0x12300107ff]
[   43.592974] pci 0001:01:00.0: BAR 4: assigned [io  0x100000-0x10001f]
[   43.593001] pci 0001:01:00.0: BAR 0: assigned [io  0x100020-0x100027]
[   43.593031] pci 0001:01:00.0: BAR 2: assigned [io  0x100028-0x10002f]
[   43.593058] pci 0001:01:00.0: BAR 1: assigned [io  0x100030-0x100033]
[   43.593081] pci 0001:01:00.0: BAR 3: assigned [io  0x100034-0x100037]
[   43.593211] pci 0001:01:00.0: Max Payload Size set to  256/ 512 (was  128), Max Read Rq  512
[   43.593461] pci 0001:01:00.0: Signaling PME through PCIe PME interrupt
[   43.593928] ahci 0001:01:00.0: version 3.0
[   44.592833] ahci 0001:01:00.0: controller reset failed (0x80000001)
[   44.593200] ahci: probe of 0001:01:00.0 failed with error -5
/proc/config.gz
vxuser@jetson-AGX:~$ zcat /proc/config.gz | grep -i ahci
CONFIG_SATA_AHCI=y
CONFIG_SATA_AHCI_PLATFORM=y
# CONFIG_AHCI_CEVA is not set
CONFIG_AHCI_TEGRA_DOWNSTREAM=y
# CONFIG_AHCI_TEGRA is not set
# CONFIG_AHCI_QORIQ is not set
# CONFIG_SATA_ACARD_AHCI is not set
# CONFIG_SATA_AHCI_TEGRA_SHIELD is not set
lspci
0001:01:00.0 0106: 1b4b:9130 (rev 20) (prog-if 01 [AHCI 1.0])
        Subsystem: 1b4b:9130
        Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Interrupt: pin A routed to IRQ 35
        Region 0: I/O ports at 100020 [size=8]
        Region 1: I/O ports at 100030 [size=4]
        Region 2: I/O ports at 100028 [size=8]
        Region 3: I/O ports at 100034 [size=4]
        Region 4: I/O ports at 100000 [size=32]
        Region 5: Memory at 1230010000 (32-bit, non-prefetchable) [size=2K]
        Expansion ROM at 1230000000 [disabled] [size=64K]
        Capabilities: [40] 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: [50] MSI: Enable- Count=1/1 Maskable- 64bit-
                Address: fffff000  Data: 0000
        Capabilities: [70] Express (v2) Legacy Endpoint, MSI 00
                DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s <1us, L1 <8us
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop-
                        MaxPayload 256 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
                LnkCap: Port #0, Speed 5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <512ns, L1 <64us
                        ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp+
                LnkCtl: ASPM L0s Enabled; RCB 64 bytes Disabled- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Not Supported, TimeoutDis+, LTR-, OBFF Not Supported
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
                LnkCtl2: Target Link Speed: 5GT/s, EnterCompliance- SpeedDis-
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
                         Compliance De-emphasis: -6dB
                LnkSta2: Current De-emphasis Level: -6dB, EqualizationComplete-, EqualizationPhase1-
                         EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
        Capabilities: [e0] SATA HBA v1.0 BAR4 Offset=00000004
        Capabilities: [100 v2] Advanced Error Reporting
                UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
                CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr-
                CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- NonFatalErr+
                AERCap: First Error Pointer: 00, GenCap- CGenEn- ChkCap- ChkEn-

on my system: Ubuntu 20.04.3 LTS, Linux 5.11.0-44-generic

my lspci
01:00.0 0106: 1b4b:9130 (rev 20) (prog-if 01 [AHCI 1.0])
        Subsystem: 1b4b:9130
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0, Cache Line Size: 64 bytes
        Interrupt: pin A routed to IRQ 136
        Region 0: I/O ports at e050 [size=8]
        Region 1: I/O ports at e040 [size=4]
        Region 2: I/O ports at e030 [size=8]
        Region 3: I/O ports at e020 [size=4]
        Region 4: I/O ports at e000 [size=32]
        Region 5: Memory at f7010000 (32-bit, non-prefetchable) [size=2K]
        Expansion ROM at f7000000 [disabled] [size=64K]
        Capabilities: [40] 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: [50] MSI: Enable+ Count=1/1 Maskable- 64bit-
                Address: fee00418  Data: 0000
        Capabilities: [70] Express (v2) Legacy Endpoint, MSI 00
                DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s <1us, L1 <8us
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
                DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq-
                        RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop-
                        MaxPayload 256 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr+ NonFatalErr- FatalErr- UnsupReq+ AuxPwr- TransPend-
                LnkCap: Port #0, Speed 5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <512ns, L1 <64us
                        ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp+
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- CommClk+
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 5GT/s (ok), Width x1 (ok)
                        TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Not Supported, TimeoutDis+, NROPrPrP-, LTR-
                         10BitTagComp-, 10BitTagReq-, OBFF Not Supported, ExtFmt-, EETLPPrefix-
                         EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
                         FRS-
                         AtomicOpsCap: 32bit- 64bit- 128bitCAS-
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-, LTR-, OBFF Disabled
                         AtomicOpsCtl: ReqEn-
                LnkCtl2: Target Link Speed: 5GT/s, EnterCompliance- SpeedDis-
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
                         Compliance De-emphasis: -6dB
                LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete-, EqualizationPhase1-
                         EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
        Capabilities: [e0] SATA HBA v1.0 BAR4 Offset=00000004
        Capabilities: [100 v2] Advanced Error Reporting
                UESta:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
                CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+
                CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+
                AERCap: First Error Pointer: 00, ECRCGenCap- ECRCGenEn- ECRCChkCap- ECRCChkEn-
                        MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
                HeaderLog: 00000000 00000000 00000000 00000000
        Kernel driver in use: ahci
        Kernel modules: ahci

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Why it’s Ubuntu 20.04.3 LTS, Linux 5.11?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.