Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32751
Change subject: Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enable ......................................................................
Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enable
Change-Id: I416c74ea83ee68370bbeb53834054bcb18e631e1 Signed-off-by: Subrata Banik subrata.banik@intel.com --- M src/include/rules.h 1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/32751/1
diff --git a/src/include/rules.h b/src/include/rules.h index 801a7fe..5ee535b 100644 --- a/src/include/rules.h +++ b/src/include/rules.h @@ -257,9 +257,14 @@
#endif
+#if CONFIG(RAMPAYLOAD) +/* ENV_PAYLOAD_LOADER is set to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enable */ +#define ENV_PAYLOAD_LOADER ENV_POSTCAR +#else /* ENV_PAYLOAD_LOADER is set when you are in a stage that loads the payload. * For now, that is the ramstage. */ #define ENV_PAYLOAD_LOADER ENV_RAMSTAGE +#endif
/** * For pre-DRAM stages and post-CAR always build with simple device model, ie.
Hello Aaron Durbin, ron minnich, build bot (Jenkins), Patrick Georgi,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/32751
to look at the new patch set (#6).
Change subject: Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enable ......................................................................
Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enable
Change-Id: I416c74ea83ee68370bbeb53834054bcb18e631e1 Signed-off-by: Subrata Banik subrata.banik@intel.com --- M src/include/rules.h 1 file changed, 7 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/32751/6
Subrata Banik has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/32751 )
Change subject: Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enable ......................................................................
Abandoned
parking for now, let see if we need this later
Subrata Banik has restored this change. ( https://review.coreboot.org/c/coreboot/+/32751 )
Change subject: Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enable ......................................................................
Restored
Subrata Banik has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32751 )
Change subject: Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enable ......................................................................
Patch Set 6:
HI Ron,
can you please help me to get this issue fixed. I'm unable to understand the dependency part in AMD library
Subrata Banik has removed Furquan Shaikh from this change. ( https://review.coreboot.org/c/coreboot/+/32751 )
Change subject: Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enable ......................................................................
Removed reviewer Furquan Shaikh.
Hello Aaron Durbin, Furquan Shaikh, ron minnich, build bot (Jenkins), Martin Roth, Patrick Georgi,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/32751
to look at the new patch set (#7).
Change subject: Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enable ......................................................................
Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enable
Change-Id: I416c74ea83ee68370bbeb53834054bcb18e631e1 Signed-off-by: Subrata Banik subrata.banik@intel.com --- M src/include/rules.h 1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/32751/7
Subrata Banik has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32751 )
Change subject: Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enable ......................................................................
Patch Set 7:
Patch Set 6:
HI Ron,
can you please help me to get this issue fixed. I'm unable to understand the dependency part in AMD library
here is build failure: https://qa.coreboot.org/job/coreboot-gerrit/94821/testReport/junit/(root)/bo...
ron minnich has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32751 )
Change subject: Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enable ......................................................................
Patch Set 7:
diff --git a/src/vendorcode/amd/pi/Makefile.inc b/src/vendorcode/amd/pi/Makefile.inc index 4c8db6ab50..4e8787bed2 100644 --- a/src/vendorcode/amd/pi/Makefile.inc +++ b/src/vendorcode/amd/pi/Makefile.inc @@ -100,8 +100,8 @@ $(call src-to-obj,libagesa,$1): $(agesa_src_path)/$(notdir $1) $(obj)/config.h $ @printf " CC $$(subst $(obj)/,,$$(@))\n" $(CC_libagesa) -c -MMD $(CFLAGS_libagesa) $(AGESA_CFLAGS) \ $(AGESA_INC) \ - -include $(src)/include/rules.h \ -include $(src)/include/kconfig.h \ + -include $(src)/include/rules.h \ -include $(src)/commonlib/include/commonlib/compiler.h \ -o $$@ \ $(agesa_src_path)/$(notdir $1)
fixes it.
Subrata Banik has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32751 )
Change subject: Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enable ......................................................................
Patch Set 8:
Patch Set 7:
diff --git a/src/vendorcode/amd/pi/Makefile.inc b/src/vendorcode/amd/pi/Makefile.inc index 4c8db6ab50..4e8787bed2 100644 --- a/src/vendorcode/amd/pi/Makefile.inc +++ b/src/vendorcode/amd/pi/Makefile.inc @@ -100,8 +100,8 @@ $(call src-to-obj,libagesa,$1): $(agesa_src_path)/$(notdir $1) $(obj)/config.h $ @printf " CC $$(subst $(obj)/,,$$(@))\n" $(CC_libagesa) -c -MMD $(CFLAGS_libagesa) $(AGESA_CFLAGS) \ $(AGESA_INC) \
-include $(src)/include/rules.h \ -include $(src)/include/kconfig.h \
-include $(src)/include/rules.h \ -include $(src)/commonlib/include/commonlib/compiler.h \ -o $$@ \ $(agesa_src_path)/$(notdir $1)
fixes it.
Thanks a lot Ron
ron minnich has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32751 )
Change subject: Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enable ......................................................................
Patch Set 8:
This is weird. Why am I not seeing the changed amd/pi/Makefile.inc here? did it change upstream?
Kyösti Mälkki has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32751 )
Change subject: Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enable ......................................................................
Patch Set 8:
Patch Set 8:
This is weird. Why am I not seeing the changed amd/pi/Makefile.inc here? did it change upstream?
Merged already.
Subrata, it's recommended that changes are not submitted within the first 24 hours they are under review. (Technically the Makefile change did not meet that guideline.)
Subrata Banik has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32751 )
Change subject: Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enable ......................................................................
Patch Set 8:
Patch Set 8:
Patch Set 8:
This is weird. Why am I not seeing the changed amd/pi/Makefile.inc here? did it change upstream?
Merged already.
Subrata, it's recommended that changes are not submitted within the first 24 hours they are under review. (Technically the Makefile change did not meet that guideline.)
i ack my mistake and will make sure not happening in future. Hope we are good with merged CL.
ron minnich has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32751 )
Change subject: Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enable ......................................................................
Patch Set 9:
(1 comment)
"enabled"
https://review.coreboot.org/#/c/32751/9/src/include/rules.h File src/include/rules.h:
https://review.coreboot.org/#/c/32751/9/src/include/rules.h@261 PS9, Line 261: /* ENV_PAYLOAD_LOADER is set to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enable */ enabled
Hello Aaron Durbin, ron minnich, Furquan Shaikh, build bot (Jenkins), Furquan Shaikh, Martin Roth, Patrick Georgi,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/32751
to look at the new patch set (#10).
Change subject: Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enabled ......................................................................
Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enabled
Change-Id: I416c74ea83ee68370bbeb53834054bcb18e631e1 Signed-off-by: Subrata Banik subrata.banik@intel.com --- M src/include/rules.h 1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/32751/10
Hello Aaron Durbin, ron minnich, Furquan Shaikh, build bot (Jenkins), Furquan Shaikh, Martin Roth, Patrick Georgi,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/32751
to look at the new patch set (#11).
Change subject: Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enabled ......................................................................
Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enabled
Change-Id: I416c74ea83ee68370bbeb53834054bcb18e631e1 Signed-off-by: Subrata Banik subrata.banik@intel.com --- M src/include/rules.h 1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/51/32751/11
Subrata Banik has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32751 )
Change subject: Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enabled ......................................................................
Patch Set 11:
(1 comment)
https://review.coreboot.org/#/c/32751/9/src/include/rules.h File src/include/rules.h:
https://review.coreboot.org/#/c/32751/9/src/include/rules.h@261 PS9, Line 261: /* ENV_PAYLOAD_LOADER is set to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enable */
enabled
Done
ron minnich has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32751 )
Change subject: Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enabled ......................................................................
Patch Set 11: Code-Review+2
seems fine now. I can't wait to use it :-)
Subrata Banik has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/32751 )
Change subject: Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enabled ......................................................................
Patch Set 11:
Patch Set 11: Code-Review+2
seems fine now. I can't wait to use it :-)
yes, i guess we are making some progress now in order to build coreboot without ramstage (thanks to add reviewers specifically Aaron and Julius)
now we need to add basic functionality into postcar to boot with full feature. Now here is 2 challenge
1. Dynamic generation of ASL code as we are not executing BS machine. I'm planning to create a smaller devicetree.cb with only required devices entry for dynamic ASL creation in postcar
2. Dynamic PCI BAR allocation based on free main memory to boot from boot media as depthcharge will expect to have BAR assigned. In absence of BS machine, dynamic BAR allocation will be key. hence a limited devicetree.cb in postcar to allocated #1 and #2 might solve these problem.
Like to hear more thoughts. remaining i have good visibility about how much code needs to put into postcar apart from #1 and #2 hack right now i'm having in code.
Subrata Banik has submitted this change and it was merged. ( https://review.coreboot.org/c/coreboot/+/32751 )
Change subject: Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enabled ......................................................................
Set ENV_PAYLOAD_LOADER to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enabled
Change-Id: I416c74ea83ee68370bbeb53834054bcb18e631e1 Signed-off-by: Subrata Banik subrata.banik@intel.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/32751 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: ron minnich rminnich@gmail.com --- M src/include/rules.h 1 file changed, 5 insertions(+), 0 deletions(-)
Approvals: build bot (Jenkins): Verified ron minnich: Looks good to me, approved
diff --git a/src/include/rules.h b/src/include/rules.h index ce968f0..fcb827d 100644 --- a/src/include/rules.h +++ b/src/include/rules.h @@ -257,9 +257,14 @@
#endif
+#if CONFIG(RAMPAYLOAD) +/* ENV_PAYLOAD_LOADER is set to ENV_POSTCAR when CONFIG_RAMPAYLOAD is enabled */ +#define ENV_PAYLOAD_LOADER ENV_POSTCAR +#else /* ENV_PAYLOAD_LOADER is set when you are in a stage that loads the payload. * For now, that is the ramstage. */ #define ENV_PAYLOAD_LOADER ENV_RAMSTAGE +#endif
/** * For pre-DRAM stages and post-CAR always build with simple device model, ie.