Re: [RFC PATCH 2/4] sched: Use traced preempt count operations to toggle PREEMPT_ACTIVE

2015-02-02 Thread Frederic Weisbecker
On Wed, Jan 28, 2015 at 04:42:30PM +0100, Peter Zijlstra wrote: > On Wed, Jan 28, 2015 at 01:24:10AM +0100, Frederic Weisbecker wrote: > > d1f74e20b5b064a130cd0743a256c2d3cfe84010 turned PREEMPT_ACTIVE modifiers > > to use raw untraced preempt count operations. Meanwhile this prevents > > from debu

Re: [capabilities] Allow normal inheritance for a configurable set of capabilities

2015-02-02 Thread Andy Lutomirski
On Mon, Feb 2, 2015 at 9:12 AM, Serge Hallyn wrote: > A key concept behind posix capabilities is that the privilege comes from > both the person and the file being executed. As you say below basically > anything can be executed by the program so that is completely violated. > > Still, it's not th

[PATCH] hwmon: tmp102: add hibernation callbacks

2015-02-02 Thread grygorii.strashko
From: Grygorii Strashko Setting a dev_pm_ops suspend/resume pair but not a set of hibernation functions means those pm functions will not be called upon hibernation. Fix this by using SIMPLE_DEV_PM_OPS, which appropriately assigns the suspend and hibernation handlers. Signed-off-by: Grygorii Str

Re: [PATCH] Input: MT - Add support for balanced slot assignment

2015-02-02 Thread Dmitry Torokhov
On Mon, Feb 02, 2015 at 10:32:53AM -0500, Benjamin Tissoires wrote: > On Feb 01 2015 or thereabouts, Henrik Rydberg wrote: > > Hi Benjamin, > > > > > Tested this morning, and yes, it solves the problem. > > > I assumed that the dmax was in mm, and used "10 * priv->x_res", which > > > seemed to do

[PATCH] lib/int_sqrt.c: Optimize square root function

2015-02-02 Thread Anshul Garg
From: Anshul Garg Unnecessary instructions are executing even though m is greater than x so added logic to make m less than equal to x before performing these operations. Signed-off-by: Anshul Garg --- lib/int_sqrt.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/int_sqrt.c b/li

Re: [capabilities] Allow normal inheritance for a configurable set of capabilities

2015-02-02 Thread Serge Hallyn
A key concept behind posix capabilities is that the privilege comes from both the person and the file being executed. As you say below basically anything can be executed by the program so that is completely violated. Still, it's not that different from mmapping some arbitrary code and jumping int

Re: [PATCH 1/3] ARM: OMAP2+: gpmc: Fix writing in gpmc_cs_set_memconf

2015-02-02 Thread Tony Lindgren
* Roger Quadros [150126 01:38]: > On 24/01/15 22:28, Semen Protsenko wrote: > > Some GPMC_CONFIG7 register bits marked as "RESERVED", means they > > shouldn't be overwritten. A typical approach to handle such bits called > > "Read-Modify-Write". Writing procedure used in gpmc_cs_set_memconf() > >

Re: [PATCH] Warning that occured while compiling the nvec in 3.19.0-rc5+ is fixed

2015-02-02 Thread Stephen Warren
On Sat, Jan 31, 2015 at 05:24:42PM +0530, varsharamt wrote: The task was to fix a warning which was shown while compiling a driver called NVEC. I wrote a brief description about how to enable support for a nVidya complaint embedded controller. Please note that NVIDIA is spelled/capitalized as

[PATCH v9] ASoC: dapm: add code to configure dai link parameters

2015-02-02 Thread Nikesh Oswal
dai-link params for codec-codec links were fixed. The fixed link between codec and another chip which may be another codec, baseband, bluetooth codec etc may require run time configuaration changes. This change provides an optional alsa control to select one of the params from a list of params. Si

[PATCH] net: fs_enet: Implement NETIF_F_SG feature

2015-02-02 Thread Christophe Leroy
Freescale ethernet controllers have the capability to re-assemble fragmented data into a single ethernet frame. This patch uses this capability and implements NETIP_F_SG feature into the fs_enet ethernet driver. On a MPC885, I get 53% performance improvement on a ftp transfer of a 15Mb file: * W

Re: [PATCH v13 3/6] clk: Make clk API return per-user struct clk instances

2015-02-02 Thread Tony Lindgren
* Mike Turquette [150201 13:27]: > Quoting Tomeu Vizoso (2015-01-23 03:03:30) > > Moves clock state to struct clk_core, but takes care to change as little > > API as > > possible. > > > > struct clk_hw still has a pointer to a struct clk, which is the > > implementation's per-user clk instance,

[PATCH 3/5] WIP: fs: ext4: support unlinkat_s() for secure deletion of files

2015-02-02 Thread Alexander Holler
Signed-off-by: Alexander Holler --- fs/ext4/ext4.h| 2 ++ fs/ext4/mballoc.c | 25 +++-- fs/ext4/super.c | 12 3 files changed, 37 insertions(+), 2 deletions(-) diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index c55a1fa..e66507c 100644 --- a/fs/ext4/ext4.h

[PATCH 4/5] WIP: Add patch for coreutils to support unlinkat_s (x86_64 only)

2015-02-02 Thread Alexander Holler
You have to build the new rm yourself Signed-off-by: Alexander Holler --- ...ion-s-to-rm-to-support-unlinkat_s-current.patch | 111 + 1 file changed, 111 insertions(+) create mode 100644 0001-WIP-Add-option-s-to-rm-to-support-unlinkat_s-current.patch diff --git a/0001-WIP-

[PATCH 2/5] WIP: fs: fat: support unlinkat_s() for secure deletion of files

2015-02-02 Thread Alexander Holler
Signed-off-by: Alexander Holler --- fs/fat/fat.h| 1 + fs/fat/fatent.c | 20 fs/fat/inode.c | 13 + 3 files changed, 34 insertions(+) diff --git a/fs/fat/fat.h b/fs/fat/fat.h index e0c4ba3..b9febda 100644 --- a/fs/fat/fat.h +++ b/fs/fat/fat.h @@ -81,6 +81,7

[PATCH 5/5] WIP: Add test for unlinkat_s

2015-02-02 Thread Alexander Holler
Simple test, needs the new rm with option -s. Signed-off-by: Alexander Holler --- test_unlinkat_s.sh | 27 +++ 1 file changed, 27 insertions(+) create mode 100755 test_unlinkat_s.sh diff --git a/test_unlinkat_s.sh b/test_unlinkat_s.sh new file mode 100755 index 000.

[PATCH 1/5] WIP: Add syscall unlinkat_s (currently x86* only)

2015-02-02 Thread Alexander Holler
Signed-off-by: Alexander Holler --- arch/x86/syscalls/syscall_32.tbl | 1 + arch/x86/syscalls/syscall_64.tbl | 1 + fs/namei.c| 38 ++- include/asm-generic/audit_dir_write.h | 1 + include/linux/fs.h| 1

[PATCH 0/5] RFC: Offer a way for userspace to request real deletion of files

2015-02-02 Thread Alexander Holler
Hello, some people already might have noticed that I've got a bit angry that no filesystem nor the posix api nor the linux syscalls are offering the userspace a way to request real deletion of one or more files (there's the 's' bit, see man chattr, but it is ignored by all FS which know it). Alm

Re: [PATCH] kprobes/x86: Use the current code when modified by Kprobes using ftrace

2015-02-02 Thread Petr Mladek
On Mon 2015-02-02 15:57:20, Petr Mladek wrote: > On Mon 2015-02-02 17:40:10, Masami Hiramatsu wrote: > > (2015/01/31 0:45), Petr Mladek wrote: > > > can_probe() checks if the given address points to the beginning of > > > an instruction. It analyzes all the instructions from the beginning > > > of

[RFC PATCH] mm: madvise: Ignore repeated MADV_DONTNEED hints

2015-02-02 Thread Mel Gorman
glibc malloc changed behaviour in glibc 2.10 to have per-thread arenas instead of creating new areans if the existing ones were contended. The decision appears to have been made so the allocator scales better but the downside is that madvise(MADV_DONTNEED) is now called for these per-thread areans

Re: [PATCH v5] perf: Use monotonic clock as a source for timestamps

2015-02-02 Thread Pawel Moll
Afternoon, Peter, On Wed, 2015-01-21 at 20:27 +, Pawel Moll wrote: > Until now, perf framework never defined the meaning of the timestamps > captured as PERF_SAMPLE_TIME sample type. The values were obtaining > from local (sched) clock, which is unavailable in userspace. This made > it impossi

Re: [RFCv3 2/2] dma-buf: add helpers for sharing attacher constraints with dma-parms

2015-02-02 Thread Daniel Vetter
On Thu, Jan 29, 2015 at 05:18:33PM -0500, Rob Clark wrote: > On Thu, Jan 29, 2015 at 2:26 PM, Russell King - ARM Linux > wrote: > > On Thu, Jan 29, 2015 at 01:52:09PM -0500, Rob Clark wrote: > >> Quite possibly for some of these edge some of cases, some of the > >> dma-buf exporters are going to n

Re: [PATCH v2] staging: rtl8192u: r8192U_core: Fix for possible null pointer dereference

2015-02-02 Thread Sudip Mukherjee
On Thu, Jan 29, 2015 at 07:59:12PM +0100, Rickard Strandqvist wrote: > Fix a possible null pointer dereference, there is > otherwise a risk of a possible null pointer dereference. > > This was found using a static code analysis program called cppcheck > > Signed-off-by: Rickard Strandqvist > ---

Re: [PATCH 3/5] iommu: Limit iommu_attach/detach_device to devices with their own group

