linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Geoff Levand <geoffrey.levand@am.sony.com>
Cc: linuxppc-dev@ozlabs.org, Paul Mackerras <paulus@samba.org>
Subject: Re: [patch 5/6] PS3: Fix system slowdown
Date: Tue, 01 May 2007 15:31:06 +1000	[thread overview]
Message-ID: <1177997466.24962.20.camel@localhost.localdomain> (raw)
In-Reply-To: <46365913.3090504@am.sony.com>

On Mon, 2007-04-30 at 14:01 -0700, Geoff Levand wrote:
> From: Takao Shinohara <shin@sm.sony.co.jp>
> 
> The PS3 HV will deliver soft-disabled interrupts at the next HV call or
> interrupt.  Add an HV call to local_irq_restore() to force the timely
> delivery of any pending interrupts.
> 
> This fixes the system slowdown bug reported here
> http://bugzilla.kernel.org/show_bug.cgi?id=8260
> 
> From: Takao Shinohara <shin@sm.sony.co.jp>
> Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>

Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>

Note: It would be nicer to do the HV call from assembly, using a
firmware feature section, when the interrupt actually happens. The main
reason I haven't done a patch yet is that it happens in an exception
vectors with only few registers available nad the HV call will clobber a
lot more than we have saved.

Ben.


> ---
> 
> I made a request to change the behavior of the lv1 hypervisor to better
> support the way we do soft-disable on Linux, but it is still not been
> decided if and when that support will be done.
> 
>  arch/powerpc/kernel/irq.c |   11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> --- ps3-linux-dev.orig/arch/powerpc/kernel/irq.c
> +++ ps3-linux-dev/arch/powerpc/kernel/irq.c
> @@ -67,6 +67,7 @@
>  #ifdef CONFIG_PPC64
>  #include <asm/paca.h>
>  #include <asm/firmware.h>
> +#include <asm/lv1call.h>
>  #endif
>  
>  int __irq_offset_value;
> @@ -162,6 +163,16 @@ void local_irq_restore(unsigned long en)
>  	local_paca->hard_enabled = en;
>  	if ((int)mfspr(SPRN_DEC) < 0)
>  		mtspr(SPRN_DEC, 1);
> +
> +	/*
> +	 * Force the delivery of pending soft-disabled interrupts on PS3.
> +	 * Any HV call will have this side effect.
> +	 */
> +	if (firmware_has_feature(FW_FEATURE_PS3_LV1)) {
> +		u64 tmp;
> +		lv1_get_version_info(&tmp);
> +	}
> +
>  	hard_irq_enable();
>  }
>  #endif /* CONFIG_PPC64 */
> 

  reply	other threads:[~2007-05-01  5:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20070430202420.872228544@am.sony.com>
2007-04-30 21:00 ` [patch 1/6] PS3: Remove dev_dbg redefinition in ehci-ps3.c and ohci-ps3.c Geoff Levand
2007-04-30 21:00 ` [patch 2/6] PS3: Add DABR support Geoff Levand
2007-04-30 21:00 ` [patch 3/6] PS3: Remove duplicate variable assignement Geoff Levand
2007-04-30 21:01 ` [patch 4/6] PS3: Interrupt routine fixups Geoff Levand
2007-04-30 21:01 ` [patch 5/6] PS3: Fix system slowdown Geoff Levand
2007-05-01  5:31   ` Benjamin Herrenschmidt [this message]
2007-04-30 21:01 ` [patch 6/6] PS3: Defconfig updates 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=1177997466.24962.20.camel@localhost.localdomain \
    --to=benh@kernel.crashing.org \
    --cc=geoffrey.levand@am.sony.com \
    --cc=linuxppc-dev@ozlabs.org \
    --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).