diff options
author | Francois Dugast <francois.dugast@intel.com> | 2023-11-22 14:38:26 +0000 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-21 11:45:19 -0500 |
commit | 60a6a849fcb338b8a3f3d1ec9ec50c002add925a (patch) | |
tree | 09700cc110ab65ccb4d075d8d48a626cb4a168ac /mm/memblock.c | |
parent | 71c625aa770d4bd2b0901a9da3820fb89636e1a1 (diff) | |
download | linux-stable-60a6a849fcb338b8a3f3d1ec9ec50c002add925a.tar.gz linux-stable-60a6a849fcb338b8a3f3d1ec9ec50c002add925a.tar.bz2 linux-stable-60a6a849fcb338b8a3f3d1ec9ec50c002add925a.zip |
drm/xe/uapi: Align on a common way to return arrays (engines)
The uAPI provides queries which return arrays of elements. As of now
the format used in the struct is different depending on which element
is queried. Fix this for engines by applying the pattern below:
struct drm_xe_query_Xs {
__u32 num_Xs;
struct drm_xe_X Xs[];
...
}
Instead of directly returning an array of struct
drm_xe_query_engine_info, a new struct drm_xe_query_engines is
introduced. It contains itself an array of struct drm_xe_engine
which holds the information about each engine.
v2: Use plural for struct drm_xe_query_engines as multiple engines
are returned (José Roberto de Souza)
Signed-off-by: Francois Dugast <francois.dugast@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'mm/memblock.c')
0 files changed, 0 insertions, 0 deletions