Jian-Ming Wang has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/71950 )
Change subject: drivers/intel/fsp2_0: Add saving MRC data after FSP-S option
......................................................................
Patch Set 9: Code-Review+1
(1 comment)
File src/drivers/intel/fsp2_0/save_mrc_data.c:
https://review.coreboot.org/c/coreboot/+/71950/comment/aba36a8f_8eb58cdd
PS9, Line 46: if !CONFIG(SAVE_MRC_AFTER_FSPS)
: BOOT_STATE_INIT_ENTRY(BS_PRE_DEVICE, BS_ON_ENTRY, save_mrc_data, NULL);
: #elif CONFIG(SAVE_MRC_AFTER_FSPS)
: BOOT_STATE_INIT_ENTRY(BS_DEV_INIT_CHIPS, BS_ON_EXIT, save_mrc_data, NULL);
: #endif
I didn't write the original patch, but I agree that the form you suggest is slightly better so I wen […]
I think the judgement is depending on whether the original idea is to use this definition to tell compiler to include the code into binary. From performance and code size perspective the original one possibly is (slightly?) better. From readability and static/dynamic code analysis perspective, the suggestion from Elyes is better. I think the change might be safe if it passed compiling stage.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/71950
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I3bab0c5004e717e842b484c89187e8c0b9c2b3eb
Gerrit-Change-Number: 71950
Gerrit-PatchSet: 9
Gerrit-Owner: Simon Chou
simonchou@supermicro.com.tw
Gerrit-Reviewer: Andrey Petrov
andrey.petrov@gmail.com
Gerrit-Reviewer: Daocheng Bu
daocheng.bu@intel.com
Gerrit-Reviewer: David Hendricks
david.hendricks@gmail.com
Gerrit-Reviewer: Jian-Ming Wang
jianmingW@supermicro.com
Gerrit-Reviewer: Jonathan Zhang
jonzhang@fb.com
Gerrit-Reviewer: Ray Han Lim Ng
ray.han.lim.ng@intel.com
Gerrit-Reviewer: Reka Norman
rekanorman@chromium.org
Gerrit-Reviewer: Subrata Banik
subrata.banik@intel.com
Gerrit-Reviewer: TimLiu-SMCI
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Arthur Heymans
arthur@aheymans.xyz
Gerrit-CC: Elyes Haouas
ehaouas@noos.fr
Gerrit-CC: Johnny Lin
Johnny_Lin@wiwynn.com
Gerrit-CC: Paul Menzel
paulepanter@mailbox.org
Gerrit-Comment-Date: Thu, 02 Feb 2023 06:33:02 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: David Hendricks
david.hendricks@gmail.com
Comment-In-Reply-To: Elyes Haouas
ehaouas@noos.fr
Gerrit-MessageType: comment