]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Move read of snoop register from guest to host
authorMasha Grinman <Masha.Grinman@amd.com>
Thu, 3 Apr 2025 19:08:17 +0000 (14:08 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 11 Apr 2025 20:54:02 +0000 (16:54 -0400)
commit8ef4e996745b56ad6018e4120acf9ab530b72c2f
tree5317d49a6a0758378e49e76a087d6de2da4b1f5a
parent2aabd44aa8a3c08da3d43264c168370f6da5e81d
drm/amdgpu: Move read of snoop register from guest to host

Guest is reading/writing to snoop register which is a security violation
We moved the code to the host driver
And also added a validation on the guest side to check if it's guest

Signed-off-by: Masha Grinman <Masha.Grinman@amd.com>
Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c