Difference between revisions of "Dsp cmd"

From MCEWiki
Line 30: Line 30:
 
:* <tt>addr</tt> is the memory address
 
:* <tt>addr</tt> is the memory address
 
:* <tt>value</tt> is the datum to write
 
:* <tt>value</tt> is the datum to write
* '''RESET''': Reset the DSP program.  This is equivalent to the [[dsp_reset]] command in [[mce_cmd]].  Syntax is:
+
* '''RESET''': Reset the DSP program.  Similar to the [[dsp_reset]] command in [[mce_cmd]], except the mce_cmd command also causes the kernel driver to appropriately reconfigure quiet RP mode, which this does not.  So, use that instead of this.  Syntax is:
 
  RESET
 
  RESET
* '''RESET_MCE''': Reset the MCE.  This is equivalent to the [[mce_reset]] command in [[mce_cmd]].  Syntax is:
+
* '''RESET_MCE''': Reset the MCE.  This is entirely equivalent to the [[mce_reset]] command in [[mce_cmd]].  Syntax is:
 
  RESET_MCE
 
  RESET_MCE
 
* '''QT_SET''': Set a QT (quiet transfer) mode parameter.  Syntax is:
 
* '''QT_SET''': Set a QT (quiet transfer) mode parameter.  Syntax is:

Revision as of 19:23, 6 December 2012

Template:Hierarchy header dsp_cmd can be used to interact with the PCI fibre card DSP program directly. It makes screwing up the fibre card program and/or your PCI bus simple. Use with caution.

Usage

dsp_cmd [-i] [-q] [-p] [-n CARD] [-f FILE | -x COMMAND]
dsp_cmd [-h | -?]

where:
 -h / -?    show this help screen
 -i         interactive mode
 -q         quiet mode (report errors only)
 -p         don't prefix output lines
 -f FILE    read commands from FILE
 -n CARD    communicate with PCI fibre card number CARD.  Ignored unless Multicard MAS has been enabled.
 -x COMMAND execute command COMMAND

Commands

COMMAND is one of (case insenstive):

  • VERS: Report the version number of the DSP code. Syntax is:
VERS
  • READ: Read data from the DSP memory banks. Syntax is:
READ bank addr
where
  • bank is the memory bank to read, one of X, Y, P
  • addr is the memory address
  • WRITE: Write data to the DSP memory banks. Syntax is:
WRITE bank addr value
where
  • bank is the memory bank to write, one of X, Y, P
  • addr is the memory address
  • value is the datum to write
  • RESET: Reset the DSP program. Similar to the dsp_reset command in mce_cmd, except the mce_cmd command also causes the kernel driver to appropriately reconfigure quiet RP mode, which this does not. So, use that instead of this. Syntax is:
RESET
  • RESET_MCE: Reset the MCE. This is entirely equivalent to the mce_reset command in mce_cmd. Syntax is:
RESET_MCE
  • QT_SET: Set a QT (quiet transfer) mode parameter. Syntax is:
QT_SET param value
where
  • param is the parameter to set, one of BASE, DELTA, NUMBER, INFORM, SIZE, TAIL, HEAD, DROPS, FLUSH, ENABLE, BURST, RP_BASE, RP_SIZE, RP_ENABLE
  • value is the parameter value to write

See also