[PATCH v3 07/59] dmaengine: split out pause/resume operations from device_control

2014-10-22 Thread Maxime Ripard
Split out the pause and resume operations to callbacks of their own. In order to preserve some backwark compatibility, the dmaengine_pause/dmaengine_resume are still falling back on dmaengine_device_control. Eventually, that will allow to get the device capabilities in a generic way, removing the

[PATCH v3 01/59] crypto: ux500: Use dmaengine_terminate_all API

2014-10-22 Thread Maxime Ripard
We are removing the dmaengine_device_control API, that shouldn't even have been exposed in the first place. Change the callers to use the proper API. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/crypto/ux500/cryp/cryp_core.c | 4 ++--

[PATCH v3 13/59] dmaengine: hdmac: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the Atmel HDMAC driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/dma/at_hdmac.c | 121

[PATCH v3 06/59] dmaengine: Introduce a device_config callback

2014-10-22 Thread Maxime Ripard
The fact that the channel configuration is done in device_control is rather misleading, since it's not really advertised as such, plus, the fact that the framework exposes a function of its own makes it not really intuitive, while we're losing the type checking whenever we pass that unsigned long

[PATCH v3 02/59] serial: at91: Use dmaengine_slave_config API

2014-10-22 Thread Maxime Ripard
We are removing the dmaengine_device_control API, that shouldn't even have been exposed in the first place. Change the callers to use the proper API. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/tty/serial/atmel_serial.c | 10 -- 1 file changed, 4

[PATCH v3 11/59] dmaengine: Move slave caps to dma_device

2014-10-22 Thread Maxime Ripard
The previous code was relying on the fact that the slave_caps were to be defined on a per channel basis. However, this proved to be a bit overkill, since every driver filling these so far were hardcoding it, disregarding which channel was actually given. Add these capabilities to the dma_device

Re: linux-next: Tree for Oct 22 (media/usb/dvb-usb/az6027)

