Attention is currently required from: Edward O'Callaghan.
Anastasia Klimchuk has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/71826 )
Change subject: tests/chip.c: Set MOCK_CHIP_CONTENT non-ambiguously
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://review.coreboot.org/c/flashrom/+/71826
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I15905180141aee54c166ff1c0275d1a7dfde0a46
Gerrit-Change-Number: 71826
Gerrit-PatchSet: 1
Gerrit-Owner: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Comment-Date: Thu, 12 Jan 2023 00:47:31 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Thomas Heijligen, Angel Pons, Steve Markgraf.
Anastasia Klimchuk has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/71801 )
Change subject: programmer: Add bitbanging programmer driver for Linux libgpiod
......................................................................
Patch Set 1:
(2 comments)
Patchset:
PS1:
Hello Steve,
Thank you so much for your contribution!
While this will need to go through all reviews from other people as well, I have a question to you. As you are an original author of the programmer, would you agree to add yourself into MAINTAINERS file for this programmer? This would mean you will be automatically added as reviewer if someone sends a patch which touches code for the programmer. Also since MAINTAINERS file is a bit of documentation, you will be the person who "knows something about this programmer" and people might ask you questions :) It would be great if you agree!
As I said, the patch needs to go through all reviews, but I decided to ask a question now so you can think about it. Thank you!
File linux_gpiod.c:
https://review.coreboot.org/c/flashrom/+/71801/comment/2e5df448_ff6592ac
PS1, Line 148: if (data) {
: if (gpiod_line_bulk_num_lines(&data->bulk) > 0)
: gpiod_line_release_bulk(&data->bulk);
:
: free(data);
: }
:
: if (chip)
: gpiod_chip_close(chip);
I have few questions about the error path exit.
1) It looks like it is doing the same as shutdown function (which of course makes sense). Is it possible to try re-write a bit, so that just call shutdown function? If any changes are needed later for shutdown process, only one place would need to be changed.
2) The first two callsites of `goto err_exit` , where there is no data and chip is not opened yet: does anything need to be done there? could that be `return 1` (tell me if I am wrong)? I am thinking that maybe those two first callsites could be `return 1` and then err_exit could just call shutdown function?
--
To view, visit https://review.coreboot.org/c/flashrom/+/71801
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Icad3eb7764f28feaea51bda3a7893da724c86d06
Gerrit-Change-Number: 71801
Gerrit-PatchSet: 1
Gerrit-Owner: Steve Markgraf <steve(a)steve-m.de>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Attention: Thomas Heijligen <src(a)posteo.de>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Steve Markgraf <steve(a)steve-m.de>
Gerrit-Comment-Date: Thu, 12 Jan 2023 00:46:48 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Sam McNally, Edward O'Callaghan, Anastasia Klimchuk.
Evan Benn has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/71659 )
Change subject: tests/: Add non-aligned write within a region unit-test
......................................................................
Patch Set 4: Code-Review+1
(8 comments)
Commit Message:
https://review.coreboot.org/c/flashrom/+/71659/comment/e022e2b5_a5c37f5c
PS2, Line 7: tests/: Add subregion alignment unit-test
> Done
What does non-aligned mean? The commit message can match the test name
File tests/chip.c:
https://review.coreboot.org/c/flashrom/+/71659/comment/866dc56d_59aa0572
PS2, Line 469: * {MOCK_CHIP_SUBREGION_CONTENTS} [..] {MOCK_CHIP_SUBREGION_CONTENTS}.
> Done
I dont understand this:
`{MOCK_CHIP_SUBREGION_CONTENTS} [..] {MOCK_CHIP_SUBREGION_CONTENTS}`
File tests/chip.c:
https://review.coreboot.org/c/flashrom/+/71659/comment/4bfa7968_2a006efd
PS4, Line 443: /* FIXME: MOCK_CHIP_CONTENT is buggy within setup_chip, it should also
should this comment be here? if its buggy does the test work? what bug?
https://review.coreboot.org/c/flashrom/+/71659/comment/5887cb65_e01c274f
PS4, Line 447: #define MOCK_CHIP_SUBREGION_CONTENTS 0xCC
CC is now the default setting of the chip, probably doesnt matter
https://review.coreboot.org/c/flashrom/+/71659/comment/ee2c82e2_129af283
PS4, Line 457: /* Expect to verify the write completed successfuly within the region. */
is the presence of these flags important for catching the bug?
If so, document why. If not, remove them.
https://review.coreboot.org/c/flashrom/+/71659/comment/bd3c251f_82049b0f
PS4, Line 469: * Create subregion smaller than erase granularity of chip.
subregion -> region whole file replace please
https://review.coreboot.org/c/flashrom/+/71659/comment/417ed310_671617d6
PS4, Line 498: /* .. */
remove
https://review.coreboot.org/c/flashrom/+/71659/comment/aa83260a_d1be3a51
PS4, Line 500: /* Expect a verification pass that content within the region however
this doesnt make sense
--
To view, visit https://review.coreboot.org/c/flashrom/+/71659
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Id3ce5cd1936f0f348d34a6c77cee15e27a5c353f
Gerrit-Change-Number: 71659
Gerrit-PatchSet: 4
Gerrit-Owner: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Evan Benn <evanbenn(a)google.com>
Gerrit-Reviewer: Sam McNally <sammc(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Attention: Sam McNally <sammc(a)google.com>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Attention: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Comment-Date: Thu, 12 Jan 2023 00:40:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Edward O'Callaghan <quasisec(a)chromium.org>
Comment-In-Reply-To: Evan Benn <evanbenn(a)google.com>
Gerrit-MessageType: comment
Attention is currently required from: Edward O'Callaghan, Evan Benn.
Peter Marheine has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/71773 )
Change subject: flashrom_tester: Remove --output log redirect option
......................................................................
Patch Set 2: Code-Review+1
--
To view, visit https://review.coreboot.org/c/flashrom/+/71773
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I5eab8169644a16ba31b203e8607853c459f92978
Gerrit-Change-Number: 71773
Gerrit-PatchSet: 2
Gerrit-Owner: Evan Benn <evanbenn(a)google.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Nikolai Artemiev <nartemiev(a)google.com>
Gerrit-Reviewer: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Attention: Evan Benn <evanbenn(a)google.com>
Gerrit-Comment-Date: Thu, 12 Jan 2023 00:28:29 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Edward O'Callaghan has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/71826 )
Change subject: tests/chip.c: Set MOCK_CHIP_CONTENT non-ambiguously
......................................................................
tests/chip.c: Set MOCK_CHIP_CONTENT non-ambiguously
A chip content setup as 0x00 is ambiguous from a zero'ed heap
or some erased chips and 0xFF is ambiguous from an erased chip.
Change-Id: I15905180141aee54c166ff1c0275d1a7dfde0a46
Signed-off-by: Edward O'Callaghan <quasisec(a)google.com>
---
M tests/chip.c
1 file changed, 14 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/26/71826/1
diff --git a/tests/chip.c b/tests/chip.c
index 1d9cdc9..580f4ea 100644
--- a/tests/chip.c
+++ b/tests/chip.c
@@ -37,7 +37,7 @@
#include "programmer.h"
#define MOCK_CHIP_SIZE (8*MiB)
-#define MOCK_CHIP_CONTENT 0xff
+#define MOCK_CHIP_CONTENT 0xCC /* 0x00 is a zeroed heap and 0xFF is an erased chip. */
static struct {
unsigned int unlock_calls; /* how many times unlock function was called */
--
To view, visit https://review.coreboot.org/c/flashrom/+/71826
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I15905180141aee54c166ff1c0275d1a7dfde0a46
Gerrit-Change-Number: 71826
Gerrit-PatchSet: 1
Gerrit-Owner: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-MessageType: newchange
Attention is currently required from: Edward O'Callaghan, Evan Benn, Peter Marheine.
Nikolai Artemiev has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/71773 )
Change subject: flashrom_tester: Remove --output log redirect option
......................................................................
Patch Set 2: Code-Review+1
(1 comment)
Patchset:
PS2:
I support removing this, we get weird diffs with the `--output` option.
`log()` calls are included in both stdout and the log file, but `println()!` is only included in stdout. Unix style redirect is more reliable for now.
--
To view, visit https://review.coreboot.org/c/flashrom/+/71773
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I5eab8169644a16ba31b203e8607853c459f92978
Gerrit-Change-Number: 71773
Gerrit-PatchSet: 2
Gerrit-Owner: Evan Benn <evanbenn(a)google.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Nikolai Artemiev <nartemiev(a)google.com>
Gerrit-Reviewer: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Attention: Evan Benn <evanbenn(a)google.com>
Gerrit-Attention: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-Comment-Date: Thu, 12 Jan 2023 00:11:44 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Anastasia Klimchuk has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/67878 )
Change subject: dirtyjtag: Add DirtyJTAG programmer
......................................................................
Patch Set 17:
(1 comment)
Patchset:
PS17:
Hello Jean,
Many thanks for your contribution! Sorry for adding this follow-up comment much later, but I missed the patch. For the question I want to ask you, it's definitely not too late! :) Also I don't know whether you are on irc #flashrom, so will try here.
We have MAINTAINERS file on flashrom, which documents people who have knowledge and could code reviews for a particular area of flashrom. An area could be just one specific programmer (and there are already entries in the file, for specific programmers).
Would you agree to add yourself into MAINTAINERS file for DirtyJTAG programmer? You are original author of the programmer, it would be so great if you agree! I really hope for that.
That would mean: if someone sends a patch which changes the programmer, you will be automatically added as reviewer. Also, MAINTAINERS serves as a piece of documentation, to find people "who knows something about X?"
If you agree, you can just send a patch. As a plan B, I can send a patch myself and you would need to approve it. The first option is ideal.
Thank you! Hope you will read this message :)
--
To view, visit https://review.coreboot.org/c/flashrom/+/67878
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: Ic43e9a014ed7d04e429e73b30c9dcfdde1a78913
Gerrit-Change-Number: 67878
Gerrit-PatchSet: 17
Gerrit-Owner: Jean THOMAS <virgule(a)jeanthomas.me>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Alexander Goncharov <chat(a)joursoir.net>
Gerrit-CC: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Comment-Date: Wed, 11 Jan 2023 23:13:29 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Edward O'Callaghan, Peter Marheine.
Evan Benn has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/71773 )
Change subject: flashrom_tester: Remove --output log redirect option
......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS2:
> This has been a pretty useful facility during AVL
is `flashrom_tester > log_file` sufficiently useful?
--
To view, visit https://review.coreboot.org/c/flashrom/+/71773
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I5eab8169644a16ba31b203e8607853c459f92978
Gerrit-Change-Number: 71773
Gerrit-PatchSet: 2
Gerrit-Owner: Evan Benn <evanbenn(a)google.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Attention: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-Comment-Date: Wed, 11 Jan 2023 22:46:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-MessageType: comment
Attention is currently required from: Thomas Heijligen, Edward O'Callaghan.
Arthur Heymans has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/71565 )
Change subject: sb600spi.c: Move promontory code into a mmap_read=yes mode
......................................................................
Patch Set 2:
(1 comment)
Commit Message:
https://review.coreboot.org/c/flashrom/+/71565/comment/56fb5635_e0a7e86f
PS2, Line 10: This is not
: hardware specific
> I believe it is hardware specific to controllers after a certain generation. i.e., supported on SPI100 controllers (Zen etc) however not supported on pre-SPI100 controllers was my understanding.
I think the parts controlling the speed and mode might not apply, but it is memory mapped for sure.
--
To view, visit https://review.coreboot.org/c/flashrom/+/71565
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I13eb5a646d3569170b3911ae7b3127cd3e6022aa
Gerrit-Change-Number: 71565
Gerrit-PatchSet: 2
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Thomas Heijligen <src(a)posteo.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Thomas Heijligen <src(a)posteo.de>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Comment-Date: Wed, 11 Jan 2023 14:58:24 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-MessageType: comment