Attention is currently required from: Angel Pons, David Hendricks, Kevin Yu.
Anastasia Klimchuk has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/79340?usp=email )
Change subject: Add Idaville platform into chipset enable list and add update IRC region support
......................................................................
Patch Set 6:
(1 comment)
Patchset:
PS6:
David, may I ask your help to review this patch? That would be huge help, thank you so much!
--
To view, visit https://review.coreboot.org/c/flashrom/+/79340?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: main
Gerrit-Change-Id: Icc526b22a9efc8071e972bb1d8cfc51d6a83651b
Gerrit-Change-Number: 79340
Gerrit-PatchSet: 6
Gerrit-Owner: Kevin Yu <ykevin(a)celestica.com>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Kevin Yu <ykevin(a)celestica.com>
Gerrit-Comment-Date: Mon, 15 Jan 2024 03:23:22 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Angel Pons, Kevin Yu.
Anastasia Klimchuk has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/79340?usp=email )
Change subject: Add Idaville platform into chipset enable list and add update IRC region support
......................................................................
Patch Set 6:
(4 comments)
Commit Message:
https://review.coreboot.org/c/flashrom/+/79340/comment/cbf2f644_ad8ed0ae :
PS6, Line 7: Add Idaville platform into chipset enable list and add update IRC region support
Commit title and message are limited by 72 chars width, so you need to shorten your commit title.
For example
"Add support for Idaville HCC platform and iRC regions"
And then the rest of commit description can be provide full details of the commit.
https://review.coreboot.org/c/flashrom/+/79340/comment/2c8bc947_ef80464e :
PS6, Line 11:
You need to add full testing info into commit message (which platforms you tested on, which commands etc).
Patchset:
PS6:
Hello Kevin!
Sorry there was some delay in reply! It's because by coincidence your patch fell into the holidays season here, and most people would be away (between mid-December and mid-January that is).
I am looking at it now, and I have few bigger questions, before diving into details:
1) This seems platform-specific feature (Intel), so flashrom.c is probably not the right place for the code, I think the code should live in ichspi.c
2) If you could give me more details on what is IRC region, any docs you can share? I want to understand what that is.
There are few other comments that I have, you can have a look.
Also I think we need few more reviewers on the patch, but that's fine.
Thank you for patch! And let's start working on it :)
File flashrom.c:
https://review.coreboot.org/c/flashrom/+/79340/comment/c6310cbe_b2b19c43 :
PS6, Line 527: }else{
A generic comment to all of your code (applies to all the files): code should follow the coding style which is described in our dev guidelines:
https://www.flashrom.org/dev_guide/development_guide.html#coding-style
(please don't miss to click the link and open Linux kernel style guide).
You need to read the code style first, and then go through your code and make sure all of it follows the style.
Thank you!
--
To view, visit https://review.coreboot.org/c/flashrom/+/79340?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: main
Gerrit-Change-Id: Icc526b22a9efc8071e972bb1d8cfc51d6a83651b
Gerrit-Change-Number: 79340
Gerrit-PatchSet: 6
Gerrit-Owner: Kevin Yu <ykevin(a)celestica.com>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Kevin Yu <ykevin(a)celestica.com>
Gerrit-Comment-Date: Mon, 15 Jan 2024 03:16:45 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Anastasia Klimchuk, Nikolai Artemiev.
Stefan Reinauer has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/79975?usp=email )
Change subject: flashchips: Mark FM25Q16 as probe/read tested
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://review.coreboot.org/c/flashrom/+/79975?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: main
Gerrit-Change-Id: I8e55cd6eeb693bf33e580d662da08e50fb46809d
Gerrit-Change-Number: 79975
Gerrit-PatchSet: 1
Gerrit-Owner: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Nikolai Artemiev <nartemiev(a)google.com>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Attention: Nikolai Artemiev <nartemiev(a)google.com>
Gerrit-Comment-Date: Mon, 15 Jan 2024 03:01:49 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Anastasia Klimchuk has submitted this change. ( https://review.coreboot.org/c/flashrom/+/78984?usp=email )
(
1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
)Change subject: erasure_layout: Fix unaligned region end offset by 1
......................................................................
erasure_layout: Fix unaligned region end offset by 1
In the case when layout region is not aligned with eraseblock,
end region boundary is extended to match the eraseblock. There is
a special handling of this extended area (between original end of
region and extended one). Fix the offset of this extended area by +1
so that it covers the extended area and not the original region.
Before the patch, the last byte of the original region was failed to
write since it was treated as if an extended area, while it was the
last byte of the normal layout region.
Ticket: https://ticket.coreboot.org/issues/494
Change-Id: I7f78a0090065cd2a952cba1a5d28179483ba4c55
Signed-off-by: Anastasia Klimchuk <aklm(a)flashrom.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/78984
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Peter Marheine <pmarheine(a)chromium.org>
---
M erasure_layout.c
1 file changed, 4 insertions(+), 3 deletions(-)
Approvals:
build bot (Jenkins): Verified
Peter Marheine: Looks good to me, approved
diff --git a/erasure_layout.c b/erasure_layout.c
index c60305f..1dd6b60 100644
--- a/erasure_layout.c
+++ b/erasure_layout.c
@@ -279,9 +279,10 @@
memcpy(newcontents + region_start, curcontents + region_start, old_start - region_start);
}
if (region_end - old_end) {
- read_flash(flashctx, curcontents + old_end, old_end, region_end - old_end);
- memcpy(old_end_buf, newcontents + old_end, region_end - old_end);
- memcpy(newcontents + old_end, curcontents + old_end, region_end - old_end);
+ chipoff_t end_offset = old_end + 1;
+ read_flash(flashctx, curcontents + end_offset, end_offset, region_end - old_end);
+ memcpy(old_end_buf, newcontents + end_offset, region_end - old_end);
+ memcpy(newcontents + end_offset, curcontents + end_offset, region_end - old_end);
}
// select erase functions
--
To view, visit https://review.coreboot.org/c/flashrom/+/78984?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: main
Gerrit-Change-Id: I7f78a0090065cd2a952cba1a5d28179483ba4c55
Gerrit-Change-Number: 78984
Gerrit-PatchSet: 4
Gerrit-Owner: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Aarya <aarya.chaumal(a)gmail.com>
Gerrit-Reviewer: Alexander Goncharov <chat(a)joursoir.net>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Carly Zlabek <carlyzlabek(a)gmail.com>
Gerrit-Reviewer: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-Reviewer: Vincent Fazio <vfazio(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: merged
Attention is currently required from: Aarya, Alexander Goncharov, Carly Zlabek, Vincent Fazio.
Anastasia Klimchuk has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/78984?usp=email )
Change subject: erasure_layout: Fix unaligned region end offset by 1
......................................................................
Patch Set 3:
(1 comment)
Patchset:
PS2:
> After some investigation I came to conclusion that no fix is needed for start boundary extension (se […]
Alright, resolving this to unblock the patch.
--
To view, visit https://review.coreboot.org/c/flashrom/+/78984?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: main
Gerrit-Change-Id: I7f78a0090065cd2a952cba1a5d28179483ba4c55
Gerrit-Change-Number: 78984
Gerrit-PatchSet: 3
Gerrit-Owner: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Aarya <aarya.chaumal(a)gmail.com>
Gerrit-Reviewer: Alexander Goncharov <chat(a)joursoir.net>
Gerrit-Reviewer: Carly Zlabek <carlyzlabek(a)gmail.com>
Gerrit-Reviewer: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-Reviewer: Vincent Fazio <vfazio(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Carly Zlabek <carlyzlabek(a)gmail.com>
Gerrit-Attention: Aarya <aarya.chaumal(a)gmail.com>
Gerrit-Attention: Vincent Fazio <vfazio(a)gmail.com>
Gerrit-Attention: Alexander Goncharov <chat(a)joursoir.net>
Gerrit-Comment-Date: Mon, 15 Jan 2024 01:58:20 +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: Anastasia Klimchuk, David Wu, Edward O'Callaghan, Evan Benn, Hsuan Ting Chen.
Hsuan-ting Chen has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/79304?usp=email )
Change subject: flashrom_tester: Fix partial_lock_test on libflashrom
......................................................................
Patch Set 3:
(1 comment)
Patchset:
PS3:
Hi Anastasia,
Ev and Ed have already finished one round of their code reviews. Could you please help me with the next round?
Thanks!
--
To view, visit https://review.coreboot.org/c/flashrom/+/79304?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: main
Gerrit-Change-Id: I7a8ac0c0984fef3cd9e73ed8d8097ddf429e54b2
Gerrit-Change-Number: 79304
Gerrit-PatchSet: 3
Gerrit-Owner: Hsuan-ting Chen <roccochen(a)google.com>
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: David Wu <david_wu(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Reviewer: Evan Benn <evanbenn(a)gmail.com>
Gerrit-Reviewer: Hsuan Ting Chen <roccochen(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Nikolai Artemiev <nartemiev(a)chromium.org>
Gerrit-Attention: Hsuan Ting Chen <roccochen(a)chromium.org>
Gerrit-Attention: David Wu <david_wu(a)quanta.corp-partner.google.com>
Gerrit-Attention: Evan Benn <evanbenn(a)gmail.com>
Gerrit-Attention: Edward O'Callaghan <quasisec(a)chromium.org>
Gerrit-Attention: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Comment-Date: Tue, 09 Jan 2024 11:10:14 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Aarya, Alexander Goncharov, Carly Zlabek, Vincent Fazio.
Anastasia Klimchuk has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/78984?usp=email )
Change subject: erasure_layout: Fix unaligned region end offset by 1
......................................................................
Patch Set 3:
(1 comment)
Patchset:
PS3:
Carly, Vincent,
Happy New Year!
I left this patch for the holidays, but now I am gradually returning back.
I thought to add you to this patch because you might be interested to have a look (or maybe test), I remember you are using this functionality a lot.
I tested on some images (added comments in the ticket) and also wrote tests in the following patch CB:78985
Thank you so much for your help!
--
To view, visit https://review.coreboot.org/c/flashrom/+/78984?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: main
Gerrit-Change-Id: I7f78a0090065cd2a952cba1a5d28179483ba4c55
Gerrit-Change-Number: 78984
Gerrit-PatchSet: 3
Gerrit-Owner: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Aarya <aarya.chaumal(a)gmail.com>
Gerrit-Reviewer: Alexander Goncharov <chat(a)joursoir.net>
Gerrit-Reviewer: Carly Zlabek <carlyzlabek(a)gmail.com>
Gerrit-Reviewer: Peter Marheine <pmarheine(a)chromium.org>
Gerrit-Reviewer: Vincent Fazio <vfazio(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Carly Zlabek <carlyzlabek(a)gmail.com>
Gerrit-Attention: Aarya <aarya.chaumal(a)gmail.com>
Gerrit-Attention: Vincent Fazio <vfazio(a)gmail.com>
Gerrit-Attention: Alexander Goncharov <chat(a)joursoir.net>
Gerrit-Comment-Date: Mon, 08 Jan 2024 12:28:38 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: DZ, Nikolai Artemiev, Stefan Reinauer.
Anastasia Klimchuk has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/79633?usp=email )
Change subject: flashchips: Remove Macronix MX25U25635F from chip list
......................................................................
Patch Set 1:
(3 comments)
Commit Message:
https://review.coreboot.org/c/flashrom/+/79633/comment/e3440f1b_798cb553 :
PS1, Line 7: Remove Macronix MX25U25635F from chip list
If the patch goes through (see my other comment), then commit title need to mention both chips, for example:
> Update definitions for MX25U25635F and MX25U25643G
Patchset:
PS1:
Daniel, thank you for the patch! Sorry there was some delay in review, we had holidays here. Happy New Year!
File flashchips.c:
https://review.coreboot.org/c/flashrom/+/79633/comment/7ad9014e_951f3633 :
PS1, Line 10310: .wps = {SECURITY, 7, OTP}, /* This bit is set by WPSEL command */
I looked through both datasheets, and found there is unfortunately this one difference!
For MX25U25643G: Table 12. Security Register Definitions
has bit7 set by WPSEL command (as it is in the existing definition)
For MX25U25635F: Table 8. Security Register Definitions
has bit7 marked as reserved
So this one `.wps` definition in `.reg_bits` only applies to newer model it seems.
In general, this was the only difference between two chip definitions, the older one had no support for write-protect operation defined, the newer one has it defined as marked as tested.
Let's also check with Nikolai, but in general, if there is any difference between two chip definitions, we will need to leave both of them (people might still have old chips used).
Your other idea about renaming model id macro is valid though, maybe it can be done even if both definitions stay.
--
To view, visit https://review.coreboot.org/c/flashrom/+/79633?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: main
Gerrit-Change-Id: Ief3fd7641bed817066692c4abffff6d3b0df16b9
Gerrit-Change-Number: 79633
Gerrit-PatchSet: 1
Gerrit-Owner: DZ
Gerrit-Reviewer: Anastasia Klimchuk <aklm(a)chromium.org>
Gerrit-Reviewer: Nikolai Artemiev <nartemiev(a)google.com>
Gerrit-Reviewer: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: DZ
Gerrit-Attention: Stefan Reinauer <stefan.reinauer(a)coreboot.org>
Gerrit-Attention: Nikolai Artemiev <nartemiev(a)google.com>
Gerrit-Comment-Date: Sat, 06 Jan 2024 09:23:27 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment