From: linux@horizon.com
To: ak@suse.de, akpm@linux-foundation.org, linux@horizon.com
Cc: bk@suse.de, linux-pm@lists.linux-foundation.org,
linux-kernel@vger.kernel.org, michal.k.k.piotrowski@gmail.com,
hpa@zytor.com
Subject: Re: 2.6.22-rcX Transmeta/APM regression
Date: 30 Jun 2007 14:57:06 -0400 [thread overview]
Message-ID: <20070630185706.3979.qmail@science.horizon.com> (raw)
In-Reply-To: <200706301126.41179.ak@suse.de>
Responding to various proposed fixes:
> Index: linux/arch/i386/kernel/cpu/mtrr/main.c
> ===================================================================
> --- linux.orig/arch/i386/kernel/cpu/mtrr/main.c
> +++ linux/arch/i386/kernel/cpu/mtrr/main.c
> @@ -734,8 +734,11 @@ void mtrr_ap_init(void)
> */
> void mtrr_save_state(void)
> {
> - int cpu = get_cpu();
> + int cpu;
>
> + if (!cpu_has_mtrr)
> + return;
> + cpu = get_cpu();
> if (cpu == 0)
> mtrr_save_fixed_ranges(NULL);
> else
This does not change the symptoms in any way.
> --- a/arch/i386/kernel/cpu/mtrr/generic.c~i386-mtrr-crash-fix
> +++ a/arch/i386/kernel/cpu/mtrr/generic.c
> @@ -65,7 +65,8 @@ get_fixed_ranges(mtrr_type * frs)
>
> void mtrr_save_fixed_ranges(void *info)
> {
> - get_fixed_ranges(mtrr_state.fixed_ranges);
> + if (cpu_has_mtrr)
> + get_fixed_ranges(mtrr_state.fixed_ranges);
> }
>
> static void print_fixed(unsigned base, unsigned step, const mtrr_type*types)
This works great, thanks! Please consider the regression diagnosed and fixed.
next prev parent reply other threads:[~2007-06-30 18:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20070630030343.31711.qmail@science.horizon.com>
2007-06-30 4:06 ` 2.6.22-rcX Transmeta/APM regression H. Peter Anvin
2007-06-30 9:18 ` Andrew Morton
2007-06-30 9:26 ` Andi Kleen
2007-06-30 18:57 ` linux [this message]
2007-06-30 19:08 ` Andrew Morton
[not found] <20070627153114.17953.qmail@science.horizon.com>
2007-06-30 3:03 ` linux
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=20070630185706.3979.qmail@science.horizon.com \
--to=linux@horizon.com \
--cc=ak@suse.de \
--cc=akpm@linux-foundation.org \
--cc=bk@suse.de \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=michal.k.k.piotrowski@gmail.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