MSTMCRA(1)

πŸ“¦
version 4.37.0_1.1 Β· 3 versions
, in centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

mstmcra β€” the Mellanox Configuration Registers Access tool πŸ’… (yes that's the whole name, she's fancy like that)

This page lives in the User Commands manual as MSTMCRA(1) β€” welcome to the group chat, bestie 🫢


🌸 DESCRIPTION 🌸

Okay so, here's the whole vibe. mstmcra reads and writes a single word from/to a device configuration register space. That's the tea. β˜•

Usage goes a little something like this:

mstmcra [-s <i2c-slave>] [-a <adb dump>] [-v] [-h] [-c] <device> <addr[.<bit offset>:<bit size>]|[,<bytes number>]> [data]

So you hand her a <device>, then an address shaped like <addr[.<bit offset>:<bit size>]|[,<bytes number>]>, and optionally some [data].

  • If data is given β†’ it's a write, periodt.
  • If data is not given β†’ it's a read, no cap. πŸ™ˆ

πŸ¦‹ when there's a bit range in the address πŸ¦‹

Like, if you give a bit range in the address (E.G.: 0xf0014.16:8):

For read

  • Only the requested bits get printed. Nothing extra, she's not nosy. ✨

For write β€” this is a Read-Modify-Write situation, bestie.

  • Only the requested bits get changed. The rest stay exactly as they were, iconic behaviour honestly. πŸ‘‘

πŸŽ€ when there's a bytes number in the address πŸŽ€

Like, if 'bytes number' is given in the address (E.G.: 0xf0014,16):

For read

  • She'll read a block, and its size is the given bytes number.

For write

  • You (the user) need to give a list of dwrods to write, and the number of dwords should be (bytes number/4).

πŸ› οΈ the flags, one by one πŸ› οΈ

  • -s <i2c-slave> β€” the I2C slave address.
  • -a <dump file> β€” adb dump file, used for access by path.
  • -c β€” clears the device's PCI semaphore. πŸ’€
  • -h β€” prints this help message.
  • -v β€” displays version info.

🌱 Environment Variables 🌱

  • ADB_DUMP β€” holds the path to the adb dump, used for access by path. And yeah, it can be overridden by -a. She said "I contain multitudes" πŸ’–

πŸ‘€ SEE ALSO πŸ‘€

mstflint(1) β€” go read that one next, iykyk 🧚


mstflint Β· March 2020 β€” that's the source, the version and the date, and that's the whole page, bestie. slay, bye πŸ’œπŸŒΈπŸ¦‹

πŸ“¦ where this page comes from