[PATCH 2/2] drm/amdgpu: add AMDGPU_INFO_VM_STAT to return GPU VM

Christian König ckoenig.leichtzumerken at gmail.com
Tue Jan 3 08:33:07 UTC 2023


Take a look at /proc/self/fdinfo/$fd.

The Intel guys made that vendor agnostic and are using it within their 
IGT gpu top tool.

Christian.

Am 02.01.23 um 18:57 schrieb Marek Olšák:
> What are you talking about? Is fdinfo in sysfs? Userspace drivers 
> can't access sysfs.
>
> Marek
>
> On Mon, Jan 2, 2023, 10:56 Christian König 
> <ckoenig.leichtzumerken at gmail.com> wrote:
>
>     Well first of all don't mess with the VM internals outside of the
>     VM code.
>
>     Then why would we want to expose this through the IOCTL interface?
>     We already have this in the fdinfo.
>
>     Christian.
>
>     Am 30.12.22 um 23:07 schrieb Marek Olšák:
>>     To give userspace a detailed view about its GPU memory usage and
>>     evictions.
>>     This will help performance investigations.
>>
>>     Signed-off-by: Marek Olšák <marek.olsak at amd.com>
>>
>>     The patch is attached.
>>
>>     Marek
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20230103/82cfd3ae/attachment.htm>


More information about the amd-gfx mailing list