MSTMCRA(1)
β¨ 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
datais given β it's a write, periodt. - If
datais 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
dwrodsto 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
- centos-stream 10: mstflint 4.37.0_1.1-2.el10 Β· (GPL-2.0-only OR Linux-OpenIB) AND BSD-3-Clause AND MIT AND blessing
- centos-stream 9: mstflint 4.34.0-5.el9 Β· GPLv2+ or BSD
- debian trixie: mstflint 4.31.0+1-4 Β· BSD-2-Clause OR GPL-2.0-only
- fedora 43: mstflint 4.32.0^20250517git48a1454-2.fc43 Β· (GPL-2.0-only OR Linux-OpenIB) AND BSD-3-Clause AND MIT AND blessing
- fedora 43: mstflint 4.37.0_1.1-2.fc43 Β· (GPL-2.0-only OR Linux-OpenIB) AND BSD-3-Clause AND MIT AND blessing
- fedora 44: mstflint 4.34.0-2.fc44 Β· (GPL-2.0-only OR Linux-OpenIB) AND BSD-3-Clause AND MIT AND blessing
- fedora 44: mstflint 4.37.0_1.1-2.fc44 Β· (GPL-2.0-only OR Linux-OpenIB) AND BSD-3-Clause AND MIT AND blessing
- nixos 26.05: mstflint 4.36.0-1
- nixpkgs unstable: mstflint 4.37.0-1
- ubuntu noble: mstflint 4.26.0+1-2ubuntu3 Β· BSD-2-Clause OR GPL-2.0-only
- ubuntu questing: mstflint 4.33.0+1-1
- ubuntu resolute: mstflint 4.33.0+1-1.1 Β· BSD-2-Clause OR GPL-2.0-only
- ubuntu stonking: mstflint 4.33.0+1-1.1build1 Β· BSD-2-Clause OR GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms