PAGE TABLE INDEX UTILITIES (CONSTANTS)(9)

๐Ÿ“ฆ version 7.3.1, in nixpkgs unstable

๐ŸŒธ Page table index utilities ๐ŸŒธ

okay bestie, you're reading the Kernel API Manual page for Page table index utilities โ€” manual name (constants)(9). It's a constants page, and it's lowkey carrying the whole address-space vibe โœจ๐Ÿ’….


๐ŸŽ€ PVR_PAGE_TABLE_ADDR_SPACE_SIZE ๐ŸŽ€

This one is the size of the device-virtual address space that can be represented in the page table structure. ๐Ÿซถ

This value is checked at runtime against pvr_device_features.virtual_address_space_bits by pvr_vm_create_context, which will return an error if the feature value does not match this constant. ๐Ÿšจ

๐Ÿ› ๏ธ Future work ๐Ÿ› ๏ธ

It should be possible to support other values of pvr_device_features.virtual_address_space_bits, but so far no hardware has been created which advertises an unsupported value. That's the whole "one day, maybe" corner ๐ŸŒˆ.

โญ PVR_PAGE_TABLE_ADDR_BITS โญ

Number of bits needed to represent any value less than PVR_PAGE_TABLE_ADDR_SPACE_SIZE exactly. Math girlie behavior, fr fr ๐Ÿงฎโœจ.

๐Ÿฆ‹ PVR_PAGE_TABLE_ADDR_MASK ๐Ÿฆ‹

Bitmask of device-virtual addresses which are valid in the page table structure. ๐ŸŽฏ

This value is derived from PVR_PAGE_TABLE_ADDR_SPACE_SIZE, so the same notes on that constant apply here. iykyk ๐Ÿ’œ

๐Ÿ‘€ SEE ALSO ๐Ÿ‘€

  • Kernel file ./drivers/gpu/drm/imagination/pvr_mmu.h
  • Public API (constants)(9)

xoxo, your kernel bestie ๐Ÿ’… โ€” source/version: ./drivers/gpu/drm/imagination, dated October 2026, with the footer label Page table i... (constants)(9). slay and read your headers ๐Ÿซถ๐ŸŽ€

๐Ÿ“ฆ where this page comes from