Attention is currently required from: Nico Huber, Angel Pons, Anastasia Klimchuk.
View Change
3 comments:
File tests/chip_wp.c:
Patch Set #11, Line 143: 0x00fff000
Where does this magic number come from?
It's size of the chip (16 MiB) minus 4 KiB. Made code compute it instead.
Patch Set #11, Line 326:
assert_int_equal(0x004000, range.start);
assert_int_equal(0xffc000, range.len);
Maybe I don't understand this properly, but aren't the values flipped?
In the comment above:
* Multiplaying that by base unit gives 16 KiB protected region at the
* bottom, which is then complemented.
So the values are correct. This is the protected range and it starts at 16 KiB and goes until the end of the chip 16 MiB. I've added that "bottom" means start of the chip.
Patch Set #11, Line 391: 0x1000
Sorry I have just realised, for this test to work as expected range. […]
Done
To view, visit change 59075. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I49af7f6d173eb4c56c22d80b01a473b8c499c0f8
Gerrit-Change-Number: 59075
Gerrit-PatchSet: 11
Gerrit-Owner: Sergii Dmytruk <sergii.dmytruk@3mdeb.com>
Gerrit-Reviewer: Anastasia Klimchuk <aklm@chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-CC: Maciej Pijanowski <maciej.pijanowski@3mdeb.com>
Gerrit-CC: Nikolai Artemiev <nartemiev@google.com>
Gerrit-CC: Paul Menzel <paulepanter@mailbox.org>
Gerrit-Attention: Nico Huber <nico.h@gmx.de>
Gerrit-Attention: Angel Pons <th3fanbus@gmail.com>
Gerrit-Attention: Anastasia Klimchuk <aklm@chromium.org>
Gerrit-Comment-Date: Thu, 02 Dec 2021 12:27:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Angel Pons <th3fanbus@gmail.com>
Comment-In-Reply-To: Anastasia Klimchuk <aklm@chromium.org>
Gerrit-MessageType: comment