mirror-linux/drivers/gpu/drm/vmwgfx
Marko Kiiskila 7dfede7d7e drm/vmwgfx: Fix guests running with TDX/SEV
Commit 81256a50aa ("x86/mm: Make memremap(MEMREMAP_WB) map memory as
encrypted by default") changed the default behavior of
memremap(MEMREMAP_WB) and started mapping memory as encrypted.
The driver requires the fifo memory to be decrypted to communicate with
the host but was relaying on the old default behavior of
memremap(MEMREMAP_WB) and thus broke.

Fix it by explicitly specifying the desired behavior and passing
MEMREMAP_DEC to memremap.

Fixes: 81256a50aa ("x86/mm: Make memremap(MEMREMAP_WB) map memory as encrypted by default")
Signed-off-by: Marko Kiiskila <marko.kiiskila@broadcom.com>
Signed-off-by: Zack Rusin <zack.rusin@broadcom.com>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: linux-mm@kvack.org
Cc: linux-kernel@vger.kernel.org
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Link: https://lore.kernel.org/r/20250618192926.1092450-1-zack.rusin@broadcom.com
2025-06-30 23:10:11 -04:00
..
device_include
Kconfig PCI: Add CONFIG_MMU dependency 2025-04-23 15:40:30 -05:00
Makefile drm/vmwgfx: Refactor cursor handling 2025-03-10 14:30:33 -04:00
ttm_object.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
ttm_object.h
vmw_surface_cache.h
vmwgfx_binding.c
vmwgfx_binding.h
vmwgfx_blit.c drm/vmwgfx: Test for imported buffers with drm_gem_is_imported() 2025-04-14 10:53:11 +02:00
vmwgfx_bo.c drm/vmwgfx: Switch to exclusively using GEM references 2025-03-18 23:59:51 -04:00
vmwgfx_bo.h drm/vmwgfx: Switch to exclusively using GEM references 2025-03-18 23:59:51 -04:00
vmwgfx_cmd.c
vmwgfx_cmdbuf.c
vmwgfx_cmdbuf_res.c
vmwgfx_context.c
vmwgfx_cotable.c drm/vmwgfx: Switch to exclusively using GEM references 2025-03-18 23:59:51 -04:00
vmwgfx_cursor_plane.c drm/vmwgfx: Refactor cursor handling 2025-03-10 14:30:33 -04:00
vmwgfx_cursor_plane.h drm/vmwgfx: Refactor cursor handling 2025-03-10 14:30:33 -04:00
vmwgfx_devcaps.c
vmwgfx_devcaps.h
vmwgfx_drv.c drm/vmwgfx: Fix guests running with TDX/SEV 2025-06-30 23:10:11 -04:00
vmwgfx_drv.h drm/vmwgfx: Switch to exclusively using GEM references 2025-03-18 23:59:51 -04:00
vmwgfx_execbuf.c drm/vmwgfx: Add seqno waiter for sync_files 2025-03-10 14:31:43 -04:00
vmwgfx_fence.c
vmwgfx_fence.h
vmwgfx_gem.c drm/vmwgfx: Use dma_buf from GEM object instance 2025-04-14 10:53:11 +02:00
vmwgfx_gmr.c
vmwgfx_gmrid_manager.c
vmwgfx_ioctl.c
vmwgfx_irq.c
vmwgfx_kms.c drm/vmwgfx: Refactor cursor handling 2025-03-10 14:30:33 -04:00
vmwgfx_kms.h drm/vmwgfx: Refactor cursor handling 2025-03-10 14:30:33 -04:00
vmwgfx_ldu.c drm/vmwgfx: Refactor cursor handling 2025-03-10 14:30:33 -04:00
vmwgfx_mksstat.h
vmwgfx_mob.c drm/vmwgfx: Switch to exclusively using GEM references 2025-03-18 23:59:51 -04:00
vmwgfx_msg.c objtool, drm/vmwgfx: Don't ignore vmw_send_msg() for ORC 2025-03-28 14:47:02 +01:00
vmwgfx_msg_arm64.h
vmwgfx_msg_x86.h
vmwgfx_overlay.c
vmwgfx_page_dirty.c drm/vmwgfx: Refactor cursor handling 2025-03-10 14:30:33 -04:00
vmwgfx_prime.c
vmwgfx_reg.h
vmwgfx_resource.c drm/vmwgfx: Switch to exclusively using GEM references 2025-03-18 23:59:51 -04:00
vmwgfx_resource_priv.h
vmwgfx_scrn.c drm/vmwgfx: Switch to exclusively using GEM references 2025-03-18 23:59:51 -04:00
vmwgfx_shader.c drm/vmwgfx: Add new keep_resv BO param 2025-01-14 13:01:43 -05:00
vmwgfx_simple_resource.c
vmwgfx_so.c
vmwgfx_so.h
vmwgfx_stdu.c drm/vmwgfx: Refactor cursor handling 2025-03-10 14:30:33 -04:00
vmwgfx_streamoutput.c
vmwgfx_surface.c drm/vmwgfx: Switch to exclusively using GEM references 2025-03-18 23:59:51 -04:00
vmwgfx_system_manager.c
vmwgfx_ttm_buffer.c drm/vmwgfx: Add new keep_resv BO param 2025-01-14 13:01:43 -05:00
vmwgfx_va.c
vmwgfx_validation.c drm/vmwgfx: Switch to exclusively using GEM references 2025-03-18 23:59:51 -04:00
vmwgfx_validation.h
vmwgfx_vkms.c drm/vmwgfx: Switch to use hrtimer_setup() 2025-02-18 11:19:07 +01:00
vmwgfx_vkms.h