Page MenuHomeFreeBSD

pci_host_generic: remove unneeded ThunderX2 quirk
ClosedPublic

Authored by jchandra on Oct 22 2018, 11:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 13, 10:45 PM
Unknown Object (File)
Jan 15 2024, 11:21 AM
Unknown Object (File)
Dec 29 2023, 8:08 PM
Unknown Object (File)
Dec 22 2023, 11:44 AM
Unknown Object (File)
Dec 20 2023, 3:04 AM
Unknown Object (File)
Dec 13 2023, 8:19 AM
Unknown Object (File)
Oct 29 2023, 10:11 AM
Unknown Object (File)
Sep 25 2023, 2:35 PM
Subscribers

Details

Summary

The current implementation to write a fixed address to AHCI BARs is not
correct. The PCI address ranges are allocated by firmware and will
change depending on PCI devices present. Using a fixed value here is
not a viable option.

The newer firmware does not have this issue (and the older evaluation
Ax chips with SATA BAR issues are no longer in use), so it is better
to drop this quirk altogether, rather than to fix correctly.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Is there an easy way to tell which revision silicon we have? I'd like to check the TX2 I have access to.

Is there an easy way to tell which revision silicon we have? I'd like to check the TX2 I have access to.

The MIDR should have the revision info:
Older Broadcom Vulcan (with hardware issues): 0x420f516[12] - it is very unlikely this went out to anyone other than few early evaluation partners
Newer Cavium ThunderX2: 0x431f0af1 (revisions available are 0/1/2 they should be fine)

Firmware:
The older UEFI releases from Cavium has a serious bug - it programmed BAR2 (msix bar) of on board SATA controller with two 32-bit addresses, instead of a single 64-bit address. This has been fixed in newer firmware (getting this requires access to support.cavium.com). The current releases (7.0/7.1 etc) should have this fix.

You can get firmware version is from SMBIOS tables or from boot log. If you have linux, you can run dmidecode -t 0 and see if the BIOS version is ok.
The support site has firmware update instructions (there are chances that you will end up with a bricked system if you get it wrong).

This revision is now accepted and ready to land.Nov 1 2018, 12:15 PM
This revision was automatically updated to reflect the committed changes.