>Number:         6576
>Category:       system
>Synopsis:       softraid(4) attaches multiple sensors under the same sensor id
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Tue Mar 08 16:10:01 GMT 2011
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        
>Organization:
>Environment:
        System      : OpenBSD 4.9
        Details     : OpenBSD 4.9 (GENERIC.MP) #2: Wed Mar  2 13:13:28 CET 2011
                         
[email protected]:/usr/src/sys/arch/sparc64/compile/GENERIC.MP

        Architecture: OpenBSD.sparc64
        Machine     : sparc64
>Description:
        I have two softraid(4) volumes :
        $ sudo bioctl softraid0
        Volume  Status               Size Device  
        softraid0 0 Online        34008760320 sd4     RAID1
              0 Online        34008760320 0:0.0   noencl <sd0p>
              1 Online        34008760320 0:1.0   noencl <sd1p>
        softraid0 1 Online       293625659392 sd5     RAID0
              0 Online       146814142464 1:0.0   noencl <sd2p>
              1 Online       146812870656 1:1.0   noencl <sd3p>

        But the sensor framework exposed their state under the same sysctl node:
        $ sysctl hw.sensors
        hw.sensors.softraid0.drive0=online (sd4), OK
        hw.sensors.softraid0.drive0=online (sd5), OK

        $ sysctl hw.sensors.softraid0.drive0
        hw.sensors.softraid0.drive0=online (sd4), OK

>How-To-Repeat:
>Fix:


dmesg:
OpenBSD 4.9 (GENERIC.MP) #2: Wed Mar  2 13:13:28 CET 2011
    [email protected]:/usr/src/sys/arch/sparc64/compile/GENERIC.MP
