-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, On Jan 9, 2008, at 21:16, Jared D. McNeill wrote:
On 9-Jan-08, at 7:52 PM, Michael Lorenz wrote:I've found the problem. What happens is that ahc's shutdown hook is called, in turn calls ahc_shutdown(), after that pmf_system_shutdown calls sd's suspend handler which tries to flush caches but the command times out since ahc is already shut down. So, this is not sgimips specific and will likely affect other scsi drivers as well. I worked around if by removing the shutdown hook and adding suspend and resume handlers to ahc_pci which simply call ahc_suspend and ahc_resume. Since I'm not at all familiar with scsipi or the ahc driver - is there anything wrong with this approach? On my O2 at least it works.
This is correct -- shutdown hooks need to nuked in favour of pmf handlers for dependencies to work properly. Good find!
Hrm, something is still wrong - calling ahc_suspend() on ahc1 runs into a NULL pointer dereference for some reason. Some typo prevented it from being called yesterday :/
have fun Michael -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) iQEVAwUBR4a3ocpnzkX8Yg2nAQIKhAf/apz5qm/DmUbE9j87Sd+HLTXc2m5OtgNl R3b8aQ7oWLOMx41r7/kP/Y2w/QGNKDEsJ632OHed5+FCB4oXD3XW3DRjeahdj5Jx IU/8Qn32wz4BJgkt28sCRxAUT0BnlTbbq+ebFLFDXqnjHPIvC7Ru8+GkREaCX0sd WuV2RNWaA44C8y7ps9DdIpGQmAgWEGpRC+JOayT6Ikcdx2K7+GqU8FJr+vhni1Bu IWguPToMrtGyJLOBOI/fr2J2CjY8p8v0yddxcG6g91rIEgCg6QbKHG3JKTc3TIqj Ip3E4kBqFD1C1jpij/FAsyanYT5R/hqjOXSpVXxnokDlByCF3it+Dw== =/xuX -----END PGP SIGNATURE-----