hl_ack_pb_with_mask(9)
π hl_ack_pb_with_mask β NAME β¨
okay so bestie, welcome to hl_ack_pb_with_mask(9) from the Kernel API Manual π«Ά β this one is literally hl_ack_pb_with_mask: ack pb with mask in HW according to given configuration. yes that's the whole vibe. it's giving "one job, does it well" π
πΈ SYNOPSIS πΈ
void hl_ack_pb_with_mask (struct hl_device *hdev , u32 num_dcores , u32
dcore_offset , u32 num_instances , u32 instance_offset , const u32
pb_blocks[] , u32 blocks_array_size , u64 mask );
no cap, that's the exact signature β copy it character for character or the compiler will absolutely humble you π
π ARGUMENTS π
hdevβ pointer tohl_devicestructure. it's the main character, the whole device, the moment πnum_dcoresβ number of decores to apply configuration to. lowkey important: set it toHL_PB_SHAREDif you need to apply only once πdcore_offsetβ the offset between dcores. spacing matters, bestie β¨num_instancesβ number of instances to apply configuration to. how many little guys are getting the treatment π¦instance_offsetβ the offset between instances. yes, also spacing. we love consistency πpb_blocksβ blocks array. it's an array. of blocks. iconic πblocks_array_sizeβ blocks array size. (the size of the blocks array. iykyk πΈ)maskβ enabled instances mask:1= enabled,0= disabled. that's it, that's the whole bit situation π§
π₯ SEE ALSO π₯
kernel file ./drivers/accel/habanalabs/common/security.c β go read the source, it's highkey the real manpage π
and then the whole friend group, in this exact order:
hl_get_pb_block(9)hl_unset_pb_in_block(9)hl_unsecure_register(9)hl_unsecure_register_range(9)hl_unsecure_registers(9)hl_unsecure_registers_range(9)hl_ack_pb_security_violations(9)hl_config_glbl_sec(9)hl_secure_block(9)hl_init_pb_with_mask(9)hl_init_pb(9)hl_init_pb_ranges_with_mask(9)hl_init_pb_ranges(9)hl_init_pb_single_dcore(9)hl_init_pb_ranges_single_dcore(9)hl_ack_pb(9)hl_ack_pb_single_dcore(9)
β reminder bestie:maskis1-enabled /0-disabled, andnum_dcoresgetsHL_PB_SHAREDwhen you only want to apply it once. those are the two little details that'll get you every time π
alright that's the page!! brought to you by the good people over at ./drivers/accel/habanalabs/common, dated October 2026 β mwah, go ack some pbs responsibly πππ«Ά
π¦ 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