Module dma_hint

Source
Expand description

Calculate DMA hint value if not provided by host.

Constantsยง

LOOKUP_TABLE_DEBUG ๐Ÿ”’
DEV/TEST ONLY variant of the lookup table above. Since the IGVM manifest specifies additional VTL2 memory for dev (well above what is required for release configs), allow the heuristics to still kick in.
LOOKUP_TABLE_RELEASE ๐Ÿ”’
Lookup table for VTL2 DMA hint calculation. This table is used to retrofit dedicated DMA memory for existing configurations known at the time of writing. Dedicated DMA memory is required for devices that survive OpenHCL servicing operations (for example, NVMe and MANA devices). Those devices express their need as the โ€œpersistent memoryโ€ requirement when they create a DMA client. Since the amount of dedicated DMA memory cannot be changed at runtime, the amount of memory set aside must account for the maximum expected usage.
MAX_DMA_HINT_MEM_SIZE ๐Ÿ”’
Maximum allowed memory size for DMA hint calculation (1 TiB).
ONE_MB ๐Ÿ”’
PAGES_PER_2MB ๐Ÿ”’
Number of 4K pages in 2MiB.
RATIO ๐Ÿ”’

Functionsยง

pick_private_pool_size
round_up_to_2mb ๐Ÿ”’
Round up to next 2MiB.
vtl2_calculate_dma_hint
Returns calculated DMA hint value, in 4k pages.