Attention is currently required from: Jérémy Compostella, Shuo Liu.
Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/87256?usp=email )
Change subject: arch/x86/c_start: Drop switching the code selector
......................................................................
arch/x86/c_start: Drop switching the code selector
Since the ramstage GDT now has the same entries as the preRAM GDT there's
no need to switch the code selector after loading the new GDT.
Change-Id: I67200fe691ddd9f2fd8de5b4464f6e48fd31e75b
Signed-off-by: Patrick Rudolph <patrick.rudolph(a)9elements.com>
---
M src/arch/x86/c_start.S
1 file changed, 0 insertions(+), 31 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/56/87256/1
diff --git a/src/arch/x86/c_start.S b/src/arch/x86/c_start.S
index 3bdef70..81d6b4b 100644
--- a/src/arch/x86/c_start.S
+++ b/src/arch/x86/c_start.S
@@ -30,7 +30,6 @@
lgdt (%rax)
#else
lgdt %cs:gdtaddr
- ljmp $GDT_CODE_SEG, $1f
#endif
1: movl $GDT_DATA_SEG, %eax
movl %eax, %ds
@@ -39,10 +38,6 @@
xor %eax, %eax /* zero out the gs and fs segment index */
movl %eax, %fs
movl %eax, %gs /* Will be used for cpu_info */
-#if ENV_X86_64
- mov $GDT_CODE_SEG64, %ecx
- call SetCodeSelector
-#endif
post_code(POSTCODE_ENTRY_C_START) /* post 13 */
@@ -234,29 +229,3 @@
per_cpu_segment_selector:
.long per_cpu_segment_descriptors - gdt
- .section ".text._start", "ax", @progbits
-#if ENV_X86_64
-SetCodeSelector:
- # save rsp because iret will align it to a 16 byte boundary
- mov %rsp, %rdx
-
- # use iret to jump to a 64-bit offset in a new code segment
- # iret will pop cs:rip, flags, then ss:rsp
- mov %ss, %ax # need to push ss..
- push %rax # push ss instruction not valid in x64 mode,
- # so use ax
- push %rsp
- pushfq
- push %rcx # cx is code segment selector from caller
- movabs $setCodeSelectorLongJump, %rax
- push %rax
-
- # the iret will continue at next instruction, with the new cs value
- # loaded
- iretq
-
-setCodeSelectorLongJump:
- # restore rsp, it might not have been 16-byte aligned on entry
- mov %rdx, %rsp
- ret
-#endif
--
To view, visit https://review.coreboot.org/c/coreboot/+/87256?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I67200fe691ddd9f2fd8de5b4464f6e48fd31e75b
Gerrit-Change-Number: 87256
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Reviewer: Jérémy Compostella <jeremy.compostella(a)intel.com>
Gerrit-Reviewer: Shuo Liu <shuo.liu(a)intel.com>
Gerrit-Attention: Jérémy Compostella <jeremy.compostella(a)intel.com>
Gerrit-Attention: Shuo Liu <shuo.liu(a)intel.com>
Attention is currently required from: Jérémy Compostella, Patrick Rudolph, Shuo Liu.
Hello Jérémy Compostella, Shuo Liu, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/87177?usp=email
to look at the new patch set (#3).
The following approvals got outdated and were removed:
Verified+1 by build bot (Jenkins)
Change subject: cpu/x86/smm: Make SMM stub x86_32 only
......................................................................
cpu/x86/smm: Make SMM stub x86_32 only
In order to give SMM access to more than 4GiB on x86_64 update the
SMM stub, SMM relocation handler and SMM permanent handler on x86_64.
On x86_32 nothing changed.
There are several major changes done at once:
1) Make the SMM stub x86_32 only, even on x86_64
The handler is not responsible to set up x86_64 mode,
since only the handler knows where the page tables reside.
The handler called no longer use the same page tables!
2) Delete page table generation in the SMM loader
The relocation handler will use existing ramstage's page tables.
The permanent handler will use it's own page tables.
3) Place page tables in the SMM permanent handler
Use the same RO page tables as used on all other stages.
Gives SMM access to more than 4GiB of the memory space.
4) Add assembly entry function to the SMM permanent handler
On x86_64 the SMM rmodule will switch from x86_32 to x86_64
and load the page table residing in the SMM rmodule.
TEST: Could access ROM3 BAR at 0xfd00000000 in SMM.
Change-Id: Ia493dc813f50df273d13053f1c9a0ae5335638d6
Signed-off-by: Patrick Rudolph <patrick.rudolph(a)9elements.com>
---
M src/cpu/x86/64bit/Makefile.mk
M src/cpu/x86/mp_init.c
M src/cpu/x86/smm/Makefile.mk
A src/cpu/x86/smm/smm_module_entry.S
M src/cpu/x86/smm/smm_module_handler.c
M src/cpu/x86/smm/smm_module_loader.c
A src/cpu/x86/smm/smm_relocation_wrapper.S
M src/cpu/x86/smm/smm_stub.S
M src/include/cpu/x86/smm.h
9 files changed, 126 insertions(+), 82 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/77/87177/3
--
To view, visit https://review.coreboot.org/c/coreboot/+/87177?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Ia493dc813f50df273d13053f1c9a0ae5335638d6
Gerrit-Change-Number: 87177
Gerrit-PatchSet: 3
Gerrit-Owner: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Reviewer: Jérémy Compostella <jeremy.compostella(a)intel.com>
Gerrit-Reviewer: Shuo Liu <shuo.liu(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-Attention: Jérémy Compostella <jeremy.compostella(a)intel.com>
Gerrit-Attention: Shuo Liu <shuo.liu(a)intel.com>
Attention is currently required from: Dinesh Gehlot, Eric Lai, Nick Vaccaro, SH Kim, Subrata Banik.
Kapil Porwal has posted comments on this change by SH Kim. ( https://review.coreboot.org/c/coreboot/+/87253?usp=email )
Change subject: mb/google/nissa/var/meliks: Get wifi sar name
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/87253?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I2d7a08059c0ed7588311a421faf59146ac43001d
Gerrit-Change-Number: 87253
Gerrit-PatchSet: 1
Gerrit-Owner: SH Kim <sh_.kim(a)samsung.corp-partner.google.com>
Gerrit-Reviewer: Dinesh Gehlot <digehlot(a)google.com>
Gerrit-Reviewer: Eric Lai <ericllai(a)google.com>
Gerrit-Reviewer: Jayvik Desai <jayvik(a)google.com>
Gerrit-Reviewer: Kapil Porwal <kapilporwal(a)google.com>
Gerrit-Reviewer: Nick Vaccaro <nvaccaro(a)chromium.org>
Gerrit-Reviewer: Subrata Banik <subratabanik(a)google.com>
Gerrit-Attention: Eric Lai <ericllai(a)google.com>
Gerrit-Attention: Subrata Banik <subratabanik(a)google.com>
Gerrit-Attention: SH Kim <sh_.kim(a)samsung.corp-partner.google.com>
Gerrit-Attention: Dinesh Gehlot <digehlot(a)google.com>
Gerrit-Attention: Nick Vaccaro <nvaccaro(a)chromium.org>
Gerrit-Comment-Date: Thu, 10 Apr 2025 08:18:29 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Attention is currently required from: Felix Held, Martin L Roth.
Naresh Solanki has posted comments on this change by Naresh Solanki. ( https://review.coreboot.org/c/coreboot/+/87214?usp=email )
Change subject: src/soc/amd/* : Move CPU init in common code
......................................................................
Patch Set 2:
(2 comments)
Patchset:
PS2:
> the corresponding change in soc/amd/picasso/cpu. […]
Your right. I missed that.
File src/soc/amd/cezanne/cpu.c:
https://review.coreboot.org/c/coreboot/+/87214/comment/722b3b51_a697cd5e?us… :
PS2, Line 4: #include <amdblocks/mca.h>
: #include <cpu/amd/microcode.h>
> those two includes can likely be dropped. […]
Acknowledged
--
To view, visit https://review.coreboot.org/c/coreboot/+/87214?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: If53455f359302f368f7c979defa2c1088c5c2f16
Gerrit-Change-Number: 87214
Gerrit-PatchSet: 2
Gerrit-Owner: Naresh Solanki <naresh.solanki(a)9elements.com>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Attention: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Comment-Date: Thu, 10 Apr 2025 08:09:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Felix Held <felix-coreboot(a)felixheld.de>
Attention is currently required from: Martin L Roth, Naresh Solanki.
Hello Felix Held, Martin L Roth, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/87214?usp=email
to look at the new patch set (#3).
The following approvals got outdated and were removed:
Verified+1 by build bot (Jenkins)
Change subject: src/soc/amd/* : Move CPU init in common code
......................................................................
src/soc/amd/* : Move CPU init in common code
AMD SoC from family 17h share common cpu init code.
Move those to common/block/cpu/noncar/cpu.c
TEST=Build for glinda SoC & check for boot.
Change-Id: If53455f359302f368f7c979defa2c1088c5c2f16
Signed-off-by: Naresh Solanki <naresh.solanki(a)9elements.com>
---
M src/soc/amd/cezanne/cpu.c
M src/soc/amd/common/block/cpu/noncar/cpu.c
M src/soc/amd/common/block/include/amdblocks/cpu.h
M src/soc/amd/genoa_poc/cpu.c
M src/soc/amd/glinda/cpu.c
M src/soc/amd/mendocino/cpu.c
M src/soc/amd/phoenix/cpu.c
M src/soc/amd/picasso/cpu.c
8 files changed, 20 insertions(+), 66 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/14/87214/3
--
To view, visit https://review.coreboot.org/c/coreboot/+/87214?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: If53455f359302f368f7c979defa2c1088c5c2f16
Gerrit-Change-Number: 87214
Gerrit-PatchSet: 3
Gerrit-Owner: Naresh Solanki <naresh.solanki(a)9elements.com>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Attention: Naresh Solanki <naresh.solanki(a)9elements.com>
Attention is currently required from: Dinesh Gehlot, Eric Lai, Kapil Porwal, Nick Vaccaro, SH Kim, Subrata Banik.
Jayvik Desai has posted comments on this change by SH Kim. ( https://review.coreboot.org/c/coreboot/+/87253?usp=email )
Change subject: mb/google/nissa/var/meliks: Get wifi sar name
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://review.coreboot.org/c/coreboot/+/87253?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I2d7a08059c0ed7588311a421faf59146ac43001d
Gerrit-Change-Number: 87253
Gerrit-PatchSet: 1
Gerrit-Owner: SH Kim <sh_.kim(a)samsung.corp-partner.google.com>
Gerrit-Reviewer: Dinesh Gehlot <digehlot(a)google.com>
Gerrit-Reviewer: Eric Lai <ericllai(a)google.com>
Gerrit-Reviewer: Jayvik Desai <jayvik(a)google.com>
Gerrit-Reviewer: Kapil Porwal <kapilporwal(a)google.com>
Gerrit-Reviewer: Nick Vaccaro <nvaccaro(a)chromium.org>
Gerrit-Reviewer: Subrata Banik <subratabanik(a)google.com>
Gerrit-Attention: Eric Lai <ericllai(a)google.com>
Gerrit-Attention: Subrata Banik <subratabanik(a)google.com>
Gerrit-Attention: SH Kim <sh_.kim(a)samsung.corp-partner.google.com>
Gerrit-Attention: Kapil Porwal <kapilporwal(a)google.com>
Gerrit-Attention: Dinesh Gehlot <digehlot(a)google.com>
Gerrit-Attention: Nick Vaccaro <nvaccaro(a)chromium.org>
Gerrit-Comment-Date: Thu, 10 Apr 2025 08:09:35 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes