Bug 245122 - PS3 does not shutdown/reboot
Summary: PS3 does not shutdown/reboot
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 7
Hardware: powerpc
OS: Linux
low
high
Target Milestone: ---
Assignee: Dave Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-06-21 09:35 UTC by Piergiorgio Sartor
Modified: 2015-01-04 22:29 UTC (History)
4 users (show)

Fixed In Version: 2.6.23.12
Clone Of:
Environment:
Last Closed: 2008-01-18 04:21:19 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Output from /var/log/messages (2.84 MB, text/plain)
2007-09-22 22:33 UTC, Jason
no flags Details

Description Piergiorgio Sartor 2007-06-21 09:35:12 UTC
Description of problem:
When trying to poweroff or reboot F7 on a Playstation 3, the system performs the
usual steps (shutting down services, syncing the disk, ...) up to the real HW
shutdown. At this point everything just stays locked, until the power switch is
used.
The old 2.6.16 for PS3 was working fine, i.e. reboot was rebooting and poweroff
was powering off.

Version-Release number of selected component (if applicable):
kernel-2.6.21-1.3228.fc7.ppc64.rpm   

How reproducible:
Always

Steps to Reproduce:
1.
Install, if you can, F7 on a PS3
2.
From console, as root, type reboot or poweroff
  
Actual results:
The system goes into shutdown, but is actually hangs at the end.

Expected results:
The system should reboot or switch off.

Additional info:
As mentioned above, the 2.6.16 for PS3 was working.
As an other hint, the last messages are something related to the ps3fb,
something like:

ps3fb_remove -> 1144
ps3fb_??? -> 1130

Comment 1 Jason 2007-07-24 02:14:40 UTC
TThis is happening to me as well. Exactly as described.

Comment 2 Christopher Brown 2007-09-17 11:43:01 UTC
Hello folks,

I'm reviewing this bug as part of the kernel bug triage project, an attempt to
isolate current bugs in the fedora kernel.

http://fedoraproject.org/wiki/KernelBugTriage

I am CC'ing myself to this bug and will try and assist you in resolving it if I can.

There hasn't been much activity on this bug for a while. Could you tell me if
you are still having problems with the latest kernel?

If the problem no longer exists then please close this bug or I'll do so in a
few days if there is no additional information lodged.

Cheers
Chris

Comment 3 Jason 2007-09-19 16:17:10 UTC
The most recent F7 kernel still does not shutdown/reboot correctly. Updated and 
tried last night, with the same result as in the passed (2007 09 18)

Comment 4 Christopher Brown 2007-09-20 08:33:27 UTC
Thanks for the update Jason. Could you try running the following command as root:

# shutdown -r now

and see if this performs the reboot correctly for you? If not, if you have the
chance to test the latest kernel from rawhide I believe there are a number of
updates for ppc64 that should resolve this.

Cheers
Chris

Comment 5 Jason 2007-09-21 02:54:17 UTC
I tried this with the most recent F7 kernel 2.6.22.5-76.fc7 and it did not 
work. I went ahead and installed the current rawhide kernel 
2.6.23-0.189.rc6.git8.fc8 and it did not work any better.

Comment 6 Christopher Brown 2007-09-21 08:32:56 UTC
Okay, thanks for testing Jason. You could attach the output from
/var/log/messages as this may well give more clues to what is causing the hang.

Cheers
Chris

Comment 7 Jason 2007-09-22 22:33:57 UTC
Created attachment 203271 [details]
Output from /var/log/messages

The attachment is the output from /var/log/messages you requested.

Comment 8 Christopher Brown 2007-09-23 17:54:32 UTC
The following may be of some interest:

https://bugzilla.redhat.com/show_bug.cgi?id=249217
http://forums.fedoraforum.org/showthread.php?t=161805

It looks like rebooting on the PS3 is an ongoing issue. Please can you test as
suggested in the above posts and post back the results.

Comment 9 Jason 2007-09-24 01:27:04 UTC
using 'shutdown -rn now' reboot the PS3, however this does nothing to fix 
actually shutting own the PS3. Also, if you change the boot flag prior to 
rebooting, using this method to reboot causes you to reboot into linux again, 
rather than reboot into the game os. I would expect, if I change the boot flag, 
nd then reboot, to boot into the game os. Whether this is possible or not I 
don't know, but that's what I would have expected...

Comment 10 Christopher Brown 2007-09-24 11:14:17 UTC
Well if 'shutdown -rn now' works for rebooting then 'shutdown -n now' should
work for shutting down. Not sure if that is what you were getting at. I have no
knowledge of PS3 with linux however one fix mentioned on the above link was:

/sbin/other-os-flash-util -b /dev/ps3flash

which seems to fixe booting into the game OS. Were you able to try this?

Comment 11 Bill Blake 2007-10-11 22:29:11 UTC
(In reply to comment #10)
> /sbin/other-os-flash-util -b /dev/ps3flash
> 
> which seems to fixe booting into the game OS. Were you able to try this?

Yes, that fixes booting into the game OS, but we still need a way to get the PS3
to shutdown and reboot into game OS without having to power off / on.

As mentioned, the "shutdown -rn now" method causes it to shutdown and restart
into Linux even if the boot flag has been changed.  Also when using this method
your most recent shell commands don't appear to be saved.

All versions of YDL 5.0.x shut down properly and reboot into game OS, but I
don't know enough about it to see what is different there.

billb - Fedora Forums


Comment 12 Dave Horton 2007-11-10 14:45:08 UTC
The latest kernel does allow the ps3 to shutdown and reboot. Unfortunately, it
doesn't boot into the game-os correctly.

Running the command '/sbin/other-os-flash-util -b /dev/ps3flash' changes the
boot flag, but the boot flag doesn't get read on reboot. If you shut down the
ps3 completely (with 'shutdown -h now bye'), it reads the boot flag, and boots
into the correct os. All of the reboot commands I've tried reboot back into
linux even when the boot flag has been changed to game-os.

Comment 13 Bill Blake 2007-11-10 20:38:47 UTC
Reboot to Game OS is now working properly for me with 2.6.23.1-21.fc7

This is my boot-game-os script:
 
#!/bin/sh

/sbin/other-os-flash-util -b /dev/ps3flash ||
{
        echo "ERROR: can't change boot flag" 2>&1;
        exit 1;
}

reboot

Comment 14 Dave Horton 2007-11-12 00:52:55 UTC
My boot-game-os script is the same as the one posted above, but my ps3 will not
boot into the game-os. When I run the boot-game-os script, it says "boot flag
changed", but it still boots back into linux.

Comment 15 Christopher Brown 2008-01-09 15:06:47 UTC
Dave,

Is this still an issue for you? What happens when running the boot-game-os
script as a regular user opposed to root? Difference?

Comment 16 Dave Horton 2008-01-17 23:25:41 UTC
This is not an issue for me anymore. It now works as expected.


Comment 17 Christopher Brown 2008-01-18 04:21:19 UTC
Okay, as both you and Dave seem happy I'm closing as CURRENTRELEASE. Thanks for
adding yourself to the bug and making your comments.

Comment 18 Jason 2008-01-18 17:21:27 UTC
Working for me as well.


Note You need to log in before you can comment on or make changes to this bug.