Skip to content

sigmastar: name the Infinity2M part by its bond strap - #298

Merged
dimerr merged 1 commit into
masterfrom
sigmastar-ssr621q
Nov 27, 2026
Merged

dimerr merged 1 commit into
masterfrom
sigmastar-ssr621q

Conversation

@dimerr

@dimerr dimerr commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Every Infinity2M chip was reported as SSD20X: the SSD201, SSD202D and SSR62x NVR parts share the 0xF0 generation. CHIPTOP's bond strap at 0x1F203D20 tells the package apart. The IPL reads its low byte, prints it after D- and picks its DDR setting by it.

Strap (low byte) chip.model Source
0x1B SSR621Q Xiongmai NBD80S16S (SSR621Q): its IPL prints D-1b
0x1D SSD201 linux-chenxing U-Boot; qemu-bench's capture
0x1E SSD202D linux-chenxing U-Boot; qemu-bench's capture
anything else, or the strap unreadable SSD20X unchanged

I ran the i2m SDK's IPL (g6759541) and Xiongmai's (gf77b33a) under qemu-bench's ssr621q machine at every strap value from 0x00 to 0x7F:

  • Only 0x1B, 0x1D, 0x1E and 0x1F get a DDR setting. Every other value prints unknown miupll.
  • The bits above the low byte are ignored: 0x11B, 0x81B and 0x1B1B all print D-1b.
  • 0x1F gets a DDR setting from both IPLs, but no part is known by it, so it stays SSD20X.

Tested:

  • sstar_test passes. It now covers the three parts, the masked high bits, 0x1F, an unknown value and an unreadable strap.
  • A static ARM build ran on OpenIPC's ssr621q firmware under qemu-bench at three straps. 0x1B reported model: SSR621Q, 0x1E SSD202D and 0x1D SSD201, with devmem 0x1F203D20 reading the same value each time.
  • It has not run on silicon. sigmastar: ssr621q reads bond 0x1B, as the real chip does qemu-bench#392 set the ssr621q machine's default strap to 0x1B after a real board printed D-1b.

