Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

ASM1062 SATA controller doesn't work under kernel 5.10

Need help with peripherals or devices?
Post Reply
Message
Author
Lenry
Posts: 6
Joined: 2015-04-27 22:29

ASM1062 SATA controller doesn't work under kernel 5.10

#1 Post by Lenry »

Hi

Today I upgraded to bullseye. Everything went well, but after reboot I got a ton of errors regarding ata links, see attached picture
Image

If I reboot with a 4.x kernel, it works perfectly, as it did before (but I can't use my computer this way, as zfs kernel module doesn't load, it's not available for that kernel anymore), so the problem is with 5.x kernel.
How can I fix it?

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: ASM1062 SATA controller doesn't work under kernel 5.10

#2 Post by Aki »

Hello,

It would be useful to obtain more information.

Is this SATA controller in a PCI board (SATA multiplexer) or is it on the main board ?

Can you save the output of the system journal for the last boot with kernels 4.x and 5.10 ? For example, you could give the following command as root user:

Code: Select all

journalctl -b -0 > journalctl-$(uname -r).log
Then, it could be useful to analyze the output of following command for both kernels:

Code: Select all

lspci -vvv
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀


Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: ASM1062 SATA controller doesn't work under kernel 5.10

#4 Post by Aki »

Hello,

The differences between journatclt and lspci logs seem to point towards a different management of iommu [1] between the two kernels (4.19 e 5.10) with the following error that only appears in 5.10 kernel log:

Code: Select all

kernel: DMAR: [DMA Read] Request device [01:00.0] PASID ffffffff fault addr 67d74000 [fault reason 06] PTE Read access is not set
where device 01:00.0 is the SATA controller:

Code: Select all

01:00.0 SATA controller: Marvell Technology Group Ltd. 88SE9230 PCIe 2.0 x2 4-port SATA 6 Gb/s RAID Controller (rev 11) (prog-if 01 [AHCI 1.0])
You could empirically try to boot the 5.10 kernel adding on the kernel line (in grub) the following parameters to see it it helps:

Code: Select all

iommu=off intel_iommu=off iommu.passthrough=1 
[1] https://www.kernel.org/doc/html/latest/ ... iommu.html
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Lenry
Posts: 6
Joined: 2015-04-27 22:29

Re: ASM1062 SATA controller doesn't work under kernel 5.10

#5 Post by Lenry »

Hi

Very interesting, as it isn't the problematic SATA controller, that's the one integrated on the mainboard, the problem is with device 04:00.0 SATA controller: ASMedia Technology Inc. ASM1062 Serial ATA Controller.

But I gave your advice a try anyway, and it worked :D
Thank you very much

Aki
Global Moderator
Global Moderator
Posts: 2823
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 69 times
Been thanked: 385 times

Re: ASM1062 SATA controller doesn't work under kernel 5.10

#6 Post by Aki »

Hello,

I'm glad I helped you to sort it out.

Yes, your computer has two different Sata controllers and the iommu management seems to affects both with kernel 5.10.

In the meantime, I suppose it would be useful to open a specific bug report in the Debian Bug Tracking System (http: //bugs.debian.org) to inform the Debian maintainers and fix it without workarounds. If you need more information about that, just let me know.

Happy Debian & happy hacking.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

Post Reply