]> git.baikalelectronics.ru Git - kernel.git/commit
drm/ttm:fix wrong decoding of bo_count
authorMonk Liu <monk.liu@amd.com>
Thu, 10 Aug 2017 12:38:41 +0000 (20:38 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 29 Aug 2017 19:27:45 +0000 (15:27 -0400)
commitaebb1fb59b4263cd64c31c8a5dd3eeb95597f497
tree6eba9d71390d2974c1343a74da0763e54f8643c8
parent0e61363e754800a877cc565477bea3beedd77bc8
drm/ttm:fix wrong decoding of bo_count

we observe abnormal number from:
/sys/devices/virtual/drm/amdttm/buffer_objects/bo_count

bo_count is atomic_inc which is "int" type,
shouldn't explicitly turn it to unsigned long.

Signed-off-by: Monk Liu <monk.liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c