diff options
author | Cai Huoqing <caihuoqing@baidu.com> | 2021-07-13 17:37:43 +0800 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2021-07-14 13:47:17 -0600 |
commit | 1bd9f1b14d1e9c1498bb03faf4e2bb945cf6542d (patch) | |
tree | dbd86641cc12be46c2801b62243717e69cfec638 /include/hw/pci | |
parent | 936555bc4f9efce1a9d35466845169c2c7566794 (diff) | |
download | qemu-1bd9f1b14d1e9c1498bb03faf4e2bb945cf6542d.zip qemu-1bd9f1b14d1e9c1498bb03faf4e2bb945cf6542d.tar.gz qemu-1bd9f1b14d1e9c1498bb03faf4e2bb945cf6542d.tar.bz2 |
vfio/pci: Add pba_offset PCI quirk for BAIDU KUNLUN AI processor
Fix pba_offset initialization value for BAIDU KUNLUN Virtual
Function device. The KUNLUN hardware returns an incorrect
value for the VF PBA offset, and add a quirk to instead
return a hardcoded value of 0xb400.
Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Link: https://lore.kernel.org/r/20210713093743.942-1-caihuoqing@baidu.com
[aw: comment & whitespace tuning]
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include/hw/pci')
-rw-r--r-- | include/hw/pci/pci_ids.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/hw/pci/pci_ids.h b/include/hw/pci/pci_ids.h index 5c14681..11abe22 100644 --- a/include/hw/pci/pci_ids.h +++ b/include/hw/pci/pci_ids.h @@ -227,6 +227,9 @@ #define PCI_VENDOR_ID_FREESCALE 0x1957 #define PCI_DEVICE_ID_MPC8533E 0x0030 +#define PCI_VENDOR_ID_BAIDU 0x1d22 +#define PCI_DEVICE_ID_KUNLUN_VF 0x3685 + #define PCI_VENDOR_ID_INTEL 0x8086 #define PCI_DEVICE_ID_INTEL_82378 0x0484 #define PCI_DEVICE_ID_INTEL_82441 0x1237 |