Skip to content

Commit

Permalink
Merge pull request #92 from coldav/colin/increase_elf_mem_size
Browse files Browse the repository at this point in the history
Increase refsi elf size to cope with SYCL CTS large file creation
  • Loading branch information
coldav authored Aug 16, 2023
2 parents 262e155 + 73c6af2 commit 23c8e8b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
// does not have dedicated (TCIM) memory for storing kernel exeutables, a memory
// window is set up to map this memory area to a reserved area in DMA.
constexpr const uint64_t REFSI_ELF_BASE = 0x10000ull;
constexpr const uint64_t REFSI_ELF_SIZE = (1 << 20) - REFSI_ELF_BASE;
// The upper region can be up to the tdcm start point at 0x10000000
// We will make it approx 128MB to give some latitude
constexpr const uint64_t REFSI_ELF_SIZE = (1 << 27) - REFSI_ELF_BASE;

// Memory area for per-hart storage.
constexpr const uint64_t G_HART_LOCAL_BASE = 0x20800000;
Expand Down
4 changes: 3 additions & 1 deletion examples/refsi/hal_refsi/source/refsi_hal_g1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
// does not have dedicated (TCIM) memory for storing kernel exeutables, a memory
// window is set up to map this memory area to a reserved area in DMA.
constexpr const uint64_t REFSI_ELF_BASE = 0x10000ull;
constexpr const uint64_t REFSI_ELF_SIZE = (1 << 20) - REFSI_ELF_BASE;
// The upper region can be up to the tdcm start point at 0x10000000
// We will make it approx 128MB to give some latitude
constexpr const uint64_t REFSI_ELF_SIZE = (1 << 27) - REFSI_ELF_BASE;

constexpr const uint64_t REFSI_MAX_HARTS = 64;

Expand Down
4 changes: 3 additions & 1 deletion examples/refsi/hal_refsi/source/refsi_hal_m1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
// does not have dedicated (TCIM) memory for storing kernel exeutables, a memory
// window is set up to map this memory area to a reserved area in DMA.
constexpr const uint64_t REFSI_ELF_BASE = 0x10000ull;
constexpr const uint64_t REFSI_ELF_SIZE = (1 << 20) - REFSI_ELF_BASE;
// The upper region can be up to the tdcm start point at 0x10000000
// We will make it approx 128MB to give some latitude
constexpr const uint64_t REFSI_ELF_SIZE = (1 << 27) - REFSI_ELF_BASE;

refsi_m1_hal_device::refsi_m1_hal_device(refsi_device_t device,
riscv::hal_device_info_riscv_t *info,
Expand Down

0 comments on commit 23c8e8b

Please sign in to comment.