STRUCT AMDXDNA_CU_CONFIG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct amdxdna_cu_config β€” configuration for one CU πŸ’–

okay bestie, so this is a page straight out of the Kernel API Manual, and it's literally just one tiny little struct that holds the config for one CU. like, one. single. CU. no cap. it's small but it's doing its job and honestly? we stan a minimal king πŸ‘‘


✨ SYNOPSIS ✨

struct amdxdna_cu_config {
    __u32 cu_bo;
    __u8 cu_func;
    __u8 pad[3];
};

that's it. that's the whole vibe. three members, one of which is literally just padding, and yet she's iconic πŸŽ€


🌸 Members 🌸

  • cu_bo β€” a __u32, and it's the CU configuration buffer bo handle. bo = buffer object, in case you were wondering, and this is the handle to the one that holds the config. 🫢
  • cu_func β€” a __u8 holding the function of a CU. like, what this CU is for. her whole purpose. main character energy fr πŸ’…
  • pad β€” __u8 pad[3], and it is MBZ β€” Must Be Zero. do not touch. do not fill. do not get creative with it. leave it at zero or the vibe check will not go well for you πŸ˜­πŸ™ˆ

πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, in order, no one gets left out (iykyk):

  • Kernel file ./include/uapi/drm/amdxdna_accel.h
  • struct amdxdna_drm_create_hwctx(9)
  • struct amdxdna_drm_destroy_hwctx(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_aie_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 and a lil heads up: pad being MBZ is not a suggestion, bestie. zero it out. that's the whole rule. πŸ“

and that's the page!! sourced from ./include/uapi/drm, dated October 2026, and this whole struct amdxdna_cu_config(9) situation ate and left no crumbs. mwah πŸ’‹βœ¨πŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from