Public bug reported:

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.

[ Test plan ]

Install the kernel with the said fix, and run workload on the storage.
The 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]/

** Affects: linux (Ubuntu)
     Importance: Undecided
     Assignee: Leo Lin (0xff07)
         Status: New


** Tags: originate-from-2166804

** 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.
  
- 
  [ Test plan ]
  
  Install the kernel with the said fix, and run workload on the storage.
  The storage shouldn't be corrupted.
- 
  
  [ Where problems could occur ]
  
  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]/

** 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.
  
  [ Test plan ]
  
  Install the kernel with the said fix, and run workload on the storage.
  The storage shouldn't be corrupted.
  
  [ Where problems could occur ]
  
- This disables certain enhancement feature on PHX/HPT/STX/KRK/STXH
- platforms. Normal PCIe AtomicOp should not get impacted.
+ 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]/

** Changed in: linux (Ubuntu)
     Assignee: (unassigned) => Leo Lin (0xff07)

** Tags added: originate-from-2166804

-- 
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

Reply via email to