]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix GTT size reporting in amdgpu_ioctl
authorMichel Dänzer <mdaenzer@redhat.com>
Fri, 10 Jun 2022 13:54:26 +0000 (15:54 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 15 Jun 2022 01:38:40 +0000 (21:38 -0400)
commiteec5ff133f0adfbb2334bef722a6a3aded4326d6
tree6453f5541083f06155c10ee571a1a316a499bd4c
parent29b7664d79d725d107e2a6db2ba81ca2506c84e6
drm/amdgpu: Fix GTT size reporting in amdgpu_ioctl

The commit below changed the TTM manager size unit from pages to
bytes, but failed to adjust the corresponding calculations in
amdgpu_ioctl.

Fixes: ed22eed0e7b5 ("drm/amdgpu: remove GTT accounting v2")
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1930
Bug: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6642
Tested-by: Martin Roukala <martin.roukala@mupuf.org>
Tested-by: Mike Lothian <mike@fireburn.co.uk>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Michel Dänzer <mdaenzer@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c