All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2 0/4] AE350 support SMP boot from flash
@ 2019-04-24  6:33 Andes
  2019-04-24  6:33 ` [U-Boot] [PATCH v2 1/4] riscv: hart_lottery and available harts features can be selectable Andes
                   ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: Andes @ 2019-04-24  6:33 UTC (permalink / raw)
  To: u-boot

From: Rick Chen <rick@andestech.com>

In current RISC-V SMP flow, AE350 will encounter the the write
failure problem since hart_lottery and available_harts_lock was
not in ram address but in flash address when booing from flash.

This patch can help to fix the failure problem when AE350 was
booting from flash by disabling this two features.

Changes in v2:
- Fix some typos
- Also surround the declaration of prior_stage_fdt_address in arch/riscv/cpu/cpu.c with OF_PRIOR_STAGE
- Use CONFIP_XIP to replace CONFIG_HART_LOTTERY and CONFIG_AVAILABLE_HARTS

Rick Chen (4):
  riscv: hart_lottery and available harts features can be selectable
  riscv: configs: Support AE350 SMP booting from flash flow
  riscv: prior_stage_fdt_address should only be used when OF_PRIOR_STAGE
    is enabled
  riscv: configs: AE350 will use CONFIG_OF_PRIOR_STAGE when booting from
    ram

 arch/riscv/Kconfig                   | 10 ++++++++++
 arch/riscv/cpu/cpu.c                 |  5 ++++-
 arch/riscv/cpu/start.S               |  9 ++++++++-
 arch/riscv/include/asm/global_data.h |  2 ++
 arch/riscv/lib/asm-offsets.c         |  2 ++
 arch/riscv/lib/smp.c                 |  2 ++
 configs/ae350_rv32_defconfig         |  2 +-
 configs/ae350_rv32_xip_defconfig     | 36 +++++++++++++++++++++++++++++++++++
 configs/ae350_rv64_defconfig         |  2 +-
 configs/ae350_rv64_xip_defconfig     | 37 ++++++++++++++++++++++++++++++++++++
 10 files changed, 103 insertions(+), 4 deletions(-)
 create mode 100644 configs/ae350_rv32_xip_defconfig
 create mode 100644 configs/ae350_rv64_xip_defconfig

-- 
2.7.4

^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2019-04-29  3:00 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-24  6:33 [U-Boot] [PATCH v2 0/4] AE350 support SMP boot from flash Andes
2019-04-24  6:33 ` [U-Boot] [PATCH v2 1/4] riscv: hart_lottery and available harts features can be selectable Andes
2019-04-24  7:02   ` Bin Meng
2019-04-25  0:57     ` Rick Chen
2019-04-25 20:55   ` Auer, Lukas
2019-04-29  2:24     ` Rick Chen
2019-04-24  6:33 ` [U-Boot] [PATCH v2 2/4] riscv: configs: Support AE350 SMP booting from flash flow Andes
2019-04-24  7:02   ` Bin Meng
2019-04-25 20:56   ` Auer, Lukas
2019-04-29  2:56     ` Rick Chen
2019-04-24  6:33 ` [U-Boot] [PATCH v2 3/4] riscv: prior_stage_fdt_address should only be used when OF_PRIOR_STAGE is enabled Andes
2019-04-24  7:02   ` Bin Meng
2019-04-25  1:00     ` Rick Chen
2019-04-25 20:58       ` Auer, Lukas
2019-04-29  3:00         ` Rick Chen
2019-04-25 20:56   ` Auer, Lukas
2019-04-24  6:33 ` [U-Boot] [PATCH v2 4/4] riscv: configs: AE350 will use CONFIG_OF_PRIOR_STAGE when booting from ram Andes
2019-04-24  7:02   ` Bin Meng
2019-04-25  1:02     ` Rick Chen
2019-04-25 20:56   ` Auer, Lukas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.