]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd109e59c8063f74f030a08641ddc1a8d071f3c29
treef8bafd2242c26ed3cb059d1e9ea250a2453a70cc
parente7306ff3ab33b5e6a3cbb5ac9d6f62ae94439c66
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