On 03/13/10 05:34 PM, Rick McNeal wrote:
I've got a driver which runs on a domU that communicates with another OS on a
different domU. Right now I can get the driver attached and see 30+ SCSI
INQUIRY commands sent to the driver and receive responses. Unfortunately the
kernel then panic's in ddi_get_soft_state() which is called by sd:xdfs_probe().
ddi_get_soft_state() will panic if either the state pointer is NULL or the
instance number is less than 0. From the stack information the instance number
is -1. xdfs_probe() calls ddi_get_instance() which is returning the -1, so I
looked at the dip value.
ffffff00ee825540::devinfo
ffffff00ee825540 sd (driver not attached)
System properties at ffffff00ee826c80:
name='lun' type=int items=1
value=00000000
name='target' type=int items=1
value=00000000
name='class' type=string items=1
value='scsi'
The sd driver isn't attached which seems to be a big problem.
Hi Rick,
According to "man -s 9e probe":
probe() determines whether the device corresponding to dip
actually exists and is a valid device for this driver.
probe() is called after identify(9E) and before attach(9E)
for a given dip.
Probe being called before attach is expected behavior.
_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss