Port-sgimips archive

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

Re: O2 hangs on reboot and powerdown




To: Jared D. McNeill <jmcneill%invisible.ca@localhost>

Subject: Re: O2 hangs on reboot and powerdown

From: Michael Lorenz <macallan%NetBSD.org@localhost>

Date: Thu, 10 Jan 2008 19:26:08 -0500


-----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 hoo
ks 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-----



References:

Re: O2 hangs on reboot and powerdown
From: Izumi Tsutsui

Re: O2 hangs on reboot and powerdown
From: Michael Lorenz

Re: O2 hangs on reboot and powerdown
From: Jared D. McNeill




Prev by Date: Re: O2 hangs on reboot and powerdown

Next by Date: Audio on O2 (mavb driver)

Previous by Thread: Re: O2 hangs on reboot and powerdown

Next by Thread: Re: O2 hangs on reboot and powerdown

Indexes:

reverse Date

reverse Thread

Old Index



Home | Main Index | Thread Index | Old Index