hl_mmu_descramble_addr(9)
π hl_mmu_descramble_addr(9) π
okay so this is a page straight out of the Kernel API Manual bestie, and we're talking about hl_mmu_descramble_addr β the generic mmu address descrambling routine. yes. descrambling. like it's an egg π₯β¨
πΈ NAME πΈ
hl_mmu_descramble_addr β the generic mmu address descrambling routine. that's it, that's the whole vibe. it takes a scrambled address and un-scrambles it, no cap π«Ά
β¨ SYNOPSIS β¨
u64 hl_mmu_descramble_addr (struct hl_device *hdev , u64 addr );
look at her. so clean. so iconic. π
π ARGUMENTS π
hdevβ pointer to device data. it's giving "here's the device, do ur thing" πaddrβ the address to descramble. the scrambled one. the one that needs fixing π
π₯ RETURN π₯
the un-scrambled address. that's the whole payoff bestie, she hands you back a clean address and dips π
π¦ SEE ALSO π¦
the kernel file it lives in:
./drivers/accel/habanalabs/common/mmu/mmu.c
and the whole friend group π«Ά (yes you have to meet all of them, they're all linked):
hl_mmu_get_funcs(9)hl_mmu_init(9)hl_mmu_fini(9)hl_mmu_ctx_init(9)hl_mmu_scramble_addr(9)hl_mmu_get_hop_pte_phys_addr(9)hl_mmu_hr_pool_destroy(9)hl_mmu_hr_init(9)hl_mmu_hr_fini(9)hl_mmu_hr_free_hop_remove_pgt(9)hl_mmu_hr_pte_phys_to_virt(9)hl_mmu_hr_write_pte(9)hl_mmu_hr_clear_pte(9)hl_mmu_hr_put_pte(9)hl_mmu_hr_get_pte(9)hl_mmu_hr_get_next_hop_pgt_info(9)hl_mmu_hr_alloc_hop(9)hl_mmu_hr_get_alloc_next_hop(9)hl_mmu_hr_get_tlb_info(9)
ngl hl_mmu_scramble_addr(9) is literally right there in the list β she's the opposite twin, the one who scrambles. this one descrambles. balance. harmony. π
and that's the page!! source: ./drivers/accel/habanalabs/com..., dated October 2026 β so yeah, shoutout to future us for this one π«Άβ¨ descramble ur addresses, stay hydrated, mwah πππ
π¦ 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