]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix the lpfn checking condition in drm buddy
authorMa Jun <Jun.Ma2@amd.com>
Wed, 14 Sep 2022 12:53:31 +0000 (20:53 +0800)
committerChristian König <christian.koenig@amd.com>
Tue, 8 Nov 2022 13:00:18 +0000 (14:00 +0100)
commite0b26b9482461e9528552f54fa662c2269f75b3f
tree47e28e3d5546f9f3028526fed07d24bca49ad4d5
parent653f2d94fcda200b02bd79cea2e0307b26c1b747
drm/amdgpu: Fix the lpfn checking condition in drm buddy

Because the value of man->size is changed during suspend/resume process,
use mgr->mm.size instead of man->size here for lpfn checking.

Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Suggested-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220914125331.2467162-1-Jun.Ma2@amd.com
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c