2014-10-22 Thread Randy Dunlap
On 10/21/14 20:42, Stephen Rothwell wrote: Hi all, Changes since 20141021: on x86_64: when MEDIA_SUBDRV_AUTOSELECT is not enabled: when DVB_USB_AZ6027=y and DVB_STB0899=m and DVB_STB6100=m: drivers/built-in.o: In function `az6027_frontend_attach': az6027.c:(.text+0x18c50d): undefined

[PATCH v3 12/59] dmaengine: pl08x: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the AMBA PL08x DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/dma/amba-pl08x.c | 156

Re: [PATCH] ARM: supplementing IO accessors with 64 bit capability

2014-10-22 Thread Russell King - ARM Linux
On Wed, Oct 22, 2014 at 10:06:23AM -0600, mathieu.poir...@linaro.org wrote: @@ -306,10 +324,13 @@ extern void _memset_io(volatile void __iomem *, int, size_t); __raw_readw(c)); __r; }) #define readl_relaxed(c) ({ u32 __r = le32_to_cpu((__force __le32) \

[PATCH v3 15/59] dmaengine: coh901318: Split device_control

2014-10-22 Thread Maxime Ripard
Split the device_control callback of the ST-Ericsson COH901318 DMA driver to make use of the newly introduced callbacks, that will eventually be used to retrieve slave capabilities. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/dma/coh901318.c | 137

Re: [PATCH v4 3/7] [RFC] arm/arm64: introduce is_dma_coherent

2014-10-22 Thread Stefano Stabellini
On Mon, 13 Oct 2014, Stefano Stabellini wrote: On Mon, 13 Oct 2014, Will Deacon wrote: On Mon, Oct 13, 2014 at 12:16:14PM +0100, Stefano Stabellini wrote: On Fri, 10 Oct 2014, Stefano Stabellini wrote: On Fri, 10 Oct 2014, Will Deacon wrote: On Fri, Oct 10, 2014 at 12:51:44PM +0100,

[PATCH v3 09/59] dmaengine: Remove the need to declare device_control

2014-10-22 Thread Maxime Ripard
In order to migrate the drivers without triggering a BUG_ON for the converted drivers, which would cause bisectability issues, we need to remove that check before removing the device_control function entirely. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com ---

Re: [patch 4/4] mm: memcontrol: remove unnecessary PCG_USED pc-mem_cgroup valid flag

2014-10-22 Thread Michal Hocko
On Mon 20-10-14 11:22:12, Johannes Weiner wrote: pc-mem_cgroup had to be left intact after uncharge for the final LRU removal, and !PCG_USED indicated whether the page was uncharged. But since 0a31bc97c80c (mm: memcontrol: rewrite uncharge API) pages are uncharged after the final LRU removal.

[PATCH v3 04/59] dmaengine: Rework dma_chan_get

2014-10-22 Thread Maxime Ripard
dma_chan_get uses a rather interesting error handling and code path. Change it to something more usual in the kernel. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com --- drivers/dma/dmaengine.c | 36 +++- 1 file changed, 19 insertions(+), 17

Re: [patch 3/4] mm: memcontrol: remove unnecessary PCG_MEM memory charge flag

2014-10-22 Thread Vladimir Davydov
On Mon, Oct 20, 2014 at 11:22:11AM -0400, Johannes Weiner wrote: PCG_MEM is a remnant from an earlier version of 0a31bc97c80c (mm: memcontrol: rewrite uncharge API), used to tell whether migration cleared a charge while leaving pc-mem_cgroup valid and PCG_USED set. But in the final version,

[PATCH v3 00/59] dmaengine: Implement generic slave capabilities retrieval

2014-10-22 Thread Maxime Ripard
Hi, As we discussed a couple of weeks ago, this is the third attempt at creating a generic behaviour for slave capabilities retrieval so that generic layers using dmaengine can actually rely on that. That has been done mostly through two steps: by moving out the sub-commands of the

Re: [PATCH 4/18] block copy: initial XCOPY offload support

2014-10-22 Thread Douglas Gilbert
See below ... On 14-10-22 03:26 PM, Mikulas Patocka wrote: This is Martin Petersen's xcopy patch (https://git.kernel.org/cgit/linux/kernel/git/mkp/linux.git/commit/?h=xcopyid=0bdeed274e16b3038a851552188512071974eea8) with some bug fixes, ported to the current kernel. This patch makes it

[PATCH v3 03/59] dmaengine: Make the destination abbreviation coherent

2014-10-22 Thread Maxime Ripard
The dmaengine header abbreviates destination as at least two different strings. Make a coherent use of a single one. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com Acked-by: Mark Brown broo...@kernel.org Acked-by: Laurent Pinchart laurent.pinch...@ideasonboard.com Acked-by: Stephen

[PATCH v3 08/59] dmaengine: Add device_terminate_all callback

2014-10-22 Thread Maxime Ripard
Split out the terminate_all command from device_control to a dma_device callback. In order to preserve backward capability, still rely on device_control if no such callback has been implemented. Eventually, this will allow to create a generic dma_slave_caps callback. Signed-off-by: Maxime Ripard

Re: [PATCH] mips: add arch_trigger_all_cpu_backtrace() function

2014-10-22 Thread Ralf Baechle
On Wed, Oct 22, 2014 at 06:39:56AM +, Eunbong Song wrote: Applying - but: + if(regs) ^^^ There should be a blank between if and opening parenthesis. Ralf -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to

Re: [PATCH v3] sched/numa: fix unsafe get_task_struct() in task_numa_assign()

2014-10-22 Thread Oleg Nesterov
On 10/22, Peter Zijlstra wrote: So I worry about cache aliasing (not an issue on x86), so by touching 'random' pages that might be freed and reissued to back userspace, we could be accessing the one page through multiple virtual mappings which therefore result in aliases. Or this page can be

Re: [PATCH] i8k: Ignore temperature sensors which report invalid values

2014-10-22 Thread Guenter Roeck
On Wed, Oct 22, 2014 at 02:29:06PM +0200, Pali Rohár wrote: On Tuesday 21 October 2014 06:27:23 Guenter Roeck wrote: On 10/20/2014 09:46 AM, Pali Rohár wrote: Ok, I will describe my problem. Guenter, maybe you can find another solution/fix for it. Calling i8k_get_temp(3) on my

perf: Translating mmap2 ids into socket info?

2014-10-22 Thread Don Zickus
Hi, A question/request came up during our cache to cache analysis. We were wondering if give an unique mmap2 id (major, minor, inode, inode generation), if it was possible to determine a cpu socket id that memory was attached to at the time of the captured perf event? We ran into a scenario

Re: [PATCH] ARM: supplementing IO accessors with 64 bit capability

2014-10-22 Thread Mathieu Poirier
On 22 October 2014 18:11, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Wed, Oct 22, 2014 at 10:06:23AM -0600, mathieu.poir...@linaro.org wrote: @@ -306,10 +324,13 @@ extern void _memset_io(volatile void __iomem *, int, size_t);

Re: [PATCH 00/12] rtc: omap: fixes and power-off feature

2014-10-22 Thread Johan Hovold
On Wed, Oct 22, 2014 at 08:29:56AM -0700, Tony Lindgren wrote: * Johan Hovold jo...@kernel.org [141022 04:12]: On Sat, Oct 11, 2014 at 12:08:18PM -0700, Tony Lindgren wrote: * Johan Hovold jo...@kernel.org [141011 02:42]: On Fri, Oct 10, 2014 at 12:54:22PM -0500, Felipe Balbi wrote:

[PATCH v1 3/3] tpm: fix multiple race conditions in tpm_ppi.c

2014-10-22 Thread Jarkko Sakkinen
Traversal of the ACPI device tree was not done right. It should lookup PPI only under the ACPI device that it is associated. Otherwise, it could match to a wrong PPI interface if there are two TPM devices in the device tree. Removed global ACPI handle and version string from tpm_ppi.c as this is

[PATCH v1 0/3] tpm: prepare for TPM2

2014-10-22 Thread Jarkko Sakkinen
This patch set fixes two race conditions in the TPM subsystem: * Two-phase initialization for struct tpm_chip so that device can initialize fully initialize before exposing itself to the user space. Also, in future TPM2 devices must be flagged before they can be registered. * Machines where

[PATCH v1 1/3] tpm: merge duplicate transmit_cmd() functions

2014-10-22 Thread Jarkko Sakkinen
Merged transmit_cmd() functions in tpm-interface.c and tpm-sysfs.c. Added tpm_ prefix for consistency sake. Changed cmd parameter as opaque. This enables to use separate command structures for TPM1 and TPM2 commands in future. Loose coupling works fine here. Signed-off-by: Jarkko Sakkinen

Re: [PATCH v2] staging: skein: Loadable Module Support

2014-10-22 Thread Jason Cooper
On Wed, Oct 22, 2014 at 10:54:26AM -0500, Eric Rost wrote: On Wed, 2014-10-22 at 11:10 -0400, Jason Cooper wrote: At some point, Eric Rost wrote: ... diff --git a/drivers/staging/skein/Makefile b/drivers/staging/skein/Makefile index a14aadd..1be01fe 100644 ---

[PATCH v1 2/3] tpm: two-phase chip management functions

2014-10-22 Thread Jarkko Sakkinen
tpm_register_hardware() and tpm_remove_hardware() are called often before initializing the device. This is wrong order since it could be that main TPM driver needs a fully initialized chip to be able to do its job. For example, now it is impossible to move common startup functions such as

[PATCH v2 2/4] ARM: imx: clk-vf610: get input clocks from assigned clocks

2014-10-22 Thread Stefan Agner
With the clock assignment device tree changes, the clocks get initialized properly but the search for those clocks fails with errors: [0.00] i.MX clk 4: register failed with -17 [0.00] i.MX clk 5: register failed with -17 This is because the module can't find those clocks

[PATCH v2 0/4] ARM: vf610: restructure device trees

2014-10-22 Thread Stefan Agner
This patchset is v2 of ARM: dts: vf500/vf610: support VF500 SoC, and grew by some patches. It now also solves some issues uncovered by the ARM: vf610m4: Add Vybrid Cortex-M4 support patchset. The next Cortex-M4 patchset will then base on this patchset. I could again not use the -M/-B parameter

[PATCH v2 4/4] ARM: dts: vf500-colibri: add Colibri VF50 support

2014-10-22 Thread Stefan Agner
Add Colibri VF50 device tree files vf500-colibri.dtsi and vf500-colibri-eval-v3.dts, in line with the Colibri VF61 device tree files. However, to minimize dupplication we also add vf-colibri.dtsi and vf-colibri-eval-v3.dtsi which contain the common device tree nodes. Signed-off-by: Stefan Agner

Re: [patch] mm: memcontrol: fix missed end-writeback accounting

2014-10-22 Thread Michal Hocko
On Tue 21-10-14 14:19:10, Johannes Weiner wrote: 0a31bc97c80c (mm: memcontrol: rewrite uncharge API) changed page migration to uncharge the old page right away. The page is locked, unmapped, truncated, and off the LRU. But it could race with a finishing writeback, which then doesn't get

[PATCH v2 3/4] ARM: dts: vf610: create generic base device trees

2014-10-22 Thread Stefan Agner
This adds more generic base device trees for Vybrid SoCs. There are three series of Vybrid SoC commonly available: - VF3xx series: single core, Cortex-A5 without external memory - VF5xx series: single core, Cortex-A5 - VF6xx series: dual core, Cortex-A5/Cortex-M4 The second digit represents the

[PATCH v2 1/4] ARM: dts: vf610: assign oscillator to clock module

2014-10-22 Thread Stefan Agner
The clock controller module (CCM) has several clock inputs, which are connected to external crystal oscillators. To reflect this, assign these fixed clocks to the CCM node directly. This especially resolves initialization order dependencies we had with the earlier initialization code: When

Re: [PATCH] m68k: Wire up bpf

2014-10-22 Thread Alexei Starovoitov
On Wed, Oct 22, 2014 at 12:48 AM, Geert Uytterhoeven ge...@linux-m68k.org wrote: Hi Alexei, On Tue, 21 Oct 2014, Alexei Starovoitov wrote: On Tue, Oct 21, 2014 at 10:30 AM, Geert Uytterhoeven ge...@linux-m68k.org wrote: Signed-off-by: Geert Uytterhoeven ge...@linux-m68k.org ---

Aw: [PATCH v1 0/3] tpm: prepare for TPM2

2014-10-22 Thread Peter Huewe
Hi Jarkko, Jarkko Sakkinen (3): tpm: merge duplicate transmit_cmd() functions tpm: two-phase chip management functions tpm: fix multiple race conditions in tpm_ppi.c the patchset introduces a sparse error: CHECK /home/phuewe/linux-2.6-host/drivers/char/tpm/tpm_tis.c

Re: [PATCH] i8k: Ignore temperature sensors which report invalid values

2014-10-22 Thread Pali Rohár
On Wednesday 22 October 2014 18:19:47 Guenter Roeck wrote: On Wed, Oct 22, 2014 at 02:29:06PM +0200, Pali Rohár wrote: On Tuesday 21 October 2014 06:27:23 Guenter Roeck wrote: On 10/20/2014 09:46 AM, Pali Rohár wrote: Ok, I will describe my problem. Guenter, maybe you can find

Re: [PATCH] mmc: dw_mmc: Remove old card detect infrastructure

2014-10-22 Thread Doug Anderson
Hi, On Sun, Oct 19, 2014 at 8:23 PM, Jaehoon Chung jh80.ch...@samsung.com wrote: Hi. On 10/17/2014 09:44 PM, Alim Akhtar wrote: Hi Doug, On Thu, Oct 16, 2014 at 9:40 PM, Doug Anderson diand...@chromium.org wrote: Alim, On Thu, Oct 16, 2014 at 5:57 AM, Alim Akhtar alim.akh...@gmail.com

Re: [PATCH v3] sched/numa: fix unsafe get_task_struct() in task_numa_assign()

2014-10-22 Thread Peter Zijlstra
On Wed, Oct 22, 2014 at 06:14:50PM +0200, Oleg Nesterov wrote: Hmm. so perhaps I misunderstood your concern... Do you mean that on !x86 a plain LOAD can corrupt the memory as it seen from another vaddr? I'm not sure. Stores for sure, loads I'm not sure about. I suspect loads are OK, the

Re: [PATCH v1 1/3] tpm: merge duplicate transmit_cmd() functions

2014-10-22 Thread Jason Gunthorpe
On Wed, Oct 22, 2014 at 07:23:54PM +0300, Jarkko Sakkinen wrote: Merged transmit_cmd() functions in tpm-interface.c and tpm-sysfs.c. Added tpm_ prefix for consistency sake. Changed cmd parameter as opaque. This enables to use separate command structures for TPM1 and TPM2 commands in future.

Re: [PATCH v3 1/5] regulator: of: Decrement refcount for suspend state nodes

2014-10-22 Thread Mark Brown
On Mon, Oct 20, 2014 at 04:47:48PM +0200, Javier Martinez Canillas wrote: of_get_regulation_constraints() calls of_get_child_by_name() to find the regulator-state-{mem,disk} child nodes for each regulator. This function increments the device node reference counter but this is not decremented

Re: [PATCH v2 11/12] perf/x86: make HT bug workaround conditioned on HT enabled

2014-10-22 Thread Stephane Eranian
On Wed, Oct 22, 2014 at 4:58 PM, Jiri Olsa jo...@redhat.com wrote: On Thu, Oct 09, 2014 at 06:34:45PM +0200, Stephane Eranian wrote: SNIP --- a/arch/x86/kernel/cpu/perf_event_intel.c +++ b/arch/x86/kernel/cpu/perf_event_intel.c @@ -12,6 +12,7 @@ #include linux/init.h #include

Re: [PATCH] ARM: supplementing IO accessors with 64 bit capability

2014-10-22 Thread Catalin Marinas
On Wed, Oct 22, 2014 at 05:06:23PM +0100, mathieu.poir...@linaro.org wrote: +#if __LINUX_ARM_ARCH__ = 5 My old ARMv5 book does not list LDRD/STRD. It looks like they only come with ARMv5TE. Are there any processors prior to this supported by the kernel? +static inline void __raw_writeq(u64

Re: perf: Translating mmap2 ids into socket info?

2014-10-22 Thread Peter Zijlstra
On Wed, Oct 22, 2014 at 12:20:26PM -0400, Don Zickus wrote: Hi, A question/request came up during our cache to cache analysis. We were wondering if give an unique mmap2 id (major, minor, inode, inode generation), if it was possible to determine a cpu socket id that memory was attached to

Re: [PATCH 00/12] rtc: omap: fixes and power-off feature

2014-10-22 Thread Tony Lindgren
* Johan Hovold jo...@kernel.org [141022 09:25]: On Wed, Oct 22, 2014 at 08:29:56AM -0700, Tony Lindgren wrote: * Johan Hovold jo...@kernel.org [141022 04:12]: On Sat, Oct 11, 2014 at 12:08:18PM -0700, Tony Lindgren wrote: * Johan Hovold jo...@kernel.org [141011 02:42]: On Fri, Oct

Re: [PATCH RFC] platform: hp_accel: add a i8042 filter to remove accelerometer data

2014-10-22 Thread Giedrius Statkevicius
On 2014.10.22 17:19, Éric Piel wrote: On the HP laptop I had (with HPQ0004), no fake keys were reported. I guess this is a new feature, then. It should be noted that on my laptop, the accelerometer is completely decoupled from the hard disk. For example, when freefall is detected, nothing

Re: [PATCH v8 07/18] vfio/platform: return info for device memory mapped IO regions

2014-10-22 Thread Alex Williamson
On Wed, 2014-10-22 at 15:54 +0200, Antonios Motakis wrote: On Tue, Oct 21, 2014 at 6:34 PM, Alex Williamson alex.william...@redhat.com wrote: On Mon, 2014-10-13 at 15:10 +0200, Antonios Motakis wrote: This patch enables the IOCTLs VFIO_DEVICE_GET_REGION_INFO ioctl call, which allows the

Re: [PATCH v3 4/5] regulator: max77802: Parse regulator operating mode properties

2014-10-22 Thread Mark Brown
On Mon, Oct 20, 2014 at 04:47:51PM +0200, Javier Martinez Canillas wrote: + char *states[PM_SUSPEND_MAX + 1] = { + [PM_SUSPEND_MEM] = regulator-state-mem, + [PM_SUSPEND_MAX] = regulator-state-disk, + }; This still has the same problem as your previous patch

Re: [PATCH 1/1] GPU-DRM-GMA500: Deletion of unnecessary checks before two function calls

2014-10-22 Thread SF Markus Elfring
If you are convinced that dropping the null tests is a good idea, then you can submit the patch that makes the change to the relevant maintainers and mailing lists. Would you like to integrate the following proposal into your source code repository? Regards, Markus From

Re: [RFC 2/4] PCI: generic: Add support for ARM64 and MSI(x)

2014-10-22 Thread Bjorn Helgaas
On Wed, Oct 22, 2014 at 9:59 AM, Lorenzo Pieralisi lorenzo.pieral...@arm.com wrote: ... I wonder what's the best course of action. Putting together all the bits and pieces required to remove PCI bios dependency from this patch can take a while, I wonder whether we should aim for merging this

Re: A desktop environment[1] kernel wishlist

2014-10-22 Thread Dan Streetman
On Tue, Oct 21, 2014 at 9:11 AM, Sergey ser...@elementaryos.org wrote: Hey everyone, I'm glad we're having some discussion on this, because we have almost exactly the same kernel wishlist internally for elementary OS / Pantheon DE. I believe I can further elaborate on the VFS monitoring

Re: [PATCH 1/1] pci: fix dmar fault for kdump kernel

2014-10-22 Thread Alexander Duyck
On 10/21/2014 07:47 PM, Bjorn Helgaas wrote: [+cc Joerg, Eric, Tom, David, iommu list] On Wed, Oct 15, 2014 at 2:14 AM, Takao Indoh indou.ta...@jp.fujitsu.com wrote: (2014/10/14 18:34), Li, ZhenHua wrote: I tested on the latest stable version 3.17, it works well. On 10/10/2014 03:13 PM,

Re: lockdep splat in CPU hotplug

2014-10-22 Thread Paul E. McKenney
On Wed, Oct 22, 2014 at 07:38:37AM -0700, Paul E. McKenney wrote: On Wed, Oct 22, 2014 at 11:53:49AM +0200, Jiri Kosina wrote: On Tue, 21 Oct 2014, Jiri Kosina wrote: Hi, I am seeing the lockdep report below when resuming from suspend-to-disk with current Linus' tree

Re: [PATCH v8 09/18] vfio/platform: support MMAP of MMIO regions

2014-10-22 Thread Alex Williamson
On Wed, 2014-10-22 at 15:55 +0200, Antonios Motakis wrote: On Tue, Oct 21, 2014 at 6:51 PM, Alex Williamson alex.william...@redhat.com wrote: On Mon, 2014-10-13 at 15:10 +0200, Antonios Motakis wrote: Allow to memory map the MMIO regions of the device so userspace can directly access them.

Deadlock with CMA and CPU hotplug

2014-10-22 Thread Laura Abbott
Hi, We've run into a AB/BA deadlock situation involving a driver lock and the CPU hotplug lock on a 3.10 based kernel. The situation is this: CPU 0 CPU 1 - Start CPU hotplug mutex_lock(cpu_hotplug.lock) Run CPU hotplug notifier

Re: [RFC PATCH] coredump: fix incomplete core file created when dump_skip was used last

2014-10-22 Thread Oleg Nesterov
On 10/21, Victor Kamensky wrote: +static int dump_write_last_byte(struct coredump_params *cprm) +{ + char lastbyte = 0; + struct file *file = cprm-file; + + if (file-f_op-llseek file-f_op-llseek != no_llseek) { + if (dump_interrupted() || +

Re: lockdep splat in CPU hotplug

2014-10-22 Thread Steven Rostedt
On Wed, 22 Oct 2014 11:53:49 +0200 (CEST) Jiri Kosina jkos...@suse.cz wrote: Still, the lockdep stacktrace is bogus and didn't really help understanding this. Any idea why it's wrong? Could possibly be from a tail call? == [ INFO:

[GIT PULL] at91: fixes for 3.18 #1

2014-10-22 Thread Nicolas Ferre
Arnd, Olof, Kevin, This is my first batch of fixes for 3.18. The power/reset driver part is there because it was introduced through arm-soc and it seems that it's better to continue like that. The MAINTAINERS entry is better if included the soonest. Note as well that it's my first pull-request

[PATCH v3] xen/smp: Use die_complete completion when taking CPU down

2014-10-22 Thread Boris Ostrovsky
Commit 2ed53c0d6cc9 (x86/smpboot: Speed up suspend/resume by avoiding 100ms sleep for CPU offline during S3) introduced completions to CPU offlining process. These completions are not initialized on Xen kernels causing a panic in play_dead_common(). Move handling of die_complete into common

RE: [PATCH] tools: hv: introduce -n/--no-daemon option

2014-10-22 Thread KY Srinivasan
-Original Message- From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] Sent: Wednesday, October 22, 2014 9:07 AM To: KY Srinivasan; Haiyang Zhang; de...@linuxdriverproject.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] tools: hv: introduce -n/--no-daemon option All

Re: localed stuck in recent 3.18 git in copy_net_ns?

2014-10-22 Thread Josh Boyer
On Tue, Oct 21, 2014 at 5:12 PM, Kevin Fenzi ke...@scrye.com wrote: On Mon, 20 Oct 2014 14:53:59 -0600 Kevin Fenzi ke...@scrye.com wrote: On Mon, 20 Oct 2014 16:43:26 -0400 Dave Jones da...@redhat.com wrote: I've seen similar soft lockup traces from the sys_unshare path when running my

Re: [PATCH v5 1/6] ARM: cygnus: Initial support for Broadcom Cygnus SoC

2014-10-22 Thread Scott Branden
On 14-10-22 01:22 AM, Arnd Bergmann wrote: On Tuesday 21 October 2014 17:11:08 Scott Branden wrote: OK, I will remove the iProc SoC based Machine types. This was grouping all iProc based SoCs under one menu and parallels what the existing Broadcom Mobile Soc Support menu does. I can create

Re: [PATCH] i8k: Ignore temperature sensors which report invalid values

2014-10-22 Thread Guenter Roeck
On Wed, Oct 22, 2014 at 06:35:53PM +0200, Pali Rohár wrote: On Wednesday 22 October 2014 18:19:47 Guenter Roeck wrote: On Wed, Oct 22, 2014 at 02:29:06PM +0200, Pali Rohár wrote: On Tuesday 21 October 2014 06:27:23 Guenter Roeck wrote: On 10/20/2014 09:46 AM, Pali Rohár wrote: Ok, I

Re: regression: checkpatch.pl fails when called via symlink

2014-10-22 Thread Joe Perches
On Wed, 2014-10-22 at 16:25 +0300, Jani Nikula wrote: On Wed, 22 Oct 2014, Joe Perches j...@perches.com wrote: On Wed, 2014-10-22 at 13:43 +0300, Jani Nikula wrote: Since commit 66b47b4a9dad00e45c049d79966de9a3a1f4d337 Author: Kees Cook keesc...@chromium.org Date: Mon Oct 13 15:51:57

Re: A desktop environment[1] kernel wishlist

2014-10-22 Thread Zygo Blaxell
On Tue, Oct 21, 2014 at 08:09:38PM +0200, Bastien Nocera wrote: On Tue, 2014-10-21 at 11:00 -0700, John Stultz wrote: On Tue, Oct 21, 2014 at 10:14 AM, Bastien Nocera had...@hadess.net wrote: As for: 'Export of wake reason when the system wakes up (rtc alarm, lid open, etc.) and wakealarm

Re: [PATCH v1 2/3] tpm: two-phase chip management functions

2014-10-22 Thread Jason Gunthorpe
On Wed, Oct 22, 2014 at 07:23:55PM +0300, Jarkko Sakkinen wrote: tpm_register_hardware() and tpm_remove_hardware() are called often before initializing the device. This is wrong order since it could be that main TPM driver needs a fully initialized chip to be able to do its job. For example,

Re: [PATCH v6 1/3] power-domain: add power domain drivers for Rockchip platform

2014-10-22 Thread Doug Anderson
Jinkun, On Wed, Oct 22, 2014 at 12:53 AM, jinkun.hong jinkun.h...@rock-chips.com wrote: +#define to_rockchip_pd(_gpd) container_of(_gpd, struct rockchip_domain, base) + +static int rockchip_pmu_set_idle_request(struct rockchip_domain *pd, +bool idle)

Re: [PATCH] ARM: supplementing IO accessors with 64 bit capability

2014-10-22 Thread Russell King - ARM Linux
On Wed, Oct 22, 2014 at 06:22:09PM +0200, Mathieu Poirier wrote: I had this conversation with a colleague who reviewed the work. If the architecture is 5 the __raw_ versions aren't included and the compiler won't complain until someone tries to use the macros. We achieve the same result -

Re: [PATCH 1/1] pci: fix dmar fault for kdump kernel

2014-10-22 Thread Bjorn Helgaas
On Wed, Oct 22, 2014 at 10:54 AM, Alexander Duyck alexander.du...@gmail.com wrote: On 10/21/2014 07:47 PM, Bjorn Helgaas wrote: [+cc Joerg, Eric, Tom, David, iommu list] On Wed, Oct 15, 2014 at 2:14 AM, Takao Indoh indou.ta...@jp.fujitsu.com wrote: (2014/10/14 18:34), Li, ZhenHua wrote: I

Re: [PATCH v2 05/12] perf/x86: add cross-HT counter exclusion infrastructure

2014-10-22 Thread Stephane Eranian
On Wed, Oct 22, 2014 at 5:07 PM, Jiri Olsa jo...@redhat.com wrote: On Thu, Oct 09, 2014 at 06:34:39PM +0200, Stephane Eranian wrote: From: Maria Dimakopoulou maria.n.dimakopou...@gmail.com SNIP +struct intel_excl_cntrs *allocate_excl_cntrs(int cpu) +{ + struct intel_excl_cntrs *c; +

Re: lockdep splat in CPU hotplug

2014-10-22 Thread Jiri Kosina
On Wed, 22 Oct 2014, Steven Rostedt wrote: Still, the lockdep stacktrace is bogus and didn't really help understanding this. Any idea why it's wrong? Could possibly be from a tail call? Doesn't seem so: (gdb) disassemble cpuidle_pause Dump of assembler code for function cpuidle_pause:

Re: [PATCH v1 3/3] tpm: fix multiple race conditions in tpm_ppi.c

2014-10-22 Thread Jason Gunthorpe
On Wed, Oct 22, 2014 at 07:23:56PM +0300, Jarkko Sakkinen wrote: Traversal of the ACPI device tree was not done right. It should lookup PPI only under the ACPI device that it is associated. Otherwise, it could match to a wrong PPI interface if there are two TPM devices in the device tree.

Re: [PATCH -next 11/27] tty: Don't release tty locks for wait queue sanity check

2014-10-22 Thread Peter Hurley
On 10/22/2014 11:29 AM, One Thousand Gnomes wrote: However, without needing the global tty_mutex held, the tty locks for the releasing tty can now be held through the sleep. The sanity check is for abnormal conditions caused by kernel bugs, not for recoverable errors caused by misbehaving

Re: localed stuck in recent 3.18 git in copy_net_ns?

2014-10-22 Thread Cong Wang
(Adding Paul and Eric in Cc) I am not aware of any change in net/core/dev.c related here, so I guess it's a bug in rcu_barrier(). Thanks. On Wed, Oct 22, 2014 at 10:12 AM, Josh Boyer jwbo...@fedoraproject.org wrote: Someone else is seeing this when they try and modprobe ppp_generic: [

Re: [PATCH v2 1/3] PM / clock_ops: Add pm_clk_add_clk()

2014-10-22 Thread Dmitry Torokhov
On Mon, Oct 20, 2014 at 03:56:02PM +0300, Grygorii Strashko wrote: From: Geert Uytterhoeven geert+rene...@glider.be The existing pm_clk_add() allows to pass a clock by con_id. However, when referring to a specific clock from DT, no con_id is available. Add pm_clk_add_clk(), which allows to

Re: perf: Translating mmap2 ids into socket info?

2014-10-22 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 22, 2014 at 06:45:10PM +0200, Peter Zijlstra escreveu: On Wed, Oct 22, 2014 at 12:20:26PM -0400, Don Zickus wrote: Our cache-to-cache tool noticed the slowdown but we couldn't understand why because we had falsely assumed the memory was allocated on the local node but instead it

Re: [PATCHv4 RESEND 0/3] syscalls,x86: Add execveat() system call

2014-10-22 Thread Eric W. Biederman
David Drysdale drysd...@google.com writes: On Tue, Oct 21, 2014 at 5:29 AM, Eric W. Biederman ebied...@xmission.com wrote: Andy Lutomirski l...@amacapital.net writes: On Mon, Oct 20, 2014 at 6:48 AM, David Drysdale drysd...@google.com wrote: On Sun, Oct 19, 2014 at 1:20 AM, Eric W.

Re: [PATCH v5 1/3] power-domain: add power domain drivers for Rockchip platform

2014-10-22 Thread Dmitry Torokhov
On Wed, Oct 22, 2014 at 09:58:34AM +0200, Ulf Hansson wrote: Using the devm_*API is supposed to work from here. I have kept this in mind, while we added the new dev_pm_domain_attach|detach() API. The buses also handles -EPROBE_DEFER. How do you ensure this? You have no control over from

Re: [PATCH RFC v2 01/16] virtio: memory access APIs

2014-10-22 Thread Christopher Covington
Hi Michael, On 10/22/2014 11:50 AM, Michael S. Tsirkin wrote: virtio 1.0 makes all memory structures LE, so we need APIs to conditionally do a byteswap on BE architectures. To make it easier to check code statically, add virtio specific types for multi-byte integers in memory. Add low

Re: [PATCH] perf/powerpc: Cache the DWARF debug info

2014-10-22 Thread Sukadev Bhattiprolu
Jiri Olsa [jo...@redhat.com] wrote: | + goto out; | + } | + dso-dwfl = dwfl; | | so by this we get powerpc arch code sharing dw handle via dso object, | but we have lot of generic code too ;-) Well, this applies to powerpc... | | could you make this

Re: localed stuck in recent 3.18 git in copy_net_ns?

2014-10-22 Thread Josh Boyer
On Wed, Oct 22, 2014 at 1:37 PM, Cong Wang cw...@twopensource.com wrote: (Adding Paul and Eric in Cc) I am not aware of any change in net/core/dev.c related here, so I guess it's a bug in rcu_barrier(). Possibly. The person that reported the issue below said it showed up between Linux

Re: [PATCH v8 07/18] vfio/platform: return info for device memory mapped IO regions

2014-10-22 Thread Antonios Motakis
On Wed, Oct 22, 2014 at 6:46 PM, Alex Williamson alex.william...@redhat.com wrote: On Wed, 2014-10-22 at 15:54 +0200, Antonios Motakis wrote: On Tue, Oct 21, 2014 at 6:34 PM, Alex Williamson alex.william...@redhat.com wrote: On Mon, 2014-10-13 at 15:10 +0200, Antonios Motakis wrote: This

Re: localed stuck in recent 3.18 git in copy_net_ns?

2014-10-22 Thread Eric W. Biederman
Cong Wang cw...@twopensource.com writes: (Adding Paul and Eric in Cc) On Wed, Oct 22, 2014 at 10:12 AM, Josh Boyer jwbo...@fedoraproject.org wrote: Someone else is seeing this when they try and modprobe ppp_generic: [ 240.599195] INFO: task kworker/u16:5:100 blocked for more than 120

Re: [PATCH] ARM: supplementing IO accessors with 64 bit capability

2014-10-22 Thread Mathieu Poirier
On 22 October 2014 19:19, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Wed, Oct 22, 2014 at 06:22:09PM +0200, Mathieu Poirier wrote: I had this conversation with a colleague who reviewed the work. If the architecture is 5 the __raw_ versions aren't included and the compiler

Re: [PATCHv5 man-pages 3/3] execveat.2: initial man page for execveat(2)

2014-10-22 Thread Eric W. Biederman
David Drysdale drysd...@google.com writes: Signed-off-by: David Drysdale drysd...@google.com --- man2/execveat.2 | 144 1 file changed, 144 insertions(+) create mode 100644 man2/execveat.2 diff --git a/man2/execveat.2

Re: localed stuck in recent 3.18 git in copy_net_ns?

2014-10-22 Thread Paul E. McKenney
On Wed, Oct 22, 2014 at 10:37:53AM -0700, Cong Wang wrote: (Adding Paul and Eric in Cc) I am not aware of any change in net/core/dev.c related here, so I guess it's a bug in rcu_barrier(). Thanks. Does commit 789cbbeca4e (workqueue: Add quiescent state between work items) and 3e28e3772

Re: [PATCH 03/19] MIPS: sead3: Stop using GIC REG macros

2014-10-22 Thread Andrew Bresticker
On Wed, Oct 22, 2014 at 2:33 AM, Qais Yousef qais.you...@imgtec.com wrote: On 10/20/2014 08:03 PM, Andrew Bresticker wrote: Stop using the REG macros from gic.h and instead use proper iomem accessors. Signed-off-by: Andrew Bresticker abres...@chromium.org ---

Re: [PATCH 1/1] IOMMU-MSM: Deletion of unnecessary checks before the function call clk_disable

2014-10-22 Thread SF Markus Elfring
If you are convinced that dropping the null tests is a good idea, then you can submit the patch that makes the change to the relevant maintainers and mailing lists. From af73fb59d5d4b2c289fb236d0752522b6b38 Mon Sep 17 00:00:00 2001 From: Markus Elfring elfr...@users.sourceforge.net Date:

Re: localed stuck in recent 3.18 git in copy_net_ns?

2014-10-22 Thread Josh Boyer
On Wed, Oct 22, 2014 at 1:59 PM, Paul E. McKenney paul...@linux.vnet.ibm.com wrote: On Wed, Oct 22, 2014 at 10:37:53AM -0700, Cong Wang wrote: (Adding Paul and Eric in Cc) I am not aware of any change in net/core/dev.c related here, so I guess it's a bug in rcu_barrier(). Thanks. Does

Re: [patch] mm: memcontrol: fix missed end-writeback accounting

2014-10-22 Thread Johannes Weiner
On Wed, Oct 22, 2014 at 06:30:51PM +0200, Michal Hocko wrote: On Tue 21-10-14 14:19:10, Johannes Weiner wrote: 0a31bc97c80c (mm: memcontrol: rewrite uncharge API) changed page migration to uncharge the old page right away. The page is locked, unmapped, truncated, and off the LRU. But it

Regression: audit: x86: drop arch from __audit_syscall_entry() interface

2014-10-22 Thread Paulo Zanoni
Hi (Cc'ing everybody mentioned in the original patch) I work for Intel, on our Linux Graphics driver - aka i915.ko - and our QA team recently reported a regression on: commit b4f0d3755c5e9cc86292d5fd78261903b4f23d4a Author: Richard Guy Briggs Date: Tue Mar 4 10:38:06 2014 -0500 audit:

Re: [PATCHv5 1/3] syscalls,x86: implement execveat() system call

2014-10-22 Thread Eric W. Biederman
David Drysdale drysd...@google.com writes: Add a new system execveat(2) syscall. execveat() is to execve() as openat() is to open(): it takes a file descriptor that refers to a directory, and resolves the filename relative to that. In addition, if the filename is empty and AT_EMPTY_PATH is

Re: perf: Translating mmap2 ids into socket info?

2014-10-22 Thread Joe Mario
On 10/22/2014 12:45 PM, Peter Zijlstra wrote: On Wed, Oct 22, 2014 at 12:20:26PM -0400, Don Zickus wrote: Hi, A question/request came up during our cache to cache analysis. We were wondering if give an unique mmap2 id (major, minor, inode, inode generation), if it was possible to determine a

Re: localed stuck in recent 3.18 git in copy_net_ns?

2014-10-22 Thread Paul E. McKenney
On Wed, Oct 22, 2014 at 12:53:24PM -0500, Eric W. Biederman wrote: Cong Wang cw...@twopensource.com writes: (Adding Paul and Eric in Cc) On Wed, Oct 22, 2014 at 10:12 AM, Josh Boyer jwbo...@fedoraproject.org wrote: Someone else is seeing this when they try and modprobe

Re: perf: Translating mmap2 ids into socket info?

2014-10-22 Thread Arnaldo Carvalho de Melo
Em Wed, Oct 22, 2014 at 02:42:26PM -0300, Arnaldo Carvalho de Melo escreveu: Em Wed, Oct 22, 2014 at 06:45:10PM +0200, Peter Zijlstra escreveu: On Wed, Oct 22, 2014 at 12:20:26PM -0400, Don Zickus wrote: Our cache-to-cache tool noticed the slowdown but we couldn't understand why because

introduce probe_slab_address? (Was: sched/numa: fix unsafe get_task_struct() in task_numa_assign())

2014-10-22 Thread Oleg Nesterov
Add cc's. On 10/22, Peter Zijlstra wrote: On Wed, Oct 22, 2014 at 06:14:50PM +0200, Oleg Nesterov wrote: Hmm. so perhaps I misunderstood your concern... Do you mean that on !x86 a plain LOAD can corrupt the memory as it seen from another vaddr? I'm not sure. Stores for sure, loads I'm

Re: Regression: audit: x86: drop arch from __audit_syscall_entry() interface

2014-10-22 Thread Eric Paris
That's really serious. Looking now. On Wed, 2014-10-22 at 16:08 -0200, Paulo Zanoni wrote: Hi (Cc'ing everybody mentioned in the original patch) I work for Intel, on our Linux Graphics driver - aka i915.ko - and our QA team recently reported a regression on: commit

Re: [PATCH 0/8] iommu/vt-d: Fix crash dump failure caused by legacy DMA/IO

2014-10-22 Thread Bjorn Helgaas
On Wed, Oct 22, 2014 at 7:21 AM, Joerg Roedel j...@8bytes.org wrote: Hi Bjorn, On Tue, Oct 21, 2014 at 08:16:46PM -0600, Bjorn Helgaas wrote: I was looking at Zhen-Hua's recent patches, trying to figure out if I need to do anything with them. Resetting devices in the old kernel seems like a

<    3   4   5   6   7   8   9   10   11   12   >