OSDN Git Service

drm/amdgpu: Add sysfs files for returning VRAM/GTT info v2
authorKent Russell <kent.russell@amd.com>
Thu, 28 Feb 2019 12:05:02 +0000 (07:05 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:04:02 +0000 (15:04 -0500)
commit55c374e9eb72be0de5d4fe2ef4d7803cd4ea6329
tree9f36f51832e46db2ab74948a91dec83864073bf6
parent07740adcbcd326060e142f6af674a036a5106c6f
drm/amdgpu: Add sysfs files for returning VRAM/GTT info v2

Add 6 files that return (in bytes):
The total amount of VRAM/visible VRAM/GTT
and the current total used VRAM/visible VRAM/GTT

v2: Split used and total into separate files

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Kent Russell <kent.russell@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c