Attention is currently required from: Edward O'Callaghan, Anastasia Klimchuk.
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/51731 )
Change subject: tree: Remove forward-declarations of structs for spi masters
......................................................................
Patch Set 2: Code-Review+2
(1 comment)
Patchset:
PS1:
> Thank you! I will test like this in future. […]
Well, a section called .note.gnu most likely contains only some
information, nothing of the functional part of the program. I
guess it depends on the used compiler and or options. I used
`make` btw.
--
To view, visit https://review.coreboot.org/c/flashrom/+/51731
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I256bd7c763efc010fc1f29f7c5853f150ac10739
Gerrit-Change-Number: 51731
Gerrit-PatchSet: 2
Gerrit-Owner: 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-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Attention: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Comment-Date: Tue, 30 Mar 2021 22:37:23 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Nico Huber <nico.h(a)gmx.de>
Comment-In-Reply-To: Edward O'Callaghan <quasisec(a)chromium.org>
Comment-In-Reply-To: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-MessageType: comment
Attention is currently required from: Edward O'Callaghan, Angel Pons, Daniel Campello.
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/51930 )
Change subject: Makefile,meson.build: Fix dependency issues with raiden_debug_spi
......................................................................
Patch Set 1: Code-Review+2
(2 comments)
Commit Message:
https://review.coreboot.org/c/flashrom/+/51930/comment/a48b953f_7051a4ac
PS1, Line 10: gnu make
> I'm not sure if our Makefile is GNU-specific. […]
It is. Try a NetBSD make for instance and watch your terminal explode xD
Patchset:
PS1:
Thanks! Having a last look, I've noticed another potential
inconsistency in the Makefile: We should add it to NEED_LIBUSB1,
I think.
--
To view, visit https://review.coreboot.org/c/flashrom/+/51930
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I2d6a8c33a2228abf006a9b278bcb7133765c7074
Gerrit-Change-Number: 51930
Gerrit-PatchSet: 1
Gerrit-Owner: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Daniel Campello <campello(a)chromium.org>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Daniel Campello <campello(a)chromium.org>
Gerrit-Comment-Date: Tue, 30 Mar 2021 22:30:10 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: comment
Khem Raj has uploaded this change for review. ( https://review.coreboot.org/c/flashrom/+/51960 )
Change subject: flashrom: Mark RISCV as non memory-mapped I/O architecture
......................................................................
flashrom: Mark RISCV as non memory-mapped I/O architecture
Signed-off-by: Khem Raj <raj.khem(a)gmail.com>
Change-Id: I55c4e8529d36f0850dd56441c3fb8602c5d889fd
---
M Makefile
M hwaccess.h
2 files changed, 5 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/60/51960/1
diff --git a/Makefile b/Makefile
index 6d37d55..203e04b 100644
--- a/Makefile
+++ b/Makefile
@@ -559,7 +559,7 @@
# Disable all drivers needing raw access (memory, PCI, port I/O) on
# architectures with unknown raw access properties.
# Right now those architectures are alpha hppa m68k sh s390
-ifneq ($(ARCH),$(filter $(ARCH),x86 mips ppc arm sparc arc))
+ifneq ($(ARCH),$(filter $(ARCH),x86 mips ppc arm sparc arc riscv))
ifeq ($(CONFIG_RAYER_SPI), yes)
UNSUPPORTED_FEATURES += CONFIG_RAYER_SPI=yes
else
diff --git a/hwaccess.h b/hwaccess.h
index 5602c15..e79988a 100644
--- a/hwaccess.h
+++ b/hwaccess.h
@@ -295,6 +295,10 @@
/* Non memory mapped I/O is not supported on ARC. */
+#elif IS_RISCV
+
+/* Non memory mapped I/O is not supported on RISCV. */
+
#else
#error Unknown architecture, please check if it supports PCI port IO.
--
To view, visit https://review.coreboot.org/c/flashrom/+/51960
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I55c4e8529d36f0850dd56441c3fb8602c5d889fd
Gerrit-Change-Number: 51960
Gerrit-PatchSet: 1
Gerrit-Owner: Khem Raj
Gerrit-MessageType: newchange
Attention is currently required from: David Hendricks, Edward O'Callaghan, Angel Pons, Anastasia Klimchuk.
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/51243 )
Change subject: Enable dynamic memory allocation checks for cmocka unit tests
......................................................................
Patch Set 6: Code-Review+1
(5 comments)
Patchset:
PS6:
> Even better news: now after adding includes in meson. […]
This looks quite nice now, thank you!
Only one remark, the -DUNIT_TESt_ENV. Do we still need it?
About `unittest.h`, I'm not sure if I fully understood its role. Maybe
the idea is to not test allocations that are done by the tests itself?
i.e. the tests itself wouldn't have to be error free, only the tested
code has to be. As long as the tests work, that's fine. Just something
to keep in mind if the tests ever get more complex.
File meson.build:
https://review.coreboot.org/c/flashrom/+/51243/comment/7097eb6b_0bc3a179
PS6, Line 477: -include
Can we have spaces after -include? That should work, I guess :)
File tests/flashrom.c:
https://review.coreboot.org/c/flashrom/+/51243/comment/4b97477c_1f95e59c
PS2, Line 27: #define assert_string_not_equal_with_free(text, expected) \
> I tried to make it better, dropped _string (7 chars) and replaced free->and (1 char) so in total I r […]
Looks better indeed.
File tests/helpers.c:
https://review.coreboot.org/c/flashrom/+/51243/comment/038b3d6e_0dca9457
PS6, Line 21: #include <stdlib.h>
I'm not sure if we should remove this. The files under tests/
shouldn't have the -include arguments, right? It's probably
indirectly included by one of the header files above.
File tests/meson.build:
https://review.coreboot.org/c/flashrom/+/51243/comment/5b850bfb_8cc9a3bc
PS6, Line 38: '-DUNIT_TEST_ENV',
Is this still needed? Now that `unittest_env.h` is only when building
for tests, it seems redundant.
--
To view, visit https://review.coreboot.org/c/flashrom/+/51243
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I0c6b6b8dc17aaee28640e3fca3d1fc9f7feabf5f
Gerrit-Change-Number: 51243
Gerrit-PatchSet: 6
Gerrit-Owner: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Daniel Kurtz <djkurtz(a)google.com>
Gerrit-Reviewer: David Hendricks <david.hendricks(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: Daniel Kurtz <djkurtz(a)chromium.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-CC: Thomas Heijligen <src(a)posteo.de>
Gerrit-CC: Victor Ding <victording(a)chromium.org>
Gerrit-Attention: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Comment-Date: Tue, 30 Mar 2021 22:15:20 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: Nico Huber <nico.h(a)gmx.de>
Comment-In-Reply-To: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-MessageType: comment
Attention is currently required from: Nico Huber, Edward O'Callaghan, Daniel Campello.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/51930 )
Change subject: Makefile,meson.build: Fix dependency issues with raiden_debug_spi
......................................................................
Patch Set 1: Code-Review+1
(1 comment)
Commit Message:
https://review.coreboot.org/c/flashrom/+/51930/comment/6444aae5_d762504f
PS1, Line 10: gnu make
I'm not sure if our Makefile is GNU-specific. I'd just say `Makefile` instead
--
To view, visit https://review.coreboot.org/c/flashrom/+/51930
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I2d6a8c33a2228abf006a9b278bcb7133765c7074
Gerrit-Change-Number: 51930
Gerrit-PatchSet: 1
Gerrit-Owner: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Daniel Campello <campello(a)chromium.org>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Attention: Daniel Campello <campello(a)chromium.org>
Gerrit-Comment-Date: Tue, 30 Mar 2021 08:20:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Nico Huber, Edward O'Callaghan.
Anastasia Klimchuk has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/51731 )
Change subject: tree: Remove forward-declarations of structs for spi masters
......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS1:
> +1 to Nico's suggestion, that is precisely how we check these things. […]
Thank you! I will test like this in future.
What I got comparing before and after:
objdump -d is identical
objdump -s only difference is version number
30362,30363c30362,30363
< 00d0 76312e32 2d323233 2d676138 33303136 v1.2-223-ga83016
< 00e0 3600 6.
---
> 00d0 76312e32 2d323234 2d673062 63306631 v1.2-224-g0bc0f1
> 00e0 6500 e.
I don't see the difference in .note.gnu.build-id , do you know why (the difference Nico sees and I don't have it)?
--
To view, visit https://review.coreboot.org/c/flashrom/+/51731
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I256bd7c763efc010fc1f29f7c5853f150ac10739
Gerrit-Change-Number: 51731
Gerrit-PatchSet: 2
Gerrit-Owner: 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-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Comment-Date: Tue, 30 Mar 2021 05:28:46 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Nico Huber <nico.h(a)gmx.de>
Comment-In-Reply-To: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-MessageType: comment
Attention is currently required from: Nico Huber, Anastasia Klimchuk.
Hello build bot (Jenkins), Nico Huber, Edward O'Callaghan, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/flashrom/+/51731
to look at the new patch set (#2).
Change subject: tree: Remove forward-declarations of structs for spi masters
......................................................................
tree: Remove forward-declarations of structs for spi masters
Reorder functions to avoid forward-declarations of structs. Similar
thing was done earlier for functions declarations, this patch takes
care of structs declarations.
BUG=b:140394053
TEST=builds
objdump -d is identical
objdump -s only difference is version number
Change-Id: I256bd7c763efc010fc1f29f7c5853f150ac10739
Signed-off-by: Anastasia Klimchuk <aklm(a)chromium.org>
---
M mstarddc_spi.c
M ni845x_spi.c
M usbblaster_spi.c
3 files changed, 218 insertions(+), 225 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/31/51731/2
--
To view, visit https://review.coreboot.org/c/flashrom/+/51731
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I256bd7c763efc010fc1f29f7c5853f150ac10739
Gerrit-Change-Number: 51731
Gerrit-PatchSet: 2
Gerrit-Owner: 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-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-MessageType: newpatchset