Every Infinity2M was reported as SSD20X: SSD201, SSD202D and the SSR62x
NVR parts share the 0xF0 generation. CHIPTOP's bond strap (0x1F203D20)
tells the package, as the IPL reads it: its low byte, which the IPL prints
after "D-" and picks its DDR setting by. A Xiongmai NBD80S16S's SSR621Q
prints "D-1b"; 0x1D and 0x1E are the SSD201's and SSD202D's (linux-chenxing,
and qemu-bench's captures). Run under qemu-bench at every value 0x00-0x7F,
the i2m SDK's IPL and Xiongmai's set DDR up only for 0x1B, 0x1D, 0x1E and
0x1F, and ignore the bits above the low byte. 0x1F names no known part, so
it, any other value and an unreadable strap keep SSD20X.
@qodo-free-for-open-source-projects

qodo-free-for-open-source-projects Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

PR Summary by Qodo

Identify Infinity2M models from the bond strap

✨ Enhancement 🧪 Tests 🕐 10-20 Minutes

Grey Divider

AI Description

• Identify SSR621Q, SSD201, and SSD202D from the Infinity2M bond strap.
• Preserve SSD20X when the strap is unknown or unreadable.
• Test model mapping, high-bit masking, and fallback behavior.
Merge Risk 🟢 Low

Blast radius 🟢 Low 💥 1 capability

  • 1 affected end-to-end capability after fault-specific containment; implementation boundaries do not widen its functional scope.
  • The changed detector selects the chip_name consumed by getchipname and the CLI/reporting paths.
  • These are one end-to-end identification behavior rather than separate capabilities; no changed path reaches sensor control or another independent functional scope.
Behavioral complexity 🟢 Low 🧩 Straightforward

  • Before, every Infinity2M device was labeled SSD20X.
  • After, one low-byte bond value selects each of three known names and all other values retain SSD20X.
  • The new correctness condition is the simple recognized-value versus fallback rule; it uses the existing register-read mechanism without introducing interacting states, ordering, persistence, or a new algorithm.
Potential damage 🟡 Medium 🩹 Incorrect results

  • If the new decode produces an incorrect label, the affected end-to-end capability is SoC identification and reporting.
  • The source shows the model is printed by the chip-name command; no changed path uses the refined name to alter hardware setup or persistent state.
  • Reverting the code restores the prior diagnostic behavior; no persistent state or external effect requires repair.
Assessed commit b2125b7
Diagram

graph TD
  D["CPU detection"] --> G["Generation register"] --> I{"Infinity2M?"}
  I -->|yes| B["Bond register"] --> M{"Known low byte?"}
  M -->|yes| O["Specific model"]
  M -->|no| F["SSD20X fallback"]
  B -->|unreadable| F
  I -->|no| X["Other generations"]
Loading
High-Level Assessment

Keep the targeted lookup in the existing Infinity2M detection case. It follows the IPL's low-byte interpretation, preserves the current fallback, and does not warrant a broader model-mapping framework for three known values.

Files changed (3) +69 / -9

Enhancement (2) +30 / -4
sstar.cResolve Infinity2M model from its bond strap +21/-4

Resolve Infinity2M model from its bond strap

• Reads the CHIPTOP bond strap for Infinity2M and maps its low byte to SSR621Q, SSD201, or SSD202D. Retains SSD20X if the read fails or the value is not mapped.

src/hal/sstar.c

sstar.hDefine bond-register address and known package values +9/-0

Define bond-register address and known package values

• Adds the CHIPTOP bond-register address and constants for the three identified Infinity2M strap values. Documents why the unmapped 0x1F value remains unnamed.

src/hal/sstar.h

Tests (1) +39 / -5
sstar_test.cCover strap-based identification and fallbacks +39/-5

Cover strap-based identification and fallbacks

• Extends the MMIO stub to supply or fail bond-register reads. Tests known models, ignored high bits, unknown values, an unreadable strap, and the existing generation behavior.

src/hal/sstar_test.c

@qodo-free-for-open-source-projects

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can commit Qodo's fix in one click with committable suggestions (GitHub & GitLab)

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@dimerr
dimerr merged commit c78bb2b into master Nov 27, 2026
5 checks passed
@dimerr
dimerr deleted the sigmastar-ssr621q branch November 27, 2026 18:53
dimerr added a commit to dimerr/website that referenced this pull request Nov 27, 2026
OpenIPC/ipctool#298 names the Infinity2M part by its bond strap, and the
SSR621Q's is 0x1B, so the note that ipctool did not know it is dropped.
openipc-ai pushed a commit to dimerr/website that referenced this pull request Nov 29, 2026
OpenIPC/ipctool#298 names the Infinity2M part by its bond strap, and the
SSR621Q's is 0x1B, so the note that ipctool did not know it is dropped.
openipc-ai added a commit to OpenIPC/website that referenced this pull request Nov 29, 2026
* Catalogue: SSR621Q is WIP, with its U-Boot and firmware

The SSR621Q (Infinity2M NVR) now has the whole OpenIPC stack: OpenIPC's
U-Boot (u-boot-ssr621q-nor.bin, from OpenIPC/u-boot's openipc-sigmastar),
the split NOR firmware openipc.ssr621q-nor-lite-split.tgz on latest, and
the vigil NVR app in it. It moves from NEQ to WIP and names both files
and the 0x21000000 load address, so the installation pages offer it as
soon as the bootloader is on latest.

Golden: only the ssr621q wizard document changed; the boards reference
gets its bootloader.

* Catalogue: SSR621Q names its split package

The SSR621Q has only the split NOR package, so linux_filename names it:
openipc.ssr621q-nor-lite-split.tgz. Board() reads the board from either
form now. The installs, full images and availability were already made
from the edition's split package, so nothing else changes. The wizard
document's linux_filename is the only line that differs, and no plain
package name is left in it. The other split-only entries keep their
plain names.

* Catalogue: SSR621Q notes: ipctool names it now

OpenIPC/ipctool#298 names the Infinity2M part by its bond strap, and the
SSR621Q's is 0x1B, so the note that ipctool did not know it is dropped.

* Catalogue: SSR621Q's bundled availability is wizard, as the live feed says

---------

Co-authored-by: AI Dev <ai@openipc.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant