Re: [PATCHv2] Add per-process flag to control thp

2013-08-05 Thread Andrew Morton
On Fri, 2 Aug 2013 15:57:35 -0500 Alex Thorlton wrote: > This patch implements functionality to allow processes to disable the use of > transparent hugepages through the prctl syscall. > > We've determined that some jobs perform significantly better with thp > disabled, > and we needed a way

Contact: (josephw...@live.shop.edu.cn)

2013-08-05 Thread Joseph Wong
-- I have a lucrative business proposal Contact me on my Email address (josephw...@live.shop.edu.cn) Regards, Joseph Wong. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: Warnings from silentoldconfig (Re: [GIT PULL] PCI updates for v3.11)

2013-08-05 Thread Yann E. MORIN
Michal, All, On 2013-08-05 10:39 +0200, Michal Marek spake thusly: > On Fri, Aug 02, 2013 at 01:28:25PM -0700, Linus Torvalds wrote: > > On Fri, Aug 2, 2013 at 11:17 AM, Bjorn Helgaas wrote: > > > > > > Yinghai is still working on another SR-IOV-related fix or two, which > > > will be simpler if

Re: [PATCH] kvm: Make kvm_rebooting visible

2013-08-05 Thread Andi Kleen
> > static void kvm_io_bus_destroy(struct kvm_io_bus *bus); > > > >-bool kvm_rebooting; > >+__visible bool kvm_rebooting; > > EXPORT_SYMBOL_GPL(kvm_rebooting); > > How many of these are there kernel wide? Not very many (at least on x86 allyes) <~10. Also most users are not exported. Probably

Re: leds-lp5523: Broken commit db6eaf8388a413a5ee1b4547ce78506b9c6456b0

2013-08-05 Thread Bryan Wu
On Mon, Aug 5, 2013 at 12:31 AM, Pali Rohár wrote: > On Monday 05 August 2013 09:26:46 Kim, Milo wrote: >> > Hello, >> > >> > git commit "leds-lp5523: use generic firmware interface" >> > db6eaf8388a413a5ee1b4547ce78506b9c6456b0 introduced in >> > kernel 3.10 changed user space API for modifing

Re: [PATCH RFC V11 0/18] Paravirtualized ticket spinlocks

2013-08-05 Thread H. Peter Anvin
So, having read through the entire thread I *think* this is what the status of this patchset is: 1. Patches 1-17 are noncontroversial, Raghavendra is going to send an update split into two patchsets; 2. There are at least two versions of patch 15; I think the "PATCH RESEND RFC" is the right

Re: [edk2] Corrupted EFI region

2013-08-05 Thread James Bottomley
On Mon, 2013-08-05 at 23:55 +0200, Laszlo Ersek wrote: > On 08/05/13 23:41, Borislav Petkov wrote: > > On Mon, Aug 05, 2013 at 02:37:08PM -0700, H. Peter Anvin wrote: > >> All of this would be a non-problem if there weren't buggy > >> implementations which can't run *without*

Re: [PATCH V2] smp: Give WARN()ing when calling smp_call_function_many()/single() in serving irq

2013-08-05 Thread Andrew Morton
On Fri, 1 Mar 2013 03:37:11 + "Liu, Chuansheng" wrote: > > > spin_lock_bh() > > *Blocking* heredue to > > CPUC hold it > > call > >

Re: [PATCH] bridge: don't try to update timers in case of broken MLD queries

