Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/36358 )
Change subject: arch/x86/cbmem.c: Clean up unused paths ......................................................................
arch/x86/cbmem.c: Clean up unused paths
This code is not used in ramstage.
Change-Id: I023f11cfcefacdcae3c5db22bf98b40a3575cc9c Signed-off-by: Arthur Heymans arthur@aheymans.xyz --- M src/arch/x86/cbmem.c 1 file changed, 1 insertion(+), 12 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/58/36358/1
diff --git a/src/arch/x86/cbmem.c b/src/arch/x86/cbmem.c index 16a73c7..e055c18 100644 --- a/src/arch/x86/cbmem.c +++ b/src/arch/x86/cbmem.c @@ -18,19 +18,8 @@
void *cbmem_top_romstage(void) { - static void *cbmem_top_backup; - void *top_backup; - - if (ENV_RAMSTAGE && cbmem_top_backup != NULL) - return cbmem_top_backup; - /* Top of CBMEM is at highest usable DRAM address below 4GiB. */ - top_backup = (void *)restore_top_of_low_cacheable(); - - if (ENV_RAMSTAGE) - cbmem_top_backup = top_backup; - - return top_backup; + return (void *)restore_top_of_low_cacheable(); }
#endif /* CBMEM_TOP_BACKUP */
Kyösti Mälkki has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36358 )
Change subject: arch/x86/cbmem.c: Clean up unused paths ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/36358/1/src/arch/x86/cbmem.c File src/arch/x86/cbmem.c:
https://review.coreboot.org/c/coreboot/+/36358/1/src/arch/x86/cbmem.c@22 PS1, Line 22: return (void *)restore_top_of_low_cacheable(); Assume this to be slow. It would be nice if the callee (cbmem_top()) would cache the value in romstage, even though we did not previously do it.
Arthur Heymans has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36358 )
Change subject: arch/x86/cbmem.c: Clean up unused paths ......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/c/coreboot/+/36358/1/src/arch/x86/cbmem.c File src/arch/x86/cbmem.c:
https://review.coreboot.org/c/coreboot/+/36358/1/src/arch/x86/cbmem.c@22 PS1, Line 22: return (void *)restore_top_of_low_cacheable();
Assume this to be slow. It would be nice if the callee (cbmem_top()) would cache the value in romstage, even though we did not previously do it.
MAYBE_STATIC_BSS should cover the NO_CAR_GLOBAL_MIGRATION use case?
Arthur Heymans has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36358 )
Change subject: arch/x86/cbmem.c: Clean up unused paths ......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/c/coreboot/+/36358/1/src/arch/x86/cbmem.c File src/arch/x86/cbmem.c:
https://review.coreboot.org/c/coreboot/+/36358/1/src/arch/x86/cbmem.c@22 PS1, Line 22: return (void *)restore_top_of_low_cacheable();
Assume this to be slow. It would be nice if the callee (cbmem_top()) would cache the value in romstage, even though we did not previously do it.
MAYBE_STATIC_BSS should cover the NO_CAR_GLOBAL_MIGRATION use case?
done in CB:36144
Kyösti Mälkki has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36358 )
Change subject: arch/x86/cbmem.c: Clean up unused paths ......................................................................
Patch Set 2: Code-Review+2
(1 comment)
https://review.coreboot.org/c/coreboot/+/36358/1/src/arch/x86/cbmem.c File src/arch/x86/cbmem.c:
https://review.coreboot.org/c/coreboot/+/36358/1/src/arch/x86/cbmem.c@22 PS1, Line 22: return (void *)restore_top_of_low_cacheable();
Assume this to be slow. […]
Done
Michael Niewöhner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/36358 )
Change subject: arch/x86/cbmem.c: Clean up unused paths ......................................................................
Patch Set 4: Code-Review+1
Arthur Heymans has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/36358 )
Change subject: arch/x86/cbmem.c: Clean up unused paths ......................................................................
Abandoned
squashed in CB:36144