public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Thomas Gleixner <tglx@linutronix.de>
Cc: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>,
	Stable Team <stable@kernel.org>,
	LKML <linux-kernel@vger.kernel.org>, Len Brown <lenb@kernel.org>,
	Ingo Molnar <mingo@elte.hu>,
	Arjan van de Ven <arjan@infradead.org>, Andi Kleen <ak@suse.de>,
	"Udo A. Steinberg" <us15@os.inf.tu-dresden.de>,
	Dave Jones <davej@redhat.com>
Subject: Re: [PATCH] ACPI: Move timer broadcast and pmtimer access before C3 arbiter shutdown
Date: Wed, 6 Jun 2007 18:38:57 -0700	[thread overview]
Message-ID: <20070606183857.caa243d4.akpm@linux-foundation.org> (raw)
In-Reply-To: <1181122673.4404.200.camel@chaos>

On Wed, 06 Jun 2007 11:37:53 +0200 Thomas Gleixner <tglx@linutronix.de> wrote:

> From: Udo A. Steinberg <us15@os.inf.tu-dresden.de>
> 
> The chip set doc for IHC4 says:
> 
> 1.In general, software should not attempt any non-posted accesses during
> arbiter disable except to the ICH4's power management registers. This
> implies that interrupt handlers for any unmasked hardware interrupts and
> SMI/NMI should check ARB_DIS status before reading from ICH devices.
> 
> So it's not a good idea to access ICH devices after arbiter shut down. 
> 
> Signed-off-by: Udo A. Steinberg <us15@os.inf.tu-dresden.de>
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
> 
> ---
>  drivers/acpi/processor_idle.c |    9 +++++----
>  1 file changed, 5 insertions(+), 4 deletions(-)
> 
> Index: linux-2.6.22-rc4/drivers/acpi/processor_idle.c
> ===================================================================
> --- linux-2.6.22-rc4.orig/drivers/acpi/processor_idle.c	2007-06-06 11:47:21.000000000 +0200
> +++ linux-2.6.22-rc4/drivers/acpi/processor_idle.c	2007-06-06 11:48:21.000000000 +0200
> @@ -488,6 +488,11 @@ static void acpi_processor_idle(void)
>  
>  	case ACPI_STATE_C3:
>  
> +		/* Get start time (ticks) */
> +		t1 = inl(acpi_gbl_FADT.xpm_timer_block.address);
> +		/* Handle timer broadcast before bus arbiter shutdown ! */
> +		acpi_state_timer_broadcast(pr, cx, 1);
> +
>  		if (pr->flags.bm_check) {
>  			if (atomic_inc_return(&c3_cpu_count) ==
>  			    num_online_cpus()) {
> @@ -502,10 +507,7 @@ static void acpi_processor_idle(void)
>  			ACPI_FLUSH_CPU_CACHE();
>  		}
>  
> -		/* Get start time (ticks) */
> -		t1 = inl(acpi_gbl_FADT.xpm_timer_block.address);
>  		/* Invoke C3 */
> -		acpi_state_timer_broadcast(pr, cx, 1);
>  		acpi_cstate_enter(cx);
>  		/* Get end time (ticks) */
>  		t2 = inl(acpi_gbl_FADT.xpm_timer_block.address);

hm, this needs a bit of help to get it to work against Len's current tree.

However, if by "non-posted accesses" you're referring to that inl(), how
come the second one which was left in place isn't also a problem?


  parent reply	other threads:[~2007-06-07  1:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-06  9:37 [PATCH] ACPI: Move timer broadcast and pmtimer access before C3 arbiter shutdown Thomas Gleixner
2007-06-06 21:02 ` [PATCH] ACPI: Move timer broadcast and pmtimer access before C3arbiter shutdown Pallipadi, Venkatesh
2007-06-07  1:38 ` Andrew Morton [this message]
2007-06-07  1:43   ` [PATCH] ACPI: Move timer broadcast and pmtimer access before C3 arbiter shutdown Pallipadi, Venkatesh
2007-06-12  1:07   ` [stable] " Chris Wright
2007-06-12  8:26     ` Thomas Gleixner
2007-06-12 12:54       ` [stable] [PATCH] ACPI: Move timer broadcast and pmtimer accessbefore " Pallipadi, Venkatesh
2007-06-12 16:58         ` Chris Wright

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=20070606183857.caa243d4.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=ak@suse.de \
    --cc=arjan@infradead.org \
    --cc=davej@redhat.com \
    --cc=lenb@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=stable@kernel.org \
    --cc=tglx@linutronix.de \
    --cc=us15@os.inf.tu-dresden.de \
    --cc=venkatesh.pallipadi@intel.com \
    /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