jhardin n00b
Joined: 12 Oct 2005 Posts: 59
|
Posted: Sun Jan 12, 2014 12:59 am Post subject: [solved] G5 PowerMac reboot after power failure |
|
|
Folks:
My G5 PowerMac running 3.8.13 isn't rebooting automatically when the power is restored after an outage. The PPC FAQ suggests that the solution to this is:
Code: | echo "server_mode=1" > /proc/pmu/options |
...but I don't have /proc/pmu at all!
I dug around in the kernel configs for a bit but didn't see anything suggestive for enabling /proc/pmu. I do have Device Drivers -> Macintosh Device Drivers -> Support for PMU based PowerMacs selected, and everything else (including windfarm) is working well.
Is /proc/pmu actually supported on this platform? Should I have it on this platform? Is there some other specific kernel config option I need to select to enable it?
I do have a bunch SMU stuff under /proc:
Code: |
athena ~ # find /proc -iname \*smu\*
/proc/irq/48/SMU message
/proc/irq/53/SMU doorbell
/proc/device-tree/aliases/smu
/proc/device-tree/smu@0,0
/proc/device-tree/smu@0,0/platform-smu-interrupt
/proc/device-tree/smu@0,0/smu-version-sdb
/proc/device-tree/smu@0,0/smu-version-spu
/proc/device-tree/smu@0,0/smu-version-pmu
/proc/device-tree/smu@0,0/smu-version-info
/proc/device-tree/smu@0,0/smu-update-version-sdb
/proc/device-tree/smu@0,0/smu-update-version-spu
/proc/device-tree/smu@0,0/smu-update-version-pmu
/proc/device-tree/smu@0,0/smu-update-version-info
/proc/device-tree/smu@0,0/smu-base-version-sdb
/proc/device-tree/smu@0,0/smu-base-version-spu
/proc/device-tree/smu@0,0/smu-base-version-pmu
/proc/device-tree/smu@0,0/smu-base-version-info
/proc/device-tree/smu@0,0/smu-i2c-control@0
/proc/device-tree/ht@0,f2000000/pci@8/mac-io@7/gpio@50/smu-interrupt@d
/proc/device-tree/ht@0,f2000000/pci@8/mac-io@7/gpio@50/smu-interrupt@d/platform-do-smu-interrupt
/proc/device-tree/ht@0,f2000000/pci@8/mac-io@7/gpio@50/smu-doorbell@12
|
...does this mean I don't have a PMU-based PowerMac? If so, how do I control automatic reboot on restoration of power?
TIA.
eta: I think this is a SMU-based PMac. I see this in the boot log:
Code: | Jan 12 09:35:57 athena kernel: PowerMac i2c bus smu 14 registered
Jan 12 09:35:57 athena kernel: PowerMac i2c bus smu 11 registered
Jan 12 09:35:57 athena kernel: PowerMac i2c bus mac-io 0 registered
Jan 12 09:35:57 athena kernel: PowerMac i2c bus mac-io 0 registered
Jan 12 09:35:57 athena kernel: PowerMac i2c bus u4 1 registered |
...but nothing in the log mentions "pmu".
Googling for SMU server mode finds this post where Benjamin Herrenschmidt says he figured out how to set server mode on a SMU-based box, but the actual commands or the utility that somebody wrote to run the command(s) can't be found. Does anybody know more about this option?
TIA again.
eta 2: Ben responded with this: http://gate.crashing.org/~benh/smu_servermode.tar.bz2 - it compiles and apparently does set a value somewhere... I'll have to pull the plug and see what happens.
eta 3: smu_servermode works. |
|