All of this is food for thought and may be suitable for follow-up work:

The follow up commit provides AgesaCustomMemoryProfileSPD() for a manual override. How about using that mechanism to select XMP1 or XMP2, too (choosing functions that copy the values into the right spot instead of changing the compiled-in offsets)?

That way it would be easier to implement runtime selection and fallback mechanisms (e.g. use an nvram value to select the profile and use boot_count or "no XMP profile found" to fall back to a stable option)

Patch set 6:Code-Review +1

View Change

1 comment:

To view, visit change 40488. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I584416e3376afdf377a11783e55c5e9ff41e6b0d
Gerrit-Change-Number: 40488
Gerrit-PatchSet: 6
Gerrit-Owner: Mike Banon <mikebdp2@gmail.com>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: Michał Żygowski <michal.zygowski@3mdeb.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi@google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-Comment-Date: Wed, 02 Dec 2020 14:51:45 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment