hw/arm/aspeed: increase Bletchley memory size
PATCH 1/1 hw/arm/aspeed: increase Bletchley memory size
For the PVT-class hardware we have increased the memory size of this device to 2 GiB. Adjust the device model accordingly.
--- hw/arm/aspeed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/arm/aspeed.c +1 -1
@@ -1344,7 +1344,7 @@ static void aspeed_machine_bletchley_class_init(ObjectClass *oc, void *data) amc->num_cs =2 ; amc->macs_mask =ASPEED_MAC2_ON ; amc->i2c_init = bletchley_bmc_i2c_init; - mc->default_ram_size =512 * MiB; + mc->default_ram_size =2 * GiB; mc->default_cpus = mc->min_cpus = mc->max_cpus =aspeed_soc_num_cpus (amc->soc_name); }
Signature · 1 line
2.35.1
Quoted 2 lines · Patrick Williams
For the PVT-class hardware we have increased the memory size of this device to 2 GiB. Adjust the device model accordingly.
You should add some defines similar to :
/* On 32-bit hosts, lower RAM to 1G because of the 2047 MB limit */
#if HOST_LONG_BITS == 32
#define FUJI_BMC_RAM_SIZE (1 * GiB)
#else
#define FUJI_BMC_RAM_SIZE (2 * GiB)
#endifor are we done with 32bit hosts ?
Thanks,
C.
Quoted 19 lines
Signed-off-by Patrick Williams <[email protected]>--- hw/arm/aspeed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/arm/aspeed.c +1
-1@@ -1344,7 +1344,7 @@ static void aspeed_machine_bletchley_class_init(ObjectClass *oc, void *data) amc->num_cs =2 ; amc->macs_mask =ASPEED_MAC2_ON ; amc->i2c_init = bletchley_bmc_i2c_init; - mc->default_ram_size =512 * MiB; + mc->default_ram_size =2 * GiB; mc->default_cpus = mc->min_cpus = mc->max_cpus =aspeed_soc_num_cpus (amc->soc_name); }
Quoted 7 lines · Cédric Le Goater
Quoted 2 lines · Patrick Williams
For the PVT-class hardware we have increased the memory size of this device to 2 GiB. Adjust the device model accordingly.
You should add some defines similar to :
Quoted 8 lines
/* On 32-bit hosts, lower RAM to 1G because of the 2047 MB limit */ #if HOST_LONG_BITS == 32 #define FUJI_BMC_RAM_SIZE (1 * GiB) #else #define FUJI_BMC_RAM_SIZE (2 * GiB) #endifor are we done with 32bit hosts ?
We are not.
-- PMM
PATCH v2 1/1 hw/arm/aspeed: increase Bletchley memory size
In reply to Patrick WilliamsFor the PVT-class hardware we have increased the memory size of this device to 2 GiB. Adjust the device model accordingly.
--- hw/arm/aspeed.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
hw/arm/aspeed.c +8 -1
@@ -1330,6 +1330,13 @@ static void aspeed_machine_fuji_class_init(ObjectClass *oc, void *data)aspeed_soc_num_cpus (amc->soc_name); }; +/* On 32-bit hosts, lower RAM to 1G because of the 2047 MB limit */ +#if HOST_LONG_BITS ==32 +#define BLETCHLEY_BMC_RAM_SIZE (1 * GiB) +#else +#define BLETCHLEY_BMC_RAM_SIZE (2 * GiB) +#endif +static void aspeed_machine_bletchley_class_init (ObjectClass *oc,void *data) {MachineClass *mc =MACHINE_CLASS (oc);
@@ -1344,7 +1351,7 @@ static void aspeed_machine_bletchley_class_init(ObjectClass *oc, void *data) amc->num_cs =2 ; amc->macs_mask =ASPEED_MAC2_ON ; amc->i2c_init = bletchley_bmc_i2c_init; - mc->default_ram_size =512 * MiB; + mc->default_ram_size =BLETCHLEY_BMC_RAM_SIZE ; mc->default_cpus = mc->min_cpus = mc->max_cpus =aspeed_soc_num_cpus (amc->soc_name); }
Signature · 1 line
2.35.1
Quoted 4 lines · Patrick Williams
For the PVT-class hardware we have increased the memory size of this device to 2 GiB. Adjust the device model accordingly.
Signed-off-by Patrick Williams <[email protected]>
Thanks,
C.
Quoted 31 lines
--- hw/arm/aspeed.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)hw/arm/aspeed.c +8
-1@@ -1330,6 +1330,13 @@ static void aspeed_machine_fuji_class_init(ObjectClass *oc, void *data)aspeed_soc_num_cpus (amc->soc_name); }; +/* On 32-bit hosts, lower RAM to 1G because of the 2047 MB limit */ +#if HOST_LONG_BITS ==32 +#define BLETCHLEY_BMC_RAM_SIZE (1 * GiB) +#else +#define BLETCHLEY_BMC_RAM_SIZE (2 * GiB) +#endif +static void aspeed_machine_bletchley_class_init (ObjectClass *oc,void *data) {MachineClass *mc =MACHINE_CLASS (oc);@@ -1344,7 +1351,7 @@ static void aspeed_machine_bletchley_class_init(ObjectClass *oc, void *data) amc->num_cs =2 ; amc->macs_mask =ASPEED_MAC2_ON ; amc->i2c_init = bletchley_bmc_i2c_init; - mc->default_ram_size =512 * MiB; + mc->default_ram_size =BLETCHLEY_BMC_RAM_SIZE ; mc->default_cpus = mc->min_cpus = mc->max_cpus =aspeed_soc_num_cpus (amc->soc_name); }