]> git.itanic.dy.fi Git - linux-stable/commit
drm/vmwgfx: Enable DMA mappings with SEV
authorZack Rusin <zack.rusin@broadcom.com>
Mon, 8 Apr 2024 02:28:02 +0000 (22:28 -0400)
committerZack Rusin <zack.rusin@broadcom.com>
Tue, 9 Apr 2024 17:36:05 +0000 (13:36 -0400)
commit4c08f01934ab67d1d283d5cbaa52b923abcfe4cd
tree4f4fd46517b858495b0855365ccdc18f1e08e7a3
parent3eadd887dbac1df8f25f701e5d404d1b90fd0fea
drm/vmwgfx: Enable DMA mappings with SEV

Enable DMA mappings in vmwgfx after TTM has been fixed in commit
3bf3710e3718 ("drm/ttm: Add a generic TTM memcpy move for page-based iomem")

This enables full guest-backed memory support and in particular allows
usage of screen targets as the presentation mechanism.

Signed-off-by: Zack Rusin <zack.rusin@broadcom.com>
Reported-by: Ye Li <ye.li@broadcom.com>
Tested-by: Ye Li <ye.li@broadcom.com>
Fixes: 3b0d6458c705 ("drm/vmwgfx: Refuse DMA operation when SEV encryption is active")
Cc: Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>
Cc: dri-devel@lists.freedesktop.org
Cc: <stable@vger.kernel.org> # v6.6+
Reviewed-by: Martin Krastev <martin.krastev@broadcom.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240408022802.358641-1-zack.rusin@broadcom.com
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c