From: "H. Peter Anvin" <hpa@zytor.com>
To: Jan Beulich <jbeulich@novell.com>
Cc: mingo@elte.hu, tglx@linutronix.de, linux-kernel@vger.kernel.org
Subject: Re: [PATCH, resend] x86: x86_{phys,virt}_bits field also for i386
Date: Tue, 02 Sep 2008 15:12:38 -0700 [thread overview]
Message-ID: <48BDBA56.8050208@zytor.com> (raw)
In-Reply-To: <48B7FF46.76E4.0078.0@novell.com>
Jan Beulich wrote:
> Make the x86_{phys,virt}_bits common for 32- and 64-bits, and use the
> former in ioremap's phys_addr_valid() check also on 32bit/PAE.
>
> Signed-off-by: Jan Beulich <jbeulich@novell.com>
>
> c->x86_cache_alignment = 32;
> c->x86_clflush_size = 32;
> +#ifdef CONFIG_X86_PAE
> + c->x86_phys_bits = 36;
> +#else
> + c->x86_phys_bits = 32;
> +#endif
> + c->x86_virt_bits = 32;
>
This is logical but wrong. This is supposed to be about the CPU, not
about the kernel.
That would mean using the physbit information if it is present,
otherwise (pae_feature_bit ? 36 : 32).
-hpa
prev parent reply other threads:[~2008-09-02 22:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-29 11:53 [PATCH, resend] x86: x86_{phys,virt}_bits field also for i386 Jan Beulich
2008-09-02 22:12 ` H. Peter Anvin [this message]
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=48BDBA56.8050208@zytor.com \
--to=hpa@zytor.com \
--cc=jbeulich@novell.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.