]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix for drm buddy memory corruption
authorArunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Thu, 14 Jul 2022 10:12:14 +0000 (03:12 -0700)
committerChristian König <christian.koenig@amd.com>
Fri, 15 Jul 2022 13:41:51 +0000 (15:41 +0200)
commitc9398ffd4450a32a8ed9b16c2874d2fb984ecfe3
tree4f8f52fc006cd49436a6778a49fd4148207b432a
parent7141069650977d2674a47c39127efc6203d2b6fd
drm/amdgpu: Fix for drm buddy memory corruption

User reported gpu page fault when running graphics applications
and in some cases garbaged graphics are observed as soon as X
starts. This patch fixes all the issues.

Fixed the typecast issue for fpfn and lpfn variables, thus
preventing the overflow problem which resolves the memory
corruption.

Signed-off-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Reported-by: Mike Lothian <mike@fireburn.co.uk>
Tested-by: Mike Lothian <mike@fireburn.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20220714101214.7620-1-Arunpravin.PaneerSelvam@amd.com
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.h