Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCC startup (istep 21.1) #100

Merged
merged 66 commits into from
Oct 20, 2021
Merged

OCC startup (istep 21.1) #100

merged 66 commits into from
Oct 20, 2021

Conversation

SergiiDmytruk
Copy link
Member

Includes #89.

src/include/cpu/power/occ.h Outdated Show resolved Hide resolved
src/include/cpu/power/occ.h Outdated Show resolved Hide resolved
src/include/cpu/power/occ.h Outdated Show resolved Hide resolved
src/include/cpu/power/occ.h Outdated Show resolved Hide resolved
src/soc/ibm/power9/Makefile.inc Outdated Show resolved Hide resolved
src/soc/ibm/power9/occ.c Outdated Show resolved Hide resolved
src/soc/ibm/power9/occ.c Outdated Show resolved Hide resolved
src/soc/ibm/power9/homer.c Outdated Show resolved Hide resolved
src/soc/ibm/power9/homer.c Outdated Show resolved Hide resolved
src/soc/ibm/power9/homer.c Outdated Show resolved Hide resolved
src/soc/ibm/power9/homer.c Outdated Show resolved Hide resolved
src/soc/ibm/power9/homer.c Outdated Show resolved Hide resolved
write_scom(PU_GPE2_PPE_XIXCR, PPC_PLACE(RESUME, 1, 3));

/* Does this need to be such a long time? */
wait_ms(20*TIMEOUT_COUNT,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
wait_ms(20*TIMEOUT_COUNT,
wait_ms(PGPE_POLLTIME_MS * TIMEOUT_COUNT,

I wonder if we should add a version of wait_ms() to coreboot that checks condition periodically instead of using busy loop. For memory training busy reading significantly slowed down the training. The issue is that we can't use delay() in ramstage, at least not in the same form. Still, this is not part of this task, I'm just thinking out loud 🙂

src/soc/ibm/power9/homer.c Outdated Show resolved Hide resolved
src/soc/ibm/power9/homer.c Outdated Show resolved Hide resolved
src/soc/ibm/power9/homer.c Outdated Show resolved Hide resolved
src/soc/ibm/power9/homer.c Outdated Show resolved Hide resolved
src/soc/ibm/power9/homer.c Outdated Show resolved Hide resolved
src/soc/ibm/power9/occ.c Outdated Show resolved Hide resolved
src/soc/ibm/power9/occ.c Outdated Show resolved Hide resolved
Copy link
Member

@krystian-hebel krystian-hebel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small change, otherwise LGTM

src/soc/ibm/power9/fir.c Outdated Show resolved Hide resolved
Igor Bagnucki and others added 24 commits October 19, 2021 19:36
Signed-off-by: Igor Bagnucki <igor.bagnucki@3mdeb.com>
Change-Id: Ia342e6befc92c52dcced360dbc5c658ddf31d6b8
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Hostboot doesn't seem to do it and it times out anyway.

Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
It takes some time to start OCC.

Change-Id: I1609349c673b4f0295e4e743add61f66a66aa6b1
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Change-Id: I56651886bc752ce9f17707ff0393abfdb65cb51d
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Change-Id: I4ab8a73cb73ccd486f08713920e8c389adff22b7
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Change-Id: I632fbad29216554ba44055ce803d912a4246da4c
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Change-Id: Ia3d53035ac34e64cd5c224e1423526990f62df06
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Change-Id: Iebbba0ecaa235c37c70d182ec03022d852402971
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Change-Id: Idfe51a377fd01d945ba888f4cc613742f067a955
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Change-Id: I5a011866c2453801a5e998fe87550b3e288f970d
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Change-Id: I53c1c46492d57032d02bf3fc514933e4f4f50597
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Change-Id: Ic6ebdd8e6fa2f8347f60d6a2435ce7c4ef1eb19d
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Change-Id: I93427b99d18f3ca8b35c5cc9d0414a8d868f7f6d
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Change-Id: I75a7bbf1474ffe556356f04e28d23bd47d14004f
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Change-Id: I8a634e023dd8cecfa771c68ebe5134c1d4acf04e
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Change-Id: Ia13098cedf6e68889a4152dfb616710aebb488d1
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Change-Id: Ia70f487001b965648ec779353149f2c62f996670
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Change-Id: I306de2b11cd98cc99c3262dc74dabcf8c22565d7
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Change-Id: I212fec18384c81488b5f3de1631dda1df08248d0
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Change-Id: Ia0e991efe26b8abf6f020cb10eb82f951674e25b
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Change-Id: I483b9ce660a7d840a52437f1de0428df2ea84706
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Also fix a bug in pm_occ_fir_init() and move the two functions to a
separate file.

Change-Id: Idbbbe002ed673beaad18ccd144f193a290baf969
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Change-Id: I3e60bd4b2299691cb18df98c218514671eb3a440
Signed-off-by: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
@krystian-hebel
Copy link
Member

Let's wait for CI tests before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants