Duncan Laurie has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/39834 )
Change subject: mb/emulation/qemu-i440fx: Reserve low memory ......................................................................
mb/emulation/qemu-i440fx: Reserve low memory
Ensure that the low memory is properly reserved so it does not get marked as normal RAM and get wiped or reused by firmware or the kernel. This ensures that the low RSDP is always available for the kernel.
Change-Id: I7295018416229bc957ecbf26f77623a57965557e Signed-off-by: Duncan Laurie dlaurie@google.com --- M src/mainboard/emulation/qemu-i440fx/northbridge.c 1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/34/39834/1
diff --git a/src/mainboard/emulation/qemu-i440fx/northbridge.c b/src/mainboard/emulation/qemu-i440fx/northbridge.c index b30723d..7e067a4 100644 --- a/src/mainboard/emulation/qemu-i440fx/northbridge.c +++ b/src/mainboard/emulation/qemu-i440fx/northbridge.c @@ -129,6 +129,12 @@ "debugcon"); }
+ /* A segment is legacy VGA region */ + mmio_resource(dev, idx++, 0xa0000 / KiB, (0xc0000 - 0xa0000) / KiB); + + /* C segment to 1MB is reserved RAM (low tables) */ + reserved_ram_resource(dev, idx++, 0xc0000 / KiB, (1*MiB - 0xc0000) / KiB); + if (q35 && ((tomk * 1024) < 0xb0000000)) { /* * Reserve the region between top-of-ram and the
Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39834 )
Change subject: mb/emulation/qemu-i440fx: Reserve low memory ......................................................................
Patch Set 1: Code-Review+2
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39834 )
Change subject: mb/emulation/qemu-i440fx: Reserve low memory ......................................................................
Patch Set 1:
(2 comments)
https://review.coreboot.org/c/coreboot/+/39834/1//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/39834/1//COMMIT_MSG@13 PS1, Line 13: Change-Id: I7295018416229bc957ecbf26f77623a57965557e How can I reproduce the issue?
https://review.coreboot.org/c/coreboot/+/39834/1/src/mainboard/emulation/qem... File src/mainboard/emulation/qemu-i440fx/northbridge.c:
https://review.coreboot.org/c/coreboot/+/39834/1/src/mainboard/emulation/qem... PS1, Line 136: * Please add spaces around operators.
Duncan Laurie has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39834 )
Change subject: mb/emulation/qemu-i440fx: Reserve low memory ......................................................................
Patch Set 1:
(2 comments)
https://review.coreboot.org/c/coreboot/+/39834/1//COMMIT_MSG Commit Message:
https://review.coreboot.org/c/coreboot/+/39834/1//COMMIT_MSG@13 PS1, Line 13: Change-Id: I7295018416229bc957ecbf26f77623a57965557e
How can I reproduce the issue?
Done
https://review.coreboot.org/c/coreboot/+/39834/1/src/mainboard/emulation/qem... File src/mainboard/emulation/qemu-i440fx/northbridge.c:
https://review.coreboot.org/c/coreboot/+/39834/1/src/mainboard/emulation/qem... PS1, Line 136: *
Please add spaces around operators.
Done
Hello build bot (Jenkins), Furquan Shaikh,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/39834
to look at the new patch set (#2).
Change subject: mb/emulation/qemu-i440fx: Reserve low memory ......................................................................
mb/emulation/qemu-i440fx: Reserve low memory
Ensure that the low memory is properly reserved so it does not get marked as normal RAM and get wiped or reused by firmware or the kernel. This ensures that the low RSDP is always available for the kernel.
This is only noticed if something wipes the RSDP before the kernel boots, which happens if you use the depthcharge payload and boot in developer mode.
Change-Id: I7295018416229bc957ecbf26f77623a57965557e Signed-off-by: Duncan Laurie dlaurie@google.com --- M src/mainboard/emulation/qemu-i440fx/northbridge.c 1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/34/39834/2
Patrick Rudolph has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39834 )
Change subject: mb/emulation/qemu-i440fx: Reserve low memory ......................................................................
Patch Set 2: Code-Review+2
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/39834 )
Change subject: mb/emulation/qemu-i440fx: Reserve low memory ......................................................................
Patch Set 2: Code-Review+1
Patrick Georgi has submitted this change. ( https://review.coreboot.org/c/coreboot/+/39834 )
Change subject: mb/emulation/qemu-i440fx: Reserve low memory ......................................................................
mb/emulation/qemu-i440fx: Reserve low memory
Ensure that the low memory is properly reserved so it does not get marked as normal RAM and get wiped or reused by firmware or the kernel. This ensures that the low RSDP is always available for the kernel.
This is only noticed if something wipes the RSDP before the kernel boots, which happens if you use the depthcharge payload and boot in developer mode.
Change-Id: I7295018416229bc957ecbf26f77623a57965557e Signed-off-by: Duncan Laurie dlaurie@google.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/39834 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Patrick Rudolph siro@das-labor.org Reviewed-by: Paul Menzel paulepanter@users.sourceforge.net --- M src/mainboard/emulation/qemu-i440fx/northbridge.c 1 file changed, 6 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified Paul Menzel: Looks good to me, but someone else must approve Patrick Rudolph: Looks good to me, approved
diff --git a/src/mainboard/emulation/qemu-i440fx/northbridge.c b/src/mainboard/emulation/qemu-i440fx/northbridge.c index b30723d..355f13c 100644 --- a/src/mainboard/emulation/qemu-i440fx/northbridge.c +++ b/src/mainboard/emulation/qemu-i440fx/northbridge.c @@ -129,6 +129,12 @@ "debugcon"); }
+ /* A segment is legacy VGA region */ + mmio_resource(dev, idx++, 0xa0000 / KiB, (0xc0000 - 0xa0000) / KiB); + + /* C segment to 1MB is reserved RAM (low tables) */ + reserved_ram_resource(dev, idx++, 0xc0000 / KiB, (1 * MiB - 0xc0000) / KiB); + if (q35 && ((tomk * 1024) < 0xb0000000)) { /* * Reserve the region between top-of-ram and the