Skip to content

Commit 7fe01ce

Browse files
pavannaregundiyanjundeng
authored andcommitted
[Marvell-armhf] Fix SDK DMA allocation failure (sonic-net#20165)
Why I did it Fix DMA memory allocation failure seen when SDK drivers where failed to find size aligned memory. pci 0000:01:00.0: dma_alloc_coherent failed to allocate aligned size of 0x200000 for phys0xbf300000 How I did it Fix DMA driver alloc failure by adding more retries and moving the free for unaligned allocation to the end of allocation logic. Increase CMA memory to 32MB to allow for more retries. How to verify it Run SONIC PTF with fixes for armhf-nokia_ixs7215_52x-r0 platform. Signed-off-by: Pavan Naregundi <[email protected]>
1 parent 81ff530 commit 7fe01ce

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
VAR_LOG_SIZE=4096
2+
ONIE_PLATFORM_EXTRA_CMDLINE_LINUX="cma=32M@0-3G"

platform/marvell/platform_armhf.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ prepare_boot_menu() {
193193
BORDER='echo "---------------------------------------------------";echo;'
194194
fw_setenv ${FW_ARG} print_menu "$BORDER $BOOT1 $BOOT2 $BOOT3 $BORDER" > /dev/null
195195

196-
fw_setenv ${FW_ARG} linuxargs "net.ifnames=0 loopfstype=squashfs loop=$image_dir/$FILESYSTEM_SQUASHFS systemd.unified_cgroup_hierarchy=0 varlog_size=$VAR_LOG_SIZE loglevel=4 ${extra_cmdline_linux}" > /dev/null
196+
fw_setenv ${FW_ARG} linuxargs "net.ifnames=0 loopfstype=squashfs loop=$image_dir/$FILESYSTEM_SQUASHFS systemd.unified_cgroup_hierarchy=0 varlog_size=$VAR_LOG_SIZE loglevel=4 ${extra_cmdline_linux} ${ONIE_PLATFORM_EXTRA_CMDLINE_LINUX}" > /dev/null
197197
fw_setenv ${FW_ARG} linuxargs_old "net.ifnames=0 loopfstype=squashfs loop=$image_dir_old/$FILESYSTEM_SQUASHFS systemd.unified_cgroup_hierarchy=0 varlog_size=$VAR_LOG_SIZE loglevel=4" > /dev/null
198198

199199
# Set boot configs

0 commit comments

Comments
 (0)