hl_init_pb_r...single_dcore(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hl_init_pb_r...single_dcore(9) β€” from the Kernel API Manual, bestie ✨

okay so real talk: this one is hl_init_pb_r...single_dcore, straight out of the Kernel API Manual, and it's giving "security setup but make it per-dcore" πŸŽ€ buckle up.


🌸 NAME 🌸

hl_init_pb_ranges_single_dcore β€” sets pb for a single docre in HW according to the given configuration, and the whole vibe is that it unsecures register ranges instead of specific registers 🫢

yes "docre" is what the page says, we do not correct the elders πŸ’€

✨ SYNOPSIS ✨

int hl_init_pb_ranges_single_dcore (struct hl_device *hdev , u32
dcore_offset , u32 num_instances , u32 instance_offset , const u32
pb_blocks[] , u32 blocks_array_size , const struct range
*user_regs_range_array , u32 user_regs_range_array_size );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • hdev β€” pointer to hl_device structure. the main character of the whole habanalabs saga πŸ‘‘
  • dcore_offset β€” offset from the dcore0. like, how far down the dcore line we're starting 🌈
  • num_instances β€” number of instances to apply configuration to. how many times we're doing this, fr fr
  • instance_offset β€” offset between instances. the gap between each one πŸŽ€
  • pb_blocks[] β€” blocks array. literally the blocks, in an array πŸ’–
  • blocks_array_size β€” blocks array size. yes bestie, it's the size of that array 😭
  • user_regs_range_array β€” unsecured register range array. the ranges we're unsecuring, iconic
  • user_regs_range_array_size β€” unsecured register range array size. the size of that array 🌸

πŸ’œ SEE ALSO πŸ’œ

Kernel file ./drivers/accel/habanalabs/common/security.c β€” that's where the magic lives, iykyk ✨

the whole friend group fr πŸ’…


🫢 friendly reminder: everything above is literally straight from the page β€” the dcore, the instances, the offsets, the arrays. no cap, no invented options, no extra lore. just the facts with better vibes 🌟

and that's the tea, bestie πŸ“ this diva of a page lives in ./drivers/accel/habanalabs/common, version dated October 2026 β€” go forth and unsecure those ranges, slay πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from