diff options
author | Adrián Larumbe <[email protected]> | 2023-09-29 19:14:31 +0100 |
---|---|---|
committer | Boris Brezillon <[email protected]> | 2023-10-04 13:04:15 +0200 |
commit | 407c0ad5b19a477ff974a1c8007c00f01e7d04b5 (patch) | |
tree | 163e8401109b9458e67101f3cc4a427893c42f5f /drivers/gpu/drm/i915/selftests/i915_request.c | |
parent | 553c84892bac704e1a7999b7db7e67640a31a4fa (diff) |
drm/panfrost: Implement generic DRM object RSS reporting function
BO's RSS is updated every time new pages are allocated on demand and mapped
for the object at GPU page fault's IRQ handler, but only for heap buffers.
The reason this is unnecessary for non-heap buffers is that they are mapped
onto the GPU's VA space and backed by physical memory in their entirety at
BO creation time.
This calculation is unnecessary for imported PRIME objects, since heap
buffers cannot be exported by our driver, and the actual BO RSS size is the
one reported in its attached dmabuf structure.
Signed-off-by: Adrián Larumbe <[email protected]>
Reviewed-by: Boris Brezillon <[email protected]>
Reviewed-by: Steven Price <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Signed-off-by: Boris Brezillon <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/i915/selftests/i915_request.c')
0 files changed, 0 insertions, 0 deletions