** Description changed: https://bugs.launchpad.net/bugs/2166838 [ Impact ] We found a issue where if our BIOS enables certain enhanced features for PCIe atomics for PCI root port on a system where some devices don't support, it leads to malfunction on some of those devices. Currently this manifests as storage corruption on PCIe-connected SATA storage, but potentially can lead to more general PCIe device issues. [ Fix ] Cherry-pick a quirk for AMD platforms from this patcheset: - Fix for storage corruption w/ AMD IOMMU on 64-bit addressing[1] - The patch is currently under upstream review. Either this gets accepted - as 7.3-rcX fixes, or it lands in 7.4 merge window. + They can be found in following commits: + + 1. 4fde4482 (mainline) x86/PCI: Disable enhanced atomics on AMD NBIO 7.7 and 7.11 + 2. 6b28e0e7 (linux-next) Revert "ata: ahci: force 32-bit DMA for JMicron JMB582/JMB585" + + And a dependent patch to make these 2 apply cleanly: + + 1. 21e7b971 (mainline) ata: Use named initializers for pci_device_id + arrays + + This dependent patch simply cosmetic (e.g. replace struct initialization + with designated initializer) and functionally should make no difference + before and after. [ Test plan ] - Install the kernel with the said fix, and run workload on the storage. - The storage shouldn't be corrupted. + Install the kernel with the said fix, and run workload on the PCIe + storage to deplete 32bit DMA address for the given storage. When the + PCIe The storage start using 64 bit DMA address, content of that storage + shouldn't be corrupted. [ Where problems could occur ] The quirk is AMD-specific. This disables certain enhancement feature on PHX/HPT/STX/KRK/STXH platforms. Normal PCIe AtomicOp should not get impacted. Although this is more of a BIOS issue, it's unlikely to get BIOS update for all those platforms in the field. So adding a quirk in kernel would help mitigate that. [ Additional Information ] [1] https://lore.kernel.org/linux- ide/[email protected]/
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2166838 Title: [SRU] Fix for storage corruption on 64 bit DMA on AMD platforms To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2166838/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
