I have u7621-06 router and it has ASM1062 SATA controller. Unfortunately it has a weird problem in Linux kernel. I was hoping that it'd be fixed in 5.15 but it didn't.
According to this post https://forums.linuxmint.com/viewtopic.php?t=121810 there's a workaround
I then disabled the pci-passthrough of that SATA controller and voila - the Transcend ASM1062 SATA controller card and the connected HDD are now recognized.
I really need this because WiFi 2.4ghz causing interference with USB3.0 port and HDD is getting disconnected randomly.
Does anyone know how to disable "pci-passthrough" in OpenWRT?
bahtsiz_bedevi:
I have u7621-06 router and it has ASM1062 SATA controller. Unfortunately it has a weird problem in Linux kernel. I was hoping that it'd be fixed in 5.15 but it didn't.
According to this post https://forums.linuxmint.com/viewtopic.php?t=121810 there's a workaround
I then disabled the pci-passthrough of that SATA controller and voila - the Transcend ASM1062 SATA controller card and the connected HDD are now recognized.
This is a special workcase. The poster uses a Windows-VM on a Hypervisor. Since you're running OpenWrt on bare metal, this isn't applicable.
You could try a snapshot release for your router. Maybe this error is fixed in the newer kernel versions.
3 Likes
This actually seems to be your problem. Are you saying when you disable or don't use 2.4 GHz, the issues stops?
That's another common problem with USB3.0 & WiFi 2.4ghz https://openwrt.org/docs/guide-user/network/wifi/usb3.0-wifi-issues
My problem is ASM1062 SATA controller in OpenWRT.
Similar bug (I guess) is here https://bugzilla.kernel.org/show_bug.cgi?id=212695
This is the output of lspci from my router
root@router-sinan:~# lspci -s 01:00.0 -vv
01:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller (rev 01) (prog-if 01 [AHCI 1.0])
Subsystem: ASMedia Technology Inc. Device 1060
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
Interrupt: pin A routed to IRQ 30
Region 0: I/O ports at 0020 [size=8]
Region 1: I/O ports at 0030 [size=4]
Region 2: I/O ports at 0028 [size=8]
Region 3: I/O ports at 0034 [size=4]
Region 4: I/O ports at 0000 [size=32]
Region 5: Memory at 60000000 (32-bit, non-prefetchable) [size=512]
Expansion ROM at 60100000 [virtual] [disabled] [size=64K]
Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit-
Address: 00000000 Data: 0000
Capabilities: [78] 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: [80] 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 128 bytes, MaxReadReq 512 bytes
DevSta: CorrErr- NonFatalErr- FatalErr- UnsupReq- AuxPwr- TransPend-
LnkCap: Port #1, Speed 5GT/s, Width x1, ASPM not supported
ClockPM- Surprise- LLActRep- BwNot- ASPMOptComp-
LnkCtl: ASPM Disabled; RCB 64 bytes, Disabled- CommClk-
ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s (downgraded), Width x1
TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
DevCap2: Completion Timeout: Range ABC, 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- 10BitTagReq- OBFF Disabled,
AtomicOpsCtl: ReqEn-
LnkCtl2: Target Link Speed: 5GT/s, EnterCompliance- SpeedDis-
Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
Compliance Preset/De-emphasis: -6dB de-emphasis, 0dB preshoot
LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete- EqualizationPhase1-
EqualizationPhase2- EqualizationPhase3- LinkEqualizationRequest-
Retimer- 2Retimers- CrosslinkRes: unsupported
Capabilities: [100 v1] Virtual Channel
Caps: LPEVC=0 RefClk=100ns PATEntryBits=1
Arb: Fixed- WRR32- WRR64- WRR128-
Ctrl: ArbSelect=Fixed
Status: InProgress-
VC0: Caps: PATOffset=00 MaxTimeSlots=1 RejSnoopTrans-
Arb: Fixed- WRR32- WRR64- WRR128- TWRR128- WRR256-
Ctrl: Enable+ ID=0 ArbSelect=Fixed TC/VC=ff
Status: NegoPending- InProgress-
Kernel driver in use: ahci
lspci: Unable to load libkmod resources: error -2
Take a look at your system log if you see the same error messages as in the linked messages.
The output from lspci doesn't help this much in this case.
And as i wrote before, try a recent snapshot image for your router.
I think, they use a 6.1 kernel at the moment.
2 Likes
sata links go down immediately during the boot
Fri Dec 22 14:34:26 2023 kern.notice kernel: [ 3.802583] SCSI subsystem initialized
Fri Dec 22 14:34:26 2023 kern.debug kernel: [ 3.818534] libata version 3.00 loaded.
Fri Dec 22 14:34:26 2023 kern.debug kernel: [ 3.822854] ahci 0000:01:00.0: version 3.0
Fri Dec 22 14:34:26 2023 kern.info kernel: [ 3.822921] pci 0000:00:00.0: enabling device (0006 -> 0007)
Fri Dec 22 14:34:26 2023 kern.info kernel: [ 3.828656] ahci 0000:01:00.0: enabling device (0000 -> 0003)
Fri Dec 22 14:34:26 2023 kern.info kernel: [ 3.834633] ahci 0000:01:00.0: SSS flag set, parallel bus scan disabled
Fri Dec 22 14:34:26 2023 kern.info kernel: [ 3.841308] ahci 0000:01:00.0: AHCI 0001.0200 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
Fri Dec 22 14:34:26 2023 kern.info kernel: [ 3.849399] ahci 0000:01:00.0: flags: 64bit ncq sntf stag led clo pmp pio slum part ccc sxs
Fri Dec 22 14:34:26 2023 kern.info kernel: [ 3.860509] scsi host0: ahci
Fri Dec 22 14:34:26 2023 kern.info kernel: [ 3.865041] scsi host1: ahci
Fri Dec 22 14:34:26 2023 kern.info kernel: [ 3.868403] ata1: SATA max UDMA/133 abar m512@0x60000000 port 0x60000100 irq 30
Fri Dec 22 14:34:26 2023 kern.info kernel: [ 3.875849] ata2: SATA max UDMA/133 abar m512@0x60000000 port 0x60000180 irq 30
Fri Dec 22 14:34:26 2023 kern.info kernel: [ 4.215475] ata1: SATA link down (SStatus 0 SControl 300)
Fri Dec 22 14:34:26 2023 kern.info kernel: [ 4.545429] ata2: SATA link down (SStatus 0 SControl 300)