History

drm/xe/uapi: Expose the L3 bank mask

The L3 bank mask is already generated and stored internally with the rest of the GT topology. In user space, the compute runtime now needs this information to be added to the device properties therefore the topology mask query is extended to provide a new mask which represents the L3 banks enabled on the GT. The changes in the compute runtime are ready and approved, see link below. v2: Rewrite commit message and add a link to the compute runtime PR (Francois Dugast)

Francois Dugast committed 2 years ago

Commit 995f7da1 parent 188ced12 files · +10 −1Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/drm/xe_drm.h+2−0
@@ -508,6 +508,7 @@ struct drm_xe_query_gt_list { · 507 unmodified lines
508 * containing the following in mask:508 * containing the following in mask:
509 * ``DSS_COMPUTE ff ff ff ff 00 00 00 00``509 * ``DSS_COMPUTE ff ff ff ff 00 00 00 00``
510 * means 32 DSS are available for compute.510 * means 32 DSS are available for compute.
511 * - %DRM_XE_TOPO_L3_BANK - To query the mask of enabled L3 banks
511 * - %DRM_XE_TOPO_EU_PER_DSS - To query the mask of Execution Units (EU)512 * - %DRM_XE_TOPO_EU_PER_DSS - To query the mask of Execution Units (EU)
512 * available per Dual Sub Slices (DSS). For example a query response513 * available per Dual Sub Slices (DSS). For example a query response
513 * containing the following in mask:514 * containing the following in mask:
@@ -520,6 +521,7 @@ struct drm_xe_query_topology_mask { · 6 unmodified lines
520 521
521#define DRM_XE_TOPO_DSS_GEOMETRY 1522#define DRM_XE_TOPO_DSS_GEOMETRY 1
522#define DRM_XE_TOPO_DSS_COMPUTE 2523#define DRM_XE_TOPO_DSS_COMPUTE 2
524#define DRM_XE_TOPO_L3_BANK 3
523#define DRM_XE_TOPO_EU_PER_DSS 4525#define DRM_XE_TOPO_EU_PER_DSS 4
524 /** @type: type of mask */526 /** @type: type of mask */
525 __u16 type;527 __u16 type;