[coreboot-gerrit] Change in coreboot[master]: amd: [test] Fix IORR MTRR

Richard Spiegel (Code Review) gerrit at coreboot.org
Tue Oct 30 16:20:01 CET 2018


Richard Spiegel has posted comments on this change. ( https://review.coreboot.org/29352 )

Change subject: amd: [test] Fix IORR MTRR
......................................................................


Patch Set 4:

(3 comments)

You are having problems with include order, where some places AGESA.h is included firs, some places mtrr.h is included first. Options:
1) Remove the old and new definitions of IORR from mtrr.h and include AGESA.h where the definition is needed.
2) Rename the definitions slightly to avoid collision with AGESA.h.
3) Add protection to all AGESA.h files under src/vendorcode/amd/pi.
4) make sure all includes are in AGESA.h first in every file where mtrr.h and AGESA.h are included.

https://review.coreboot.org/#/c/29352/4//COMMIT_MSG
Commit Message:

https://review.coreboot.org/#/c/29352/4//COMMIT_MSG@7
PS4, Line 7: Fi
amd/mtrr: Fix IORR MTRR


https://review.coreboot.org/#/c/29352/4//COMMIT_MSG@8
PS4, Line 8: 
Add explanation... why was it wrong, problems with include order.


https://review.coreboot.org/#/c/29352/4/src/include/cpu/amd/mtrr.h
File src/include/cpu/amd/mtrr.h:

https://review.coreboot.org/#/c/29352/4/src/include/cpu/amd/mtrr.h@4
PS4, Line 4: #ifndef _AGESA_H_
I would love to have it removed from AGESA.h... however, because you're doing this for family 10 through family 16, non-stoney vendor code do use the definition. So for the time being this is an acceptable solution.



-- 
To view, visit https://review.coreboot.org/29352
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: I3eeb0c69bbb76039039dc90683670cafcb00ed36
Gerrit-Change-Number: 29352
Gerrit-PatchSet: 4
Gerrit-Owner: Elyes HAOUAS <ehaouas at noos.fr>
Gerrit-Reviewer: Richard Spiegel <richard.spiegel at silverbackltd.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply at coreboot.org>
Gerrit-Comment-Date: Tue, 30 Oct 2018 15:20:01 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20181030/8fcedf6e/attachment.html>


More information about the coreboot-gerrit mailing list