David Hendricks has posted comments on this change. ( https://review.coreboot.org/17950 )
Change subject: Add option (-A, --noverify-all) to not verify the whole chip after write
......................................................................
Patch Set 7: Code-Review+1
(2 comments)
Code looks good, I just have some cosmetic nits.
https://review.coreboot.org/#/c/17950/7/cli_classic.c
File cli_classic.c:
PS7, Line 58: don't auto-verify whole chip
Instead of saying what it doesn't do, maybe it would be clearer to say what it does, for example "verify included regions only\n"
PS7, Line 58: A
I guess I'd prefer 'V' for "verify included". Might be worth asking a few others.
--
To view, visit https://review.coreboot.org/17950
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I40b5983f56d62821d17b827b88b73d1d41a30bd7
Gerrit-PatchSet: 7
Gerrit-Project: flashrom
Gerrit-Branch: staging
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins)
Gerrit-HasComments: Yes
David Hendricks has posted comments on this change. ( https://review.coreboot.org/17948 )
Change subject: Adapt CLI to use new libflashrom interface' print callback
......................................................................
Patch Set 6: Code-Review+2
--
To view, visit https://review.coreboot.org/17948
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: Idf19978eb8e340d258199193d2978f37409e9983
Gerrit-PatchSet: 6
Gerrit-Project: flashrom
Gerrit-Branch: staging
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins)
Gerrit-HasComments: No
David Hendricks has posted comments on this change. ( https://review.coreboot.org/17946 )
Change subject: Add a convenient libflashrom interface
......................................................................
Patch Set 6: Code-Review+1
(6 comments)
The code looks good overall, I just have a few general comments. I'd be fine with committing this as-is.
https://review.coreboot.org/#/c/17946/5/flashrom.c
File flashrom.c:
PS5, Line 2557: t
too
https://review.coreboot.org/#/c/17946/6/flashrom.c
File flashrom.c:
Line 2507: return 1;
Would it make sense to add a wrapper function that calls unmap_flash() and maybe other functions (e.g. to re-lock the chip) to undo prepare_flash_access()? Maybe unprepare_flash_access() or restore_original_flash_access() or something?
PS6, Line 2610: that
: * lap
"containing" might be a better word for this
Line 2696: } else
Style nit: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Doc…https://review.coreboot.org/#/c/17946/6/libflashrom.c
File libflashrom.c:
PS6, Line 42: fl_
I had originally thought fl_ was used when describing flash layout stuff that's not necessarily tied with the library (internal function args and variables). Can you clarify when/how this prefix is to be used so it doesn't get copy+pasted inappropriately? Maybe use "fl_" for flash layout and "lf_" for libflashrom?
PS6, Line 217: << 10
Probably should be '* KiB', but that's another matter.
--
To view, visit https://review.coreboot.org/17946
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I00f169990830aa17b7dfae5eb74010d40c476181
Gerrit-PatchSet: 6
Gerrit-Project: flashrom
Gerrit-Branch: staging
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins)
Gerrit-HasComments: Yes
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/19391
to look at the new patch set (#3).
Change subject: udelay: Use clock_gettime() if available and precise
......................................................................
udelay: Use clock_gettime() if available and precise
Instead of calibrating our busy loop against a coarse clock, check if
a precise clock is available and loop against that. The former is unre-
liable by definition on any modern system that may dynamically reclock
the processor.
v2: Apparently _POSIX_MONOTONIC_CLOCK being defined only means that
the library knows about CLOCK_MONOTONIC. So check for its support
at runtime and fall back to CLOCK_REALTIME if it's missing.
Change-Id: I85ad359823875237ada9cd027af3017d62e9a235
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
---
M Makefile
M udelay.c
2 files changed, 78 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/91/19391/3
--
To view, visit https://review.coreboot.org/19391
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I85ad359823875237ada9cd027af3017d62e9a235
Gerrit-PatchSet: 3
Gerrit-Project: flashrom
Gerrit-Branch: staging
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins)
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/19391
to look at the new patch set (#2).
Change subject: udelay: Use clock_gettime() if available and precise
......................................................................
udelay: Use clock_gettime() if available and precise
Instead of calibrating our busy loop against a coarse clock, check if
a precise clock is available and loop against that. The former is unre-
liable by definition on any modern system that may dynamically reclock.
v2: Apparently _POSIX_MONOTONIC_CLOCK being defined only means that
the library knows about CLOCK_MONOTONIC. So check for its support
at runtime and fall back to CLOCK_REALTIME if it's missing.
Change-Id: I85ad359823875237ada9cd027af3017d62e9a235
Signed-off-by: Nico Huber <nico.h(a)gmx.de>
---
M Makefile
M udelay.c
2 files changed, 78 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/91/19391/2
--
To view, visit https://review.coreboot.org/19391
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I85ad359823875237ada9cd027af3017d62e9a235
Gerrit-PatchSet: 2
Gerrit-Project: flashrom
Gerrit-Branch: staging
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins)