aboutsummaryrefslogtreecommitdiff
path: root/include/uapi/drm/msm_drm.h
diff options
context:
space:
mode:
authorGravatar Matthew Auld <matthew.auld@intel.com> 2022-06-29 18:43:39 +0100
committerGravatar Matthew Auld <matthew.auld@intel.com> 2022-07-01 08:29:59 +0100
commit3f4309cbdc8496373875cfce67d7b5dba87c3ccb (patch)
tree70bf2f1520ec052fec5612fb50f4b851e248008b /include/uapi/drm/msm_drm.h
parentdrm/doc: add rfc section for small BAR uapi (diff)
downloadlinux-3f4309cbdc8496373875cfce67d7b5dba87c3ccb.tar.gz
linux-3f4309cbdc8496373875cfce67d7b5dba87c3ccb.tar.bz2
linux-3f4309cbdc8496373875cfce67d7b5dba87c3ccb.zip
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 <matthew.auld@intel.com> Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com> Cc: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com> Cc: Jon Bloomfield <jon.bloomfield@intel.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Cc: Jordan Justen <jordan.l.justen@intel.com> Cc: Kenneth Graunke <kenneth@whitecape.org> Cc: Akeem G Abodunrin <akeem.g.abodunrin@intel.com> Acked-by: Nirmoy Das <nirmoy.das@intel.com> Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220629174350.384910-2-matthew.auld@intel.com
Diffstat (limited to 'include/uapi/drm/msm_drm.h')
0 files changed, 0 insertions, 0 deletions