Philipp Hug has posted comments on this change. ( https://review.coreboot.org/29023 )
Change subject: riscv: add support smp_pause / smp_resume
......................................................................
Patch Set 8:
(1 comment)
https://review.coreboot.org/#/c/29023/7/src/arch/riscv/smp.c
File src/arch/riscv/smp.c:
https://review.coreboot.org/#/c/29023/7/src/arch/riscv/smp.c@24
PS7, Line 24: if (read_csr(mhartid) != working_hartid) {
> Can we move this check outside of this function to make the flow clearer? […]
Or as an alternative:
make it more clear that this function must be called by all harts.
Also add synchronization code here to make sure all harts are here, before continuing on hart 0.
--
To view, visit https://review.coreboot.org/29023
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I6f8159637bfb15f54f0abeb335de2ba6e9cf82fb
Gerrit-Change-Number: 29023
Gerrit-PatchSet: 8
Gerrit-Owner: Xiang Wang <wxjstz(a)126.com>
Gerrit-Reviewer: Jonathan Neuschäfer <j.neuschaefer(a)gmx.net>
Gerrit-Reviewer: Philipp Hug <philipp(a)hug.cx>
Gerrit-Reviewer: Shawn Chang <citypw(a)gmail.com>
Gerrit-Reviewer: Xiang Wang <wxjstz(a)126.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Mon, 15 Oct 2018 11:14:07 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
Xiang Wang has posted comments on this change. ( https://review.coreboot.org/29023 )
Change subject: riscv: add support smp_pause / smp_resume
......................................................................
Patch Set 8:
(3 comments)
https://review.coreboot.org/#/c/29023/7/src/arch/riscv/include/mcall.h
File src/arch/riscv/include/mcall.h:
https://review.coreboot.org/#/c/29023/7/src/arch/riscv/include/mcall.h@72
PS7, Line 72: /*
> Can you clarify this comment?
Done
https://review.coreboot.org/#/c/29023/7/src/arch/riscv/smp.c
File src/arch/riscv/smp.c:
https://review.coreboot.org/#/c/29023/7/src/arch/riscv/smp.c@22
PS7, Line 22: void smp_pause(int working_hartid)
> Could you add some comments here, especially that this function never returns.
Done
https://review.coreboot.org/#/c/29023/7/src/arch/riscv/smp.c@24
PS7, Line 24: if (read_csr(mhartid) != working_hartid) {
> Can we move this check outside of this function to make the flow clearer? […]
I want to pass the parameters to choose the cpu core to work.
--
To view, visit https://review.coreboot.org/29023
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I6f8159637bfb15f54f0abeb335de2ba6e9cf82fb
Gerrit-Change-Number: 29023
Gerrit-PatchSet: 8
Gerrit-Owner: Xiang Wang <wxjstz(a)126.com>
Gerrit-Reviewer: Jonathan Neuschäfer <j.neuschaefer(a)gmx.net>
Gerrit-Reviewer: Philipp Hug <philipp(a)hug.cx>
Gerrit-Reviewer: Shawn Chang <citypw(a)gmail.com>
Gerrit-Reviewer: Xiang Wang <wxjstz(a)126.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Mon, 15 Oct 2018 09:46:02 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
Hello Shawn Chang, Jonathan Neuschäfer, build bot (Jenkins), Philipp Hug,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/29023
to look at the new patch set (#8).
Change subject: riscv: add support smp_pause / smp_resume
......................................................................
riscv: add support smp_pause / smp_resume
See https://doc.coreboot.org/arch/riscv/ we know that we need to execute
smp_pause at the start of each stage and smp_resume at the end of each
stage.
Change-Id: I6f8159637bfb15f54f0abeb335de2ba6e9cf82fb
Signed-off-by: Xiang Wang <wxjstz(a)126.com>
---
M src/arch/riscv/Kconfig
M src/arch/riscv/Makefile.inc
A src/arch/riscv/include/arch/smp/smp.h
M src/arch/riscv/include/mcall.h
A src/arch/riscv/smp.c
M src/soc/sifive/fu540/clint.c
D src/soc/sifive/fu540/include/soc/clint.h
7 files changed, 103 insertions(+), 26 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/23/29023/8
--
To view, visit https://review.coreboot.org/29023
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I6f8159637bfb15f54f0abeb335de2ba6e9cf82fb
Gerrit-Change-Number: 29023
Gerrit-PatchSet: 8
Gerrit-Owner: Xiang Wang <wxjstz(a)126.com>
Gerrit-Reviewer: Jonathan Neuschäfer <j.neuschaefer(a)gmx.net>
Gerrit-Reviewer: Philipp Hug <philipp(a)hug.cx>
Gerrit-Reviewer: Shawn Chang <citypw(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Philipp Hug has posted comments on this change. ( https://review.coreboot.org/29023 )
Change subject: riscv: add support smp_pause / smp_resume
......................................................................
Patch Set 7:
(3 comments)
Thanks!
https://review.coreboot.org/#/c/29023/7/src/arch/riscv/include/mcall.h
File src/arch/riscv/include/mcall.h:
https://review.coreboot.org/#/c/29023/7/src/arch/riscv/include/mcall.h@72
PS7, Line 72: /* This function is used to operate msip by memory-mapped */
Can you clarify this comment?
https://review.coreboot.org/#/c/29023/7/src/arch/riscv/smp.c
File src/arch/riscv/smp.c:
https://review.coreboot.org/#/c/29023/7/src/arch/riscv/smp.c@22
PS7, Line 22: void smp_pause(void)
Could you add some comments here, especially that this function never returns.
https://review.coreboot.org/#/c/29023/7/src/arch/riscv/smp.c@24
PS7, Line 24: if (read_csr(mhartid) == 0)
Can we move this check outside of this function to make the flow clearer?
Also the hart executing coreboot doesn't necessarily have to be 0
--
To view, visit https://review.coreboot.org/29023
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I6f8159637bfb15f54f0abeb335de2ba6e9cf82fb
Gerrit-Change-Number: 29023
Gerrit-PatchSet: 7
Gerrit-Owner: Xiang Wang <wxjstz(a)126.com>
Gerrit-Reviewer: Jonathan Neuschäfer <j.neuschaefer(a)gmx.net>
Gerrit-Reviewer: Philipp Hug <philipp(a)hug.cx>
Gerrit-Reviewer: Shawn Chang <citypw(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Mon, 15 Oct 2018 09:14:24 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No