2015-02-02 Thread Will Deacon
On Fri, Jan 30, 2015 at 12:28:14PM +, Joerg Roedel wrote: > On Wed, Jan 28, 2015 at 02:35:24PM +, Will Deacon wrote: > > On Tue, Jan 27, 2015 at 12:08:57AM +, Joerg Roedel wrote: > > > @@ -51,6 +51,7 @@ struct iommu_group { > > > void (*iommu_data_release)(void *iommu_data); > > > c

Re: [PATCH v13 4/6] clk: Add rate constraints to clocks

2015-02-02 Thread Tony Lindgren
t;rate during __clk_init()? That would make this call to > >> >> clk_core_set_rate_nolock() a nop in this case. > >> >> > >> > > >> > Here's a patch to do this > >> > > >> > ---8< > >> > From: Stephen Boy

Re: [PATCH v4 01/13] clk: samsung: exynos5433: Add binding document for Exynos5433 clock domains

2015-02-02 Thread Chanwoo Choi
Hi Sylwester, On Tue, Feb 3, 2015 at 1:25 AM, Sylwester Nawrocki wrote: > Hi Chanwoo, > > On 02/02/15 16:51, Chanwoo Choi wrote: >> On Mon, Feb 2, 2015 at 11:40 PM, Sylwester Nawrocki >> wrote: >>> > On 02/02/15 15:08, Chanwoo Choi wrote: >>> > >> OK, I'll add more following information: >>

Re: [PATCH net-next] drivers: net: cpsw: make cpsw_ale.c a module to allow re-use on Keystone

2015-02-02 Thread Tony Lindgren
* Arnd Bergmann [150129 15:51]: > On Thursday 29 January 2015 18:15:51 Murali Karicheri wrote: > > NetCP on Keystone has cpsw ale function similar to other TI SoCs > > and this driver is re-used. To allow both ti cpsw and keystone netcp > > to re-use the driver, convert the cpsw ale to a module an

Re: [PATCH 0/6] randomize kernel physical address and virtual address separately

2015-02-02 Thread H. Peter Anvin
On 01/20/2015 07:37 PM, Baoquan He wrote: Leftover problem: hpa want to see the physical randomization can cover the whole physical memory. I checked code and found it's hard to do. Because in arch/x86/boot/compressed/head_64.S an identity mapping of 4G is built and then kaslr and decompr

Re: [PATCH 0/3] crypto: algif - change algif_skcipher to be asynchronous

2015-02-02 Thread Stephan Mueller
Am Montag, 2. Februar 2015, 07:03:02 schrieb Tadeusz Struk: Hi Tadeusz, >On 02/01/2015 10:31 AM, Stephan Mueller wrote: >> Hi Tadeusz, >> >>> > The way the algif_skcipher works currently is that on >>> > sendmsg/sendpage it builds an sgl for the input data and then on >>> > read/recvmsg it sends

Re: [PATCH] staging: gdm724x: gdm_tty: Fix for possible null pointer dereference

2015-02-02 Thread Sudip Mukherjee
On Thu, Jan 29, 2015 at 07:46:10PM +0100, Rickard Strandqvist wrote: > Fix a possible null pointer dereference, there is > otherwise a risk of a possible null pointer dereference. > > This was found using a static code analysis program called cppcheck > > Signed-off-by: Rickard Strandqvist > ---

Re: [PATCH] i915: stack address leak when failing to read registers.

2015-02-02 Thread Greg KH
On Mon, Feb 02, 2015 at 02:58:36PM +0100, Quentin Casasnovas wrote: > It is possible for the *_read*() functions to fail, in which case it'll > leave its third argument untouched. Most of the code do not check the > return value of *_read*() functions, and will happily use garbage from the > stack

Re: [PATCH] pci-dma: Fix x86 dma_alloc_coherent to fully clear all pages returned

2015-02-02 Thread Sergei Shtylyov
Hello. On 02/02/2015 05:02 PM, Jiri Slaby wrote: From: Tim Chen Subject: [PATCH] pci-dma: Fix x86 dma_alloc_coherent to fully clear all pages returned Commit d92ef66c4f8f ("x86: make dma_alloc_coherent() return zeroed memory if CMA is enabled") changed the dma_alloc_coherent page clearanc

[PATCH] mm/swapfile.c: use spin_lock_bh with swap_lock to avoid deadlocks

2015-02-02 Thread pasi . sjoholm
From: Pasi Sjöholm It is possible to get kernel in deadlock-state if swap_lock is not locked with spin_lock_bh by calling si_swapinfo() simultaneously through timer_function and registered vm shinker callback-function. BUG: spinlock recursion on CPU#0, main/2447 lock: swap_lock+0x0/0x10, .magic:

[PATCH V2] x86, mce, amd: Enable interrupts by default if HW capable

2015-02-02 Thread Aravind Gopalakrishnan
We setup APIC vectors for threshold errors if interrupt_capable. However, we don't set interrupt_enable by default. Re-working threshold_restart_bank() here so that the first time we set up lvt_offset, we also set IntType to APIC. User is still allowed to disable interrupts through sysfs. While a

Re: [PATCH] PCI: Fix pcibios_update_irq misuse of irq number

2015-02-02 Thread Russell King - ARM Linux
On Wed, Jan 28, 2015 at 02:51:23PM +, Marc Zyngier wrote: > void __weak pcibios_update_irq(struct pci_dev *dev, int irq) > { > - dev_dbg(&dev->dev, "assigning IRQ %02d\n", irq); > - pci_write_config_byte(dev, PCI_INTERRUPT_LINE, irq); > + struct irq_data *d; > + > + d = irq_ge

Re: [PATCH v8 08/21] dt / chosen: Add linux,uefi-stub-generated-dtb property

2015-02-02 Thread Mark Rutland
On Mon, Feb 02, 2015 at 01:50:52PM +, Graeme Gregory wrote: > On Mon, Feb 02, 2015 at 01:40:33PM +, Leif Lindholm wrote: > > On Mon, Feb 02, 2015 at 08:45:36PM +0800, Hanjun Guo wrote: > > > When system supporting both DT and ACPI but firmware providing > > > no dtb, we can use this linux,u

[PATCH] leds: add hibernation callbacks

2015-02-02 Thread grygorii.strashko
From: Grygorii Strashko Setting a dev_pm_ops suspend/resume pair of callbacks but not a set of hibernation callbacks means those pm functions will not be called upon hibernation - that leads to system crash on ARM during freezing if gpio-led is used in combination with CPU led trigger. It may hap

randconfig build error with next-20150202, in drivers/media/usb/dvb-usb/dib0700_devices.c

2015-02-02 Thread Jim Davis
Building with the attached random configuration file, drivers/built-in.o: In function `stk7700p_tuner_attach': dib0700_devices.c:(.text+0x85e1d7): undefined reference to `dib7000m_get_i2c_master' drivers/built-in.o: In function `stk7700p_pid_filter': dib0700_devices.c:(.text+0x85e2e5): undefined r

[PATCH v2] x86/devicetree: Fix build for amd64

2015-02-02 Thread Ricardo Ribalda Delgado
apic_force_enable is not defined for amd64. Without this patch: LD init/built-in.o arch/x86/built-in.o: In function `dtb_lapic_setup': kernel/devicetree.c:155: undefined reference to `apic_force_enable' Makefile:923: recipe for target 'vmlinux' failed make: *** [vmlinux] Error 1 Signed-off-

Re: [PATCH] phy: qcom-ufs: export symbols needed by main drivers

2015-02-02 Thread h...@lst.de
On Mon, Feb 02, 2015 at 03:30:27PM +, James Bottomley wrote: > Cc added for linux-scsi, since this is the origin of the problem. How > important is bisectability in this? It won't affect any non-embedded > user, since most don't build with UFS, so I can go either way on folding > or just appl

Re: [PATCH v4 01/13] clk: samsung: exynos5433: Add binding document for Exynos5433 clock domains

2015-02-02 Thread Sylwester Nawrocki
Hi Chanwoo, On 02/02/15 16:51, Chanwoo Choi wrote: > On Mon, Feb 2, 2015 at 11:40 PM, Sylwester Nawrocki > wrote: >> > On 02/02/15 15:08, Chanwoo Choi wrote: >> > >>> >> OK, I'll add more following information: >>> >> I'll send only patch1 with following information. >>> >> >>> >> + - clocks: lis

Re: [PATCH] PCI: Fix pcibios_update_irq misuse of irq number

2015-02-02 Thread Marc Zyngier
On 02/02/15 15:57, Bjorn Helgaas wrote: > On Wed, Jan 28, 2015 at 8:51 AM, Marc Zyngier wrote: >> pcibios_update_irq writes an irq number into the config space >> of a given PCI device, but ignores the fact that this number >> is a virtual interrupt number, which might be a very different >> value

[PATCH] mtd: Expose partition offset to the drivers

2015-02-02 Thread Ricardo Ribalda Delgado
Currently, there is no way to find out the offset of an mtd partition by a driver. This might be needed by external hardware. For example, a flash containing the firmware of an external device that is also accessible by the main cpu/kernel. The flash is big enough to have two partitions with 2 ve

Re: [PATCH 0/1] futex: check PF_KTHREAD rather than !p->mm to filter out kthreads

2015-02-02 Thread Oleg Nesterov
On 02/02, Peter Zijlstra wrote: > > On Mon, Feb 02, 2015 at 03:05:15PM +0100, Oleg Nesterov wrote: > > > IIUC, the fact that we can abuse ->pi_state_list is not that bad, no matter > > if this (k)thread will exit or not. AFAICS, the only problem is that we can > > boost the prio of this thread. Or

Re: Clock Regression in next-20150130 caused by cb75a8fcd14e

2015-02-02 Thread Tony Lindgren
* Mike Turquette [150201 15:29]: > Quoting Tony Lindgren (2015-01-30 17:04:44) > > Hi all, > > > > Looks like commit cb75a8fcd14e ("clk: Add rate constraints to clocks") > > causes a regression on at least omaps where the serial console either > > does not show anything, or just prints garbage. >

Re: [PATCH] PCI: Fix pcibios_update_irq misuse of irq number

2015-02-02 Thread Bjorn Helgaas
On Mon, Feb 2, 2015 at 10:15 AM, Marc Zyngier wrote: > On 28/01/15 15:43, Bjorn Helgaas wrote: >> On Wed, Jan 28, 2015 at 9:27 AM, Marc Zyngier wrote: >>> Hi Gerry, >>> >>> On 28/01/15 15:21, Jiang Liu wrote: On 2015/1/28 22:51, Marc Zyngier wrote: > pcibios_update_irq writes a

[capabilities] Allow normal inheritance for a configurable set of capabilities

2015-02-02 Thread Christoph Lameter
Linux capabilities suffer from the problem that they are not inheritable like regular process characteristics under Unix. This is behavior that is counter intuitive to the expected behavior of processes in Unix. In particular there has been recently software that controls NICs from user space and

Re: [lm-sensors] [PATCH] hwmon: (ads7828) Make sample interval configurable

2015-02-02 Thread Guenter Roeck
On Mon, Feb 02, 2015 at 09:12:57AM +0100, Robert Rosengren wrote: > On 01/31/2015 09:11 PM, Guenter Roeck wrote: > >On 01/29/2015 11:30 AM, Guenter Roeck wrote: > >>On Thu, Jan 29, 2015 at 01:07:10PM +0100, Robert Rosengren wrote: > Is your hardware big endian or little endian ? > >>>CONFIG_CPU

Re: [PATCH] x86/devicetree: Fix build for amd64

2015-02-02 Thread Ricardo Ribalda Delgado
Hello, That is also an option, but I thought this was cleaner. If you prefer it that way I can prepare a patch. Regards On Mon, Feb 2, 2015 at 5:14 PM, Jiang Liu wrote: > Hi Ricardo, > How about defining a version of apic_force_enable() > for X86_64 in apic.h which just return failure?

Re: [PATCH] PCI: Fix pcibios_update_irq misuse of irq number

2015-02-02 Thread Marc Zyngier
On 28/01/15 15:43, Bjorn Helgaas wrote: > On Wed, Jan 28, 2015 at 9:27 AM, Marc Zyngier wrote: >> Hi Gerry, >> >> On 28/01/15 15:21, Jiang Liu wrote: >>> >>> >>> On 2015/1/28 22:51, Marc Zyngier wrote: pcibios_update_irq writes an irq number into the config space of a given PCI device, b

Re: [PATCH] x86/devicetree: Fix build for amd64

2015-02-02 Thread Jiang Liu
Hi Ricardo, How about defining a version of apic_force_enable() for X86_64 in apic.h which just return failure? Regards! Gerry On 2015/2/2 23:50, Ricardo Ribalda Delgado wrote: > apic_force_enable is not defined for amd64. > > Without this patch: > > LD init/built-in.o > arch/x86/bu

Re: [PATCH v4 6/6] KVM: nVMX: Enable nested posted interrupt processing

2015-02-02 Thread Paolo Bonzini
On 02/02/2015 16:33, Wincy Van wrote: > static void vmx_accomp_nested_posted_intr(struct kvm_vcpu *vcpu) > { > struct vcpu_vmx *vmx = to_vmx(vcpu); > > if (is_guest_mode(vcpu) && > vmx->nested.posted_intr_nv != -1 && > pi_test_on(vmx->nested.pi_desc)) >

Re: Linux 3.19-rc3

2015-02-02 Thread Paul E. McKenney
On Tue, Jan 20, 2015 at 09:03:12AM -0500, Peter Hurley wrote: > On 01/19/2015 07:30 PM, Paul E. McKenney wrote: > > On Tue, Jan 06, 2015 at 12:47:53PM -0800, Paul E. McKenney wrote: > >> On Tue, Jan 06, 2015 at 02:57:37PM -0500, Peter Hurley wrote: > > > > [ . . . ] > > > >> David Miller's call,

Re: [PATCH v4 3/6] of: fix size when dma-range is not used

2015-02-02 Thread Murali Karicheri
On 02/02/2015 07:18 AM, Catalin Marinas wrote: On Fri, Jan 30, 2015 at 06:06:27PM +, Murali Karicheri wrote: On 01/28/2015 12:30 PM, Catalin Marinas wrote: I think we can remove this check altogether (we leaved without it for a while) but we need to add 1 when calculating the mask:

RE: [PATCH v8 1/2] x86: Add Isolated Memory Regions for Quark X1000

2015-02-02 Thread Ong, Boon Leong
Tested v8 with Galileo Gen v2. Log below: root@quark:~# dmesg | grep imr [3.712804] imr: protecting kernel .text - .rodata: 9244 KiB (c100 - c1907000) [3.721338] imr_selftest: pass zero sized IMR [3.726374] imr_selftest: pass overlapped IMR @ (0xc100 - 0xc1907000) [3.73416

[PATCH] floppy: Avoid manual call of device_create_file()

2015-02-02 Thread Takashi Iwai
Use the static attribute groups assigned to the device instead of calling device_create_file() after the device registration. Signed-off-by: Takashi Iwai --- drivers/block/floppy.c | 17 - 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/drivers/block/floppy.c b/driv

Re: [PATCH] PCI: Fix pcibios_update_irq misuse of irq number

2015-02-02 Thread Jiang Liu
On 2015/2/2 23:57, Bjorn Helgaas wrote: > On Wed, Jan 28, 2015 at 8:51 AM, Marc Zyngier wrote: >> pcibios_update_irq writes an irq number into the config space >> of a given PCI device, but ignores the fact that this number >> is a virtual interrupt number, which might be a very different >> value

Re: SPDX-License-Identifier

2015-02-02 Thread Greg Kroah-Hartman
On Mon, Feb 02, 2015 at 04:43:14PM +0100, Stefan Roese wrote: > On 21.02.2014 17:18, Michal Simek wrote: > >On 02/21/2014 05:12 PM, Felipe Balbi wrote: > >>On Fri, Feb 21, 2014 at 05:04:26PM +0100, Michal Simek wrote: > >>>On 02/21/2014 05:04 PM, Greg Kroah-Hartman wrote: > On Fri, Feb 21, 2014

Re: [PATCH] clk: Add tracepoints for hardware operations

2015-02-02 Thread Steven Rostedt
On Fri, 30 Jan 2015 16:16:11 -0800 Stephen Boyd wrote: > It's useful to have tracepoints around operations that change the > hardware state so that we can debug clock hardware performance > and operations. Four basic types of events are supported: on/off > events for enable, disable, prepare, unp

Re: [BUG]rmmod null_blk lead to general protection fault on 3.19.0-rc6

2015-02-02 Thread Jinpu Wang
On Mon, Feb 2, 2015 at 4:54 PM, Jens Axboe wrote: > On 02/02/2015 06:50 AM, Jinpu Wang wrote: >> Hi Jens, >> >> I found 2 patches commits (74170118b & e09aae7e)from >> https://urldefense.proofpoint.com/v1/url?u=https://git.kernel.org/cgit/linux/kernel/git/axboe/linux-block.git/log/?h%3Dfor-linus&k

Re: [PATCH] PCI: Fix pcibios_update_irq misuse of irq number

2015-02-02 Thread Bjorn Helgaas
On Wed, Jan 28, 2015 at 8:51 AM, Marc Zyngier wrote: > pcibios_update_irq writes an irq number into the config space > of a given PCI device, but ignores the fact that this number > is a virtual interrupt number, which might be a very different > value from what the underlying hardware is using. >

Re: [BUG]rmmod null_blk lead to general protection fault on 3.19.0-rc6

2015-02-02 Thread Jens Axboe
On 02/02/2015 06:50 AM, Jinpu Wang wrote: > Hi Jens, > > I found 2 patches commits (74170118b & e09aae7e)from > https://urldefense.proofpoint.com/v1/url?u=https://git.kernel.org/cgit/linux/kernel/git/axboe/linux-block.git/log/?h%3Dfor-linus&k=ZVNjlDMF0FElm4dQtryO4A%3D%3D%0A&r=3JMVyziIyZtZ5cv9eWNLw

Re: [PATCH v4 01/13] clk: samsung: exynos5433: Add binding document for Exynos5433 clock domains

2015-02-02 Thread Chanwoo Choi
Hi Sylwester, On Mon, Feb 2, 2015 at 11:40 PM, Sylwester Nawrocki wrote: > On 02/02/15 15:08, Chanwoo Choi wrote: > >> OK, I'll add more following information: >> I'll send only patch1 with following information. >> >> + - clocks: list of clock identifiers which are fed as the input to >> +

[PATCH] x86/devicetree: Fix build for amd64

2015-02-02 Thread Ricardo Ribalda Delgado
apic_force_enable is not defined for amd64. Without this patch: LD init/built-in.o arch/x86/built-in.o: In function `dtb_lapic_setup': kernel/devicetree.c:155: undefined reference to `apic_force_enable' Makefile:923: recipe for target 'vmlinux' failed make: *** [vmlinux] Error 1 Signed-off-

[PATCH 2/5 v4] tracing: Convert the tracing facility over to use tracefs

2015-02-02 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" debugfs was fine for the tracing facility as a quick way to get an interface. Now that tracing has matured, it should separate itself from debugfs such that it can be mounted separately without needing to mount all of debugfs with it. That is, users resist using t

[PATCH 1/5 v4] tracefs: Add new tracefs file system

2015-02-02 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" Add a separate file system to handle the tracing directory. Currently it is part of debugfs, but that is starting to show its limits. One thing is that in order to access the tracing infrastructure, you need to mount debugfs. As that includes debugging from all s

[PATCH v2] spi: atmel: cleanup wait_for_completion return handling

2015-02-02 Thread Nicholas Mc Guire
with at91_dt_defconfig (implies CONFIG_SPI_ATMEL=y) Patch is against 3.19.0-rc6 (localversion-next = -next-20150202) drivers/spi/spi-atmel.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c index 23d8f5f5..9af7841 10064

Re: SPDX-License-Identifier

2015-02-02 Thread Stefan Roese
On 21.02.2014 17:18, Michal Simek wrote: On 02/21/2014 05:12 PM, Felipe Balbi wrote: On Fri, Feb 21, 2014 at 05:04:26PM +0100, Michal Simek wrote: On 02/21/2014 05:04 PM, Greg Kroah-Hartman wrote: On Fri, Feb 21, 2014 at 07:38:16AM +0100, Michal Simek wrote: BTW: u-boot started to use SPDX-Li

[PATCH 3/5 v4] tracing: Automatically mount tracefs on debugfs/tracing

2015-02-02 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" As tools currently rely on the tracing directory in debugfs, we can not just created a tracefs infrastructure and expect sysadmins to mount the new tracefs to have their old tools work. Instead, the debugfs tracing directory is still created and the tracefs file

[PATCH 5/5 v4] tracing: Have mkdir and rmdir be part of tracefs

2015-02-02 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" The tracing "instances" directory can create sub tracing buffers with mkdir, and remove them with rmdir. As a mkdir will also create all the files and directories that control the sub buffer the inode mutexes need to be released before this is done, to avoid deadl

[PATCH 4/5 v4] tracefs: Add directory /sys/kernel/tracing

2015-02-02 Thread Steven Rostedt
From: "Steven Rostedt (Red Hat)" When tracefs is configured, have the directory /sys/kernel/tracing appear just like /sys/kernel/debug appears when debugfs is configured. This will give a consistent place for system admins to mount tracefs. Acked-by: Greg Kroah-Hartman Signed-off-by: Steven Ro

Re: [PATCH] Add ARCH_MIGHT_HAVE_VGA_CONSOLE

2015-02-02 Thread Yoshinori Sato
At Mon, 2 Feb 2015 09:10:06 +0100, Geert Uytterhoeven wrote: > > Hi Sato-san, > > > On Mon, Feb 2, 2015 at 8:24 AM, Yoshinori Sato > wrote: > > The dependence of VGA_CONSOLE is complicated. > > We need clean up. > > Thanks! > > > Signed-off-by: Yoshinori Sato > > > > --- > > arch/alpha/Kcon

[PATCH 0/5 v4] tracing: Add new file system tracefs

2015-02-02 Thread Steven Rostedt
Al, Seems we never came up with a solution to how to have mkdir create new files without locking issues. I would like to keep the file creation interface separate from the rest of the tracing code and not have the two coupled tightly. That is, I do not plan on replacing locks like trace_type_lock

Re: [PATCH] tun: orphan an skb on tx

2015-02-02 Thread David Woodhouse
On Mon, 2015-02-02 at 16:23 +0100, Phil Sutter wrote: > Since you want to provide connectivity over HTTPS which is not possible > in kernel space, you are stuck with keeping the tun device. So the > packet flow in that case is identical to how e.g. OpenVPN does it: > > - tunX holds default route >

Re: [PATCH v1 5/7] thermal: add trace events to the power allocator governor

2015-02-02 Thread Javi Merino
On Wed, Jan 28, 2015 at 05:31:06PM +, Steven Rostedt wrote: > On Wed, 28 Jan 2015 17:00:36 + > Javi Merino wrote: > > > + if (trace_thermal_power_cpu_limit_enabled() && load_cpu) { > > + trace_thermal_power_cpu_get_power( > > + &cpufreq_device->allowed_cpus,

Re: [PATCH -mm] memcg: cleanup static keys decrement

2015-02-02 Thread Michal Hocko
On Mon 02-02-15 14:45:27, Vladimir Davydov wrote: > Move memcg_socket_limit_enabled decrement to tcp_destroy_cgroup (called > from memcg_destroy_kmem -> mem_cgroup_sockets_destroy) and zap a bunch > of wrapper functions. > > Although this patch moves static keys decrement from __mem_cgroup_free >

Re: [PATCH 06/20] staging/lustre: fix comparison between signed and unsigned

2015-02-02 Thread Greg Kroah-Hartman
On Mon, Feb 02, 2015 at 04:02:31PM +0300, Dan Carpenter wrote: > On Sun, Feb 01, 2015 at 09:52:05PM -0500, gr...@linuxhacker.ru wrote: > > From: Dmitry Eremin > > > > Expression if (size != (ssize_t)size) is always false. > > Therefore no bounds check errors detected. > > The original code actua

Re: [RFC][PATCH 2/3] perf: Add a bit of paranoia

2015-02-02 Thread Peter Zijlstra
On Mon, Feb 02, 2015 at 01:33:14AM -0500, Vince Weaver wrote: > On Thu, 29 Jan 2015, Peter Zijlstra wrote: > > > That said, it does need to do that sibling first leaders later install > > order too. So I've put the below on top. > > so I've lost track of exactly which patches I should be running

Re: [RESEND PATCH v2] [media] Add RGB444_1X12 and RGB565_1X16 media bus formats

2015-02-02 Thread Mauro Carvalho Chehab
Em Mon, 02 Feb 2015 16:32:07 +0100 Boris Brezillon escreveu: > Hi Mauro, > > On Mon, 02 Feb 2015 12:57:55 -0200 > Mauro Carvalho Chehab wrote: > > > Em Tue, 6 Jan 2015 12:43:35 +0100 > > Boris Brezillon escreveu: > > > > > Add RGB444_1X12 and RGB565_1X16 format definitions and update the >

Re: [PATCH 2/2] user_namespaces.7: Update the documention to reflect the fixes for negative groups

2015-02-02 Thread Michael Kerrisk (man-pages)
Hi Eric, Thanks for writing this up! On 12/12/2014 10:54 PM, Eric W. Biederman wrote: > > Files with access permissions such as ---rwx---rwx give fewer > permissions to their group then they do to everyone else. Which means > dropping groups with setgroups(0, NULL) actually grants a process > p

Re: [PATCH v4] thermal: Add QPNP PMIC temperature alarm driver

2015-02-02 Thread Stanimir Varbanov
On 02/02/2015 05:19 PM, Ivan T. Ivanov wrote: > Add support for the temperature alarm peripheral found inside > Qualcomm plug-and-play (QPNP) PMIC chips. The temperature alarm > peripheral outputs a pulse on an interrupt line whenever the > thermal over temperature stage value changes. > > Registe

Re: [PATCH 1/2] arm64: adding cpu lookup functionality

2015-02-02 Thread Mark Rutland
On Fri, Jan 30, 2015 at 10:54:25PM +, mathieu.poir...@linaro.org wrote: > From: Mathieu Poirier > > Adding a lookup function allowing for quick and easy mapping > between processor HWID (as found, for example) in DT specifications > and the CPU index known to the kernel. > > Signed-off-by: M

Re: [PATCH 1/2] proc.5: Document /proc/[pid]/setgroups

2015-02-02 Thread Michael Kerrisk (man-pages)
[Adding Josh to CC in case he has anything to add.] On 12/12/2014 10:54 PM, Eric W. Biederman wrote: > > Signed-off-by: Eric W. Biederman > --- > man5/proc.5 | 15 +++ > 1 file changed, 15 insertions(+) > > diff --git a/man5/proc.5 b/man5/proc.5 > index 96077d0dd195..d661e8cfeac9 1

Re: [PATCH] umount.2: Document the effect of shared subtrees on umount

2015-02-02 Thread Michael Kerrisk (man-pages)
On 10/28/2014 06:33 PM, Eric W. Biederman wrote: > > Signed-off-by: Eric W. Biederman Thanks, Eric. Again, sorry for the delay. I've applied this patch. Cheers, Michael > --- > man2/umount.2 | 18 ++ > 1 file changed, 18 insertions(+) > > diff --git a/man2/umount.2 b/man2/u

Re: Linux 3.19-rc5

2015-02-02 Thread Peter Zijlstra
On Sun, Feb 01, 2015 at 12:09:32PM -0800, Linus Torvalds wrote: > Now, I have the patch that removes that thing (but I was hoping to get > it from the scheduler tree before doing rc7, which seems to not have > happened), but yes, that together with your patch seems like it should > fix all the nast

Re: [PATCH] umount.2: Correct the description of MNT_DETACH

2015-02-02 Thread Michael Kerrisk (man-pages)
On 09/30/2014 03:04 AM, Eric W. Biederman wrote: > > I recently realized that I had been reasoning improperly about what > umount(MNT_DETACH) did based on an insufficient description in > the umount.2 man page, that matched my intuition but not the > implementation. > > When there are no submount

[no subject]

2015-02-02 Thread Tony
unsubscribe linux-kernel -- 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 http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH v4 6/6] KVM: nVMX: Enable nested posted interrupt processing

2015-02-02 Thread Wincy Van
On Mon, Feb 2, 2015 at 7:03 PM, Paolo Bonzini wrote: > > > On 28/01/2015 17:02, Wincy Van wrote: >> +static int vmx_deliver_nested_posted_interrupt(struct kvm_vcpu *vcpu, >> + int vector) >> +{ >> + if (is_guest_mode(vcpu) && >> + vecto

Re: [PATCH] Input: MT - Add support for balanced slot assignment

2015-02-02 Thread Benjamin Tissoires
On Feb 01 2015 or thereabouts, Henrik Rydberg wrote: > Hi Benjamin, > > > Tested this morning, and yes, it solves the problem. > > I assumed that the dmax was in mm, and used "10 * priv->x_res", which > > seemed to do the trick: > > - tapping with two fingers side by side triggered the jumps > > -

Re: [RESEND PATCH v2] [media] Add RGB444_1X12 and RGB565_1X16 media bus formats

2015-02-02 Thread Boris Brezillon
Hi Mauro, On Mon, 02 Feb 2015 12:57:55 -0200 Mauro Carvalho Chehab wrote: > Em Tue, 6 Jan 2015 12:43:35 +0100 > Boris Brezillon escreveu: > > > Add RGB444_1X12 and RGB565_1X16 format definitions and update the > > documentation. > > > > Signed-off-by: Boris Brezillon > > Acked-by: Mauro Car

Re: [PATCH] phy: qcom-ufs: export symbols needed by main drivers

2015-02-02 Thread James Bottomley
On Wed, 2015-01-28 at 17:18 +0100, Arnd Bergmann wrote: > The qcom ufs phy support is split into three separate loadable > modules, however none of the interfaces are exported, resulting > in a link error: > > ERROR: "ufs_qcom_phy_power_off" [drivers/phy/phy-qcom-ufs-qmp-20nm.ko] > undefined! > E

Re: [PATCH] tun: orphan an skb on tx

2015-02-02 Thread David Woodhouse
On Mon, 2015-02-02 at 09:24 +0100, Steffen Klassert wrote: > > Maybe you want to use a virtual tunnel interface (vti) what we have > already. Everything that is routed through such an interface is > guaranteed to be either encrypted if a matching xfrm state is present > or dropped. Same on the rce

Re: [PATCH] tun: orphan an skb on tx

2015-02-02 Thread Phil Sutter
Hi, On Mon, Feb 02, 2015 at 07:27:10AM +, David Woodhouse wrote: > On Sun, 2015-02-01 at 21:07 -0800, David Miller wrote: > > From: David Woodhouse > > Date: Sun, 01 Feb 2015 21:29:43 + > > > > > I really was looking for some way to push down something like an XFRM > > > state into the t

[PATCH v2 2/2] i2c: i2c-ocores: add common clock support

2015-02-02 Thread Max Filippov
Allow bus clock specification as a common clock handle. This makes this controller easier to use in a setup based on common clock framework. Signed-off-by: Max Filippov --- Changes v1->v2: - fix binding documentation; - make CCF support optional. .../devicetree/bindings/i2c/i2c-ocores.txt

[PATCH v2 1/2] i2c: i2c-ocores: fix clock-frequency binding usage

2015-02-02 Thread Max Filippov
clock-frequency property is meant to control the bus frequency for i2c bus drivers, but it was incorrectly used to specify i2c controller input clock frequency. Introduce new attribute, opencores,ip-clock-frequency, that specifies i2c controller clock frequency and make clock-frequency attribute co

[PATCH v2 0/2] i2c: i2c-ocores: clock improvements

2015-02-02 Thread Max Filippov
Peter, Wolfram, this series fixes clock-frequency attribute usage by i2c-ocores driver and adds optional common clock framework support. Changes v1->v2: - add cleanup patch for clock-frequency attribute that implements options 2 and 3, as was suggested here: https://lkml.org/lkml/2015/1/22/527

Re: [PATCHv4 00/36] perf tools: New build framework

2015-02-02 Thread David Ahern
On 2/2/15 3:32 AM, Jiri Olsa wrote: On Mon, Jan 26, 2015 at 11:12:00AM +0100, Jiri Olsa wrote: hi, I'm following up on latest post from Alexis: http://marc.info/?l=linux-kernel&m=141427580405357&w=2 thanks for feedback and testing! v4 changes: - updated to the current Arnaldo's perf/core

[PATCH 3/3] dm ioctl: Delete an unnecessary check before the function call "dm_table_destroy"

2015-02-02 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 2 Feb 2015 15:30:37 +0100 The dm_table_destroy() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- d

[PATCH 2/3] md/bitmap: Delete an unnecessary check before the function call "kfree"

2015-02-02 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 2 Feb 2015 15:10:57 +0100 The kfree() function tests whether its argument is NULL and then returns immediately. Thus the test around the call is not needed. * This issue was detected by using the Coccinelle software. * Let us also move an assignment for the varia

[PATCH v4] thermal: Add QPNP PMIC temperature alarm driver

2015-02-02 Thread Ivan T. Ivanov
Add support for the temperature alarm peripheral found inside Qualcomm plug-and-play (QPNP) PMIC chips. The temperature alarm peripheral outputs a pulse on an interrupt line whenever the thermal over temperature stage value changes. Register a thermal sensor. The temperature reported by this therm

[PATCH 1/3] dm snapshot: Deletion of unnecessary checks before the function call "vfree"

2015-02-02 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 2 Feb 2015 14:38:29 +0100 The vfree() function performs also input parameter validation. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/md/dm-snap-persistent.c | 1

<    1   2   3   4   5   6   7   8   9   >