SWIOTLB default pool size is currently fixed at 64 MB via
IO_TLB_DEFAULT_SIZE, with runtime override only possible through
"swiotlb=<nslabs>" kernel parameter.
Introduce CONFIG_SWIOTLB_DEFAULT_SIZE_MB to allow setting the default
SWIOTLB size at compile time. This integer option (range: 1–64 MB)
depends on CONFIG_SWIOTLB and defaults to 64 MB, preserving existing
behavior.
Update IO_TLB_DEFAULT_SIZE to derive from this Kconfig option, with
fallback to 64 MB when SWIOTLB is disabled.
Set CONFIG_SWIOTLB_DEFAULT_SIZE_MB to 2 MB to reduce default SWIOTLB
memory footprint.
Default behavior remains unchanged unless configured.
Runtime "swiotlb=" override remains supported.
Signed-off-by: Jagadeesh Pagadala <jpagadal@qti.qualcomm.com>
SWIOTLB default pool size is currently fixed at 64 MB via IO_TLB_DEFAULT_SIZE, with runtime override only possible through "swiotlb=" kernel parameter.
Introduce CONFIG_SWIOTLB_DEFAULT_SIZE_MB to allow setting the default SWIOTLB size at compile time. This integer option (range: 1–64 MB) depends on CONFIG_SWIOTLB and defaults to 64 MB, preserving existing behavior.
Update IO_TLB_DEFAULT_SIZE to derive from this Kconfig option.
Set CONFIG_SWIOTLB_DEFAULT_SIZE_MB to 2 MB to reduce default SWIOTLB memory footprint.
Default behavior remains unchanged unless configured. Runtime "swiotlb=" override remains supported.
CRs-Fixed: 4490764