summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2024-02-26 08:16:10 +0100
committerDave Airlie <airlied@redhat.com>2024-03-01 06:26:28 +0100
commitf7916c47f66d778817068d86e5c9b5e511e23c86 (patch)
tree4c3b3c7d45362ee3219bce6d37571f475554ddf1 /drivers/gpu/drm/nouveau
parentMerge tag 'amd-drm-fixes-6.8-2024-02-29' of https://gitlab.freedesktop.org/ag... (diff)
downloadlinux-f7916c47f66d778817068d86e5c9b5e511e23c86.tar.xz
linux-f7916c47f66d778817068d86e5c9b5e511e23c86.zip
nouveau: report byte usage in VRAM usage.
Turns out usage is always in bytes not shifted. Fixes: 72fa02fdf833 ("nouveau: add an ioctl to report vram usage") Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r--drivers/gpu/drm/nouveau/nouveau_abi16.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_abi16.c b/drivers/gpu/drm/nouveau/nouveau_abi16.c
index cd14f993bdd1..80f74ee0fc78 100644
--- a/drivers/gpu/drm/nouveau/nouveau_abi16.c
+++ b/drivers/gpu/drm/nouveau/nouveau_abi16.c
@@ -269,7 +269,7 @@ nouveau_abi16_ioctl_getparam(ABI16_IOCTL_ARGS)
break;
case NOUVEAU_GETPARAM_VRAM_USED: {
struct ttm_resource_manager *vram_mgr = ttm_manager_type(&drm->ttm.bdev, TTM_PL_VRAM);
- getparam->value = (u64)ttm_resource_manager_usage(vram_mgr) << PAGE_SHIFT;
+ getparam->value = (u64)ttm_resource_manager_usage(vram_mgr);
break;
}
default: