Re: [PATCH 0 of 4] x86: some more patches

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeremy Fitzhardinge <jeremy@...>
Cc: LKML <linux-kernel@...>, Andi Kleen <ak@...>, Glauber de Oliveira Costa <glommer@...>, Jan Beulich <jbeulich@...>
Date: Wednesday, January 16, 2008 - 10:22 am

* Jeremy Fitzhardinge <jeremy@goop.org> wrote:


after a day of debugging i finally tracked it down to another 
unsigned-type and masking mismatch on PAE, caused by:

  Subject: x86: unify pgtable accessors which use supported_pte_mask
  From: Jeremy Fitzhardinge <jeremy@goop.org>

the fix is below.

I have to say, i'm less than impressed about the structure of that 
patch. The patch too was way too coarse for easy bisection. You did 
multiple nontrivial steps in the same patch.

I'm not going to apply such all-in-one patches to x86.git anymore, and 
will start straight with another patch you sent yesterday:

  Subject: x86: refactor mmu ops in paravirt.h
  2 files changed, 129 insertions(+), 88 deletions(-)

If anyone finds a problem in that patch we'll have a hard time figuring 
out what went wrong. Please split that patch up properly. To demonstrate 
the kind of splitup we need for such patches, i've done a sample splitup 
of the following patch in x86.git:

  Subject: x86/pgtable: unify pagetable accessors
  From: Jeremy Fitzhardinge <jeremy@goop.org>

and turned it into 6 easy-to-review and easy-to-validate patches. Each 
step is _provably trivial_, and even if something goes wrong, it's easy 
to figure out where the problem comes from. At each step, document in 
the patch description whether the patch is intended to cause any code 
changes or not.

	Ingo

Index: linux-x86.q/include/asm-x86/page.h
===================================================================
--- linux-x86.q.orig/include/asm-x86/page.h
+++ linux-x86.q/include/asm-x86/page.h
@@ -11,7 +11,7 @@
 #ifdef __KERNEL__
 
 #define PHYSICAL_PAGE_MASK	(PAGE_MASK & __PHYSICAL_MASK)
-#define PTE_MASK		PHYSICAL_PAGE_MASK
+#define PTE_MASK		(_AT(long, PHYSICAL_PAGE_MASK))
 
 #define LARGE_PAGE_SIZE		(_AC(1,UL) << PMD_SHIFT)
 #define LARGE_PAGE_MASK		(~(LARGE_PAGE_SIZE-1))
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0 of 4] x86: some more patches, Jeremy Fitzhardinge, (Tue Jan 15, 6:17 pm)
Re: [PATCH 0 of 4] x86: some more patches, Ingo Molnar, (Tue Jan 15, 6:35 pm)
Re: [PATCH 0 of 4] x86: some more patches, Jeremy Fitzhardinge, (Tue Jan 15, 7:28 pm)
Re: [PATCH 0 of 4] x86: some more patches, Ingo Molnar, (Wed Jan 16, 10:22 am)
Re: [PATCH 0 of 4] x86: some more patches, Andi Kleen, (Wed Jan 16, 10:44 am)
Re: [PATCH 0 of 4] x86: some more patches, Ingo Molnar, (Wed Jan 16, 10:54 am)
Re: [PATCH 0 of 4] x86: some more patches, Andi Kleen, (Wed Jan 16, 11:26 am)
Re: [PATCH 0 of 4] x86: some more patches, Jan Beulich, (Wed Jan 16, 11:42 am)
Re: [PATCH 0 of 4] x86: some more patches, Ingo Molnar, (Wed Jan 16, 11:47 am)
Re: [PATCH 0 of 4] x86: some more patches, Andi Kleen, (Wed Jan 16, 1:40 pm)
Re: [PATCH 0 of 4] x86: some more patches, Ingo Molnar, (Wed Jan 16, 4:22 pm)
Re: [PATCH 0 of 4] x86: some more patches, Andi Kleen, (Wed Jan 16, 4:59 pm)
Re: [PATCH 0 of 4] x86: some more patches, Ingo Molnar, (Wed Jan 16, 5:06 pm)
Re: [PATCH 0 of 4] x86: some more patches, Andi Kleen, (Wed Jan 16, 5:35 pm)
Re: [PATCH 0 of 4] x86: some more patches, Jeremy Fitzhardinge, (Wed Jan 16, 1:05 pm)
Re: [PATCH 0 of 4] x86: some more patches, Andi Kleen, (Wed Jan 16, 1:12 pm)
Re: [PATCH 0 of 4] x86: some more patches, Ingo Molnar, (Wed Jan 16, 12:06 pm)
Re: [PATCH 0 of 4] x86: some more patches, Ingo Molnar, (Wed Jan 16, 11:18 am)
Re: [PATCH 0 of 4] x86: some more patches, Andi Kleen, (Tue Jan 15, 8:44 pm)
Re: [PATCH 0 of 4] x86: some more patches, Ingo Molnar, (Wed Jan 16, 3:25 am)
[PATCH 1 of 4] x86: refactor mmu ops in paravirt.h, Jeremy Fitzhardinge, (Tue Jan 15, 6:17 pm)
[PATCH 3 of 4] x86: clean up pte_modify, Jeremy Fitzhardinge, (Tue Jan 15, 6:17 pm)
Re: [PATCH 3 of 4] x86: clean up pte_modify, Andi Kleen, (Tue Jan 15, 8:43 pm)
[PATCH 2 of 4] x86: fix warning, Jeremy Fitzhardinge, (Tue Jan 15, 6:17 pm)
[PATCH 4 of 4] x86: mask NX from pte_pfn, Jeremy Fitzhardinge, (Tue Jan 15, 6:17 pm)
Re: [PATCH 4 of 4] x86: mask NX from pte_pfn, Hugh Dickins, (Fri Jan 18, 9:52 am)
Re: [PATCH 4 of 4] x86: mask NX from pte_pfn, Jeremy Fitzhardinge, (Fri Jan 18, 11:55 am)
Re: [PATCH 4 of 4] x86: mask NX from pte_pfn, Ingo Molnar, (Fri Jan 18, 10:01 am)