]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/uapi: Expose SIMD16 EU mask in topology query
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 10 Jul 2024 22:02:27 +0000 (15:02 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 18 Jul 2024 20:20:30 +0000 (13:20 -0700)
commit7108b4a589cd6d3a2c1276fd610b3500f46de66a
tree573ae3d461881cb4fea0c66c4e654c2b3e8421ed
parent5e4e1ed6b87b6b3a3531cd8b5cfa9c3b09d841b2
drm/xe/uapi: Expose SIMD16 EU mask in topology query

PVC, Xe2 and later platforms have 16-wide EUs. We were implicitly
reporting for PVC the number of 16-wide EUs without giving userspace any
hint that they were different than for other platforms. Xe2 and later
also have 16-wide, but in those cases the reported number would
correspond to the 8-wide count.

To avoid confusion and make sure the right number is used by userspace
depending on the platform, add a new item to the topology query and drop
the one that is not available. The new mask reported for both PVC and
Xe2 should now match the numbers reported via hwconfig.

v2: Use a different topo item with EU type in its name to report the
    new mask instead of adding the type itself as the item (Matt Roper)

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Acked-by: José Roberto de Souza <jose.souza@intel.com>
Acked-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
Acked-by: Wenbin Lu <wenbin.lu@intel.com>
Acked-by: Effie Yu <effie.yu@intel.com>
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240710220446.2169797-1-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_gt_topology.c
drivers/gpu/drm/xe/xe_gt_types.h
drivers/gpu/drm/xe/xe_query.c
include/uapi/drm/xe_drm.h