]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/uapi: Add DRM_I915_QUERY_GEOMETRY_SUBSLICES
authorMatt Atwood <matthew.s.atwood@intel.com>
Thu, 14 Apr 2022 19:22:30 +0000 (12:22 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Fri, 15 Apr 2022 15:00:55 +0000 (08:00 -0700)
commit788b9574f405ad26768491407498d9cd5d09b981
treed2b2aca8990fcba28606391069b283e351d8c592
parentcd16a03d7c112477cfd3c37949e0502a009e762a
drm/i915/uapi: Add DRM_I915_QUERY_GEOMETRY_SUBSLICES

Newer platforms have DSS that aren't necessarily available for both
geometry and compute, two queries will need to exist. This introduces
the first, when passing a valid engine class and engine instance in the
flags returns a topology describing geometry.

Based on past discussion, we currently only support this new query item
on Xe_HP and beyond; earlier platforms do not need to worry about
geometry and compute pipelines having access to different topology and
should continue to use the existing topology query.

v2: fix white space errors
v3: change flags from hosting 2 8 bit numbers to holding a
i915_engine_class_instance struct
v4: add error if non rcs engine passed.
v5 (by MattR):
 - Improve kerneldoc and cross references to related structs/enums.
   (Daniel)
 - Clarify that geometry query is only supported on render engines
   (Francisco)
 - Clarify that the new query is only supported on Xe_HP+.
 - Fix checkpatch warnings.

Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Francisco Jerez <currojerez@riseup.net>
UMD (mesa): https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14143
Testcase: igt@i915_query@test-query-geometry-subslices
Signed-off-by: Matt Atwood <matthew.s.atwood@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20220414192230.749771-4-matthew.d.roper@intel.com
drivers/gpu/drm/i915/i915_query.c
include/uapi/drm/i915_drm.h