Skip to content

Commit f7916c4

Browse files
committed
nouveau: report byte usage in VRAM usage.
Turns out usage is always in bytes not shifted. Fixes: 72fa02f ("nouveau: add an ioctl to report vram usage") Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent f060e46 commit f7916c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/nouveau/nouveau_abi16.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ nouveau_abi16_ioctl_getparam(ABI16_IOCTL_ARGS)
269269
break;
270270
case NOUVEAU_GETPARAM_VRAM_USED: {
271271
struct ttm_resource_manager *vram_mgr = ttm_manager_type(&drm->ttm.bdev, TTM_PL_VRAM);
272-
getparam->value = (u64)ttm_resource_manager_usage(vram_mgr) << PAGE_SHIFT;
272+
getparam->value = (u64)ttm_resource_manager_usage(vram_mgr);
273273
break;
274274
}
275275
default:

0 commit comments

Comments
 (0)