STRUCT AMDXDNA_HWCTX_PARAM_CONFIG_CU(9)
π NAME π
struct amdxdna_hwctx_param_config_cu β the literal configuration blueprint for CUs inside a hardware context. Like, this struct is the vibe check for telling your hardware context which CUs it's working with. No cap.
(also hi bestie, this is from the Kernel API Manual β welcome to the section 9 group chat π«Ά)
β¨ SYNOPSIS β¨
okay so here's the whole shape of it, bestie, copy it exactly:
struct amdxdna_hwctx_param_config_cu {
__u16 num_cus;
__u16 pad[3];
struct amdxdna_cu_config cu_configs[];
};
It's giving "small struct, big responsibilities" honestly π
π Members π
num_cusβ the count of CUs you're configuring. Literally just how many we're talking about here, bestie. Count them. Carefully. πpadβ MBZ. and yes that means Must Be Zero, so put zeros in there, don't be quirky about it πcu_configsβ the flex of this struct: a whole array of CU configurations, and each one is astruct amdxdna_cu_config. Iconic. It's a flexible array member living its best main character life at the end of the struct π¦
π SEE ALSO π
okay this list is LONG but we do not skip, we do not summarise, we list every single one because that's the assignment and I ate:
- the kernel file
./include/uapi/drm/amdxdna_accel.h struct amdxdna_drm_create_hwctx(9)struct amdxdna_drm_destroy_hwctx(9)struct amdxdna_cu_config(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)
bestie note: pad is MBZ β must be zero. Not "probably zero". Not "zero-ish". Zero. I'm not being dramatic, that's just the rule π
okay that's the whole page, go forth and configure those CUs π this came out of ./include/uapi/drm, dated October 2026, and the page itself is struct amdxdna_hwctx_param_config_cu(9) from the Kernel API Manual β mwah, slay, periodt π§ββοΈπΈ
π¦ 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