]> git.proxmox.com Git - mirror_qemu.git/commit - hw/vfio/pci.c
vfio/pci: Add pba_offset PCI quirk for BAIDU KUNLUN AI processor
authorCai Huoqing <caihuoqing@baidu.com>
Tue, 13 Jul 2021 09:37:43 +0000 (17:37 +0800)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 14 Jul 2021 19:47:17 +0000 (13:47 -0600)
commit1bd9f1b14d1e9c1498bb03faf4e2bb945cf6542d
treedbd86641cc12be46c2801b62243717e69cfec638
parent936555bc4f9efce1a9d35466845169c2c7566794
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>
hw/vfio/pci.c
include/hw/pci/pci_ids.h