linux-kernel mailing list

FromSubjectsort iconDate
Robert Hancock
Re: [Patch v2] Make PCI extended config space (MMCONFIG) a d...
There actually haven't been that many attempts to "get this fixed". It's been more a) people complaining about it and nothing being done about the problems and b) adding hacks to blindly disable it because of reported problems without root-causing why those problems were showing up. With such approaches no wonder it has not been reliable to try and use MMCONFIG in the past.. -- Robert Hancock Saskatoon, SK, Canada To email, remove "nospam" from hancockr@nospamshaw.ca Home Page: http...
Jan 14, 7:59 pm 2008
Dmitri Vorobiev
[PATCH -v2][MIPS] Add Atlas to feature-removal-schedule.txt
Signed-off-by: Dmitri Vorobiev <dmitri.vorobiev@gmail.com> --- diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt index 20c4c8b..2693ebc 100644 --- a/Documentation/feature-removal-schedule.txt +++ b/Documentation/feature-removal-schedule.txt @@ -333,3 +333,11 @@ Why: This driver has been marked obsolet Who: Stephen Hemminger <shemminger@linux-foundation.org> --------------------------- + +What: Support for MIPS Technologies' At...
Jan 14, 7:24 pm 2008
Randy Dunlap
[PATCH] scripts: minor decodecode update
From: Randy Dunlap <randy.dunlap@oracle.com> Remove the tmp file when exiting. Noticed by Arjan van de Ven. Catch mktemp failure and exit with message. Trap kill or other signals and exit cleanly. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> --- scripts/decodecode | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) --- linux-2.6.24-rc7.orig/scripts/decodecode +++ linux-2.6.24-rc7/scripts/decodecode @@ -6,7 +6,19 @@ # e.g., to decode an i386 oop...
Jan 14, 7:18 pm 2008
Randy Dunlap
[PATCH] doc: use correct debugfs mountpoint
From: Randy Dunlap <randy.dunlap@oracle.com> Use the normal, expected mountpoint in the relay(fs) example for debugfs. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> --- Documentation/filesystems/relay.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-2.6.24-rc7.orig/Documentation/filesystems/relay.txt +++ linux-2.6.24-rc7/Documentation/filesystems/relay.txt @@ -140,7 +140,7 @@ close() decrements the channel buffe In order for a user application ...
Jan 14, 7:14 pm 2008
Mark A. Greer
[PATCH] Serial: MPSC - Set baudrate when BRG divider is set.
From: Mark A. Greer <mgreer@mvista.com> The clock to generate the desired baudrate with the MPSC is first divided by the Baud Rate Generator (BRG) and then by the MPSC itself. So, when the BRG divider is changed, the MPSC divider must also be changed to generate the correct baudrate. During MPSC initialization, the BRG divider is changed but the MPSC divider isn't changed until much later. This results in some printk's coming out garbled. To fix that, set the MPSC divider at the same time ...
Jan 14, 6:47 pm 2008
Paolo Ciarrocchi
[PATCH] Change a WARN message in checkpatch
Hi Andy, When I started using checkpatch I was confused by the following WARN message: no space between function name and open parenthesis I thought the problem was that a space was missing while the truth is the opposite. How about the following patch? --- checkpatch.pl.old 2008-01-04 13:37:51.000000000 +0100 +++ checkpatch.pl 2008-01-04 13:37:24.000000000 +0100 @@ -1117,7 +1117,7 @@ while ($line =~ /($Ident)\s+\(/g) { if ($1 !~ /^(?:if|for|while|switch|return|volatile|__volatile...
Jan 14, 6:29 pm 2008
Paolo Ciarrocchi
[PATCH] checkpatch: add filename in the summary
Add a filename option (default to 0) in order to get the following summary output: ./scripts/checkpatch.pl --filename --file ./arch/sparc/kernel/apc.c ... ... ... ./arch/sparc/kernel/apc.c --> total: 18 errors, 3 warnings, 186 lines checked --- Andy, I wonder why checkpatch doesn't show all the command line options. At the moment, it only prints: options: -q => quiet --no-tree => run without a kernel tree --terse => one line per report --emac...
Jan 14, 6:23 pm 2008
Andi Kleen
[PATCH] [0/31] Great change_page_attr patch series v2
Lots of improvements to change_page_attr(). Make it a lot more efficient and fix various bugs. Changes against earlier version - Fixed some checkpatch.pl complaints - Improved self test suite - Fixed more reference bugs - Fix NX handling on 32bit - Remove some useless code there - Few other random fixes -Andi --
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [31/31] Clean up pte_exec
- Rename it to pte_exec() from pte_exec_kernel(). There is nothing kernel specific in there. - Move it into the common file because _PAGE_NX is 0 on !PAE and then pte_exec() will be always evaluate to true. Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/mm/fault_32.c | 2 +- include/asm-x86/pgtable-2level.h | 8 -------- include/asm-x86/pgtable-3level.h | 8 -------- include/asm-x86/pgtable.h | 1 + 4 files changed, 2 insertions(+), 17 deletions(-) ...
Jan 14, 6:17 pm 2008
Andi Kleen
[PATCH] [30/31] Remove set_kernel_exec
The SMP trampoline always runs in real mode, so making it executable in the page tables doesn't make much sense because it executes before page tables are set up. That was the only user of set_kernel_exec(). Remove set_kernel_exec(). Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/kernel/smpboot_32.c | 11 ----------- arch/x86/mm/init_32.c | 30 ------------------------------ include/asm-x86/pgtable_32.h | 12 ------------ 3 files changed, 53 deletions(-) Index: li...
Jan 14, 6:17 pm 2008
Andi Kleen
[PATCH] [29/31] CPA: Add a BUG_ON checking for someone setti...
Someone setting NX on the kernel text tends to result in nasty failures and triple faults, so BUG_ON early for that. Does not cover __inittext. Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/mm/pageattr_32.c | 8 ++++++++ 1 file changed, 8 insertions(+) Index: linux/arch/x86/mm/pageattr_32.c =================================================================== --- linux.orig/arch/x86/mm/pageattr_32.c +++ linux/arch/x86/mm/pageattr_32.c @@ -242,6 +242,14 @@ __change_page_att...
Jan 14, 6:17 pm 2008
Andi Kleen Jan 14, 6:17 pm 2008
Andi Kleen
[PATCH] [27/31] CPA: Change comments of external interfaces ...
And clarify description a bit. Only for 64bit, but the interfaces are identical for 32bit and kerneldoc should merge them (?) Signed-off-by: Andi Kleen <ak@suse.de> --- Documentation/DocBook/kernel-api.tmpl | 8 +++++ arch/x86/mm/pageattr_64.c | 46 +++++++++++++++++++++++++--------- 2 files changed, 42 insertions(+), 12 deletions(-) Index: linux/arch/x86/mm/pageattr_64.c =================================================================== --- linux.orig/arch/x86/...
Jan 14, 6:17 pm 2008
Randy Dunlap
Re: [PATCH] [27/31] CPA: Change comments of external interfa...
I doubt that kernel-doc will merge them. Normally we just import (like with !I, !E, !F, etc.) one file that contains the kernel-doc API notations. --- ~Randy --
Jan 14, 6:50 pm 2008
Andi Kleen
[PATCH] [26/31] CPA: Fix reference counting when changing al...
When changing a page that has already been modified to non standard attributes before don't change the reference count. And when changing back a page only decrease the ref count if the old attributes were non standard. Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/mm/pageattr_32.c | 44 +++++++++++++++++++++++++------------------- arch/x86/mm/pageattr_64.c | 16 ++++++++++++---- include/asm-x86/pgtable.h | 2 ++ 3 files changed, 39 insertions(+), 23 deletions(-) Index: l...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [25/31] CPA: Always do full TLB flush when splitting...
Various CPUs have errata when using INVLPG to flush large pages. This includes Intel Penryn (AV2) and AMD K7 (#16 in Athlon 4) While these happen only in specific circumstances it is still a little risky and it's not clear the kernel can avoid them all. Avoid this can of worms by always flushing the full TLB (but not the full cache) when splitting a large page. This should not be that expensive anyways and initial splitting should be hopefully infrequent. This also removes the previously har...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [24/31] CPA: Only unmap kernel init pages in text ma...
Otherwise the kernel will likely always run with 4K pages instead of 2MB pages, which is costly in terms of TLBs. Also optimize it a little bit by using only a single change_page_attr() calls. This is particularly useful if debugging is enabled inside it because it spams the logs much less. Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/mm/init_64.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) Index: linux/arch/x86/mm/init_64.c ===========================...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [23/31] CPA: Remove unnecessary masking of address
virt_to_page does not care about the bits below the page granuality. So don't mask them. Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/mm/pageattr_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux/arch/x86/mm/pageattr_64.c =================================================================== --- linux.orig/arch/x86/mm/pageattr_64.c +++ linux/arch/x86/mm/pageattr_64.c @@ -204,7 +204,7 @@ __change_page_attr(unsigned long address kpte = lookup_address...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [22/31] CPA: Only queue actually unused page table p...
With the separate data structure added for flush earlier it is only needed to call save_page() now on pte pages that have been already reverted. Also move all freeing checks into the caller. Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/mm/pageattr_32.c | 4 +--- arch/x86/mm/pageattr_64.c | 7 +++---- 2 files changed, 4 insertions(+), 7 deletions(-) Index: linux/arch/x86/mm/pageattr_32.c =================================================================== --- linux.orig...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [20/31] CPA: Fix inaccurate comments in 64bit change...
No code changes. Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/mm/pageattr_64.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: linux/arch/x86/mm/pageattr_64.c =================================================================== --- linux.orig/arch/x86/mm/pageattr_64.c +++ linux/arch/x86/mm/pageattr_64.c @@ -120,7 +120,7 @@ static void flush_kernel_map(void *arg) wbinvd(); } -/* both protected by init_mm.mmap_sem */ +/* All protected by init_mm.mmap_...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [21/31] CPA: Dump pagetable when inconsistency is de...
When c_p_a() detects a inconsistency in the kernel page tables it BUGs. When this happens dump the page table first to avoid one bug reporting round trip. Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/mm/pageattr_32.c | 11 ++++++++++- arch/x86/mm/pageattr_64.c | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) Index: linux/arch/x86/mm/pageattr_64.c =================================================================== --- linux.orig/arch/x86/mm/pageattr_64...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [19/31] CPA: Limit cache flushing to pages that real...
Previously change_page_attr always flushed caches even for pages that only change a non caching related attribute (like RO for read/write protection). This changes the flush code to only flush the cache when the caching attributes actually change. I made some effort to already handle reprogrammed PAT bits, although this is not strictly needed right now by the core kernel (but that will probably change soon) This will only make a difference on AMD CPUs or older Intel CPUs, because all new...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [18/31] CPA: Make change_page_attr() more robust aga...
Use the page table level instead of the PSE bit to check if the PTE is for a 4K page or not. This makes the code more robust when the PAT bit is changed because the PAT bit on 4K pages is in the same position as the PSE bit. Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/mm/pageattr_32.c | 4 ++-- arch/x86/mm/pageattr_64.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) Index: linux/arch/x86/mm/pageattr_32.c ====================================================...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [15/31] CPA: Don't flush the caches when the CPU sup...
When the self-snoop CPUID bit is set change_page_attr() only needs to flush TLBs, but not the caches. The description of self-snoop in the Intel manuals is a bit vague but I got confirmation that this is what SS really means. This should improve c_p_a() performance significantly on newer Intel CPUs. Note: the line > 80 characters will be modified again in a followup Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/mm/pageattr_32.c | 5 +++-- arch/x86/mm/pageattr_64.c...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [17/31] CPA: Reorder TLB / cache flushes to follow I...
Intel recommends to first flush the TLBs and then the caches on caching attribute changes. c_p_a() previously did it the other way round. Reorder that. The procedure is still not fully compliant to the Intel documentation because Intel recommends a all CPU synchronization step between the TLB flushes and the cache flushes. However on all new Intel CPUs this is now meaningless anyways because they support Self-Snoop and can skip the cache flush step anyways. Signed-off-by: Andi Kleen <ak...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [12/31] CPA: CLFLUSH support in change_page_attr()
Queue individual data pages for flushing with CLFLUSH in change_page_attr(), instead of doing global WBINVDs. WBINVD is a very painful operation for the CPU (can take msecs) and quite slow too. Worse it is not interruptible and can cause long latencies on hypervisors on older Intel VT systems. CLFLUSH on the other hand only flushes the cache lines that actually need to be flushed and since it works in smaller chunks is more preemeptible. To do this c_p_a needs to save the address to be flush ...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [16/31] CPA: Use wbinvd() macro instead of inline as...
Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/mm/pageattr_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux/arch/x86/mm/pageattr_64.c =================================================================== --- linux.orig/arch/x86/mm/pageattr_64.c +++ linux/arch/x86/mm/pageattr_64.c @@ -95,7 +95,7 @@ static void flush_kernel_map(void *arg) /* When clflush is available always use it because it is much cheaper than WBINVD. */ if ((a->full_flush || ...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [14/31] CPA: Use page granuality TLB flushing in cha...
With the infrastructure added for CLFLUSH it is possible to only TLB flush the actually changed pages in change_page_attr() Take care of old Athlon K7 Errata on the 32bit version Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/mm/pageattr_32.c | 15 ++++++++------- arch/x86/mm/pageattr_64.c | 10 +++++----- 2 files changed, 13 insertions(+), 12 deletions(-) Index: linux/arch/x86/mm/pageattr_32.c =================================================================== --- linux....
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [13/31] CPA: Use macros to modify the PG_arch_1 page...
Instead of open coding the bit accesses uses standard style *PageDeferred* macros. Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/mm/pageattr_32.c | 14 ++++++++++---- arch/x86/mm/pageattr_64.c | 11 +++++++++-- 2 files changed, 19 insertions(+), 6 deletions(-) Index: linux/arch/x86/mm/pageattr_64.c =================================================================== --- linux.orig/arch/x86/mm/pageattr_64.c +++ linux/arch/x86/mm/pageattr_64.c @@ -18,6 +18,13 @@ struct flus...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [11/31] CPA: Change 32bit back to init_mm semaphore ...
Now that debug pagealloc uses a separate function it is better to change standard change_page_attr back to init_mm semaphore locking like 64bit. Various things are simpler when sleeping is allowed. Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/mm/pageattr_32.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) Index: linux/arch/x86/mm/pageattr_32.c =================================================================== --- linux.orig/arch/x86/mm/pageattr_32.c +...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [10/31] CPA: Change kernel_map_pages to not use c_p_...
CONFIG_DEBUG_PAGEALLOC uses change_page_attr to map/unmap mappings for catching stray kernel mappings. But standard c_p_a() does a lot of unnecessary work for this simple case with pre-split mappings. Change kernel_map_pages to just access the page table directly which is simpler and faster. I also fixed it to use INVLPG if available. This is required for changes to c_p_a() later that make it use kmalloc. Without this we would risk infinite recursion. Also in general things are easier when ...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [9/31] CPA: Add simple self test at boot
Since change_page_attr() is tricky code it is good to have some regression test code. This patch maps and unmaps some random pages in the direct mapping at boot and then dumps the state and does some simple sanity checks. Add it with a CONFIG option. Optional patch, but I find it useful. Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/mm/Makefile_32 | 1 arch/x86/mm/Makefile_64 | 1 arch/x86/mm/pageattr-test.c | 233 ++++++++++++++++++++++++++++++++++++++++++++ ...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [8/31] CPA: Return the page table level in lookup_ad...
Needed for the next change. And change all the callers. Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/mm/fault_32.c | 3 ++- arch/x86/mm/init_32.c | 3 ++- arch/x86/mm/pageattr_32.c | 7 +++++-- arch/x86/mm/pageattr_64.c | 7 +++++-- arch/x86/xen/mmu.c | 9 ++++++--- include/asm-x86/pgtable_32.h | 2 +- include/asm-x86/pgtable_64.h | 2 +- 7 files changed, 22 insertions(+), 11 deletions(-) Index: linux/arch/x86/mm/pageattr_...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [7/31] Extract page table dumping code from i386 fau...
Similar to x86-64. This is useful in other situations where we want the page table dumped too. Besides anything that makes i386 do_page_fault shorter is good. Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/mm/fault_32.c | 72 ++++++++++++++++++++++++++----------------------- 1 file changed, 39 insertions(+), 33 deletions(-) Index: linux/arch/x86/mm/fault_32.c =================================================================== --- linux.orig/arch/x86/mm/fault_32.c +++ linux/...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [6/31] CPA: Undo white space changes
Undo random white space changes. This reverts ddb53b5735793a19dc17bcd98b050f672f28f1ea I simply don't have the nerves to port a 20+ patch series to the reformatted version. And the patch series changes most lines anyways and drops the trailing white spaces there. And since this was a nop losing it for now isn't a problem. Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/mm/pageattr_32.c | 149 ++++++++++++++++++++-------------------------- arch/x86/mm/pageattr_64.c | 137 ++++...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [5/31] Don't drop NX bit in pte modifier functions f...
The pte_* modifier functions that cleared bits dropped the NX bit on 32bit PAE because they only worked in int, but NX is in bit 63. Fix that by adding appropiate casts so that the arithmetic happens as long long on PAE kernels. I decided to just use 64bit arithmetic instead of open coding like pte_modify() because gcc should generate good enough code for that now. While this looks in theory like a .24 candidate this might trigger some subtle latent bugs so it's better to delay it for .25 for m...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [4/31] Add pte_pgprot on i386
64bit already had it. Needed for later patches. Signed-off-by: Andi Kleen <ak@suse.de> --- include/asm-x86/pgtable-2level.h | 2 ++ include/asm-x86/pgtable-3level.h | 2 ++ 2 files changed, 4 insertions(+) Index: linux/include/asm-x86/pgtable-2level.h =================================================================== --- linux.orig/include/asm-x86/pgtable-2level.h +++ linux/include/asm-x86/pgtable-2level.h @@ -75,6 +75,8 @@ static inline int pte_exec_kernel(pte_t #defin...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [3/31] Add pte accessors for the global bit
Needed for some test code. Signed-off-by: Andi Kleen <ak@suse.de> --- include/asm-x86/pgtable.h | 3 +++ 1 file changed, 3 insertions(+) Index: linux/include/asm-x86/pgtable.h =================================================================== --- linux.orig/include/asm-x86/pgtable.h +++ linux/include/asm-x86/pgtable.h @@ -134,6 +134,7 @@ static inline int pte_young(pte_t pte) static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_RW; } static inline int p...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [2/31] CPA: Do a simple self test at boot
When CONFIG_DEBUG_RODATA is enabled undo the ro mapping and redo it again. This gives some simple testing for change_page_attr() Optional patch, but I find it useful. Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/Kconfig.debug | 5 +++++ arch/x86/mm/init_32.c | 26 ++++++++++++++++++++++++++ arch/x86/mm/init_64.c | 10 ++++++++++ 3 files changed, 41 insertions(+) Index: linux/arch/x86/mm/init_64.c =================================================================== ...
Jan 14, 6:16 pm 2008
Andi Kleen
[PATCH] [1/31] Shrink __PAGE_KERNEL/__PAGE_KERNEL_EXEC on no...
No need to make it 64bit there. Signed-off-by: Andi Kleen <ak@suse.de> --- arch/x86/mm/init_32.c | 4 ++-- include/asm-x86/pgtable.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) Index: linux/arch/x86/mm/init_32.c =================================================================== --- linux.orig/arch/x86/mm/init_32.c +++ linux/arch/x86/mm/init_32.c @@ -326,9 +326,9 @@ static void __init set_highmem_pages_ini #define set_highmem_pages_init(bad_ppro) do { } whil...
Jan 14, 6:16 pm 2008
Andi Kleen
Latest git-x86 doesn't build on 32bit
On a fresh object dir I get for a 32bit build: make -C /home/lsrc/quilt/linux O=/home/lsrc/quilt/obj32 GEN /home/lsrc/quilt/obj32/Makefile CHK include/linux/version.h CHK include/linux/utsrelease.h Using /home/lsrc/quilt/linux as source for kernel CALL /home/lsrc/quilt/linux/scripts/checksyscalls.sh CHK include/linux/compile.h Building modules, stage 2. MODPOST 1 modules make[3]: Nothing to be done for `vmlinux'. KBUILD_IMAGE := arch/x86/boot/bzImage make[...
Jan 14, 6:16 pm 2008
Bartlomiej Zolnierki...
[PATCH] scripts/checkpatch.pl: warn about using __FUNCTION__
__FUNCTION__ is gcc specific, __func__ is C99 Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> --- scripts/checkpatch.pl | 5 +++++ 1 file changed, 5 insertions(+) Index: b/scripts/checkpatch.pl =================================================================== --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -1557,6 +1557,11 @@ sub process { if ($line =~ /\*\s*\)\s*k[czm]alloc\b/) { WARN("unnecessary cast may hide bugs, see [ message continues ]
" title="http://c-faq.com/malloc...">http://c-faq.com/malloc...
Jan 14, 6:19 pm 2008
Olaf Titz
Re: Possibly silly Q?
Something I stumbled across just a few days ago: fdisk does cause the kernel to re-read the new partitions, but nothing causes udev to create any required new device nodes... Olaf --
Jan 14, 5:29 pm 2008
Jan Engelhardt
Re: Possibly silly Q?
- kobject_del - will cause udev to delete /dev/sd?? - kernel rescans partitions - kobject_add - will cause udev to add /dev/sd?? simple :) --
Jan 14, 6:17 pm 2008
Yinghai Lu
[PATCH 0/3] x86_64:amd fam10h mmconf
please check the updated version, so we will not rely on MCFG setting it is against to x86.git these three patches can be applied seperately. if you think 1/3 is too complicated, you can apply 2 and 3 Thanks YH --
Jan 14, 5:39 pm 2008
Yinghai Lu
[PATCH 1/3] x86_64: check and enable MMCONFIG for AMD Family...
[PATCH 1/3] x86_64: check and enable MMCONFIG for AMD Family 10h Opteron v2 So we can use MMCONF when MMCONF is not set BIOS or booting kernel with acpi=off using TOP_MEM2 msr to get memory top, and try to scan fam10h mmio routing to make sure the range is not conflicted with some prefetch MMIO that is above 4G. (current only LinuxBIOS assign 64 bit mmio above 4G for some co-processor) Signed-off-by: Yinghai Lu <yinghai.lu@sun.com> Index: linux-2.6/arch/x86/kernel/setup_64.c ===========...
Jan 14, 5:35 pm 2008
Yinghai Lu
[PATCH 2/3] x86_64: check MSR to get MMCONFIG for AMD Family...
[PATCH 2/3] x86_64: check MSR to get MMCONFIG for AMD Family 10h Opteron So even MCFG is not there, we still can use MMCONFIG. Signed-off-by: Yinghai Lu <yinghai.lu@sun.com> Index: linux-2.6/arch/x86/pci/mmconfig-shared.c =================================================================== --- linux-2.6.orig/arch/x86/pci/mmconfig-shared.c +++ linux-2.6/arch/x86/pci/mmconfig-shared.c @@ -133,33 +133,84 @@ static const char __init *pci_mmcfg_inte return "Intel Corporation 945G/GZ/P/PL Exp...
Jan 14, 5:36 pm 2008
Yinghai Lu
[PATCH 3/3] x86_64: set cfg_size for AMD Family 10h in case ...
[PATCH 3/3] x86_64: set cfg_size for AMD Family 10h in case MMCONFIG is used. reuse pci_cfg_space_size but skip check pci express and pci-x CAP ID. Signed-off-by: Yinghai Lu <yinghai.lu@sun.com> =================================================================== Index: linux-2.6/arch/x86/pci/fixup.c =================================================================== --- linux-2.6.orig/arch/x86/pci/fixup.c +++ linux-2.6/arch/x86/pci/fixup.c @@ -491,3 +491,17 @@ static void __devinit pci_s...
Jan 14, 5:37 pm 2008
Dmitri Vorobiev
[PATCH][MIPS] Malta: Fix reading the PCI clock frequency on ...
The JMPRS register on Malta boards keeps a 32-bit CPU-endian value. The readw() function assumes that the value it reads is a little-endian 16-bit number. Therefore, using readw() to obtain the value of the JMPRS register is a mistake. This error leads to incorrect reading of the PCI clock frequency on big-endian during board start-up. Change readw() to __raw_readl(). This was tested by injecting a call to printk() and verifying that the value of the jmpr variable was consistent with current se...
Jan 14, 5:27 pm 2008
Eric Sandeen
[PATCH] address hfs on-disk corruption robustness review com...
Address Roman's review comments for the previously sent on-disk corruption hfs robustness patch. I still owe a patch for hfsplus. Signed-off-by: Eric Sandeen <sandeen@redhat.com> --- Index: linux-2.6.24-rc6-mm1/fs/hfs/bfind.c =================================================================== --- linux-2.6.24-rc6-mm1.orig/fs/hfs/bfind.c +++ linux-2.6.24-rc6-mm1/fs/hfs/bfind.c @@ -52,9 +52,9 @@ int __hfs_brec_find(struct hfs_bnode *bn rec = (e + b) / 2; len = hfs_brec_lenof...
Jan 14, 5:15 pm 2008
previous daytodaynext day
January 13, 2008January 14, 2008January 15, 2008