Attention is currently required from: Edward O'Callaghan, Tom Hughes.
Anastasia Klimchuk has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/62999 )
Change subject: flash: move nested struct to top level
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
And also same comment: why C++ ?
--
To view, visit https://review.coreboot.org/c/flashrom/+/62999
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I89988e4a6a7ca65866ba019320e480e491389d56
Gerrit-Change-Number: 62999
Gerrit-PatchSet: 1
Gerrit-Owner: Tom Hughes <tomhughes(a)chromium.org>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Attention: Tom Hughes <tomhughes(a)chromium.org>
Gerrit-Comment-Date: Wed, 13 Apr 2022 03:18:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Edward O'Callaghan, Tom Hughes.
Anastasia Klimchuk has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/63000 )
Change subject: layout: space needed between literal and identifier
......................................................................
Patch Set 1:
(1 comment)
Patchset:
PS1:
I just now read the comment in https://review.coreboot.org/c/flashrom/+/63001
I have to admit, I also want to understand, why C++ ?
--
To view, visit https://review.coreboot.org/c/flashrom/+/63000
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I04f5572d6c2dc27b7c54ee6ee97874a7a1940229
Gerrit-Change-Number: 63000
Gerrit-PatchSet: 1
Gerrit-Owner: Tom Hughes <tomhughes(a)chromium.org>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Attention: Tom Hughes <tomhughes(a)chromium.org>
Gerrit-Comment-Date: Wed, 13 Apr 2022 03:13:56 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Nico Huber, Paul Menzel, Angel Pons, Anastasia Klimchuk, Sergii Dmytruk.
Nikolai Artemiev has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/58738 )
Change subject: cli_classic: add writeprotect CLI and update man page
......................................................................
Patch Set 77:
(6 comments)
Commit Message:
https://review.coreboot.org/c/flashrom/+/58738/comment/4e8652ee_bc39b79c
PS77, Line 10:
> You can add into commit message the patch is also updating manpage for new cli commands.
Done
https://review.coreboot.org/c/flashrom/+/58738/comment/21673712_828e045e
PS77, Line 14: --wp-{enable,disable,range,list,status}
> There is also --wp-region command, you probably tested it too?
I think I've tested it before, but to be sure I retested with a W25Q128.W flash and a simple layout file:
```
0:0x7fffff a
0:0x3fffff b
```
File cli_classic.c:
https://review.coreboot.org/c/flashrom/+/58738/comment/10f089cf_7e560f24
PS77, Line 274: likley
> Typo: likley -> likely
Done
https://review.coreboot.org/c/flashrom/+/58738/comment/bd76781e_77258a30
PS77, Line 493: uint32_t wp_start = 0, wp_len = 0;
> Maybe move it above next to other wp variables? […]
Done
https://review.coreboot.org/c/flashrom/+/58738/comment/8df93538_18eea96d
PS77, Line 770: case OPTION_WP_SET_REGION:
> Is there a reason why OPTION_WP_SET_REGION comes last in the switch, and not next to all other WP op […]
Done
https://review.coreboot.org/c/flashrom/+/58738/comment/db0a5d5d_fd41fe7a
PS77, Line 985: disable_wp
> Just to double-check: can disable_wp run together with set_wp_range or set_wp_region?
Yep, they can run together since they're modifying different protection settings.
--
To view, visit https://review.coreboot.org/c/flashrom/+/58738
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I499f521781ee8999921996517802c0c0c641d869
Gerrit-Change-Number: 58738
Gerrit-PatchSet: 77
Gerrit-Owner: Nikolai Artemiev <nartemiev(a)google.com>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Reviewer: Sergii Dmytruk <sergii.dmytruk(a)3mdeb.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Attention: Sergii Dmytruk <sergii.dmytruk(a)3mdeb.com>
Gerrit-Comment-Date: Wed, 13 Apr 2022 03:13:31 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-MessageType: comment
Attention is currently required from: Edward O'Callaghan, Tom Hughes.
Anastasia Klimchuk has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/62999 )
Change subject: flash: move nested struct to top level
......................................................................
Patch Set 1:
(3 comments)
Commit Message:
https://review.coreboot.org/c/flashrom/+/62999/comment/dd652730_b382e85a
PS1, Line 8:
: The nested "struct tested" struct is "struct flashchip::tested" in C++.
: Move "struct tested" to the top level namespace to avoid this
: difference when using the "TEST_" macros that cast to "struct tested".
If you could be more specific on what exactly the problem this patch is solving? What does it mean "to avoid this difference"?
https://review.coreboot.org/c/flashrom/+/62999/comment/180b04cd_19d2705f
PS1, Line 14: TEST=emerge-hatch flashrom
You need to add info how you tested in upstream tree (emerge-hatch is not upstream). For example, did you build with make? did you run unit tests?
File flash.h:
https://review.coreboot.org/c/flashrom/+/62999/comment/d04331f7_38f27da6
PS1, Line 157: Indicate how well flashrom supports different operations of this flash chip.
This comment now duplicates for struct type and below. I think it is fine to leave it below (where it was originally).
But here, you need a different comment: describe what enum means?
--
To view, visit https://review.coreboot.org/c/flashrom/+/62999
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I89988e4a6a7ca65866ba019320e480e491389d56
Gerrit-Change-Number: 62999
Gerrit-PatchSet: 1
Gerrit-Owner: Tom Hughes <tomhughes(a)chromium.org>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Attention: Tom Hughes <tomhughes(a)chromium.org>
Gerrit-Comment-Date: Wed, 13 Apr 2022 03:02:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Edward O'Callaghan, Tom Hughes.
Anastasia Klimchuk has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/63000 )
Change subject: layout: space needed between literal and identifier
......................................................................
Patch Set 1:
(3 comments)
Commit Message:
https://review.coreboot.org/c/flashrom/+/63000/comment/18918a4e_02e3dba7
PS1, Line 14: TEST=emerge-hatch flashrom
If you could test that pre-processor output is the same before and after, that would be perfect!
Patchset:
PS1:
Sorry for delay
File layout.h:
https://review.coreboot.org/c/flashrom/+/63000/comment/34dd5de1_f357db30
PS1, Line 33: PRIxCHIPOFF
I can't find usages of PRIxCHIPOFF and PRIuCHIPSIZE... what I am missing? Is there some concatenation somewhere that makes the usages hard to find?
--
To view, visit https://review.coreboot.org/c/flashrom/+/63000
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I04f5572d6c2dc27b7c54ee6ee97874a7a1940229
Gerrit-Change-Number: 63000
Gerrit-PatchSet: 1
Gerrit-Owner: Tom Hughes <tomhughes(a)chromium.org>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Attention: Tom Hughes <tomhughes(a)chromium.org>
Gerrit-Comment-Date: Wed, 13 Apr 2022 02:53:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Robert Zieba, Nico Huber, Diana Zigterman, Edward O'Callaghan, Karthik Ramasubramanian.
Anastasia Klimchuk has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/62909 )
Change subject: raiden_debug_spi: Add more informative error message when WP is enabled
......................................................................
Patch Set 3: Code-Review+1
(4 comments)
File raiden_debug_spi.c:
https://review.coreboot.org/c/flashrom/+/62909/comment/dfd31704_1326f1c4
PS3, Line 987:
trailing space
https://review.coreboot.org/c/flashrom/+/62909/comment/5149acf3_9dcd3477
PS3, Line 987: /* Check if we received an error from the device. An error will have no response
: data, just the packet_id and status_code. */
We follow coding style https://www.flashrom.org/Development_Guidelines#Coding_style which is for the multi-line comment like this would be
/*
* Check if we received an error from the device. An error will have no response
* data, just the packet_id and status_code.
*/
Keep an eye to remove all trailing spaces, they often sneak in after first /*
https://review.coreboot.org/c/flashrom/+/62909/comment/5a323ab7_8f3de752
PS3, Line 989:
trailing space
https://review.coreboot.org/c/flashrom/+/62909/comment/eefb8852_1da803bc
PS3, Line 990: sizeof(struct usb_spi_response_v2) - USB_SPI_PAYLOAD_SIZE_V2_RESPONSE &&
: rsp_config.packet_v2.rsp_start.status_code != USB_SPI_SUCCESS) {
Could you please add one more tab before these two lines? It would be easier to visually distinguish between if condition and body.
There is another if condition just above this one, which uses the same formatting approach.
--
To view, visit https://review.coreboot.org/c/flashrom/+/62909
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ib1e8383baa9c3ea41ab1079af12e3dc8cdff90ae
Gerrit-Change-Number: 62909
Gerrit-PatchSet: 3
Gerrit-Owner: Robert Zieba <robertzieba(a)google.com>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Diana Zigterman <dzigterman(a)google.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Jon Murphy <jpmurphy(a)google.com>
Gerrit-Reviewer: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Eric Peers <epeers(a)google.com>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-CC: Rob Barnes <robbarnes(a)google.com>
Gerrit-Attention: Robert Zieba <robertzieba(a)google.com>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Diana Zigterman <dzigterman(a)google.com>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Attention: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Comment-Date: Wed, 13 Apr 2022 02:28:08 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Subrata Banik, Nico Huber, Edward O'Callaghan, Angel Pons.
Anastasia Klimchuk has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/62868 )
Change subject: ichspi: Introduce HSFC CYCLE READ/WRITE/ERASE macros
......................................................................
Patch Set 14:
(1 comment)
Patchset:
PS14:
I am thinking, there is a chain of changes with the macros, starting from CB:62888 and until this one.
There was a comment in one of the patches that such changes do not change pre-processor output. Is it possible to test it? Maybe at least in the beginning before CB:62888 and after this one CB:62868 (not individually for every patch).
If such a test is applicable, that would be great.
--
To view, visit https://review.coreboot.org/c/flashrom/+/62868
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I3ea74b668e5f8d8e4b3da2a8ad8b81f1813e1e80
Gerrit-Change-Number: 62868
Gerrit-PatchSet: 14
Gerrit-Owner: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-CC: Subrata Banik <subi.banik(a)gmail.com>
Gerrit-Attention: Subrata Banik <subi.banik(a)gmail.com>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Subrata Banik <subratabanik(a)google.com>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Comment-Date: Wed, 13 Apr 2022 01:42:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment