linux/drivers/gpu/drm/amd
Yunxiang Li 74ef9527bd drm/amdgpu: track bo memory stats at runtime
Before, every time fdinfo is queried we try to lock all the BOs in the
VM and calculate memory usage from scratch. This works okay if the
fdinfo is rarely read and the VMs don't have a ton of BOs. If either of
these conditions is not true, we get a massive performance hit.

In this new revision, we track the BOs as they change states. This way
when the fdinfo is queried we only need to take the status lock and copy
out the usage stats with minimal impact to the runtime performance. With
this new approach however, we would no longer be able to track active
buffers.

Signed-off-by: Yunxiang Li <Yunxiang.Li@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241219151411.1150-6-Yunxiang.Li@amd.com
Signed-off-by: Christian König <christian.koenig@amd.com>
2024-12-19 16:56:28 +01:00
..
acp drivers/gpu: Fix misalignment in comment block 2024-05-29 14:48:30 -04:00
amdgpu drm/amdgpu: track bo memory stats at runtime 2024-12-19 16:56:28 +01:00
amdkfd drm/amdkfd: hard-code cacheline for gc943,gc944 2024-12-02 18:34:57 -05:00
amdxcp drm/amd/amdxcp: Fix warnings 2024-05-08 15:17:05 -04:00
display drm/amd/dp_mst: Expose a connector to kernel users after it's properly initialized 2024-12-17 16:03:46 +02:00
include drm/amd: Add some missing straps from NBIO 7.11.0 2024-11-20 10:02:53 -05:00
pm drm/amd/pm: fix and simplify workload handling 2024-12-02 18:36:15 -05:00