real mem = 2147483648 (2048MB)
avail mem = 2101043200 (2003MB)
mainbus0 at root: Sun Fire V240
cpu0 at mainbus0: SUNW,UltraSPARC-IIIi (rev 2.4) @ 1280 MHz
cpu0: physical 32K instruction (32 b/l), 64K data (32 b/l), 1024K external (64 
b/l)
cpu1 at mainbus0: SUNW,UltraSPARC-IIIi (rev 2.4) @ 1280 MHz
cpu1: physical 32K instruction (32 b/l), 64K data (32 b/l), 1024K external (64 
b/l)
"memory-controller" at mainbus0 not configured
"memory-controller" at mainbus0 not configured
schizo0 at mainbus0: "Tomatillo", version 4, ign 7c0, bus B 0 to 0
schizo0: dvma map c0000000-dfffffff
pci0 at schizo0
bge0 at pci0 dev 2 function 0 "Broadcom BCM5704C" rev 0x00, BCM5704 A3 
(0x2003): ivec 0x7c8, address 00:03:ba:bd:ee:a1
brgphy0 at bge0 phy 1: BCM5704 10/100/1000baseT PHY, rev. 0
bge1 at pci0 dev 2 function 1 "Broadcom BCM5704C" rev 0x00, BCM5704 A3 
(0x2003): ivec 0x7c9, address 00:03:ba:bd:ee:a2
brgphy1 at bge1 phy 1: BCM5704 10/100/1000baseT PHY, rev. 0
schizo1 at mainbus0: "Tomatillo", version 4, ign 780, bus A 0 to 0
schizo1: dvma map c0000000-dfffffff
pci1 at schizo1
ebus0 at pci1 dev 7 function 0 "Acer Labs M1533 ISA" rev 0x00
"flashprom" at ebus0 addr 0-fffff, 290-290 not configured
rtc0 at ebus0 addr 70-71: m5819p
pcfiic0 at ebus0 addr 320-321 ivec 0x2e
iic0 at pcfiic0
"SUNW,i2c-imax" at iic0 addr 0xb not configured
"SUNW,i2c-imax" at iic0 addr 0xc not configured
spdmem0 at iic0 addr 0x5b: 512MB DDR SDRAM registered ECC PC2300CL2.5
spdmem1 at iic0 addr 0x5c: 512MB DDR SDRAM registered ECC PC2300CL2.5
spdmem2 at iic0 addr 0x63: 512MB DDR SDRAM registered ECC PC2300CL2.5
spdmem3 at iic0 addr 0x64: 512MB DDR SDRAM registered ECC PC2300CL2.5
"ds1307" at iic0 addr 0x68 not configured
"pca9555" at iic0 addr 0x22 not configured
"pca9555" at iic0 addr 0x23 not configured
"pca9555" at iic0 addr 0x25 not configured
"pca9555" at iic0 addr 0x44 not configured
"pca9556" at iic0 addr 0x38 not configured
power0 at ebus0 addr 800-82f ivec 0x20
com0 at ebus0 addr 3f8-3ff ivec 0x2c: ns16550a, 16 byte fifo
com0: console
com1 at ebus0 addr 2e8-2ef ivec 0x2c: ns16550a, 16 byte fifo
"rmc-comm" at ebus0 addr 3e8-3ef ivec 0x2c not configured
alipm0 at pci1 dev 6 function 0 "Acer Labs M7101 Power" rev 0x00: 223KHz clock
iic1 at alipm0
ohci0 at pci1 dev 10 function 0 "Acer Labs M5237 USB" rev 0x03: ivec 0x7a7, 
version 1.0, legacy support
pciide0 at pci1 dev 13 function 0 "Acer Labs M5229 UDMA IDE" rev 0xc4: DMA, 
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using ivec 0x798 for native-PCI interrupt
atapiscsi0 at pciide0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <TEAC, DV-28E-C, 1.4B> ATAPI 5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 "Acer Labs OHCI root hub" rev 1.00/1.00 addr 1
schizo2 at mainbus0: "Tomatillo", version 4, ign 700, bus A 0 to 0
schizo2: dvma map c0000000-dfffffff
pci2 at schizo2
siop0 at pci2 dev 2 function 0 "Symbios Logic 53c1010-66" rev 0x01: ivec 0x729, 
using 8K of on-board RAM
scsibus1 at siop0: 16 targets, initiator 7
sd0 at scsibus1 targ 0 lun 0: <SEAGATE, ST336607LSUN36G, 0207> SCSI3 0/direct 
fixed
sd0: 34732MB, 512 bytes/sec, 71132959 sec total
sd1 at scsibus1 targ 1 lun 0: <SEAGATE, ST336607LSUN36G, 0207> SCSI3 0/direct 
fixed
sd1: 34732MB, 512 bytes/sec, 71132959 sec total
sd2 at scsibus1 targ 2 lun 0: <COMPAQ, BF1468A4B3, HPB5> SCSI3 0/direct fixed
sd2: 140014MB, 512 bytes/sec, 286749488 sec total
sd3 at scsibus1 targ 3 lun 0: <COMPAQ, BF14687B56, HPB9> SCSI3 0/direct fixed
sd3: 140014MB, 512 bytes/sec, 286749488 sec total
siop1 at pci2 dev 2 function 1 "Symbios Logic 53c1010-66" rev 0x01: ivec 0x728, 
using 8K of on-board RAM
scsibus2 at siop1: 16 targets, initiator 7
schizo3 at mainbus0: "Tomatillo", version 4, ign 740, bus B 0 to 0
schizo3: dvma map c0000000-dfffffff
pci3 at schizo3
bge2 at pci3 dev 2 function 0 "Broadcom BCM5704C" rev 0x00, BCM5704 A3 
(0x2003): ivec 0x75c, address 00:03:ba:bd:ee:a3
brgphy2 at bge2 phy 1: BCM5704 10/100/1000baseT PHY, rev. 0
bge3 at pci3 dev 2 function 1 "Broadcom BCM5704C" rev 0x00, BCM5704 A3 
(0x2003): ivec 0x75d, address 00:03:ba:bd:ee:a4
brgphy3 at bge3 phy 1: BCM5704 10/100/1000baseT PHY, rev. 0
ifb0 at pci3 dev 1 function 0 "3D Labs Wildcat 5110" rev 0x01
ifb0: XVR-500 (SUNW,375-3069), 1152x900
wsdisplay0 at ifb0 mux 1
wsdisplay0: screen 0 added (std, sun emulation)
siop0: target 0 now using tagged DT 16 bit 80.0 MHz 62 REQ/ACK offset xfers
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
siop0: target 1 now using tagged DT 16 bit 80.0 MHz 62 REQ/ACK offset xfers
siop0: target 2 now using tagged DT 16 bit 80.0 MHz 31 REQ/ACK offset xfers
siop0: target 3 now using tagged DT 16 bit 80.0 MHz 31 REQ/ACK offset xfers
scsibus4 at softraid0: 1 targets
sd4 at scsibus4 targ 0 lun 0: <OPENBSD, SR RAID 1, 004> SCSI2 0/direct fixed
sd4: 32433MB, 512 bytes/sec, 66423360 sec total
scsibus5 at softraid0: 1 targets
sd5 at scsibus5 targ 0 lun 0: <OPENBSD, SR RAID 0, 004> SCSI2 0/direct fixed
sd5: 280023MB, 512 bytes/sec, 573487616 sec total
bootpath: /pci@1c,600000/scsi@2,0/disk@0,0
root on sd0a swap on sd0b dump on sd0b

usbdevs:
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), Acer 
Labs(0x10b9), rev 1.00
 port 1 powered
 port 2 powered


>Release-Note:
>Audit-Trail:
>Unformatted:

Reply via email to