Skip to content

Invalid CMN product ID on Ampere AltraMax #4

Open

Description

@chrisswinchatt-arm

Running the latest cmn_discover.py on Ampera AltraMax yields the following error:

CMN 2026-10-01 13:51:58.919113: CMN discovery (verbose=1)
CMN 2026-10-01 13:51:58.919244: PERIPHBASE=0x100010000000, CONFIG=0x100010730000
Traceback (most recent call last):
  File "/home/chrswi02/cmn-tools/src/cmn_discover.py", line 110, in <module>
    main(sys.argv[1:])
  File "/home/chrswi02/cmn-tools/src/cmn_discover.py", line 81, in main
    S = system_description(verbose=opts.verbose, opts=opts, frequency=(not opts.no_frequency))
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/chrswi02/cmn-tools/src/cmn_discover.py", line 37, in system_description
    S.CMNs = [cmn_devmem.CMN(loc, verbose=verbose, defer_discovery=opts.cmn_defer) for loc in locs]
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/chrswi02/cmn-tools/src/cmn_devmem.py", line 2060, in __init__
    self.product_config = cmn_config.CMNConfig(product_id=product_id, revision_code=revision_code)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/chrswi02/cmn-tools/src/cmn_config.py", line 296, in __init__
    raise CMNProductValueError("unknown CMN product id: 0x%x" % self.product_id)
cmn_config.CMNProductValueError: unknown CMN product id: 0x0

This was Ubuntu 24.04 with kernel 6.8.0-142-generic so no unusual patches. arm_cmn module is loaded and I can get a correct-looking map from /sys/kernel/debug/arm-cmn/map. Let me know if there is other information I can provide.

Activity

  1. chrisswinchatt-arm commented on Oct 1, 2026

    @chrisswinchatt-arm
    Author

    This turned out to be due to bad values in the cache, with the --cmn-locs-no-cache option the discovery completes, but I'm not sure why the bad values were cached.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions