Attention is currently required from: Cliff Huang, Martin Roth, Tim Wawrzynczak, Rizwan Qureshi, Sridhar Siricilla, Bernardo Perez Priego, Andrew McRae.
Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/55259 )
Change subject: util/cse_fpt: Add a new tool for managing Intel CSE FPT binaries
......................................................................
Patch Set 20:
(2 comments)
File util/cbfstool/cse_fpt.h:
https://review.coreboot.org/c/coreboot/+/55259/comment/21849ba0_eb44b764
PS17, Line 14: r
> tab after `)`
Done
File util/cbfstool/cse_fpt.c:
https://review.coreboot.org/c/coreboot/+/55259/comment/c6107032_5088be6b
PS17, Line 2: /* SPDX-License-Identifier: GPL-2.0-only */
> nit: should this go on the first line?
Done
--
To view, visit https://review.coreboot.org/c/coreboot/+/55259
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I93c8d33e9baa327cbdab918a14f2f7a039953be6
Gerrit-Change-Number: 55259
Gerrit-PatchSet: 20
Gerrit-Owner: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Andrew McRae <amcrae(a)google.com>
Gerrit-Reviewer: Bernardo Perez Priego <bernardo.perez.priego(a)intel.com>
Gerrit-Reviewer: Cliff Huang <cliff.huang(a)intel.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Reviewer: Sridhar Siricilla <sridhar.siricilla(a)intel.com>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Cliff Huang <cliff.huang(a)intel.com>
Gerrit-Attention: Martin Roth <martinroth(a)google.com>
Gerrit-Attention: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Attention: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Attention: Sridhar Siricilla <sridhar.siricilla(a)intel.com>
Gerrit-Attention: Bernardo Perez Priego <bernardo.perez.priego(a)intel.com>
Gerrit-Attention: Andrew McRae <amcrae(a)google.com>
Gerrit-Comment-Date: Fri, 08 Oct 2021 22:23:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-MessageType: comment
Attention is currently required from: Cliff Huang, Martin Roth, Tim Wawrzynczak, Rizwan Qureshi, Sridhar Siricilla, Bernardo Perez Priego, Andrew McRae.
Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/55503 )
Change subject: util/cse_serger: Add a new tool for stitching CSE components
......................................................................
Patch Set 23:
(11 comments)
File util/cbfstool/bpdt_formats/bpdt_1_7.c:
https://review.coreboot.org/c/coreboot/+/55503/comment/6cf77a1d_48a8a7e7
PS22, Line 210: l->checksum = calculate_layout_checksum(l);
> nit: both this line and `calculate_layout_checksum` set l->checksum
`calculate_layout_checksum()` stashes what is in l->checksum to curr_checksum, sets it to 0 to perform the calculation, restores l->checksum and returns the calculated value.
If it seems too confusing, I can see if there is a better way to write `calculate_layout_checksum`.
https://review.coreboot.org/c/coreboot/+/55503/comment/d56259d2_04dbd3ca
PS22, Line 235: printf("BP4 size: 0x%x\n", l->bp4_size);
> remove this line (extra copy of line 237)
Done
https://review.coreboot.org/c/coreboot/+/55503/comment/37ed25c8_a7297dc8
PS22, Line 317: crc32(0xffff
> so the layout checksum is inverted but the header checksum is not?
It is on line 326 below once the checksum is calculated on header and all the entries.
File util/cbfstool/bpdt_formats/subpart_entry_1.c:
https://review.coreboot.org/c/coreboot/+/55503/comment/9e8bf6fe_a1cdcb80
PS22, Line 49: printf("%-25s%-25s%-25s%-25s%-25s%-25s\n", "Entry #", "Name", "Offset", "Huffman Compressed?",
: "Length", "Rsvd");
> nit: the line is already over 96, either make it 1 line or break before 96
Done
File util/cbfstool/cse_serger.h:
https://review.coreboot.org/c/coreboot/+/55503/comment/0f86f7e6_3bd6cd3f
PS21, Line 15:
> nit: extra blank line
Done
https://review.coreboot.org/c/coreboot/+/55503/comment/56b830fa_7cbd556a
PS21, Line 17: write_member(_buff, &(_x), sizeof(_x))
> nit: align with read_member above
Done
File util/cbfstool/cse_serger.c:
https://review.coreboot.org/c/coreboot/+/55503/comment/da16cc83_a9e9dc29
PS22, Line 79: ifwi
> nit: I think the struct name is superfluous
Done
https://review.coreboot.org/c/coreboot/+/55503/comment/48ec7306_2782e7fd
PS22, Line 99: subpart_info
> also superfluous?
Done
https://review.coreboot.org/c/coreboot/+/55503/comment/71a40b99_e819d661
PS22, Line 167:
: void write_member(struct buffer *buff, void *src, size_t size)
: {
: void *dst = buffer_get(buff);
:
: switch (size) {
: case 1:
: write_le8(dst, *(uint8_t *)src);
: break;
: case 2:
: write_le16(dst, *(uint16_t *)src);
: break;
: case 4:
: write_le32(dst, *(uint32_t *)src);
: break;
: case 8:
: write_le64(dst, *(uint64_t *)src);
: break;
: default:
: memcpy(dst, src, size);
: break;
: }
:
: buffer_seek(buff, size);
: }
:
: void read_member(struct buffer *buff, void *dst, size_t size)
: {
: const void *src = buffer_get(buff);
:
: switch (size) {
: case 1:
: *(uint8_t *)dst = read_le8(src);
: break;
: case 2:
: *(uint16_t *)dst = read_le16(src);
: break;
: case 4:
: *(uint32_t *)dst = read_le32(src);
: break;
: case 8:
: *(uint64_t *)dst = read_le64(src);
: break;
: default:
: memcpy(dst, src, size);
: break;
: }
:
: buffer_seek(buff, size);
: }
> is it worth it to break these out into a separate file for cse_fpt and cse_serger to share? it's not […]
It makes sense. I will do that.
Done: CB:58201
https://review.coreboot.org/c/coreboot/+/55503/comment/5092b8b3_c0d0ef71
PS22, Line 304: int
> size_t
Done
https://review.coreboot.org/c/coreboot/+/55503/comment/7c512477_6b4cdbc7
PS22, Line 857: if (c >= LONGOPT_START && c < LONGOPT_END)
: return true;
:
: return false;
> nit: […]
Done
--
To view, visit https://review.coreboot.org/c/coreboot/+/55503
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I90dd809b47fd16afdc80e66431312721082496aa
Gerrit-Change-Number: 55503
Gerrit-PatchSet: 23
Gerrit-Owner: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Andrew McRae <amcrae(a)google.com>
Gerrit-Reviewer: Bernardo Perez Priego <bernardo.perez.priego(a)intel.com>
Gerrit-Reviewer: Bernardo Perez Priego <bernardo.perez.priego(a)intel.corp-partner.google.com>
Gerrit-Reviewer: Cliff Huang <cliff.huang(a)intel.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Reviewer: Sridhar Siricilla <sridhar.siricilla(a)intel.com>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Cliff Huang <cliff.huang(a)intel.com>
Gerrit-Attention: Martin Roth <martinroth(a)google.com>
Gerrit-Attention: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Attention: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Attention: Sridhar Siricilla <sridhar.siricilla(a)intel.com>
Gerrit-Attention: Bernardo Perez Priego <bernardo.perez.priego(a)intel.com>
Gerrit-Attention: Bernardo Perez Priego <bernardo.perez.priego(a)intel.corp-partner.google.com>
Gerrit-Attention: Andrew McRae <amcrae(a)google.com>
Gerrit-Comment-Date: Fri, 08 Oct 2021 22:22:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-MessageType: comment
Attention is currently required from: Cliff Huang, Martin Roth, Rizwan Qureshi, Sridhar Siricilla, Bernardo Perez Priego, Andrew McRae.
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/55503 )
Change subject: util/cse_serger: Add a new tool for stitching CSE components
......................................................................
Patch Set 23:
(2 comments)
File util/cbfstool/cse_serger.c:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-130085):
https://review.coreboot.org/c/coreboot/+/55503/comment/8b343999_f73b4804
PS23, Line 272: ERROR("Part(%d) exceeds file size. Part offset=0x%x, Part size = 0x%x, File size = 0x%zx\n",
line over 96 characters
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-130085):
https://review.coreboot.org/c/coreboot/+/55503/comment/bfd82f89_73a4f3b2
PS23, Line 920: if (c < LONGOPT_START) {
braces {} are not necessary for any arm of this statement
--
To view, visit https://review.coreboot.org/c/coreboot/+/55503
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I90dd809b47fd16afdc80e66431312721082496aa
Gerrit-Change-Number: 55503
Gerrit-PatchSet: 23
Gerrit-Owner: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Andrew McRae <amcrae(a)google.com>
Gerrit-Reviewer: Bernardo Perez Priego <bernardo.perez.priego(a)intel.com>
Gerrit-Reviewer: Bernardo Perez Priego <bernardo.perez.priego(a)intel.corp-partner.google.com>
Gerrit-Reviewer: Cliff Huang <cliff.huang(a)intel.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Reviewer: Sridhar Siricilla <sridhar.siricilla(a)intel.com>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Cliff Huang <cliff.huang(a)intel.com>
Gerrit-Attention: Martin Roth <martinroth(a)google.com>
Gerrit-Attention: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Attention: Sridhar Siricilla <sridhar.siricilla(a)intel.com>
Gerrit-Attention: Bernardo Perez Priego <bernardo.perez.priego(a)intel.com>
Gerrit-Attention: Bernardo Perez Priego <bernardo.perez.priego(a)intel.corp-partner.google.com>
Gerrit-Attention: Andrew McRae <amcrae(a)google.com>
Gerrit-Comment-Date: Fri, 08 Oct 2021 22:22:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Cliff Huang, Furquan Shaikh, Martin Roth, Rizwan Qureshi, Sridhar Siricilla, Bernardo Perez Priego, Andrew McRae.
Hello build bot (Jenkins), Cliff Huang, Martin Roth, Patrick Georgi, Rizwan Qureshi, Tim Wawrzynczak, Sridhar Siricilla, Bernardo Perez Priego, Bernardo Perez Priego, Andrew McRae,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/55503
to look at the new patch set (#23).
Change subject: util/cse_serger: Add a new tool for stitching CSE components
......................................................................
util/cse_serger: Add a new tool for stitching CSE components
This change adds a new tool `cse_serger` which can be used to print,
dump and stitch together different components for the CSE region.
BUG=b:189177186
Change-Id: I90dd809b47fd16afdc80e66431312721082496aa
Signed-off-by: Furquan Shaikh <furquan(a)google.com>
---
M Makefile.inc
M util/cbfstool/Makefile
M util/cbfstool/Makefile.inc
A util/cbfstool/bpdt_formats/Makefile.inc
A util/cbfstool/bpdt_formats/bpdt_1_6.c
A util/cbfstool/bpdt_formats/bpdt_1_7.c
A util/cbfstool/bpdt_formats/subpart_entry_1.c
A util/cbfstool/bpdt_formats/subpart_hdr_1.c
A util/cbfstool/bpdt_formats/subpart_hdr_2.c
A util/cbfstool/cse_serger.c
A util/cbfstool/cse_serger.h
11 files changed, 1,957 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/03/55503/23
--
To view, visit https://review.coreboot.org/c/coreboot/+/55503
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I90dd809b47fd16afdc80e66431312721082496aa
Gerrit-Change-Number: 55503
Gerrit-PatchSet: 23
Gerrit-Owner: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Andrew McRae <amcrae(a)google.com>
Gerrit-Reviewer: Bernardo Perez Priego <bernardo.perez.priego(a)intel.com>
Gerrit-Reviewer: Bernardo Perez Priego <bernardo.perez.priego(a)intel.corp-partner.google.com>
Gerrit-Reviewer: Cliff Huang <cliff.huang(a)intel.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Reviewer: Sridhar Siricilla <sridhar.siricilla(a)intel.com>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Cliff Huang <cliff.huang(a)intel.com>
Gerrit-Attention: Furquan Shaikh <furquan(a)google.com>
Gerrit-Attention: Martin Roth <martinroth(a)google.com>
Gerrit-Attention: Rizwan Qureshi <rizwan.qureshi(a)intel.com>
Gerrit-Attention: Sridhar Siricilla <sridhar.siricilla(a)intel.com>
Gerrit-Attention: Bernardo Perez Priego <bernardo.perez.priego(a)intel.com>
Gerrit-Attention: Bernardo Perez Priego <bernardo.perez.priego(a)intel.corp-partner.google.com>
Gerrit-Attention: Andrew McRae <amcrae(a)google.com>
Gerrit-MessageType: newpatchset
Attention is currently required from: Raul Rangel, Julius Werner.
Karthik Ramasubramanian has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/58199 )
Change subject: arch/x86,cpu/x86,lib/thread: Remove usage of cpu_info from lib/thread
......................................................................
Patch Set 1:
(1 comment)
File src/lib/thread.c:
https://review.coreboot.org/c/coreboot/+/58199/comment/78be20f2_cdb75a19
PS1, Line 249: !boot_cpu()
Should we move this check inside set_current_thread. I am not sure if there is a possibility of this check getting removed and hence trashing the active_thread.
--
To view, visit https://review.coreboot.org/c/coreboot/+/58199
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iea4622d52c36d529e100b7ea55f32c334acfdf3e
Gerrit-Change-Number: 58199
Gerrit-PatchSet: 1
Gerrit-Owner: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Attention: Julius Werner <jwerner(a)chromium.org>
Gerrit-Comment-Date: Fri, 08 Oct 2021 21:55:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Shelley Chen.
Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/58191 )
Change subject: soc/qualcomm/sc7280: Enable compression of SHRM
......................................................................
Patch Set 3: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/58191
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iaad8a8a02abe40bd01766d94ef0b61aac7671936
Gerrit-Change-Number: 58191
Gerrit-PatchSet: 3
Gerrit-Owner: Shelley Chen <shchen(a)google.com>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Ravi Kumar Bokka <c_rbokka(a)qualcomm.corp-partner.google.com>
Gerrit-CC: Sudheer Amrabadi <samrabad(a)codeaurora.org>
Gerrit-CC: mturney mturney <mturney(a)codeaurora.org>
Gerrit-Attention: Shelley Chen <shchen(a)google.com>
Gerrit-Comment-Date: Fri, 08 Oct 2021 21:10:28 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment