diff options
author | Zack Rusin <zack.rusin@broadcom.com> | 2024-08-16 21:32:06 +0300 |
---|---|---|
committer | Zack Rusin <zack.rusin@broadcom.com> | 2024-08-26 07:19:40 +0300 |
commit | 50f1199250912568606b3778dc56646c10cb7b04 (patch) | |
tree | 54dd6832aeb13e4189daa95ada6c3e0c658545f7 /drivers/vdpa | |
parent | aba07b9a0587f50e5d3346eaa19019cf3f86c0ea (diff) | |
download | linux-50f1199250912568606b3778dc56646c10cb7b04.tar.xz |
drm/vmwgfx: Fix prime with external buffers
Make sure that for external buffers mapping goes through the dma_buf
interface instead of trying to access pages directly.
External buffers might not provide direct access to readable/writable
pages so to make sure the bo's created from external dma_bufs can be
read dma_buf interface has to be used.
Fixes crashes in IGT's kms_prime with vgem. Regular desktop usage won't
trigger this due to the fact that virtual machines will not have
multiple GPUs but it enables better test coverage in IGT.
Signed-off-by: Zack Rusin <zack.rusin@broadcom.com>
Fixes: b32233acceff ("drm/vmwgfx: Fix prime import/export")
Cc: <stable@vger.kernel.org> # v6.6+
Cc: Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>
Cc: dri-devel@lists.freedesktop.org
Cc: <stable@vger.kernel.org> # v6.9+
Link: https://patchwork.freedesktop.org/patch/msgid/20240816183332.31961-3-zack.rusin@broadcom.com
Reviewed-by: Martin Krastev <martin.krastev@broadcom.com>
Reviewed-by: Maaz Mombasawala <maaz.mombasawala@broadcom.com>
Diffstat (limited to 'drivers/vdpa')
0 files changed, 0 insertions, 0 deletions