* [PATCH] x86: fold _PAGE_GLOBAL into __PAGE_KERNEL
@ 2008-01-17 19:29 Jeremy Fitzhardinge
2008-01-18 12:33 ` Ingo Molnar
0 siblings, 1 reply; 3+ messages in thread
From: Jeremy Fitzhardinge @ 2008-01-17 19:29 UTC (permalink / raw)
To: Ingo Molnar, Andi Kleen, Jan Beulich; +Cc: Linux Kernel Mailing List
With the iounmap problem resolved, it should be OK to always set
_PAGE_GLOBAL in __PAGE_KERNEL*.
[ Did this patch cause problems before? ]
Signed-off-by: Jeremy Fitzhardinge <jeremy@xensource.com>
---
arch/x86/mm/ioremap_64.c | 2 +-
include/asm-x86/pgtable.h | 27 ++++++++++-----------------
2 files changed, 11 insertions(+), 18 deletions(-)
diff -r eaf8bc049cdb arch/x86/mm/ioremap_64.c
--- a/arch/x86/mm/ioremap_64.c Thu Jan 17 10:37:45 2008 -0800
+++ b/arch/x86/mm/ioremap_64.c Thu Jan 17 10:39:51 2008 -0800
@@ -79,7 +79,7 @@ void __iomem * __ioremap(unsigned long p
if (!size || last_addr < phys_addr)
return NULL;
- pgprot = __pgprot(__PAGE_KERNEL_EXEC | _PAGE_GLOBAL | flags);
+ pgprot = __pgprot(__PAGE_KERNEL_EXEC | flags);
/*
* Mappings have to be page-aligned
*/
diff -r eaf8bc049cdb include/asm-x86/pgtable.h
--- a/include/asm-x86/pgtable.h Thu Jan 17 10:37:45 2008 -0800
+++ b/include/asm-x86/pgtable.h Thu Jan 17 10:39:51 2008 -0800
@@ -78,7 +78,7 @@ extern unsigned long long __PAGE_KERNEL,
#endif /* __ASSEMBLY__ */
#else
#define __PAGE_KERNEL_EXEC \
- (_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED)
+ (_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_GLOBAL)
#define __PAGE_KERNEL (__PAGE_KERNEL_EXEC | _PAGE_NX)
#endif
@@ -90,21 +90,15 @@ extern unsigned long long __PAGE_KERNEL,
#define __PAGE_KERNEL_LARGE (__PAGE_KERNEL | _PAGE_PSE)
#define __PAGE_KERNEL_LARGE_EXEC (__PAGE_KERNEL_EXEC | _PAGE_PSE)
-#ifdef CONFIG_X86_32
-# define MAKE_GLOBAL(x) __pgprot((x))
-#else
-# define MAKE_GLOBAL(x) __pgprot((x) | _PAGE_GLOBAL)
-#endif
-
-#define PAGE_KERNEL MAKE_GLOBAL(__PAGE_KERNEL)
-#define PAGE_KERNEL_RO MAKE_GLOBAL(__PAGE_KERNEL_RO)
-#define PAGE_KERNEL_EXEC MAKE_GLOBAL(__PAGE_KERNEL_EXEC)
-#define PAGE_KERNEL_RX MAKE_GLOBAL(__PAGE_KERNEL_RX)
-#define PAGE_KERNEL_NOCACHE MAKE_GLOBAL(__PAGE_KERNEL_NOCACHE)
-#define PAGE_KERNEL_LARGE MAKE_GLOBAL(__PAGE_KERNEL_LARGE)
-#define PAGE_KERNEL_LARGE_EXEC MAKE_GLOBAL(__PAGE_KERNEL_LARGE_EXEC)
-#define PAGE_KERNEL_VSYSCALL MAKE_GLOBAL(__PAGE_KERNEL_VSYSCALL)
-#define PAGE_KERNEL_VSYSCALL_NOCACHE MAKE_GLOBAL(__PAGE_KERNEL_VSYSCALL_NOCACHE)
+#define PAGE_KERNEL __pgprot(__PAGE_KERNEL)
+#define PAGE_KERNEL_RO __pgprot(__PAGE_KERNEL_RO)
+#define PAGE_KERNEL_EXEC __pgprot(__PAGE_KERNEL_EXEC)
+#define PAGE_KERNEL_RX __pgprot(__PAGE_KERNEL_RX)
+#define PAGE_KERNEL_NOCACHE __pgprot(__PAGE_KERNEL_NOCACHE)
+#define PAGE_KERNEL_LARGE __pgprot(__PAGE_KERNEL_LARGE)
+#define PAGE_KERNEL_LARGE_EXEC __pgprot(__PAGE_KERNEL_LARGE_EXEC)
+#define PAGE_KERNEL_VSYSCALL __pgprot(__PAGE_KERNEL_VSYSCALL)
+#define PAGE_KERNEL_VSYSCALL_NOCACHE __pgprot(__PAGE_KERNEL_VSYSCALL_NOCACHE)
/* xwr */
#define __P000 PAGE_NONE
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] x86: fold _PAGE_GLOBAL into __PAGE_KERNEL
2008-01-17 19:29 [PATCH] x86: fold _PAGE_GLOBAL into __PAGE_KERNEL Jeremy Fitzhardinge
@ 2008-01-18 12:33 ` Ingo Molnar
2008-01-18 12:38 ` kernel: EDAC e752x: Non-Fatal Error PCI Express B antares atlantide
0 siblings, 1 reply; 3+ messages in thread
From: Ingo Molnar @ 2008-01-18 12:33 UTC (permalink / raw)
To: Jeremy Fitzhardinge; +Cc: Andi Kleen, Jan Beulich, Linux Kernel Mailing List
* Jeremy Fitzhardinge <jeremy@goop.org> wrote:
> With the iounmap problem resolved, it should be OK to always set
> _PAGE_GLOBAL in __PAGE_KERNEL*.
thanks Jeremy, applied.
> [ Did this patch cause problems before? ]
not that i remember.
Ingo
^ permalink raw reply [flat|nested] 3+ messages in thread
* kernel: EDAC e752x: Non-Fatal Error PCI Express B
2008-01-18 12:33 ` Ingo Molnar
@ 2008-01-18 12:38 ` antares atlantide
0 siblings, 0 replies; 3+ messages in thread
From: antares atlantide @ 2008-01-18 12:38 UTC (permalink / raw)
To: linux-kernel
I am using this kernel and this OS on PC Dell SMT670 with processor Intel Corporation E7525
Linux l2.6.22-3-686 #1 SMP Mon Oct 22 22:11:56 UTC 2007 i686 GNU/Linux
Debian GNU/Linux lenny/sid
When i am using the printer with the application acroread and evince , sometimes i have no response and I have this error
root@lyonesse:~# cat /var/log/syslog | grep EDAC
Jan 17 11:04:08 lyonesse kernel: EDAC e752x: Non-Fatal Error PCI Express B
Jan 17 11:04:09 lyonesse kernel: EDAC e752x: Non-Fatal Error PCI Express B
and the other one
root@troie:~# cat /var/log/syslog | grep EDAC
Jan 17 15:08:18 troie kernel: EDAC MC: Ver: 2.0.1 Oct 22 2007
Jan 17 15:08:18 troie kernel: EDAC e752x: tolm = 40000, remapbase =
ffc000, remaplimit = 0
Jan 17 15:08:18 troie kernel: EDAC MC0: Giving out device to e752x_edac
E7525: DEV 0000:00:00.0
Antares
_________________________________________________________________
Microsoft vous offre un logiciel pour classer, retoucher et partager vos photos !
http://www.windowslive.fr/galerie/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-01-18 12:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-17 19:29 [PATCH] x86: fold _PAGE_GLOBAL into __PAGE_KERNEL Jeremy Fitzhardinge
2008-01-18 12:33 ` Ingo Molnar
2008-01-18 12:38 ` kernel: EDAC e752x: Non-Fatal Error PCI Express B antares atlantide
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox