nouveau: add an ioctl to return vram bar size.
authorDave Airlie <airlied@redhat.com>
Wed, 24 Jan 2024 03:50:58 +0000 (13:50 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 23 Feb 2024 00:20:03 +0000 (10:20 +1000)
commit3f4d8aac6e768c2215ce68275256971c2f54f0c8
tree33de33593cdd8a58d4ff4dc965e9c8256f757ad3
parent1d492944d3d06047793fa2e7606868f6d7480f87
nouveau: add an ioctl to return vram bar size.

This returns the BAR resources size so userspace can make
decisions based on rebar support.

userspace using this has been proposed for nvk, but
it's a rather trivial uapi addition.

Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nouveau_abi16.c
include/uapi/drm/nouveau_drm.h