[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 15/79] arm/imx25_pdk: drop RAM size fixup
From: |
Richard Henderson |
Subject: |
Re: [PATCH v5 15/79] arm/imx25_pdk: drop RAM size fixup |
Date: |
Mon, 17 Feb 2020 10:56:35 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
On 2/17/20 9:33 AM, Igor Mammedov wrote:
> /* We need to initialize our memory */
> if (machine->ram_size > (FSL_IMX25_SDRAM0_SIZE + FSL_IMX25_SDRAM1_SIZE))
> {
> - warn_report("RAM size " RAM_ADDR_FMT " above max supported, "
> + error_report("RAM size " RAM_ADDR_FMT " above max supported, "
> "reduced to %x", machine->ram_size,
> FSL_IMX25_SDRAM0_SIZE + FSL_IMX25_SDRAM1_SIZE);
> - machine->ram_size = FSL_IMX25_SDRAM0_SIZE + FSL_IMX25_SDRAM1_SIZE;
> + exit(EXIT_FAILURE);
The wording here doesn't make sense anymore.
I think it would be better to mirror that used elsewhere:
+ char *sz = size_to_str(mc->default_ram_size);
+ error_report("Invalid RAM size, should be %s", sz);
+ g_free(sz);
With that,
Reviewed-by: Richard Henderson <address@hidden>
r~
- Re: [PATCH v5 11/79] arm/collie: use memdev for RAM, (continued)
- [PATCH v5 10/79] arm/aspeed: use memdev for RAM, Igor Mammedov, 2020/02/17
- [PATCH v5 12/79] arm/cubieboard: use memdev for RAM, Igor Mammedov, 2020/02/17
- [PATCH v5 09/79] arm/aspeed: actually check RAM size, Igor Mammedov, 2020/02/17
- [PATCH v5 14/79] arm/highbank: use memdev for RAM, Igor Mammedov, 2020/02/17
- [PATCH v5 15/79] arm/imx25_pdk: drop RAM size fixup, Igor Mammedov, 2020/02/17
- [PATCH v5 13/79] arm/digic_boards: use memdev for RAM, Igor Mammedov, 2020/02/17
- [PATCH v5 16/79] arm/imx25_pdk: use memdev for RAM, Igor Mammedov, 2020/02/17
- [PATCH v5 17/79] arm/integratorcp: use memdev for RAM, Igor Mammedov, 2020/02/17