linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Geoff Levand <geoffrey.levand@am.sony.com>
To: michael@ellerman.id.au
Cc: linuxppc-dev@ozlabs.org, Paul Mackerras <paulus@samba.org>
Subject: Re: [PATCH 3/3] PS3: System manager support
Date: Tue, 06 Feb 2007 17:16:06 -0800	[thread overview]
Message-ID: <45C92856.4080107@am.sony.com> (raw)
In-Reply-To: <1170806435.4640.3.camel@concordia.ozlabs.ibm.com>

Michael Ellerman wrote:
> On Tue, 2007-02-06 at 14:23 -0800, Geoff Levand wrote:
>> Add PS3 system manager support and the ppc_md routines restart() and
>> power_off().
>> 
>> The system manager provides an event notification mechanism for reporting
>> events like thermal alert and button presses.  It also provides support to
>> control system shutdown and startup.
>> 
>> Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
>> 
>> ---
>>  arch/powerpc/platforms/ps3/Kconfig |   10 
>>  arch/powerpc/platforms/ps3/setup.c |   27 +
>>  drivers/ps3/Makefile               |    1 
>>  drivers/ps3/sys-manager.c          |  621 +++++++++++++++++++++++++++++++++++++
>>  include/asm-powerpc/ps3.h          |    5 
>>  5 files changed, 660 insertions(+), 4 deletions(-)
>> 
>> --- ps3-linux-dev.orig/arch/powerpc/platforms/ps3/Kconfig
>> +++ ps3-linux-dev/arch/powerpc/platforms/ps3/Kconfig
>> @@ -61,4 +61,14 @@ config PS3_PS3AV
>>  	  This support is required for graphics and sound. In
>>  	  general, all users will say Y or M.
>>  
>> +config PS3_SYS_MANAGER
>> +	tristate "PS3 System Manager driver"
>> +	select PS3_VUART
>> +	default y
>> +	help
>> +	  Include support for the PS3 System Manager.
>> +
>> +	  This support is required for system control.  In
>> +	  general, all users will say Y or M.
>> +
>>  endmenu
>> --- ps3-linux-dev.orig/arch/powerpc/platforms/ps3/setup.c
>> +++ ps3-linux-dev/arch/powerpc/platforms/ps3/setup.c
>> @@ -42,6 +42,10 @@
>>  #define DBG(fmt...) do{if(0)printk(fmt);}while(0)
>>  #endif
>>  
>> +#if !defined(CONFIG_SMP)
>> +static void smp_send_stop(void) {}
>> +#endif
>> +
>>  int ps3_get_firmware_version(union ps3_firmware_version *v)
>>  {
>>  	int result = lv1_get_version_info(&v->raw);
>> @@ -66,22 +70,35 @@ static void ps3_power_save(void)
>>  	lv1_pause(0);
>>  }
>>  
>> +static void ps3_restart(char *cmd)
>> +{
>> +	DBG("%s:%d cmd '%s'\n", __func__, __LINE__, cmd);
>> +
>> +	smp_send_stop();
>> +	ps3_sys_manager_restart(); /* never returns */
>> +}
>> +
>> +static void ps3_power_off(void)
>> +{
>> +	DBG("%s:%d\n", __func__, __LINE__);
>> +
>> +	smp_send_stop();
>> +	ps3_sys_manager_power_off(); /* never returns */
>> +}
> 
> What happens here when the sys manager stuff is built as a module ?

I don't support it as a module yet.  I'll change the Kconfig.

-Geoff

  reply	other threads:[~2007-02-07  1:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-06 22:23 [PATCH 3/3] PS3: System manager support Geoff Levand
2007-02-07  0:00 ` Michael Ellerman
2007-02-07  1:16   ` Geoff Levand [this message]
2007-02-07  3:41     ` Michael Ellerman
2007-02-07  3:53       ` Geoff Levand
2007-02-07 14:28 ` Geert Uytterhoeven
2007-02-07 17:04   ` Geoff Levand
2007-02-07 20:20 ` [PATCH 3/3 v2] " Geoff Levand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45C92856.4080107@am.sony.com \
    --to=geoffrey.levand@am.sony.com \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=michael@ellerman.id.au \
    --cc=paulus@samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).