STRUCT AMDXDNA_DRM_QUERY_AIE_METADATA(9)
π struct amdxdna_drm_query_aie_metadata(9) π
okay so bestie, welcome to the Kernel API Manual β¨ β yes, that's the vibe, and yes, we're getting into the AIE hardware metadata struct, no cap π«Ά
πΈ NAME πΈ
struct amdxdna_drm_query_aie_metadata β literally the struct that lets you query the metadata of the AIE hardware π iykyk
β¨ SYNOPSIS β¨
struct amdxdna_drm_query_aie_metadata {
__u32 col_size;
__u16 cols;
__u16 rows;
struct amdxdna_drm_query_aie_version version;
struct amdxdna_drm_query_aie_tile_metadata core;
struct amdxdna_drm_query_aie_tile_metadata mem;
struct amdxdna_drm_query_aie_tile_metadata shim;
};
like, that's the whole shape of it, copy it exactly pls π
π¦ Members π¦
col_sizeβ the size of a column, in bytes π that's it, that's the unit, bytes, don't come for mecolsβ the total number of columns π the whole count, not a fractionrowsβ the total number of rows πΈ same energy, total countversionβ the version of the AIE hardware β so you know what generation you're dealing withcoreβ the metadata for all core tiles π₯ all of them, collectivelymemβ the metadata for all mem tiles π again, all of themshimβ the metadata for all shim tiles π§ yup, all of them too
π SEE ALSO π
the receipts bestie, here's where all this lives:
- Kernel file
./include/uapi/drm/amdxdna_accel.h
and the whole friend group of structs, not me listing every single one π but fr fr, all of these:
struct amdxdna_drm_create_hwctx(9)struct amdxdna_drm_destroy_hwctx(9)struct amdxdna_cu_config(9)struct amdxdna_hwctx_param_config_cu(9)struct amdxdna_drm_config_hwctx(9)struct amdxdna_drm_va_entry(9)struct amdxdna_drm_va_tbl(9)struct amdxdna_drm_create_bo(9)struct amdxdna_drm_get_bo_info(9)struct amdxdna_drm_sync_bo(9)struct amdxdna_drm_exec_cmd(9)struct amdxdna_drm_wait_cmd(9)struct amdxdna_drm_query_aie_status(9)struct amdxdna_drm_query_aie_version(9)struct amdxdna_drm_query_aie_tile_metadata(9)struct amdxdna_drm_query_clock(9)struct amdxdna_drm_query_clock_metadata(9)struct amdxdna_drm_query_sensor(9)struct amdxdna_drm_query_hwctx(9)struct amdxdna_drm_get_power_mode(9)struct amdxdna_drm_query_firmware_version(9)struct amdxdna_drm_get_resource_info(9)struct amdxdna_drm_attribute_state(9)struct amdxdna_drm_query_telemetry_header(9)struct amdxdna_drm_get_info(9)struct amdxdna_drm_hwctx_entry(9)struct amdxdna_async_error(9)struct amdxdna_drm_bo_usage(9)struct amdxdna_drm_get_array(9)struct amdxdna_drm_set_state(9)struct amdxdna_drm_set_power_mode(9)
ok that's the page π go forth and query your AIE metadata, main character energy only π
sign-off time π β this lil beauty comes from ./include/uapi/drm, dated October 2026, and it's literally titled struct amdx...aie_metadata(9) in the footer, slay πβ¨π«Ά
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms