Re: [bisected] Driver core fixes for 3.6-rc3 regression

2012-08-18 Thread Markus Trippelsdorf
On 2012.08.18 at 17:08 -0700, Linus Torvalds wrote: > On Sat, Aug 18, 2012 at 12:32 PM, Markus Trippelsdorf > wrote: > > > > Yes. Everything is fine again with this patch applied. > > Ok, can you write a commit message and sign off on it, and I'll apply > it (or Greg will, either way that

Re: Patch: Thermostat doesn't cool Harddrives (12 inch Powerbooks, Ibooks G4)

2012-08-18 Thread Calvin Walton
On Sat, 2012-08-18 at 11:57 +0200, Thomas Haschka wrote: > Hello everybody! Hi Thomas, Unfortunately, there are quite a few things wrong with your patch that will likely prevent any kernel developers from picking it up as-is. Please read through the file Documentation/SubmittingPatches, it has a

Re: [PATCH 04/11] x86/microcode_core_early.c: Define interfaces for early load ucode

2012-08-18 Thread H. Peter Anvin
On 08/18/2012 07:38 PM, Yu, Fenghua wrote: > > In this early phase, detecting vendor in initrd is much simpler code. > Otherwise, detecting vendor by cpuid (and without cpuid) needs > similar but different code as existing functions and coding would be > awkward. > I'm confused by this

Re: [PATCH 02/11] x86/lib/cpio.c: Find cpio data by its file name

2012-08-18 Thread H. Peter Anvin
On 08/18/2012 09:35 PM, Henrique de Moraes Holschuh wrote: > On Sat, 18 Aug 2012, Yu, Fenghua wrote: >>> From: Henrique de Moraes Holschuh [mailto:h...@hmh.eng.br] On Sat, 18 Aug >>> 2012, Fenghua Yu wrote: Given a file's name, find its starting point in a cpio formated area. >>> This will

Re: [PATCH 14/31] sections: Fix section conflicts in drivers/hwmon

2012-08-18 Thread Guenter Roeck
On Sun, Aug 19, 2012 at 03:59:11AM +0200, Andi Kleen wrote: > On Sat, Aug 18, 2012 at 04:23:04PM -0700, Guenter Roeck wrote: > > On Sat, Aug 18, 2012 at 10:30:05AM -0700, Andi Kleen wrote: > > > From: Andi Kleen > > > > > > Signed-off-by: Andi Kleen > > > > Applied. > > > > Thanks. > > >

[PATCH 3/3] edac: edac_mc no longer deals with kobjects directly.

2012-08-18 Thread Shaun Ruffell
There are no more embedded kobjects in struct mem_ctl_info. Remove a header and a comment that does not reflect the code anymore. Signed-off-by: Shaun Ruffell --- drivers/edac/edac_mc.c | 7 --- include/linux/edac.h | 1 - 2 files changed, 8 deletions(-) diff --git

[PATCH 0/3] Fix edac_mc crash in e7xxx_edac error path.

2012-08-18 Thread Shaun Ruffell
With kernel version 3.6-rc2 on a Dell Poweredge 2600 I experienced a NULL pointer dereference that did not occur with on 3.5. I believe the error is related to commit de3910eb79a "edac: change the mem allocation scheme to make Documentation/kobject.txt happy" [1] and the fact that my system is

[PATCH 2/3] edac: edac_mc_free() cannot assume mem_ctl_info is registered in sysfs.

2012-08-18 Thread Shaun Ruffell
edac_mc_free() may need to deallocate any memory associated with struct mem_ctl_info directly if the structure was never registered with sysfs in edac_mc_add_mc(). This moves the error handling code from edac_mc_alloc() into a dedicated function to be called by edac_mc_free() as well if necessary.

[PATCH 1/3] edac_mc: fix kfree calls in the error path

2012-08-18 Thread Shaun Ruffell
From: Fengguang Wu We need to free up memory in this order: free csrows[i]->channels[j] free csrows[i]->channels free csrows[i] free csrows Signed-off-by: Fengguang Wu --- drivers/edac/edac_mc.c | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git

Re: [PATCH 04/11] x86/microcode_core_early.c: Define interfaces for early load ucode

2012-08-18 Thread Henrique de Moraes Holschuh
On Sun, 19 Aug 2012, Yu, Fenghua wrote: > > From: Henrique de Moraes Holschuh [mailto:h...@hmh.eng.br] > > On Sat, 18 Aug 2012, Fenghua Yu wrote: > > > + char ucode_name[] = > > "kernel/x86/microcode/GenuineIntel/microcode.hex"; > > > > Why name it ".hex" when you're loading binary data? I

Re: [PATCH 02/11] x86/lib/cpio.c: Find cpio data by its file name

2012-08-18 Thread Henrique de Moraes Holschuh
On Sat, 18 Aug 2012, Yu, Fenghua wrote: > > From: Henrique de Moraes Holschuh [mailto:h...@hmh.eng.br] On Sat, 18 Aug > > 2012, Fenghua Yu wrote: > > > Given a file's name, find its starting point in a cpio formated area. > > This will > > > be used to find microcode in combined initrd image. But

Re: BUG: unable to handle kernel paging request at 00010016

2012-08-18 Thread Shaun Ruffell
Adding linux-net to the CC list. On Fri, Aug 17, 2012 at 11:57:56PM +0100, Dave Haywood wrote: > [1.] One line summary of the problem: > BUG: unable to handle kernel paging request at 00010016 > > System boots then crashes a 5-10 or so seconds after getting to the > login prompt >

[tip:x86/urgent] x32: Use compat shims for {g,s}etsockopt

2012-08-18 Thread tip-bot for Mike Frysinger
Commit-ID: 515c7af85ed92696c311c53d53cb4898ff32d784 Gitweb: http://git.kernel.org/tip/515c7af85ed92696c311c53d53cb4898ff32d784 Author: Mike Frysinger AuthorDate: Sat, 18 Aug 2012 16:11:37 -0400 Committer: H. Peter Anvin CommitDate: Sat, 18 Aug 2012 14:15:39 -0700 x32: Use compat shims

[PATCH 48/74] x86, lto: Use inline assembler instead of global register variable to get sp

2012-08-18 Thread Andi Kleen
From: Andi Kleen LTO in gcc 4.6/47. has trouble with global register variables. They were used to read the stack pointer. Use a simple inline assembler statement instead. I verified this generates the same binary (on 64bit) as the original register variable. Signed-off-by: Andi Kleen ---

[PATCH 36/74] lto, crypto, camelia: Make camelia tables used by assembler __visible

2012-08-18 Thread Andi Kleen
From: Andi Kleen Cc: herb...@gondor.apana.org.au Signed-off-by: Andi Kleen --- arch/x86/crypto/camellia_glue.c | 16 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/arch/x86/crypto/camellia_glue.c b/arch/x86/crypto/camellia_glue.c index eeb2b3b..f290db7 100644

[PATCH 18/74] lto, wan/sbni: Make inline assembler symbols visible and assembler global

2012-08-18 Thread Andi Kleen
From: Andi Kleen - Inline assembler defining C callable code has to be global - The function has to be visible Do this in wan/sbni Signed-off-by: Andi Kleen --- drivers/net/wan/sbni.c |6 +++--- drivers/net/wan/sbni.h |2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff

[PATCH 19/74] x86, lto: Add missing asmlinkages and __visible

2012-08-18 Thread Andi Kleen
From: Andi Kleen This is an arch/x86 sweep to add asmlinkage or __visible to all functions accessed by assembler code. A lot of functions already had it, but not all. This is needed for the LTO kernel so that these functions are not optimized away. I used asmlinkage for functions without

[PATCH 20/74] x86, lto: Change dotraplinkage into __visible on 32bit

2012-08-18 Thread Andi Kleen
From: Andi Kleen Mark 32bit dotraplinkage functions as __visible for LTO. 64bit already is using asmlinkage which includes it. Signed-off-by: Andi Kleen --- arch/x86/include/asm/traps.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/include/asm/traps.h

[PATCH 27/74] lto: Mark EXPORT_SYMBOL symbols __visible

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- include/linux/export.h | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/include/linux/export.h b/include/linux/export.h index 696c0f4..784617e 100644 --- a/include/linux/export.h +++ b/include/linux/export.h @@

[PATCH 44/74] lto: Mark functions used by the vsyscall init code visible

2012-08-18 Thread Andi Kleen
From: Andi Kleen The vsyscall code is compiled without LTO. This also includes its init function. The function which are called by it have to be visible, otherwise they could be optimized away Signed-off-by: Andi Kleen --- drivers/char/random.c |2 +- include/linux/mm.h|1 +

[PATCH 59/74] lto: Handle LTO common symbols in module loader

2012-08-18 Thread Andi Kleen
From: Joe Mario Here is the workaround I made for having the kernel not reject modules built with -flto. The clean solution would be to get the compiler to not emit the symbol. Or if it has to emit the symbol, then emit it as initialized data but put it into a comdat/linkonce section. Minor

[PATCH 39/74] x86, lto: Mark vdso variables __visible

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- arch/x86/include/asm/vvar.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/include/asm/vvar.h b/arch/x86/include/asm/vvar.h index de656ac..d76ac40 100644 --- a/arch/x86/include/asm/vvar.h +++

