pci_decode: remove HDAUDIO quirk

With the updated driver the quirk for certain devices is no longer
necessary.

Issue #5331.
This commit is contained in:
Josef Söntgen 2024-08-16 15:00:35 +02:00 committed by Christian Helmuth
parent 3e82422d17
commit 9cf24c9f78

View File

@ -228,26 +228,10 @@ bus_t Main::parse_pci_function(Bdf bdf,
}); });
{ {
/* Apply GSI/MSI/MSI-X quirks based on vendor/device/class */ /* Apply GSI/MSI/MSI-X quirks based on vendor/device */
using Cc = Config::Class_code_rev_id;
bool const hdaudio = cfg.read<Cc::Class_code>() == 0x40300;
auto const vendor_id = cfg.read<Config::Vendor>(); auto const vendor_id = cfg.read<Config::Vendor>();
auto const device_id = cfg.read<Config::Device>(); auto const device_id = cfg.read<Config::Device>();
if (hdaudio && vendor_id == 0x1022 /* AMD */) {
/**
* see dde_bsd driver dev/pci/azalia.c
*
* PCI_PRODUCT_AMD_17_HDA
* PCI_PRODUCT_AMD_17_1X_HDA
* PCI_PRODUCT_AMD_HUDSON2_HDA
*/
if (device_id == 0x1457 || device_id == 0x15e3 ||
device_id == 0x780d)
msi = msi_x = false;
}
/* /*
* Force use of GSI on given ath9k device as using MSI * Force use of GSI on given ath9k device as using MSI
* does not work. * does not work.