Javen,
My driver uses ddi_get32()/ddi_put32() to read/write 
The mapped PCI registers of HBA hardware. Here are 
Questions.
(1) Is it safe to use ddi_getxx()/ddi_putxx() while
    holding the driver mutex. The sample code seems OK
    to use but DOC said avoid that since it will block
    kmem_alloc() ?
(2) If driver command running is not busy, the data read
    back from ddi_getxx() is correct but if command running
    is heavy, sometimes the ddi_getxx() returned value is 
    not valid which causes panic. I read it from interrupt
    ISR and the handler and address pointer for ddi_getxx()
    are correct. What could be wrong?

Can you give me some advices?  Thanks

Steve
  

_______________________________________________
driver-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Reply via email to