hisi_acc_vfio_pci: Fix device data address combination problem
authorLongfang Liu <liulongfang@huawei.com>
Mon, 26 Sep 2022 09:33:29 +0000 (17:33 +0800)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 27 Sep 2022 15:30:31 +0000 (09:30 -0600)
commit008e5e996f425f64c21755ebe77201895bbee3b8
treef8bafd2242c26ed3cb059d1e9ea250a2453a70cc
parent948f5ada58b552d975d1937a3f5939414f28cacb
hisi_acc_vfio_pci: Fix device data address combination problem

The queue address of the accelerator device should be combined into
a dma address in a way of combining the low and high bits.
The previous combination is wrong and needs to be modified.

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Longfang Liu <liulongfang@huawei.com>
Link: https://lore.kernel.org/r/20220926093332.28824-3-liulongfang@huawei.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c