ARM: dts: gemini: Fix partition offsets
Linus Walleij
maintainerPATCH v2 1/1 ARM: dts: gemini: Fix partition offsets
These FIS partition offsets were never right: the comment clearly states the FIS index is at 0xfe0000 and 0x7f * 0x200000 is 0xfe0000.
Tested on the iTian SQ201.
---
Changes in v2:
- Resend to the right email address.
- Link to v1: https://lore.kernel.org/r/20260123-gemini-fix-sq201-fis-offset-v1-1-a046625f8846@kernel.org
---
SoC folks: please apply this patch directly for fixes.
--- arch/arm/boot/dts/gemini/gemini-sl93512r.dts | 2 +- arch/arm/boot/dts/gemini/gemini-sq201.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/gemini/gemini-sl93512r.dts +1 -1
@@ -146,7 +146,7 @@ flash@30000000 { partitions { compatible = "redboot-fis"; /* Eraseblock at 0xfe0000 */ - fis-index-block = <0x1fc>; + fis-index-block = <0x7f>; }; };
arch/arm/boot/dts/gemini/gemini-sq201.dts +1 -1
@@ -134,7 +134,7 @@ flash@30000000 { partitions { compatible = "redboot-fis"; /* Eraseblock at 0xfe0000 */ - fis-index-block = <0x1fc>; + fis-index-block = <0x7f>; }; };
---
base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731
change-id: 20260123-gemini-fix-sq201-fis-offset-f7c101a2264b
Best regards,
Signature · 1 line
Linus Walleij <[email protected]>
[email protected]
AI reviewThank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] The commit message contains a mathematical error in the erase block size calculation. --
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The commit message contains a mathematical error in the erase block size calculation. --
commit 3498d075283f73f081890402c85d101fe06af7f5
Author: Linus Walleij <[email protected]>
ARM: dts: gemini: Fix partition offsets
This commit fixes the FIS partition offsets for Gemini devicetrees by changing the fis-index-block to 0x7f, aligning with the expected eraseblock at 0xfe0000.
Quoted 3 lines
These FIS partition offsets were never right: the comment clearly states the FIS index is at
0xfe0000and0x7f*0x200000is0xfe0000.
[Severity: Medium]
Is the block size multiplier in this description accurate? 0x7f multiplied by 0x200000 is actually 0xfe00000. To reach 0xfe0000, the multiplier would need to be 0x20000. Could the commit message be updated to reflect the correct erase block size?
Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/20260528-gemini-fix-sq201-fis-offset-v2-1-f594d3072fe6@kernel.org?part=1
Linus Walleij
maintainerQuoted 16 lines · On Thu, May 28, 2026 at 10:37 AM <[email protected]> wrote:
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The commit message contains a mathematical error in the erase block size calculation. --commit
3498d075283f73f081890402c85d101fe06af7f5
Author: Linus Walleij <[email protected]>ARM: dts: gemini: Fix partition offsets
This commit fixes the FIS partition offsets for Gemini devicetrees by changing the fis-index-block to
0x7f, aligning with the expected eraseblock at0xfe0000.Quoted 3 lines
These FIS partition offsets were never right: the comment clearly states the FIS index is at
0xfe0000and0x7f*0x200000is0xfe0000.
Quoted 5 lines
[Severity: Medium]
Is the block size multiplier in this description accurate?0x7fmultiplied by0x200000is actually0xfe00000. To reach0xfe0000, the multiplier would need to be0x20000. Could the commit message be updated to reflect the correct erase block size?
Nope.
Severity: zero.
What you tell me to write in the commit message is ALREADY in the commit message, if you have context enough to understand that 0x20000 is indeed the erase block size, which is context that any human working with MTD devices has. Go and adjust your weights.
Yours,
Linus Walleij
This patch was applied to soc/soc.git (arm/fixes) by Arnd Bergmann <[email protected]>:
Hello:
This patch was applied to soc/soc.git (arm/fixes)
by Arnd Bergmann <[email protected]>:
Quoted 11 lines · On Thu, 28 May 2026 10:25:26 +0200 you wrote:
These FIS partition offsets were never right: the comment clearly states the FIS index is at
0xfe0000and0x7f*0x200000is0xfe0000.Tested on the iTian SQ201.
Fixes d88b11ef91b1 ("ARM: dts: Fix up SQ201 flash access")Fixes b5a923f8c739 ("ARM: dts: gemini: Switch to redboot partition parsing")Signed-off-by Linus Walleij <[email protected]>[...]
Here is the summary with links:
- [v2] ARM: dts: gemini: Fix partition offsets
https://git.kernel.org/soc/soc/c/66ac2df408ed
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html