]> Git Repo - linux.git/commit
drm/i915/uapi: add probed_cpu_visible_size
authorMatthew Auld <[email protected]>
Wed, 29 Jun 2022 17:43:39 +0000 (18:43 +0100)
committerMatthew Auld <[email protected]>
Fri, 1 Jul 2022 07:29:59 +0000 (08:29 +0100)
commit3f4309cbdc8496373875cfce67d7b5dba87c3ccb
tree70bf2f1520ec052fec5612fb50f4b851e248008b
parentfff1d972f42e7e9a89376378f6a23be1ead16aa1
drm/i915/uapi: add probed_cpu_visible_size

Userspace wants to know the size of CPU visible portion of device
local-memory, and on small BAR devices the probed_size is no longer
enough. In Vulkan, for example, it would like to know the size in bytes
for CPU visible VkMemoryHeap. We already track the io_size for each
region, so plumb that through to the region query.

v2: Drop the ( -1 = unknown ) stuff, which is confusing since nothing
can currently ever return such a value.

Testcase: igt@i915_query@query-regions-sanity-check
Signed-off-by: Matthew Auld <[email protected]>
Cc: Thomas Hellström <[email protected]>
Cc: Lionel Landwerlin <[email protected]>
Cc: Tvrtko Ursulin <[email protected]>
Cc: Jon Bloomfield <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Jordan Justen <[email protected]>
Cc: Kenneth Graunke <[email protected]>
Cc: Akeem G Abodunrin <[email protected]>
Acked-by: Nirmoy Das <[email protected]>
Reviewed-by: Thomas Hellström <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/i915_query.c
include/uapi/drm/i915_drm.h
This page took 0.062503 seconds and 4 git commands to generate.