mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
dma-mapping fix for Linux 6.16
- small fix relevant to arm64 server and custom CMA configuration (Feng Tang) -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQSrngzkoBtlA8uaaJ+Jp1EFxbsSRAUCaHCzdQAKCRCJp1EFxbsS RMrMAQDghOwKZqYuC27kJt5T7lgG47YCNE5em1v8WsTSvwQAugEA4AlWIpqQ34eI Es6ObfMt8Q9gArubFZ0ZDFtmZq9NpA0= =+z0i -----END PGP SIGNATURE----- Merge tag 'dma-mapping-6.16-2025-07-11' of git://git.kernel.org/pub/scm/linux/kernel/git/mszyprowski/linux Pull dma-mapping fix from Marek Szyprowski: - small fix relevant to arm64 server and custom CMA configuration (Feng Tang) * tag 'dma-mapping-6.16-2025-07-11' of git://git.kernel.org/pub/scm/linux/kernel/git/mszyprowski/linux: dma-contiguous: hornor the cma address limit setup by user
This commit is contained in:
commit
a0f8361c3c
|
|
@ -222,7 +222,10 @@ void __init dma_contiguous_reserve(phys_addr_t limit)
|
|||
if (size_cmdline != -1) {
|
||||
selected_size = size_cmdline;
|
||||
selected_base = base_cmdline;
|
||||
selected_limit = min_not_zero(limit_cmdline, limit);
|
||||
|
||||
/* Hornor the user setup dma address limit */
|
||||
selected_limit = limit_cmdline ?: limit;
|
||||
|
||||
if (base_cmdline + size_cmdline == limit_cmdline)
|
||||
fixed = true;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user