Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: loading new envstat properties reboots system



On Thu, 16 Dec 2010, Nicolas Joly wrote:

On Thu, Dec 16, 2010 at 03:15:58PM +0100, Nicolas Joly wrote:
[...]
root@lanfeust [~]# envstat -c sws.conf
root@lanfeust [~]# envstat -d swsensor
          Current  CritMax  WarnMax  WarnMin  CritMin Unit
sensor:  -272.150   90.000                     10.000 degC
root@lanfeust [~]# envstat -S
root@lanfeust [~]# envstat -d swsensor
          Current  CritMax  WarnMax  WarnMin  CritMin Unit
sensor:  -272.150          -273.117                   degC

Here are the corresponding debug messages :

root@lanfeust [~]# modload -i type=0 swsensor
sysmon_envsys_sensor_attach: attached #0 (sensor), units=0 (Temperature)
sme_add_sensor_dictionary: sensor desc=sensor type=0 state=0
sysmon_envsys_register: driver 'swsensor' registered (nsens=1 nevent=0)
swsensor: initialized

root@lanfeust [~]# envstat -c sws.conf
sysmonioctl_envsys: processing the 'swsensor' array requests
sme_event_register: units 0 props 0x0003 upropset 0x0000 max_val 0 edata-flags 
0x0000
sme_event_register: dev swsensor sensor sensor: new event
sme_event_register: (swsensor) event [sensor=sensor type=200] (critical-max 
updated)
sme_event_register: (swsensor) event [sensor=sensor type=200] (critical-min 
updated)
sme_event_register: (swsensor) event registered (sensor=sensor snum=0 type=200 
critmin=283150000 warnmin=0 warnmax=0 critmax=363150000 props 0x0003)
sme_events_init: events framework initialized for 'swsensor'

root@lanfeust [~]# envstat -S
sme_event_unregister: removed dev=swsensor sensor=sensor type=200
sme_events_destroy: events framework destroyed for 'swsensor'
sme_remove_userprops: install limits for swsensor sensor
sme_event_register: units 0 props 0x0106 upropset 0x0000 max_val 0 edata-flags 
0x0000
sme_event_register: dev swsensor sensor sensor: new event
sme_event_register: (swsensor) event [sensor=sensor type=200] (warning-max 
updated)
sme_event_register: (swsensor) event [sensor=sensor type=200] (critical-min 
updated)
sme_event_register: (swsensor) event registered (sensor=sensor snum=0 type=200 
critmin=0 warnmin=0 warnmax=32640 critmax=363150000 props 0x0006)
sme_events_init: events framework initialized for 'swsensor'

Very strange. It would seem that something is not being initialized properly. I will investigate further.



-------------------------------------------------------------------------
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index