[PATCH 50/74] x86, lto: Make empty_zero_page __visible for LTO

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- arch/x86/include/asm/pgtable.h |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h index 49afb3f..72b24ab 100644 --- a/arch/x86/include/asm/pgtable.h +++

[PATCH 01/74] Add __visible

2012-08-18 Thread Andi Kleen
From: Andi Kleen gcc 4.6+ has support for a externally_visible attribute, that prevents the optimizer from optimizing unused symbols away. Add a __visible macro to use it with that compiler version or later. Signed-off-by: Andi Kleen --- include/linux/compiler-gcc4.h |7 +++

[PATCH 61/74] Kbuild, lto: Drop .number postfixes in modpost

2012-08-18 Thread Andi Kleen
From: Andi Kleen LTO turns all global symbols effectively into statics. This has the side effect that they all have a .NUMBER postfix to make them unique. In modpost drop this postfix because it confuses it. Signed-off-by: Andi Kleen --- scripts/mod/modpost.c | 15 ++-

[PATCH 47/74] x86, lto: Fix kprobes for LTO

2012-08-18 Thread Andi Kleen
From: Andi Kleen - Make all the external assembler template symbols __visible - Move the templates inline assembler code into a top level assembler statement, not inside a function. This avoids it being optimized away or cloned. Cc: ana...@in.ibm.com Signed-off-by: Andi Kleen ---

[PATCH 05/74] sections: Add __visible to m68k sections

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- arch/m68k/include/asm/module.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/m68k/include/asm/module.h b/arch/m68k/include/asm/module.h index edffe66..15cb110 100644 --- a/arch/m68k/include/asm/module.h +++

[PATCH 14/74] sections: Add __visible to kernel/* sections

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- kernel/extable.c |4 ++-- kernel/ksysfs.c |4 ++-- kernel/module.c | 30 +++--- kernel/params.c |6 +++--- kernel/spinlock.c |2 +- 5 files changed, 23 insertions(+), 23 deletions(-) diff --git

[PATCH 58/74] lto, workaround: Work around LTO compiler problem in atheros driver

2012-08-18 Thread Andi Kleen
From: Andi Kleen Making these symbols visible works around a gcc 4.7 LTO compiler problem with missing symbols. Signed-off-by: Andi Kleen --- .../net/wireless/ath/ath9k/dfs_pattern_detector.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[PATCH 42/74] lto, raid: disable LTO for the Altivec RAID code

2012-08-18 Thread Andi Kleen
From: Andi Kleen It needs special options for a file, which LTO does not support. XXX: may need some more __visibles Cc: b...@kernel.crashing.org Cc: h...@zytor.com Signed-off-by: Andi Kleen --- lib/raid6/Makefile |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[PATCH 13/74] sections: Add __visible to init/* sections

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- init/do_mounts_initrd.c |2 +- init/initramfs.c|4 ++-- init/main.c |2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/init/do_mounts_initrd.c b/init/do_mounts_initrd.c index 135959a2..71a625e

[PATCH 34/74] x86, lto, lguest: Fix C functions used by inline assembler

2012-08-18 Thread Andi Kleen
From: Andi Kleen - Make the C code used by the paravirt stubs visible - Since they have to be global now, give them a more unique name. Cc: ru...@rustcorp.com.au Signed-off-by: Andi Kleen --- arch/x86/lguest/boot.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff

[PATCH 73/74] lto, module: Warn about modules that are not fully LTOed

2012-08-18 Thread Andi Kleen
From: Andi Kleen When __gnu_lto_* is present that means that the module hasn't run with LTO yet. Cc: ru...@rustcorp.com.au Signed-off-by: Andi Kleen --- kernel/module.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/kernel/module.c b/kernel/module.c index

[PATCH 30/74] x86, lto: Fix AMD K6 indirect call check

2012-08-18 Thread Andi Kleen
From: Andi Kleen The AMD K6 errata check relies on timing a indirect call. But the way it was written it could be optimized to a direct call. Force gcc to actually do a indirect call and not just constant resolve the target address. Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/amd.c |

[PATCH 07/74] sections: Add __visible to sh sections

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- arch/sh/include/asm/sections.h |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/sh/include/asm/sections.h b/arch/sh/include/asm/sections.h index 1b61997..e18e132 100644 --- a/arch/sh/include/asm/sections.h +++

[PATCH 12/74] sections: Add __visible to jump_label sections

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- include/linux/jump_label.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/jump_label.h b/include/linux/jump_label.h index 0976fc4..a39e8e3 100644 --- a/include/linux/jump_label.h +++

[PATCH 29/74] x86, lto: Make amd.c vide visible

2012-08-18 Thread Andi Kleen
From: Andi Kleen A label declared in inline assembler has to be visible Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/amd.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c index 9d92e19..2c02d92 100644 ---

[PATCH 24/74] lto: Mark do_exit asmlinkage

2012-08-18 Thread Andi Kleen
From: Andi Kleen ... since it can be called from assembler code Signed-off-by: Andi Kleen --- include/linux/kernel.h |2 +- kernel/exit.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/kernel.h b/include/linux/kernel.h index

[PATCH 52/74] x86, lto, paravirt: Don't rely on local assembler labels

2012-08-18 Thread Andi Kleen
From: Andi Kleen The paravirt patching code assumes that it can reference a local assembler label between two different top level assembler statements. This does not work with some experimental gcc builds, where the assembler code may end up in different assembler files. Replace it with extern

[PATCH 16/74] sections: Add __visible to lib/* sections

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- lib/bug.c |2 +- lib/dynamic_debug.c |4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/bug.c b/lib/bug.c index a28c141..f81e1a6 100644 --- a/lib/bug.c +++ b/lib/bug.c @@ -43,7 +43,7 @@ #include

[PATCH 53/74] x86, lto, paravirt: Make paravirt thunks global

2012-08-18 Thread Andi Kleen
From: Andi Kleen The paravirt thunks use a hack of using a static reference to a static function to reference that function from the top level statement. This assumes that gcc always generates static function names in a specific format, which is not necessarily true. Simply make these

[PATCH 26/74] lto, sound: Fix export symbols for !CONFIG_MODULES

2012-08-18 Thread Andi Kleen
From: Andi Kleen The new LTO EXPORT_SYMBOL references symbols even without CONFIG_MODULES. Since these functions are macros in this case this doesn't work. Add a ifdef to fix the build. Cc: ti...@suse.de Signed-off-by: Andi Kleen --- sound/core/seq/seq_device.c |2 ++ 1 files changed, 2

[PATCH 21/74] lto: Make lockdep_sys_exit asmlinkage

2012-08-18 Thread Andi Kleen
From: Andi Kleen lockdep_sys_exit can be called from assembler code, so make it asmlinkage Signed-off-by: Andi Kleen --- include/linux/lockdep.h |2 +- kernel/lockdep.c|2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/lockdep.h

[PATCH 28/74] lto: Make ksymtab and kcrctab symbols and __this_module __visible

2012-08-18 Thread Andi Kleen
From: Andi Kleen Make the ksymtab symbols for EXPORT_SYMBOL visible. This prevents the LTO compiler from adding a .NUMBER prefix, which avoids various problems in later export processing. Signed-off-by: Andi Kleen --- include/linux/export.h |4 ++-- scripts/mod/modpost.c |2 +- 2

[PATCH 37/74] lto, KVM: Don't assume asm statements end up in the same assembler file

2012-08-18 Thread Andi Kleen
From: Andi Kleen The VMX code references a local assembler label between two inline assembler statements. This assumes they both end up in the same assembler files. In some experimental builds of gcc this is not necessarily true, causing linker failures. Replace the local label reference with a

[PATCH 15/74] sections: Add __visible to kernel/trace/* sections

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- kernel/trace/ftrace.c |4 ++-- kernel/trace/trace.h |4 ++-- kernel/trace/trace_branch.c |8 kernel/trace/trace_events.c |4 ++-- kernel/trace/trace_syscalls.c |4 ++-- kernel/tracepoint.c

[PATCH 17/74] lto: Make asmlinkage __visible

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- include/linux/linkage.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/linkage.h b/include/linux/linkage.h index 807f1e5..8d6ff27 100644 --- a/include/linux/linkage.h +++ b/include/linux/linkage.h @@ -5,9

[PATCH 69/74] lto: Increase kallsyms max symbol length

2012-08-18 Thread Andi Kleen
From: Joe Mario With the added postfixes that LTO adds for local symbols, the longest name in the kernel overflows the namebuf[KSYM_NAME_LEN] array by two bytes. That name is:

[PATCH 60/74] lto, Kbuild, bloat-o-meter: fix static detection

2012-08-18 Thread Andi Kleen
From: Andi Kleen Disable static detection: the static currently drops a lot of useful information including clones generated by gcc. Drop this. The statics will appear now without static. prefix. But remove the LTO .NUMBER postfixes that look ugly Signed-off-by: Andi Kleen ---

Re: [PATCH 3/3] writeback: add dirty_ratio_time per bdi variable (NFS write performance)

2012-08-18 Thread Fengguang Wu
On Sat, Aug 18, 2012 at 05:50:02AM -0400, Namjae Jeon wrote: > From: Namjae Jeon > > This patch is based on suggestion by Wu Fengguang: > https://lkml.org/lkml/2011/8/19/19 > > kernel has mechanism to do writeback as per dirty_ratio and dirty_background > ratio. It also maintains per task dirty

[PATCH 56/74] lto, workaround: Add workaround for missing LTO symbols in igb

2012-08-18 Thread Andi Kleen
From: Andi Kleen The gcc 4.7 LTO with -fno-toplevel-reorder sometimes drops data variables. These show up as undefined symbols at link time. As a workaround just make a few where it happened visible for now. There isl nothing wrong with this driver, just a toolchain problem. Signed-off-by:

[PATCH 54/74] x86, lto, vdso: Don't duplicate vvar address variables

2012-08-18 Thread Andi Kleen
From: Andi Kleen Every includer of vvar.h currently gets own static variables for all the vvar addresses. Generate just one set each for the main kernel and for the vdso. This saves some data space. Cc: Andy Lutomirski Signed-off-by: Andi Kleen --- arch/x86/include/asm/vvar.h| 27

[PATCH 65/74] Kbuild, lto: Disable LTO for asm-offsets.c

2012-08-18 Thread Andi Kleen
From: Andi Kleen The asm-offset.c technique to fish data out of the assembler file does not work with LTO. Just disable for the asm-offset.c build. Signed-off-by: Andi Kleen --- scripts/Makefile.build |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[PATCH 74/74] lto, workaround: Mark do_futex noinline to prevent clobbering ebp

2012-08-18 Thread Andi Kleen
From: Andi Kleen On a 32bit build gcc 4.7 with LTO decides to clobber the 6th argument on the stack. Unfortunately this corrupts the user EBP and leads to later crashes. For now mark do_futex noinline to prevent this. I wish there was a generic way to handle this. Seems like a ticking time

[PATCH 57/74] lto, workaround: Add workaround for LTO build problem in pvrusb2-audio

2012-08-18 Thread Andi Kleen
From: Andi Kleen Making this visible fixes some missing symbols with gcc 4.7 LTO. This is a workaround for a compiler problem. Signed-off-by: Andi Kleen --- drivers/media/video/pvrusb2/pvrusb2-audio.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 55/74] lto, workaround: Add workaround for initcall reordering

2012-08-18 Thread Andi Kleen
From: Andi Kleen Work around a LTO gcc problem: when there is no reference to a variable in a module it will be moved to the end of the program. This causes reordering of initcalls which the kernel does not like. Add a dummy reference function to avoid this. The function is deleted by the

[PATCH 43/74] lto, workaround: Disable LTO for sys_ni to work around alias bugs

2012-08-18 Thread Andi Kleen
From: Andi Kleen LTO gcc has trouble with the weak alias definitions in sys_ni. This leads to missing symbols. Just disable LTO for this file. Signed-off-by: Andi Kleen --- kernel/Makefile |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/kernel/Makefile

[PATCH 11/74] sections: Add __visible to rapidio sections

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- drivers/rapidio/rio.h |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rapidio/rio.h b/drivers/rapidio/rio.h index b1af414..1fd0138 100644 --- a/drivers/rapidio/rio.h +++ b/drivers/rapidio/rio.h @@ -44,8 +44,8 @@

[PATCH 33/74] x86, lto, apm: Make APM data structure used from assembler visible

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- arch/x86/kernel/apm_32.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/kernel/apm_32.c b/arch/x86/kernel/apm_32.c index d65464e..61c9aa7 100644 --- a/arch/x86/kernel/apm_32.c +++ b/arch/x86/kernel/apm_32.c @@

[PATCH 41/74] x86, lto: Disable LTO for the x86 VDSO

2012-08-18 Thread Andi Kleen
From: Andi Kleen The VDSO does not play well with LTO, so just disable LTO for it. Also pass a 32bit linker flag for the 32bit version. Signed-off-by: Andi Kleen --- arch/x86/vdso/Makefile | 10 +++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/arch/x86/vdso/Makefile

[PATCH 51/74] x86, lto, efi: Mark the efi variable used from assembler __visible

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- arch/x86/platform/efi/efi.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c index 2dc29f5..02bc41a 100644 --- a/arch/x86/platform/efi/efi.c +++

[PATCH 23/74] lto, mutex: Mark __visible

2012-08-18 Thread Andi Kleen
From: Andi Kleen Various kernel/mutex.c functions can be called from inline assembler, so they should be all global and __visible Signed-off-by: Andi Kleen --- kernel/mutex.c |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/kernel/mutex.c b/kernel/mutex.c index

RFC: Link Time Optimization support for the kernel

2012-08-18 Thread Andi Kleen
This rather large patchkit enables gcc Link Time Optimization (LTO) support for the kernel. With LTO gcc will do whole program optimizations for the whole kernel and each module. This increases compile time, but can generate faster code. LTO allows gcc to inline functions between different

[PATCH 64/74] Kbuild, lto: Add a gcc-ld script to let run gcc as ld

2012-08-18 Thread Andi Kleen
From: Andi Kleen For LTO we need to run the link step with gcc, not ld. Since there are a lot of linker options passed to it, add a gcc-ld wrapper that wraps them as -Wl, Signed-off-by: Andi Kleen --- scripts/gcc-ld | 29 + 1 files changed, 29 insertions(+), 0

[PATCH 68/74] Kbuild, lto: Add LTO build Documentation

2012-08-18 Thread Andi Kleen
From: Andi Kleen Add build documentation for LTO. Signed-off-by: Andi Kleen --- Documentation/lto-build | 115 +++ 1 files changed, 115 insertions(+), 0 deletions(-) create mode 100644 Documentation/lto-build diff --git a/Documentation/lto-build

[PATCH 46/74] x86, lto: Disable fancy hweight optimizations for LTO

2012-08-18 Thread Andi Kleen
From: Andi Kleen The fancy x86 hweight uses different compiler options for the hweight file. This does not work with LTO. Just disable the optimization with LTO Signed-off-by: Andi Kleen --- arch/x86/Kconfig|5 +++-- arch/x86/include/asm/arch_hweight.h |9 +

[PATCH 67/74] Kbuild, lto: Add Link Time Optimization support

2012-08-18 Thread Andi Kleen
From: Andi Kleen With LTO gcc will do whole program optimizations for the whole kernel and each module. This increases compile time, but can generate faster code. LTO allows gcc to inline functions between different files and do various other optimization across the whole binary. It might also

[PATCH 70/74] Kbuild, lto: Handle longer symbols in kallsyms.c

2012-08-18 Thread Andi Kleen
From: Andi Kleen Also warn for too long symbols Signed-off-by: Andi Kleen --- scripts/kallsyms.c |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index 487ac6f..acde016 100644 --- a/scripts/kallsyms.c +++

[PATCH 62/74] Kbuild, lto: add ld-version and ld-ifversion macros

2012-08-18 Thread Andi Kleen
From: Andi Kleen To check the linker version. Used by the LTO makefile. Signed-off-by: Andi Kleen --- scripts/Kbuild.include |9 + scripts/ld-version.sh |8 2 files changed, 17 insertions(+), 0 deletions(-) create mode 100755 scripts/ld-version.sh diff --git

[PATCH 45/74] lto: Mark rwsem functions that can be called from assembler asmlinkage

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- lib/rwsem.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/lib/rwsem.c b/lib/rwsem.c index 8337e1b..4a33b58 100644 --- a/lib/rwsem.c +++ b/lib/rwsem.c @@ -222,6 +222,7 @@ rwsem_down_failed_common(struct rw_semaphore

[PATCH 49/74] x86, lto, paravirt: Add __visible/asmlinkage to xen paravirt ops

2012-08-18 Thread Andi Kleen
From: Andi Kleen Cc: jer...@goop.org Signed-off-by: Andi Kleen --- arch/x86/include/asm/paravirt_types.h |3 ++- arch/x86/xen/xen-ops.h| 16 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/arch/x86/include/asm/paravirt_types.h

[PATCH 71/74] lto, kprobes: Use KSYM_NAME_LEN to size identifier buffers

2012-08-18 Thread Andi Kleen
From: Joe Mario Use KSYM_NAME_LEN to size identifier buffers, so that it can be easier increased. Cc: ana...@in.ibm.com Signed-off-by: Joe Mario Signed-off-by: Andi Kleen --- kernel/kprobes.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/kprobes.c

[PATCH 22/74] lto: Change kernel_execve to asmlinkage for all architectures

2012-08-18 Thread Andi Kleen
From: Andi Kleen The x86 kernel_execve has to be asmlinkage because it's called from assembler code. To make it consistent I have to also change the prototype in linux/syscalls.h This in turn requires adding asmlinkage to all architectures. Do this here in a tree sweep. Signed-off-by: Andi

[PATCH 31/74] x86, lto: Make various variables used by assembler code __visible

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- arch/x86/kernel/cpu/common.c |4 ++-- arch/x86/kernel/process_64.c |2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 46d8786..8f12e8c 100644 ---

[PATCH 40/74] lto, powerpc: Disable LTO for the powerpc VDSO

2012-08-18 Thread Andi Kleen
From: Andi Kleen VDSO does not play well with LTO, so just disable it. (note that powerpc will likely need more changes for LTO, this was just from grep) Cc: b...@kernel.crashing.org Signed-off-by: Andi Kleen --- arch/powerpc/kernel/vdso32/Makefile |2 +-

[PATCH 66/74] Kbuild, lto: Handle basic LTO in modpost

2012-08-18 Thread Andi Kleen
From: Andi Kleen - Don't warn for __gnu_lto_* COMMON symbols - Don't complain about .gnu.lto* sections Signed-off-by: Andi Kleen --- scripts/mod/modpost.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index

[PATCH 32/74] lto, PNP: Fix the inline assembler to use asmlinkage symbols

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- drivers/pnp/pnpbios/bioscalls.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/pnp/pnpbios/bioscalls.c b/drivers/pnp/pnpbios/bioscalls.c index 769d265..53a69a3 100644 --- a/drivers/pnp/pnpbios/bioscalls.c +++

[PATCH 06/74] sections: Add __visible to powerpc sections

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- arch/powerpc/include/asm/cputable.h |2 +- arch/powerpc/include/asm/firmware.h |2 +- arch/powerpc/include/asm/mmu.h |2 +- arch/powerpc/include/asm/synch.h|2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff

[PATCH 08/74] sections: Add __visible to tile sections

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- arch/tile/include/asm/sections.h |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/tile/include/asm/sections.h b/arch/tile/include/asm/sections.h index d062d46..edee549 100644 ---

[PATCH 38/74] lto, watchdog/hpwdt.c: Make assembler label global

2012-08-18 Thread Andi Kleen
From: Andi Kleen We cannot assume that the inline assembler code always ends up in the same file as the original C file. So make any assembler labels that are called with "extern" by C global Cc: w...@iguana.be Signed-off-by: Andi Kleen --- drivers/watchdog/hpwdt.c |6 -- 1 files

[PATCH 10/74] sections: Add __visible to drivers/{base,pci} sections

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- drivers/base/firmware_class.c |4 ++-- drivers/base/power/trace.c|2 +- drivers/pci/quirks.c | 28 ++-- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/drivers/base/firmware_class.c

[PATCH 35/74] lto, crypto, aes: mark AES tables __visible

2012-08-18 Thread Andi Kleen
From: Andi Kleen Various tables in aes_generic are accessed by assembler code. Mark them __visible for LTO Cc: herb...@gondor.apana.org.au Signed-off-by: Andi Kleen --- crypto/aes_generic.c |8 include/crypto/aes.h |8 2 files changed, 8 insertions(+), 8 deletions(-)

[PATCH 03/74] sections: Make external kallsyms tables __visible

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- kernel/kallsyms.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c index 2169fee..1b40cb7 100644 --- a/kernel/kallsyms.c +++ b/kernel/kallsyms.c @@ -36,20 +36,20 @@ * These

[PATCH 02/74] sections: Make all standard section identifiers __visible

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- include/asm-generic/sections.h | 24 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/include/asm-generic/sections.h b/include/asm-generic/sections.h index c1a1216..eab95aa 100644 ---

[PATCH 25/74] x86, lto: Fix sys_call_table type in asm/syscall.h v2

2012-08-18 Thread Andi Kleen
From: Andi Kleen Make the sys_call_table type defined in asm/syscall.h match the definition in syscall_64.c v2: include asm/syscall.h in syscall_64.c too. I left uml alone because it doesn't have an syscall.h on its own and including the native one leads to other errors. Cc: x...@kernel.org

[PATCH 72/74] lto: Mark spinlocks noinline when inline spinlocks are disabled

2012-08-18 Thread Andi Kleen
From: Andi Kleen Otherwise LTO will inline them anyways Signed-off-by: Andi Kleen --- kernel/spinlock.c | 56 ++-- 1 files changed, 28 insertions(+), 28 deletions(-) diff --git a/kernel/spinlock.c b/kernel/spinlock.c index 75439be..e68917a

[PATCH 09/74] sections: Add __visible to x86 sections

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- arch/x86/kernel/alternative.c |4 ++-- arch/x86/kernel/vsyscall_64.c |4 ++-- arch/x86/power/hibernate_32.c |2 +- arch/x86/um/vdso/vma.c|2 +- arch/x86/vdso/vma.c | 10 +- 5 files changed, 11

[PATCH 63/74] Kbuild, lto: Print correct info messages for vmlinux link

2012-08-18 Thread Andi Kleen
From: Andi Kleen With LTO the tmp_vmlinux builds can take very long. Have own messages to print so that it's clear what's going on. Previously the vmlinux link would really happen during "LD init/built-in.o" Also print separate messages for all the vmlinux link steps. Signed-off-by: Andi Kleen

[PATCH 04/74] sections: Add __visible to ia64 sections

2012-08-18 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- arch/ia64/include/asm/sections.h | 26 +- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/arch/ia64/include/asm/sections.h b/arch/ia64/include/asm/sections.h index 1a873b3..68b8f3a 100644 ---

Re: [PATCH] ext4: fix trivial typo in the comment for extents.c/ext4_split_unwritten_extents

2012-08-18 Thread Theodore Ts'o
On Sun, Jul 15, 2012 at 11:41:08AM +0800, Wang Sheng-Hui wrote: > Put the sign '/' to the right position. > > Signed-off-by: Wang Sheng-Hui Applied, thanks. - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

RE: [PATCH 04/11] x86/microcode_core_early.c: Define interfaces for early load ucode

2012-08-18 Thread Yu, Fenghua
> -Original Message- > From: Henrique de Moraes Holschuh [mailto:h...@hmh.eng.br] > Sent: Saturday, August 18, 2012 3:45 PM > To: Yu, Fenghua > Cc: H Peter Anvin; Ingo Molnar; Thomas Gleixner; Mallick, Asit K; > Tigran Aivazian; Andreas Herrmann; Borislav Petkov; linux-kernel; x86 >

Re: [PATCH RESEND] Ext4: No need to add inode to orphan list during hole punch

2012-08-18 Thread Theodore Ts'o
On Wed, Jul 25, 2012 at 07:53:34PM +0530, Ashish Sangwan wrote: > While performing punch hole for an inode, i_disksize is not changed. > So, there is no need to add the inode to orphan list. > > Signed-off-by: Ashish Sangwan > Signed-off-by: Namjae Jeon Thanks, applied.

Re: [PATCH 2/3] writeback: fix incorrect return value type of bdi_dirty_limit

2012-08-18 Thread Fengguang Wu
On Sat, Aug 18, 2012 at 05:49:21AM -0400, Namjae Jeon wrote: > unsigned long bdi_dirty_limit(struct backing_dev_info *bdi, unsigned long > dirty) > > Above function return type is unsigned long, but return value is > kept in "u64 bdi_dirty". > It can return incorrect value by type casting. I

Re: [PATCH 1/3] writeback: change nr_pages_dirtied argument into local variable

2012-08-18 Thread Fengguang Wu
On Sat, Aug 18, 2012 at 05:48:29AM -0400, Namjae Jeon wrote: > There is no reason nr_pages_dirtied is argument anymore. > because nr_pages_dirtied value from caller is not used in > balance_dirty_pages_ratelimited_nr function. Looks good to me. If the fs developers don't have problems with this,

Re: [PATCH 01/31] Disable const sections for PA-RISC

2012-08-18 Thread Andi Kleen
> > +config BROKEN_RODATA > > + bool > > + default y > > Could you please change this so we have a commonly defined HAVE_BROKEN_RODATA > symbol. Then arch's that have broken RO data can select this symbol. > If we experience tomorrow that sparc have the same issue then with > this patch sparc

Re: [PATCH 14/31] sections: Fix section conflicts in drivers/hwmon

2012-08-18 Thread Andi Kleen
On Sat, Aug 18, 2012 at 04:23:04PM -0700, Guenter Roeck wrote: > On Sat, Aug 18, 2012 at 10:30:05AM -0700, Andi Kleen wrote: > > From: Andi Kleen > > > > Signed-off-by: Andi Kleen > > Applied. > Thanks. > Looks like you did not include maintainers and/or subject mailing lists in > your >

[PATCH v2 01/16] hashtable: introduce a small and naive hashtable

2012-08-18 Thread Sasha Levin
This hashtable implementation is using hlist buckets to provide a simple hashtable to prevent it from getting reimplemented all over the kernel. Signed-off-by: Sasha Levin --- include/linux/hashtable.h | 284 + 1 files changed, 284 insertions(+), 0

[PATCH v2 04/16] workqueue: use new hashtable implementation

2012-08-18 Thread Sasha Levin
Switch workqueues to use the new hashtable implementation. This reduces the amount of generic unrelated code in the workqueues. Signed-off-by: Sasha Levin --- kernel/workqueue.c | 86 +--- 1 files changed, 15 insertions(+), 71 deletions(-)

[PATCH v2 02/16] userns: use new hashtable implementation

2012-08-18 Thread Sasha Levin
Switch to using the new hashtable implementation to store user structs. This reduces the amount of generic unrelated code in kernel/user.c. Signed-off-by: Sasha Levin --- kernel/user.c | 33 + 1 files changed, 13 insertions(+), 20 deletions(-) diff --git

[PATCH v2 16/16] tracing output: use new hashtable implementation

2012-08-18 Thread Sasha Levin
Switch tracing to use the new hashtable implementation. This reduces the amount of generic unrelated code in the tracing module. Signed-off-by: Sasha Levin --- kernel/trace/trace_output.c | 20 1 files changed, 8 insertions(+), 12 deletions(-) diff --git

  1   2   3   4   5   6   >