From 7cb526b12b36026cad7da29aa0d67ddf9b8c7675 Mon Sep 17 00:00:00 2001 From: Johnny Mnemonic Date: Sat, 14 Mar 2026 15:36:10 +0100 Subject: [PATCH 1/2] Update memory map * ski-bootloader/fw-emu.c: Configure a single contiguous block of available memory in Ski reaching from 2 to 3172 MiB. Tested to work over longer periods of time (hours) within a cluster of Ski instances building packages for EPIC Slack with distcc. Based on https://user.it.uu.se/~mpe22148/linux/patches/ia64/linux-3.13/linux-3.13-ia64-hpsim-2GB-RAM.patch by Mikael Pettersson Signed-off-by: Johnny Mnemonic --- ski-bootloader/fw-emu.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ski-bootloader/fw-emu.c b/ski-bootloader/fw-emu.c index 4609747..a4d87b7 100644 --- a/ski-bootloader/fw-emu.c +++ b/ski-bootloader/fw-emu.c @@ -316,8 +316,7 @@ struct ia64_boot_param * sys_fw_init (const char *args, int arglen, u64 initramf MAKE_MD(EFI_BOOT_SERVICES_DATA, EFI_MEMORY_WB, 0*MB, 1*MB); /* bootloader.lds targets this space */ MAKE_MD(EFI_PAL_CODE, EFI_MEMORY_WB, 1*MB, 2*MB); - MAKE_MD(EFI_CONVENTIONAL_MEMORY, EFI_MEMORY_WB, 2*MB, 130*MB); - MAKE_MD(EFI_CONVENTIONAL_MEMORY, EFI_MEMORY_WB, 4096*MB, 6144*MB); + MAKE_MD(EFI_CONVENTIONAL_MEMORY, EFI_MEMORY_WB, 2*MB, 3172*MB); #else MAKE_MD( 4, 0x9, 0x0000000000000000, 0x0000000000001000); MAKE_MD( 7, 0x9, 0x0000000000001000, 0x000000000008a000); From cc92780ff775a8b27f4ca3df3295537cba3701e5 Mon Sep 17 00:00:00 2001 From: Johnny Mnemonic Date: Sat, 4 Jan 2025 12:47:46 +0100 Subject: [PATCH 2/2] Introduce own processor type for Ski src/state.c: Configure own processor type for Ski So far this was configured as McKinley, but the exposed processor features (branchlong, 16-byte atomic ops) are actually on par with a Montecito (family 32) and exceed even those of a Madison (branchlong) which is a family 31/model 2 processor. Hence the naming in recent Linux kernels with Ski/HP-Sim support enabled: MonteSkito for a family 31/model 3 processor. Signed-off-by: Johnny Mnemonic --- src/state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/state.c b/src/state.c index 475724b..19e376b 100644 --- a/src/state.c +++ b/src/state.c @@ -70,7 +70,7 @@ const REG cpuids[NCPUIDS] = { 0x2d7474656c776548ULL, 0x006472616b636150ULL, #else const REG cpuids[NCPUIDS] = { 0x5320696b53205048ULL, 0x726f74616c756d69ULL, #endif - 0, 0x000000001f000004ULL, + 0, 0x000000001f030004ULL, 0x5ULL }; unsigned n_stack_phys /* = 96 */; /* initialized in InitPlatform() */