All of lore.kernel.org
 help / color / mirror / Atom feed
* [PULL 0/1] Fix loongarch make check-tcg failure
@ 2022-11-12  1:51 Richard Henderson
  2022-11-12  1:51 ` [PULL 1/1] hw/loongarch: Fix loongarch fdt addr confict Richard Henderson
  2022-11-13 11:30 ` [PULL 0/1] Fix loongarch make check-tcg failure Stefan Hajnoczi
  0 siblings, 2 replies; 3+ messages in thread
From: Richard Henderson @ 2022-11-12  1:51 UTC (permalink / raw)
  To: qemu-devel; +Cc: gaosong, stefanha

Since the fix has been sitting around on the list for a
few days, I thought I'd help get this merged before rc1.


r~


The following changes since commit 2ccad61746ca7de5dd3e25146062264387e43bd4:

  Merge tag 'pull-tcg-20221109' of https://gitlab.com/rth7680/qemu into staging (2022-11-09 13:26:45 -0500)

are available in the Git repository at:

  https://gitlab.com/rth7680/qemu.git tags/pull-la-20221112

for you to fetch changes up to 46b21de238c643ea098f2dcffe493abd135f7d89:

  hw/loongarch: Fix loongarch fdt addr confict (2022-11-12 11:05:52 +1000)

----------------------------------------------------------------
Fix loongarch make check-tcg failure.

----------------------------------------------------------------
Song Gao (1):
      hw/loongarch: Fix loongarch fdt addr confict

 hw/loongarch/virt.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)


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

* [PULL 1/1] hw/loongarch: Fix loongarch fdt addr confict
  2022-11-12  1:51 [PULL 0/1] Fix loongarch make check-tcg failure Richard Henderson
@ 2022-11-12  1:51 ` Richard Henderson
  2022-11-13 11:30 ` [PULL 0/1] Fix loongarch make check-tcg failure Stefan Hajnoczi
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Henderson @ 2022-11-12  1:51 UTC (permalink / raw)
  To: qemu-devel; +Cc: gaosong, stefanha

From: Song Gao <gaosong@loongson.cn>

Fix LoongArch check-tcg error:
   TEST    hello on loongarch64
qemu-system-loongarch64: Some ROM regions are overlapping
These ROM regions might have been loaded by direct user request or by default.
They could be BIOS/firmware images, a guest kernel, initrd or some other file loaded into guest memory.
Check whether you intended to load all this guest code, and whether it has been built to load to the correct addresses.

The following two regions overlap (in the memory address space):
   hello ELF program header segment 0 (addresses 0x0000000000200000 - 0x0000000000242000)
   fdt (addresses 0x0000000000200000 - 0x0000000000300000)
make[1]: *** [Makefile:177: run-hello] Error 1

Fixes: 021836936ef ("hw/loongarch: Load FDT table into dram memory space")
Reported-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Song Gao <gaosong@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20221109020449.978064-1-gaosong@loongson.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
 hw/loongarch/virt.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/hw/loongarch/virt.c b/hw/loongarch/virt.c
index 5e4c2790bf..5136940b0b 100644
--- a/hw/loongarch/virt.c
+++ b/hw/loongarch/virt.c
@@ -793,13 +793,13 @@ static void loongarch_init(MachineState *machine)
     qemu_add_machine_init_done_notifier(&lams->machine_done);
     fdt_add_pcie_node(lams);
     /*
-     * Since lowmem region starts from 0, FDT base address is located
-     * at 2 MiB to avoid NULL pointer access.
-     *
+     * Since lowmem region starts from 0 and Linux kernel legacy start address
+     * at 2 MiB, FDT base address is located at 1 MiB to avoid NULL pointer
+     * access. FDT size limit with 1 MiB.
      * Put the FDT into the memory map as a ROM image: this will ensure
      * the FDT is copied again upon reset, even if addr points into RAM.
      */
-    fdt_base = 2 * MiB;
+    fdt_base = 1 * MiB;
     qemu_fdt_dumpdtb(machine->fdt, lams->fdt_size);
     rom_add_blob_fixed("fdt", machine->fdt, lams->fdt_size, fdt_base);
 }
-- 
2.34.1



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

* Re: [PULL 0/1] Fix loongarch make check-tcg failure
  2022-11-12  1:51 [PULL 0/1] Fix loongarch make check-tcg failure Richard Henderson
  2022-11-12  1:51 ` [PULL 1/1] hw/loongarch: Fix loongarch fdt addr confict Richard Henderson
@ 2022-11-13 11:30 ` Stefan Hajnoczi
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2022-11-13 11:30 UTC (permalink / raw)
  To: Richard Henderson; +Cc: qemu-devel, gaosong, stefanha

[-- Attachment #1: Type: text/plain, Size: 115 bytes --]

Applied, thanks.

Please update the changelog at https://wiki.qemu.org/ChangeLog/7.2 for any user-visible changes.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

end of thread, other threads:[~2022-11-14 23:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-12  1:51 [PULL 0/1] Fix loongarch make check-tcg failure Richard Henderson
2022-11-12  1:51 ` [PULL 1/1] hw/loongarch: Fix loongarch fdt addr confict Richard Henderson
2022-11-13 11:30 ` [PULL 0/1] Fix loongarch make check-tcg failure Stefan Hajnoczi

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.