2013-08-05 Thread David Miller
From: Linus Lüssing Date: Tue, 6 Aug 2013 00:32:05 +0200 > Currently we are reading an uninitialized value for the max_delay > variable when snooping an MLD query message of invalid length and would > update our timers with that. > > Fixing this by simply ignoring such broken MLD queries (just

Re: [PATCH RFC 46/51] ARM: DMA-API: better handing of DMA masks for coherent allocations

2013-08-05 Thread Rob Herring
On Thu, Aug 1, 2013 at 5:20 PM, Russell King wrote: > We need to start treating DMA masks as something which is specific to > the bus that the device resides on, otherwise we're going to hit all > sorts of nasty issues with LPAE and 32-bit DMA controllers in >32-bit > systems, where memory is

Re: [PATCH 1/2] input: ti_tsc: Enable shared IRQ for TSC

2013-08-05 Thread Russ Dill
On 08/05/2013 10:02 AM, Zubair Lutfullah : wrote: > On Mon, Aug 05, 2013 at 09:12:56AM -0700, Dmitry Torokhov wrote: Touchscreen and ADC share the same IRQ line from parent MFD core. Previously only Touchscreen was interrupt based. With continuous mode support added in ADC driver,

Re: [PATCH] bridge: don't try to update timers in case of broken MLD queries

2013-08-05 Thread Stephen Hemminger
On Tue, 6 Aug 2013 00:32:05 +0200 Linus Lüssing wrote: > Currently we are reading an uninitialized value for the max_delay > variable when snooping an MLD query message of invalid length and would > update our timers with that. > > Fixing this by simply ignoring such broken MLD queries (just

Re: [PATCH] drm/i915: add fast boot support for Haswell

2013-08-05 Thread Jesse Barnes
On Thu, 1 Aug 2013 14:12:22 -0700 Furquan Shaikh wrote: > @@ -1282,6 +1283,13 @@ static void intel_ddi_get_config(struct intel_encoder > *encoder, > flags |= DRM_MODE_FLAG_NVSYNC; > > pipe_config->adjusted_mode.flags |= flags; > + > + if (port == PORT_A) { > +

Re: [PATCHv3] bridge: disable snooping if there is no querier

2013-08-05 Thread Linus Lüssing
Thanks for the very quick reporting! Looks like my gcc was and still isn't as supportive... You and the lists should have received a patch to fix that. Cheers, Linus On Mon, Aug 05, 2013 at 10:41:06AM +0200, Paul Bolle wrote: > On Wed, 2013-07-31 at 17:40 -0700, David Miller wrote: > > > If

Re: [PATCH] ACPI: Do not fail acpi_bind_one() if device is already bound correctly

2013-08-05 Thread Rafael J. Wysocki
On Monday, August 05, 2013 04:20:19 PM Toshi Kani wrote: > On Sun, 2013-08-04 at 16:03 +0200, Rafael J. Wysocki wrote: > > On Saturday, August 03, 2013 06:32:02 PM Toshi Kani wrote: > > > On Sat, 2013-08-03 at 02:47 +0200, Rafael J. Wysocki wrote: > > > > On Friday, August 02, 2013 04:38:38 PM

Re: [PATCH] kvm: Make kvm_rebooting visible

2013-08-05 Thread David Daney
On 08/05/2013 03:12 PM, Andi Kleen wrote: From: Andi Kleen kvm_rebooting is referenced from assembler code, thus needs to be visible. Signed-off-by: Andi Kleen --- virt/kvm/kvm_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virt/kvm/kvm_main.c

[PATCH] bridge: don't try to update timers in case of broken MLD queries

2013-08-05 Thread Linus Lüssing
Currently we are reading an uninitialized value for the max_delay variable when snooping an MLD query message of invalid length and would update our timers with that. Fixing this by simply ignoring such broken MLD queries (just like we do for IGMP already). This is a regression introduced by:

Re: [PATCH] fbdev: suppress warning when assigning vga-save/restore base

2013-08-05 Thread David Miller
From: Ondrej Zajicek Date: Mon, 5 Aug 2013 22:29:55 +0200 > On Sun, Aug 04, 2013 at 06:51:46PM -0700, David Miller wrote: >> From: "H. Peter Anvin" >> Date: Sun, 04 Aug 2013 10:33:46 -0700 >> >> > Anyone who can dig backwards and summarize? In other words: >> > >> > Where in the current code

Re: [PATCH] usb: fix some scripts/kernel-doc warnings

2013-08-05 Thread Greg Kroah-Hartman
On Mon, Aug 05, 2013 at 08:36:39PM +0200, Yacine Belkadi wrote: > On 08/04/2013 11:29 PM, Greg Kroah-Hartman wrote: > > On Sun, Aug 04, 2013 at 10:05:36PM +0200, Yacine Belkadi wrote: > >> On 08/03/2013 05:29 AM, Greg Kroah-Hartman wrote: > >>> On Fri, Aug 02, 2013 at 08:10:04PM +0200, Yacine

Re: [patch 3/7] arch: mm: pass userspace fault flag to generic fault handler

2013-08-05 Thread Johannes Weiner
On Mon, Aug 05, 2013 at 03:06:18PM -0700, Andrew Morton wrote: > On Sat, 3 Aug 2013 12:59:56 -0400 Johannes Weiner wrote: > > > Unlike global OOM handling, memory cgroup code will invoke the OOM > > killer in any OOM situation because it has no way of telling faults > > occuring in kernel

Re: [PATCH] block: support embedded device command line partition

2013-08-05 Thread Andrew Morton
On Sat, 3 Aug 2013 09:57:04 + Caizhiyong wrote: > From: Cai Zhiyong > > Read block device partition table from command line. > The partition used for fixed block device (eMMC) embedded device. > It is no MBR, save storage space. Bootloader can be easily accessed by > absolute address of

[PATCH 1/8] drm/i2c: tda998x: fix EDID reading on TDA19988 devices

2013-08-05 Thread Sebastian Hesselbarth
From: Russell King TDA19988 devices need their RAM enabled in order to read EDID information. Add support for this. Signed-off-by: Russell King Tested-by: Sebastian Hesselbarth --- Cc: David Airlie Cc: Darren Etheridge Cc: Rob Clark Cc: Russell King Cc: Daniel Vetter Cc:

[PATCH 5/8] drm/i2c: tda998x: add video and audio input configuration

2013-08-05 Thread Sebastian Hesselbarth
From: Russell King This patch adds tda998x specific parameters to allow it to be configured for different boards using it. Also, this implements rudimentary audio support for S/PDIF attached controllers. Signed-off-by: Russell King Signed-off-by: Sebastian Hesselbarth --- Changelog: for v1: -

[PATCH 4/8] drm/i2c: tda998x: prepare for video input configuration

2013-08-05 Thread Sebastian Hesselbarth
From: Russell King The video-input-port (VIP) is highly configurable. This prepares current driver to allow to configure VIP configuration, as some boards connect lcd controller and TDA998x "pin-swapped" and depend on VIP to swap the pins by register configuration. Signed-off-by: Russell King

[PATCH 7/8] drm/i2c: tda998x: prepare for broken sync workaround

2013-08-05 Thread Sebastian Hesselbarth
From: Darren Etheridge Some LCD controller cannot provide valid VESA style sync, i.e. coincident HS/VS edges. First, this patch adds hskew passed from the adjusted_mode to reference pixel calculation to allow those controllers to add an offset relative to the expected reference pixel.

[PATCH 8/8] drm/tilcdc fixup mode to workaound sync for tda998x

2013-08-05 Thread Sebastian Hesselbarth
From: Darren Etheridge Add a fixup function that will flip the hsync priority and add a hskew value that is used to shift the tda998x to the right by a variable number of pixels depending on the mode. This works around an issue with the sync timings that tilcdc is outputing. Signed-off-by:

Re: [PATCH] ACPI: Do not fail acpi_bind_one() if device is already bound correctly

2013-08-05 Thread Toshi Kani
On Sun, 2013-08-04 at 16:03 +0200, Rafael J. Wysocki wrote: > On Saturday, August 03, 2013 06:32:02 PM Toshi Kani wrote: > > On Sat, 2013-08-03 at 02:47 +0200, Rafael J. Wysocki wrote: > > > On Friday, August 02, 2013 04:38:38 PM Toshi Kani wrote: > > > > On Fri, 2013-08-02 at 00:33 +0200, Rafael

[PATCH 2/8] drm/i2c: tda998x: ensure VIP output mux is properly set

2013-08-05 Thread Sebastian Hesselbarth
From: Russell King When switching between various drivers for this device, it's possible that some critical registers are left containing values which affect the device operation. One such case encountered is the VIP output mux register. This defaults to 0x24 on powerup, but other drivers may

[PATCH 6/8] drm/i2c: tda998x: fix sync generation and calculation

2013-08-05 Thread Sebastian Hesselbarth
This fixes the wrong sync generation and sync calculation of TDA998x for HS/VS-based sync detection. Signed-off-by: Sebastian Hesselbarth --- Cc: David Airlie Cc: Darren Etheridge Cc: Rob Clark Cc: Russell King Cc: Daniel Vetter Cc: dri-de...@lists.freedesktop.org Cc:

[PATCH 0/8] Several NXP TDA998x patches

2013-08-05 Thread Sebastian Hesselbarth
This patch set picks up several patches sent during the past months related with NXP TDA998x HDMI transmitter driver. The patches have been tested on Marvell Dove (Armada DRM) on several HDMI modes with audio playing on S/PDIF. I have also quickly tested on Beaglebone Black (tilcdc) for one DVI

[PATCH 3/8] drm/i2c: tda998x: fix npix/nline programming

2013-08-05 Thread Sebastian Hesselbarth
From: Russell King The npix/nline registers are supposed to be programmed with the total number of pixels/lines, not the displayed pixels/lines, and not minus one either. Signed-off-by: Russell King Tested-by: Sebastian Hesselbarth --- Cc: David Airlie Cc: Darren Etheridge Cc: Rob Clark

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

2013-08-05 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 file changed,

[PATCH] Fix init const for module signing code

2013-08-05 Thread Andi Kleen
From: Andi Kleen const has to use __initconst, not __initdata Signed-off-by: Andi Kleen --- kernel/modsign_pubkey.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/modsign_pubkey.c b/kernel/modsign_pubkey.c index 2b6e699..7cbd450 100644 ---

[PATCH] checkpatch: add a rule to check devinitconst mistakes

2013-08-05 Thread Andi Kleen
From: Andi Kleen Check for const __devinitdata and non const __devinitconst People get this regularly wrong and it breaks the LTO builds, as it causes a section attribute conflict. This doesn't catch all mistakes -- spreading over multiple lines, getting const pointers wrong, but hopefully the

Re: [PATCH 3/3] MAINTAINERS: Add in two extra co-maintainers of the Xen tree.

2013-08-05 Thread Boris Ostrovsky
On 08/05/2013 02:05 PM, Konrad Rzeszutek Wilk wrote: Both Boris and David have graciously volunteered to help in maintaining the Xen subsystem tree. Cementing this in the MAINTAINERS file so they are copied on Xen related patches. CC: Boris Ostrovsky CC: David Vrabel Signed-off-by: Konrad

[PATCH 01/16] x86: Fix sys_call_table type in asm/syscall.h v2

2013-08-05 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] Use gcc alias instead of assembler aliases for syscalls

2013-08-05 Thread Andi Kleen
From: Andi Kleen Use standard gcc __attribute__((alias(foo))) to define the syscall aliases instead of custom assembler macros. This is far cleaner, and also fixes my LTO kernel build. Signed-off-by: Andi Kleen --- include/linux/compat.h | 4 ++-- include/linux/syscalls.h | 4 ++-- 2 files

[PATCH 02/16] x86, asmlinkage: Change dotraplinkage into __visible on 32bit v2

2013-08-05 Thread Andi Kleen
From: Andi Kleen Mark 32bit dotraplinkage functions as __visible for LTO. 64bit already is using asmlinkage which includes it. v2: Clean up (M.Marek) Signed-off-by: Andi Kleen --- arch/x86/include/asm/traps.h | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git

[PATCH 05/16] x86, asmlinkage: Make 32bit/64bit __switch_to visible

2013-08-05 Thread Andi Kleen
From: Andi Kleen This function is called from inline assembler, so has to be visible. Signed-off-by: Andi Kleen --- arch/x86/include/asm/switch_to.h | 4 ++-- arch/x86/kernel/process_32.c | 2 +- arch/x86/kernel/process_64.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)

[PATCH] dwc3: Only build debugfs when DWC3_GADGET/DUAL_ROLE is enabled

2013-08-05 Thread Andi Kleen
From: Andi Kleen Fix (randconfig) build problem with DEBUG_FS on Cc: ba...@ti.com Cc: linux-...@vger.kernel.org Signed-off-by: Andi Kleen --- drivers/usb/dwc3/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb/dwc3/Makefile b/drivers/usb/dwc3/Makefile

[PATCH 03/16] x86, asmlinkage: Make all interrupt handlers asmlinkage / __visible

2013-08-05 Thread Andi Kleen
From: Andi Kleen These handlers are all referenced from assembler stubs, so need to be visible. The handlers without arguments become asmlinkage, the others __visible to not force regparms(0) on x86-32. I put it all into a single patch, please let me know if you want it it split up.

Re: [RFC] gcc feature request: Moving blocks into sections

2013-08-05 Thread Mathieu Desnoyers
* Steven Rostedt (rost...@goodmis.org) wrote: > On Mon, 2013-08-05 at 17:28 -0400, Mathieu Desnoyers wrote: > [...] > > My though is that the code above does not cover all jump encodings that > > can be generated by past, current and future x86 assemblers. > > > > Another way around this issue

Re: Performance regression from switching lock to rw-sem for anon-vma tree

2013-08-05 Thread Tim Chen
On Tue, 2013-07-30 at 21:24 +0200, Ingo Molnar wrote: > > > > Signed-off-by: Tim Chen > > > +config RWSEM_SPIN_ON_WRITE_OWNER > > + bool "Optimistic spin write acquisition for writer owned rw-sem" > > + default n > > + depends on SMP > > + help > > + Allows a writer to perform

Re: [edk2] Corrupted EFI region

2013-08-05 Thread Borislav Petkov
On Mon, Aug 05, 2013 at 11:26:46PM +0200, Laszlo Ersek wrote: > What happens if you pass "memblock=debug" on the kernel command line > (see early_memblock() in "mm/memblock.c")? > > (I just tried it in my Fedora 19 guest, and it in fact produced the message > > [0.00] efi: Could not

[PATCH 14/16] x86, asmlinkage: Make dump_stack visible

2013-08-05 Thread Andi Kleen
From: Andi Kleen dump_stack is used from assembler code, so make it visible. Signed-off-by: Andi Kleen --- include/linux/printk.h | 2 +- lib/dump_stack.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/linux/printk.h b/include/linux/printk.h index

Re: [patch 3/7] arch: mm: pass userspace fault flag to generic fault handler

2013-08-05 Thread Andrew Morton
On Sat, 3 Aug 2013 12:59:56 -0400 Johannes Weiner wrote: > Unlike global OOM handling, memory cgroup code will invoke the OOM > killer in any OOM situation because it has no way of telling faults > occuring in kernel context - which could be handled more gracefully - > from user-triggered

[PATCH 13/16] x86, asmlinkage: Make 64bit checksum functions visible

2013-08-05 Thread Andi Kleen
From: Andi Kleen They are implemented in assembler. Signed-off-by: Andi Kleen --- arch/x86/include/asm/checksum_64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/checksum_64.h b/arch/x86/include/asm/checksum_64.h index 9bfdc41..e6fd8a0 100644 ---

Re: [PATCH 2/3] MAINTAINERS: Update the Xen subsystem's with proper mailing list.

2013-08-05 Thread Stefano Stabellini
On Mon, 5 Aug 2013, Konrad Rzeszutek Wilk wrote: > And also drop the virtualization one since we don't really use it. > > CC: stefano.stabell...@eu.citrix.com > Signed-off-by: Konrad Rzeszutek Wilk Acked-by: Stefano Stabellini > MAINTAINERS | 13 ++--- > 1 file changed, 6

[PATCH 10/16] x86, asmlinkage: Make syscall tables visible

2013-08-05 Thread Andi Kleen
From: Andi Kleen They are referenced from entry*.S. Signed-off-by: Andi Kleen --- arch/x86/kernel/syscall_32.c | 2 +- arch/x86/kernel/syscall_64.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/syscall_32.c b/arch/x86/kernel/syscall_32.c index

[PATCH 2/2] pinctrl: add generic pins and functions properties

2013-08-05 Thread Stephen Warren
From: Stephen Warren pinctrl bindings can benefit from generic property names that define which pins a "pin configuration node" affects, and which mux function to select onto those pins. Document new properties for this purpose so that other bindings may refer to them. Signed-off-by: Stephen

[PATCH 16/16] x86, asmlinkage, vdso: Mark vdso variables __visible

2013-08-05 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- arch/x86/include/asm/vvar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 1/2] pinctrl: clean up pinconfig-generic documentation

2013-08-05 Thread Stephen Warren
From: Stephen Warren Reword the section of pinctrl-bindings.txt that describes generic properties that pinctrl bindings may use. The aim is to make the text clearer, and more explicitly call out the responsibility of individual bindings that use the generic properties to define which of the

[PATCH 09/16] x86, asmlinkage: Make several variables used from assembler/linker script visible

2013-08-05 Thread Andi Kleen
From: Andi Kleen plus one function load_gs_index Signed-off-by: Andi Kleen --- arch/x86/include/asm/pgtable.h | 3 ++- arch/x86/include/asm/processor.h | 2 +- arch/x86/include/asm/special_insns.h | 2 +- arch/x86/kernel/cpu/amd.c| 4 ++-- arch/x86/kernel/cpu/common.c

[PATCH 12/16] x86, asmlinkage, paravirt: Add __visible/asmlinkage to xen paravirt ops

2013-08-05 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/kernel/paravirt.c| 4 ++-- arch/x86/xen/xen-ops.h| 16 3 files changed, 12 insertions(+), 11 deletions(-) diff --git

[PATCH 06/16] x86, asmlinkage: Make various syscalls asmlinkage

2013-08-05 Thread Andi Kleen
From: Andi Kleen FWIW I suspect sys_rt_sigreturn/sys_sigreturn should use standard SYSCALL wrappers. But I didn't do that change in this patch. Signed-off-by: Andi Kleen --- arch/x86/include/asm/syscalls.h | 6 +++--- arch/x86/kernel/signal.c| 4 ++-- 2 files changed, 5

[PATCH 15/16] x86, asmlinkage, power: Make various symbols used by the suspend asm code visible

2013-08-05 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- arch/x86/power/cpu.c | 8 arch/x86/power/hibernate_64.c | 12 ++-- kernel/power/hibernate.c | 2 +- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/arch/x86/power/cpu.c b/arch/x86/power/cpu.c index

Re: [PATCH V2 3/3] pinctrl: palmas: add pincontrol driver

2013-08-05 Thread Stephen Warren
On 08/05/2013 01:33 AM, Laxman Dewangan wrote: > TI Palmas series Power Management IC have multiple pins which can be > configured for different functionality. This pins can be configured > for different function. Also their properties like pull up/down, > open drain enable/disable are

[PATCH 07/16] x86, asmlinkage: Make kprobes code visible and fix assembler code

2013-08-05 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 ---

x86: Clean up asmlinkage use

2013-08-05 Thread Andi Kleen
This patchkit makes the use of asmlinkage consistent in arch/x86 Originally arch/x86 was (mostly) fully annotated with asmlinkage, but this has bitrotted over time. These changes were originally part of my LTO patchkit. In the interest of making it smaller, I'm posting them separately, as they

[PATCH 11/16] x86, asmlinkage, apm: Make APM data structure used from assembler visible

2013-08-05 Thread Andi Kleen
From: Andi Kleen Signed-off-by: Andi Kleen --- arch/x86/kernel/apm_32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/apm_32.c b/arch/x86/kernel/apm_32.c index 53a4e27..3ab0343 100644 --- a/arch/x86/kernel/apm_32.c +++ b/arch/x86/kernel/apm_32.c @@ -392,7

[PATCH 08/16] x86, asmlinkage, kexec: Drop bogus asmlinkage in machine_kexec_32

2013-08-05 Thread Andi Kleen
From: Andi Kleen A function pointer cannot be asmlinkage. Just drop it. Signed-off-by: Andi Kleen --- arch/x86/kernel/machine_kexec_32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/machine_kexec_32.c b/arch/x86/kernel/machine_kexec_32.c index

[PATCH 04/16] x86, asmlinkage: Make _*_start_kernel visible

2013-08-05 Thread Andi Kleen
From: Andi Kleen Obviously these functions have to be visible, otherwise the whole kernel could be optimized away. Signed-off-by: Andi Kleen --- arch/x86/include/asm/setup.h | 8 +--- arch/x86/kernel/head32.c | 2 +- arch/x86/kernel/head64.c | 2 +- 3 files changed, 7

[PATCH] [SCSI] sg: Fix user memory corruption when SG_IO is interrupted by a signal

2013-08-05 Thread Roland Dreier
From: Roland Dreier There is a nasty bug in the SCSI SG_IO ioctl that in some circumstances leads to one process writing data into the address space of some other random unrelated process if the ioctl is interrupted by a signal. What happens is the following: - A process issues an SG_IO ioctl

Re: [edk2] Corrupted EFI region

2013-08-05 Thread Laszlo Ersek
On 08/05/13 23:41, Borislav Petkov wrote: > On Mon, Aug 05, 2013 at 02:37:08PM -0700, H. Peter Anvin wrote: >> All of this would be a non-problem if there weren't buggy >> implementations which can't run *without* SetVirtualAddressMap(). > > Oh, you mean, if we were to call the runtime services

[PATCH] gpio: New driver for LSI ZEVIO SoCs

2013-08-05 Thread Fabian Vogt
From: Fabian Vogt This driver supports the GPIO controller found in LSI ZEVIO SoCs. It has been successfully tested on a TI nspire CX calculator. Signed-off-by: Fabian Vogt --- Notes: Applies to v3.11-rc3-378-g1aa3b5c .../devicetree/bindings/gpio/gpio-zevio.txt| 19 ++

Re: [edk2] Corrupted EFI region

2013-08-05 Thread H. Peter Anvin
On 08/05/2013 02:41 PM, Borislav Petkov wrote: > On Mon, Aug 05, 2013 at 02:37:08PM -0700, H. Peter Anvin wrote: >> All of this would be a non-problem if there weren't buggy >> implementations which can't run *without* SetVirtualAddressMap(). > > Oh, you mean, if we were to call the runtime

Re: [PATCH] memcg: don't initialize kmem-cache destroying work for root caches

2013-08-05 Thread Andrew Vagin
On Mon, Aug 05, 2013 at 02:16:09PM -0700, Andrew Morton wrote: > On Tue, 6 Aug 2013 01:01:28 +0400 Andrew Vagin wrote: > > > On Mon, Aug 05, 2013 at 01:05:30PM -0700, Andrew Morton wrote: > > > On Mon, 5 Aug 2013 20:09:40 +0400 Andrey Vagin wrote: > > > > > > > struct memcg_cache_params has a

Re: [RFC] gcc feature request: Moving blocks into sections

2013-08-05 Thread H. Peter Anvin
On 08/05/2013 02:28 PM, Mathieu Desnoyers wrote: > * Linus Torvalds (torva...@linux-foundation.org) wrote: >> On Mon, Aug 5, 2013 at 12:54 PM, Mathieu Desnoyers >> wrote: >>> >>> I remember that choosing between 2 and 5 bytes nop in the asm goto was >>> tricky: it had something to do with the

Re: [RFC] gcc feature request: Moving blocks into sections

2013-08-05 Thread Steven Rostedt
On Mon, 2013-08-05 at 17:28 -0400, Mathieu Desnoyers wrote: > Another thing that bothers me with Steven's approach is that decoding > jumps generated by the compiler seems fragile IMHO. The encodings wont change. If they do, then old kernels will not run on new hardware. Now if it adds a third

Re: [PATCH V2 2/3] pinctrl: pinconf-generic: add generic APIs for mapping pinctrl node

2013-08-05 Thread Stephen Warren
On 08/05/2013 01:33 AM, Laxman Dewangan wrote: > Add generic APIs to map the DT node and its sub node in pinconf generic > driver. These APIs can be used from driver to parse the DT node who > diff --git a/Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt >

Re: [edk2] Corrupted EFI region

2013-08-05 Thread Borislav Petkov
On Mon, Aug 05, 2013 at 02:37:08PM -0700, H. Peter Anvin wrote: > All of this would be a non-problem if there weren't buggy > implementations which can't run *without* SetVirtualAddressMap(). Oh, you mean, if we were to call the runtime services through their physical addresses? --

Re: [edk2] Corrupted EFI region

2013-08-05 Thread H. Peter Anvin
On 08/05/2013 11:12 AM, Borislav Petkov wrote: > On Mon, Aug 05, 2013 at 08:50:17AM -0700, Andrew Fish wrote: >> AFAICT EFI pre-dates kexec merge into mainline by a number of years as >> SetVirtualaddressMap() was part of EFI 1.0 (previous millennium) > > Ok, fair enough. > >> The EFI to UEFI

Re: [PATCH V2 1/3] pinctrl: add utility functions for add map/configs

2013-08-05 Thread Stephen Warren
On 08/05/2013 01:33 AM, Laxman Dewangan wrote: > Some of pincontrol driver needs the utility function to create map > list. The utility function needed for adding mux, configs etc. > > In place of duplicating this in each driver, add the common utility > function in common file and use from

Re: [RFC] gcc feature request: Moving blocks into sections

2013-08-05 Thread Mathieu Desnoyers
* Linus Torvalds (torva...@linux-foundation.org) wrote: > On Mon, Aug 5, 2013 at 12:54 PM, Mathieu Desnoyers > wrote: > > > > I remember that choosing between 2 and 5 bytes nop in the asm goto was > > tricky: it had something to do with the fact that gcc doesn't know the > > exact size of each

Re: [edk2] Corrupted EFI region

2013-08-05 Thread Laszlo Ersek
On 08/05/13 18:47, Borislav Petkov wrote: > Here's the whole dmesg up until efi_enter_virtual_map. When we have entered > efi_enter_virtual_mode, the region has changed from > > [0.00] efi: mem11: type=4, attr=0xf, > range=[0x7e0ad000-0x7e0cc000) (0MB) > > to > > [

perf, percpu: panic in account_event

2013-08-05 Thread Sasha Levin
000f001d1ed6 [ 4299.620150] IP: [] account_event+0xe4/0x100 [ 4299.620150] PGD 5f30f067 PUD 0 [ 4299.620150] Oops: 0002 [#1] PREEMPT SMP DEBUG_PAGEALLOC [ 4299.620150] Modules linked in: [ 4299.620150] CPU: 14 PID: 15329 Comm: trinity-child56 Tainted: GW 3.11.0-rc4-next-20130805-sasha-

Re: [PATCH 00/11] Add compression support to pstore

2013-08-05 Thread Tony Luck
This patch seems to fix the garbage at the end problem. Booting an old kernel and using openssl decodes them OK. Still have problems booting if there are any compressed images in ERST to be inflated. -Tony -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of

[GIT PULL] x86 fixes for v3.11-rc5

2013-08-05 Thread H. Peter Anvin
Hi Linus, The following changes since commit b3a3a9c441e2c8f6b6760de9331023a7906a4ac6: Merge tag 'trace-3.11-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace (2013-07-22 19:07:24 -0700) are available in the git repository at:

Re: perf,arm -- oops in validate_event

2013-08-05 Thread Vince Weaver
On Mon, 5 Aug 2013, Vince Weaver wrote: > My perf_fuzzer quickly triggers this oops on my ARM Cortex A9 pandaboard > running Linux 3.11-rc4. > > Below is the oops, I've attached a simple C test case that triggers the > bug. Also, if it helps, the disassembled code in question. It looks like

Re: [PATCH] memcg: don't initialize kmem-cache destroying work for root caches

2013-08-05 Thread Andrew Morton
On Tue, 6 Aug 2013 01:01:28 +0400 Andrew Vagin wrote: > On Mon, Aug 05, 2013 at 01:05:30PM -0700, Andrew Morton wrote: > > On Mon, 5 Aug 2013 20:09:40 +0400 Andrey Vagin wrote: > > > > > struct memcg_cache_params has a union. Different parts of this union > > > are used for root and non-root

Re: [PATCH] fbdev: suppress warning when assigning vga-save/restore base

2013-08-05 Thread H. Peter Anvin
On 08/05/2013 02:02 PM, H. Peter Anvin wrote: > On 08/05/2013 01:29 PM, Ondrej Zajicek wrote: >> >> How this could even work? AFAIK these cards have to be explicitly programmed >> to enable MMIO (which was not done in the patches). These patches claim that >> it is for multi-domain PCI. I would

Re: percpu: kernel BUG at mm/percpu.c:579!

2013-08-05 Thread Sasha Levin
On 08/05/2013 03:15 PM, Kent Overstreet wrote: From percpu_ref release path. Kent? From the backtrace I have no idea if this was from the aio code using it or the cgroup code - Sasha, any idea? AIO is probably more likely, I'm going to look to see if I can find anything... I honestly

Re: [PATCH] memcg: don't initialize kmem-cache destroying work for root caches

2013-08-05 Thread Andrew Vagin
On Mon, Aug 05, 2013 at 01:05:30PM -0700, Andrew Morton wrote: > On Mon, 5 Aug 2013 20:09:40 +0400 Andrey Vagin wrote: > > > struct memcg_cache_params has a union. Different parts of this union > > are used for root and non-root caches. A part with destroying work is > > used only for non-root

Re: [PATCH] fbdev: suppress warning when assigning vga-save/restore base

2013-08-05 Thread H. Peter Anvin
On 08/05/2013 01:29 PM, Ondrej Zajicek wrote: > > How this could even work? AFAIK these cards have to be explicitly programmed > to enable MMIO (which was not done in the patches). These patches claim that > it is for multi-domain PCI. I would guess that vgabase is NULL in common > configurations

Re: [patch 7/7] mm: memcg: do not trap chargers with full callstack on OOM

2013-08-05 Thread Johannes Weiner
On Mon, Aug 05, 2013 at 11:54:29AM +0200, Michal Hocko wrote: > On Sat 03-08-13 13:00:00, Johannes Weiner wrote: > > The memcg OOM handling is incredibly fragile and can deadlock. When a > > task fails to charge memory, it invokes the OOM killer and loops right > > there in the charge code until

Re: [PATCH v5 0/4] [SCSI] sg: fix race condition in sg_open

2013-08-05 Thread Douglas Gilbert
On 13-08-04 10:19 PM, vaughan wrote: On 08/03/2013 01:25 PM, Douglas Gilbert wrote: On 13-08-01 01:01 AM, Douglas Gilbert wrote: On 13-07-22 01:03 PM, Jörn Engel wrote: On Mon, 22 July 2013 12:40:29 +0800, Vaughan Cao wrote: There is a race when open sg with O_EXCL flag. Also a race may

Re: [PATCH 06/20] tile: support LSI MEGARAID SAS HBA hybrid dma_ops

2013-08-05 Thread Konrad Rzeszutek Wilk
On Mon, Aug 05, 2013 at 04:06:20PM -0400, Chris Metcalf wrote: > The LSI MEGARAID SAS HBA suffers from the problem where it can do > 64-bit DMA to streaming buffers but not to consistent buffers. > In other words, 64-bit DMA is used for disk data transfers and 32-bit > DMA must be used for control

Re: [PATCH 1/4] mm, page_alloc: add likely macro to help compiler optimization

2013-08-05 Thread Johannes Weiner
On Mon, Aug 05, 2013 at 05:50:41PM +0900, Joonsoo Kim wrote: > On Mon, Aug 05, 2013 at 05:10:08PM +0900, Joonsoo Kim wrote: > > Hello, Michal. > > > > On Fri, Aug 02, 2013 at 11:36:07PM +0200, Michal Hocko wrote: > > > On Fri 02-08-13 16:47:10, Johannes Weiner wrote: > > > > On Fri, Aug 02, 2013

[PATCH 03/20] tile PCI RC: support pci=off boot arg for tilepro

2013-08-05 Thread Chris Metcalf
Signed-off-by: Chris Metcalf --- arch/tile/kernel/pci.c | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/tile/kernel/pci.c b/arch/tile/kernel/pci.c index 1dae3b2..af75835 100644 --- a/arch/tile/kernel/pci.c +++ b/arch/tile/kernel/pci.c @@ -51,6 +51,8 @@ * */

Re: [PATCH v7] dmaengine: Add MOXA ART DMA engine driver

2013-08-05 Thread Arnd Bergmann
On Monday 05 August 2013, Jonas Jensen wrote: > +bool moxart_dma_filter_fn(struct dma_chan *chan, void *param) > +{ > + struct moxart_dma_chan *mchan = to_moxart_dma_chan(chan); > + struct moxart_dma_container *mc = to_dma_container(mchan->chan.device); > + > + if (chan->device->dev

[PATCH 00/20] PCI root complex changes for tile architecture

2013-08-05 Thread Chris Metcalf
These changes add new features and fix bugs in the Tilera PCI root complex subsystem. Among the new tilegx features are support for I/O space access, more MXI-X interrupt vectors, and support for TRIO 0 MAC 0 on Gx72 systems. Chris Metcalf (20): tile PCI RC: cleanups for tilepro PCI RC tile

[PATCH 11/20] tile PCI RC: restructure TRIO initialization

2013-08-05 Thread Chris Metcalf
The TRIO shim initialization is shared with other kernel drivers such as the endpoint and StreamIO drivers, so reorganize the initialization flow to ensure that the root complex driver properly initializes TRIO state regardless of what kind of TRIO driver will end up using the shim.

[PATCH 04/20] tile PCI RC: tweak the the pcie_rc_delay support

2013-08-05 Thread Chris Metcalf
Allow longer delays if requested, and print the info messages as we are performing the delay, not when parsing the arguments. Signed-off-by: Chris Metcalf --- arch/tile/kernel/pci_gx.c | 35 --- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git

[PATCH 07/20] tile PCI RC: support more MSI-X interrupt vectors

2013-08-05 Thread Chris Metcalf
To support PCIe devices with higher number of MSI-X interrupt vectors, e.g. 16 for the LSI RAID card, enhance the Gx RC stack to provide more MSI-X vectors by using the TRIO Scatter Queues, which provide 8 more vectors in addition to ~10 from the Map Mem regions. Signed-off-by: Chris Metcalf ---

[PATCH 05/20] tile PCI RC: handle case that PCI link is already up

2013-08-05 Thread Chris Metcalf
If we are rebooting (e.g. via kexec) then the PCI RC link may already be up. In that case, we don't want to do the software fixup to force the link up, since that can degrade it to Gen1. Signed-off-by: Chris Metcalf --- arch/tile/kernel/pci_gx.c | 41 -

Re: [RFC] gcc feature request: Moving blocks into sections

2013-08-05 Thread Richard Henderson
On 08/05/2013 09:57 AM, Jason Baron wrote: > On 08/05/2013 03:40 PM, Marek Polacek wrote: >> On Mon, Aug 05, 2013 at 11:34:55AM -0700, Linus Torvalds wrote: >>> On Mon, Aug 5, 2013 at 11:24 AM, Linus Torvalds >>> wrote: Ugh. I can see the attraction of your section thing for that case, I

[PATCH 13/20] tile PCI RC: include pci/pcie/Kconfig

2013-08-05 Thread Chris Metcalf
Signed-off-by: Chris Metcalf --- arch/tile/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/tile/Kconfig b/arch/tile/Kconfig index bfff769..e41a381 100644 --- a/arch/tile/Kconfig +++ b/arch/tile/Kconfig @@ -408,6 +408,8 @@ config TILE_PCI_IO source "drivers/pci/Kconfig"

[PATCHv3 2/4] clk: sunxi: Allow to specify the divider width from the dividers data

2013-08-05 Thread Maxime Ripard
The divider width used to be hardcoded. Some A31 dividers are no longer with the hardcoded width, so we need to make it specific to each divider and set it in the dividers data. Signed-off-by: Maxime Ripard Reviewed-by: Emilio López --- drivers/clk/sunxi/clk-sunxi.c | 24

[PATCH 14/20] tile PCI RC: bomb comments and whitespace format

2013-08-05 Thread Chris Metcalf
This change is purely stylistic but improves the readability of the tile PCI RC driver. Signed-off-by: Chris Metcalf --- arch/tile/kernel/pci_gx.c | 180 +++--- 1 file changed, 56 insertions(+), 124 deletions(-) diff --git a/arch/tile/kernel/pci_gx.c

[PATCHv3 1/4] clk: sunxi: Rename the structure to prepare the addition of sun6i

2013-08-05 Thread Maxime Ripard
Rename all the generic-named structure to sun4i to avoid confusion when we will introduce the sun6i (A31) clocks. Signed-off-by: Maxime Ripard Reviewed-by: Emilio López --- drivers/clk/sunxi/clk-sunxi.c | 54 +-- 1 file changed, 27 insertions(+), 27

<    1   2   3   4   5   6   7   8   9   10   >