From: Thomas Gleixner <tglx@linutronix.de>
To: Shaohua Li <shaohua.li@intel.com>
Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org,
mingo@redhat.com, thisistempbox@yahoo.com, lenb@kernel.org
Subject: Re: [PATCH 2/2]cpuidle: makes AMD C1E works in suspend/resume path
Date: Tue, 19 May 2009 15:07:08 +0200 (CEST) [thread overview]
Message-ID: <alpine.LFD.2.00.0905191456050.5983@localhost.localdomain> (raw)
In-Reply-To: <20090519080954.GB12117@sli10-desk.sh.intel.com>
On Tue, 19 May 2009, Shaohua Li wrote:
> When AMD C1E is enabled, local APIC timer will stop even in C1. To avoid
> suspend/resume hang, this patch removes C1 and replace it with a cpu_relax() in
> suspend/resume path. This hasn't any impact in runtime path.
>
> http://bugzilla.kernel.org/show_bug.cgi?id=13233
>
> [ impact: avoid suspend/resume hang in AMD CPU with C1E enabled ]
>
> Tested-by: Dmitry Lyzhyn <thisistempbox@yahoo.com>
> Signed-off-by: Shaohua Li <shaohua.li@intel.com>
> ---
> drivers/acpi/processor_idle.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Index: linux/drivers/acpi/processor_idle.c
> ===================================================================
> --- linux.orig/drivers/acpi/processor_idle.c 2009-05-19 09:56:59.000000000 +0800
> +++ linux/drivers/acpi/processor_idle.c 2009-05-19 10:01:23.000000000 +0800
> @@ -834,8 +834,8 @@ static int acpi_idle_enter_c1(struct cpu
>
> /* Do not access any ACPI IO ports in suspend path */
> if (acpi_idle_suspend) {
> - acpi_safe_halt();
> local_irq_enable();
> + cpu_relax();
> return 0;
> }
Hmm, we removed the pm_idle_safe logic which took care of that in
older kernel versions :(
if (!cx || acpi_idle_suspend) {
if (pm_idle_save)
pm_idle_save();
else
acpi_safe_halt();
return;
}
That's what took care of the broadcast on those AMD C1E machines as
well.
But yeah, that cpu_relax() loop is probably fine for the suspend path.
Thanks,
tglx
next prev parent reply other threads:[~2009-05-19 13:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-19 8:09 [PATCH 2/2]cpuidle: makes AMD C1E works in suspend/resume path Shaohua Li
2009-05-19 13:07 ` Thomas Gleixner [this message]
2009-05-27 3:45 ` Len Brown
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=alpine.LFD.2.00.0905191456050.5983@localhost.localdomain \
--to=tglx@linutronix.de \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=shaohua.li@intel.com \
--cc=thisistempbox@yahoo.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