MAS start/stop

From MCEWiki
Revision as of 14:52, 30 August 2016 by Dvw (talk | contribs)

The only persistent application in MAS is the logging daemon, maslog. To unload MAS, you should stop maslog and then unload the MAS driver.

maslog

Sometimes, the logger is not running, in which case you will get the following error if you try to run a MAS command:

"Could not open mce device '/dev/mce_cmd0'"

The only persistent application in MAS is the logging daemon, maslog_server. To see if it is running, run

$ ps -e |grep maslog_server

To start the maslog_server, if it is not already running

$ maslog_server

If this doesn't exit, type <ctrl-z> to suspend, and type

$ bg

to send it to background.

To bring it down cleanly, use the maslog application with the exit command:

$ maslog stop

To start the server up again, do

$ maslog start

driver

The MAS driver, when loaded, will register itself as "mce_dsp". You can check for its presence in the list of modules:

$ cat /proc/modules |grep mce
mce_dsp 36564 0 - Live 0xf8c1e000

To look at the driver status, type:

$ cat /proc/mce_dsp

and you should see:

   fakemce:  no
   realtime: no
   bigphys:  yes
 data buffer:
   virtual:  0xc1833000
   bus:      0x01833000
   count:          1627
   head:              0
   tail:              0
   drops:             0
   size:         0x1800
   data:         0x1530
   mode:     quiet mode
 mce commander:
   state:    idle
 dsp commander:
   state:    idle
 dsp pci registers:
   hstr:     0x0003
   hctr:     0x0900

To reset the DSP, run

$ dsp_reset

To unload the driver, run

$ sudo rmmod mce_dsp

If you get a message "can't remove, the driver is busy", then ???????

While the DSP driver is not loaded, try pressing the white reset button on the face plate of the PCI card.

To load the DSP driver again, run

$ sudo modprobe mce_dsp

device files

Once the driver is installed it is necessary to create access points in /dev. This is done with the script mknodes in the driver source directory (this will be made better...)

$ /home/mce/mas/driver/mknodes

These nodes can be removed, if desired, with a normal rm command:

$ sudo rm /dev/mce_*