STRUCT AMDXDNA_DRM_QUERY_AIE_METADATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 me
  • cols β€” the total number of columns 🌈 the whole count, not a fraction
  • rows β€” the total number of rows 🌸 same energy, total count
  • version β€” the version of the AIE hardware ⭐ so you know what generation you're dealing with
  • core β€” the metadata for all core tiles πŸ”₯ all of them, collectively
  • mem β€” the metadata for all mem tiles πŸ’œ again, all of them
  • shim β€” 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