diff --git a/misc/config_tools/hv_config/board_defconfig.py b/misc/config_tools/hv_config/board_defconfig.py index acef2d3d7..041b0b6c0 100644 --- a/misc/config_tools/hv_config/board_defconfig.py +++ b/misc/config_tools/hv_config/board_defconfig.py @@ -81,7 +81,7 @@ def get_memory(hv_info, config): except Exception as e: print(e) - hv_ram_size += total_shm_size + hv_ram_size += 2 * max(total_shm_size, 0x200000) if hv_ram_size > HV_RAM_SIZE_MAX: common.print_red("requested RAM size should be smaller then {}".format(HV_RAM_SIZE_MAX), err=True) err_dic["board config: total vm number error"] = \ diff --git a/misc/config_tools/static_allocators/hv_ram.py b/misc/config_tools/static_allocators/hv_ram.py index 5c4a76c88..d5392ae4d 100644 --- a/misc/config_tools/static_allocators/hv_ram.py +++ b/misc/config_tools/static_allocators/hv_ram.py @@ -40,7 +40,7 @@ def fn(board_etree, scenario_etree, allocation_etree): total_shm_size += int_size except Exception as e: print(e) - hv_ram_size += total_shm_size + hv_ram_size += 2 * max(total_shm_size, 0x200000) assert(hv_ram_size <= HV_RAM_SIZE_MAX) # reseve 16M memory for hv sbuf, ramoops, etc.