Re: + syscallsx86-implement-execveat-system-call.patch added to -mm tree

2014-11-14 Thread David Drysdale
On Fri, Nov 14, 2014 at 12:11 AM, Oleg Nesterov o...@redhat.com wrote: @@ -1479,7 +1489,26 @@ static int do_execve_common(struct filen bprm-file = file; - bprm-filename = bprm-interp = filename-name; + if (fd == AT_FDCWD || filename-name[0] == '/') { + bprm-filename

Re: [PATCH v2 13/14] ARM: STi: DT: STiH410: Add usb2 picophy dt nodes

2014-11-14 Thread Arnd Bergmann
On Friday 14 November 2014 13:34:25 Peter Griffin wrote: From looking around in the source I see a few different ways people have done this: - 1) Some drivers encode the data statically into the source and make a decision based on compatible string. 2) Some drivers add a

Re: [PATCH V2 1/7] arm64: dts: Add APM X-Gene USB DTS node

2014-11-14 Thread Arnd Bergmann
On Thursday 13 November 2014 16:19:55 Feng Kan wrote: + usb0: dwusb@1900 { + status = disabled; + compatible = xhci-platform; + reg = 0x0 0x1900 0x0 0x10; + interrupts = 0x0

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

2014-11-14 Thread Boris Brezillon
Hi Sakari, On Fri, 14 Nov 2014 15:58:31 +0200 Sakari Ailus sakari.ai...@iki.fi wrote: Hi Boris, On Fri, Nov 14, 2014 at 11:36:00AM +0100, Boris Brezillon wrote: Add RGB444_1X12 and RGB565_1X16 format definitions and update the documentation. Signed-off-by: Boris Brezillon

Re: [PATCH v2] can: Fix bug in suspend/resume

2014-11-14 Thread Sören Brinkmann
On Fri, 2014-11-14 at 09:54AM +0100, Marc Kleine-Budde wrote: On 11/14/2014 09:16 AM, Kedareswara rao Appana wrote: The drvdata in the suspend/resume is of type struct net_device, not the platform device.Enable the clocks in the suspend before accessing the registers of the CAN.

[GIT PULL] ACPI and power management fixes for 3.18-rc5

2014-11-14 Thread Rafael J. Wysocki
Hi Linus, Please pull from git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm+acpi-3.18-rc5 to receive ACPI and power management fixes for v3.18-rc5 with top-most commit 31689497d90e589d7050fc7bc850b4b46e632bfc Merge branches 'pm-domains', 'pm-sleep' and 'pm-cpufreq' on

Re: [PATCH V2 0/2] spi: IMG SPFI driver

2014-11-14 Thread Mark Brown
On Thu, Nov 13, 2014 at 05:36:31PM +, Mark Brown wrote: On Wed, Nov 12, 2014 at 07:08:14PM -0800, Andrew Bresticker wrote: This series adds support for the Sychronous Peripheral Flash Interface master found on IMG SoCs. The controller supports up to 5 chip-select lines and single,

Re: [PATCH V2 4/7] arm64: dts: Add Designware GPIO dts binding to APM X-Gene platform

2014-11-14 Thread Arnd Bergmann
On Thursday 13 November 2014 16:19:58 Feng Kan wrote: + dwgpio: dwgpio@1c024000 { + compatible = snps,dw-apb-gpio; + reg = 0x0 0x1c024000 0x0 0x1000; + reg-io-width = 4; + #address-cells = 1;

Re: [PATCH] zsmalloc: correct fragile [kmap|kunmap]_atomic use

2014-11-14 Thread Seth Jennings
On Fri, Nov 14, 2014 at 10:11:01AM +0900, Minchan Kim wrote: The kunmap_atomic should use virtual address getting by kmap_atomic. However, some pieces of code in zsmalloc uses modified address, not the one got by kmap_atomic for kunmap_atomic. It's okay for working because zsmalloc modifies

Re: anon_vma accumulating for certain load still not addressed

2014-11-14 Thread Rik van Riel
On 11/14/2014 08:08 AM, Michal Hocko wrote: Hi, back in 2012 [1] there was a discussion about a forking load which accumulates anon_vmas. There was a trivial test case which triggers this and can potentially deplete the memory by local user. We have a report for an older enterprise distribution

Re: [PATCH v2] can: Fix bug in suspend/resume

2014-11-14 Thread Marc Kleine-Budde
On 11/14/2014 04:05 PM, Sören Brinkmann wrote: On Fri, 2014-11-14 at 09:54AM +0100, Marc Kleine-Budde wrote: On 11/14/2014 09:16 AM, Kedareswara rao Appana wrote: The drvdata in the suspend/resume is of type struct net_device, not the platform device.Enable the clocks in the suspend before

Re: [Xen-devel] [PATCH 1/3] dma, ia64: add dma_get_required_mask_from_max_pfn()

2014-11-14 Thread Stefano Stabellini
On Wed, 12 Nov 2014, David Vrabel wrote: ia64 provides a duplicate of the generic dma_get_required_mask() because it has ARCH_HAS_GET_REQUIRED_MASK. Provide a common dma_get_require_mask_max_pfn() instead. Signed-off-by: David Vrabel david.vra...@citrix.com Cc: Tony Luck

Re: [PATCH v8 4/8] OF: platform: Add OF notifier handler

2014-11-14 Thread Pantelis Antoniou
Hi Grant, On Nov 14, 2014, at 01:29 , Grant Likely grant.lik...@secretlab.ca wrote: On Tue, 28 Oct 2014 22:36:01 +0200 , Pantelis Antoniou pantelis.anton...@konsulko.com wrote: Add OF notifier handler needed for creating/destroying platform devices according to dynamic runtime changes in

Re: [Patch V1 0/6] Refine generic/PCI MSI irqodmian interfaces

2014-11-14 Thread Marc Zyngier
On 14/11/14 14:26, Jiang Liu wrote: On 2014/11/14 22:11, Yijing Wang wrote: 在 2014/11/14 9:39, Jiang Liu 写道: On 2014/11/14 9:31, Thomas Gleixner wrote: On Fri, 14 Nov 2014, Yijing Wang wrote: Hi Thomas, So we need something like: struct msi_chip *pci_get_msi_chip(struct pci_dev *);

Re: [PATCH v4 4/6] ARM: zynq: Extend SLCR driver to read OCM configuration

2014-11-14 Thread Sören Brinkmann
On Fri, 2014-11-14 at 11:52AM +0100, Michal Simek wrote: Get OCM configuration from SLCR. Signed-off-by: Michal Simek michal.si...@xilinx.com --- Changes in v4: - slcr.h has moved to soc/include/ folder. Move definition there too. Changes in v3: None Changes in v2: None

Re: [PATCH] HID: usbhid: get/put around clearing needs_remote_wakeup

2014-11-14 Thread Alan Stern
On Thu, 13 Nov 2014, Benson Leung wrote: Hi Alan, On Thu, Nov 13, 2014 at 2:11 PM, Alan Stern st...@rowland.harvard.edu wrote: Wait a minute -- in your previous email you said this approach didn't work. So does it work or doesn't it? Sorry for the confusion. The approach *does* work.

[PATCH 10/11] x86, mpx: cleanup unused bound tables

2014-11-14 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com The previous patch allocates bounds tables on-demand. As noted in an earlier description, these can add up to *HUGE* amounts of memory. This has caused OOMs in practice when running tests. This patch adds support for freeing bounds tables when

Re: [PATCH] virt: kvm: arm: vgic: Process the failure case when kvm_register_device_ops() fails

2014-11-14 Thread Chen Gang
On 11/14/2014 10:53 PM, Marc Zyngier wrote: On 14/11/14 14:27, Chen Gang wrote: On 11/14/2014 10:09 PM, Marc Zyngier wrote: On 14/11/14 14:05, Chen Gang wrote: On 11/13/2014 11:30 PM, Marc Zyngier wrote: On 13/11/14 15:04, Chen Gang wrote: When kvm_register_device_ops() fails, also need call

[PATCH 02/11] mpx: extend siginfo structure to include bound violation information

2014-11-14 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com This patch adds new fields about bound violation into siginfo structure. si_lower and si_upper are respectively lower bound and upper bound when bound violation is caused. Signed-off-by: Qiaowei Ren qiaowei@intel.com Signed-off-by: Dave Hansen

[PATCH 05/11] x86, mpx: add MPX to disaabled features

2014-11-14 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com This allows us to use cpu_feature_enabled(X86_FEATURE_MPX) as both a runtime and compile-time check. When CONFIG_X86_INTEL_MPX is disabled, cpu_feature_enabled(X86_FEATURE_MPX) will evaluate at compile-time to 0. If CONFIG_X86_INTEL_MPX=y, then the

[PATCH v2] virt: kvm: arm: vgic: Process the failure case when kvm_register_device_ops() fails

2014-11-14 Thread Chen Gang
When kvm_register_device_ops() fails, need disable_percpu_irq(), need vgic_arch_unsetup(), need __unregister_cpu_notifier(), and also need free_percpu_irq(). At present, there is no vgic_arch_unsetup(), so add it for resetting '__vgic_sr_vectors'. Signed-off-by: Chen Gang

[PATCH 11/11] x86, mpx: add documentation on Intel MPX

2014-11-14 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com This patch adds the Documentation/x86/intel_mpx.txt file with some information about Intel MPX. Signed-off-by: Qiaowei Ren qiaowei@intel.com Signed-off-by: Dave Hansen dave.han...@linux.intel.com --- b/Documentation/x86/intel_mpx.txt | 234

[PATCH 07/11] x86, mpx: add MPX-specific mmap interface

2014-11-14 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com We have chosen to perform the allocation of bounds tables in kernel (See the patch on-demand kernel allocation of bounds tables) and to mark these VMAs with VM_MPX. However, there is currently no suitable interface to actually do this. Existing

Re: [PATCH 2/3] x86: allow dma_get_required_mask() to be overridden

2014-11-14 Thread Stefano Stabellini
On Wed, 12 Nov 2014, David Vrabel wrote: Use dma_ops-get_required_mask() if provided, defaulting to dma_get_requried_mask_from_max_pfn(). This is needed on systems (such as Xen PV guests) where the DMA address and the physical address are not equal. Signed-off-by: David Vrabel

[PATCH 09/11] x86, mpx: on-demand kernel allocation of bounds tables

2014-11-14 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com changes from v10: * move mm init-time #ifdef to mpx.h * add comment in do_bounds() about why xsave is needed * add missing return in do_bounds(); * unconvolute mpx_handle_bd_fault() -- This is really the meat of the MPX patch set. If there is

Re: [PATCH v2] can: Fix bug in suspend/resume

2014-11-14 Thread Sören Brinkmann
On Fri, 2014-11-14 at 04:09PM +0100, Marc Kleine-Budde wrote: On 11/14/2014 04:05 PM, Sören Brinkmann wrote: On Fri, 2014-11-14 at 09:54AM +0100, Marc Kleine-Budde wrote: On 11/14/2014 09:16 AM, Kedareswara rao Appana wrote: The drvdata in the suspend/resume is of type struct net_device,

[PATCH 06/11] x86, mpx: introduce VM_MPX to indicate that a VMA is MPX specific

2014-11-14 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com MPX-enabled applications using large swaths of memory can potentially have large numbers of bounds tables in process address space to save bounds information. These tables can take up huge swaths of memory (as much as 80% of the memory on the system)

[PATCHv2 08/16] clk: mvebu: add suspend/resume for gatable clocks

2014-11-14 Thread Thomas Petazzoni
This commit adds suspend/resume support for the gatable clock driver used on Marvell EBU platforms. When getting out of suspend, the Marvell EBU platforms go through the bootloader, which re-enables all gatable clocks. However, upon resume, the clock framework will not disable again all gatable

[PATCH 08/11] x86, mpx: [new code] decode MPX instruction to get bound violation information

2014-11-14 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com Note: This is substantially different code from the v9 set. This patch sets bound violation fields of siginfo struct in #BR exception handler by decoding the user instruction and constructing the faulting pointer. We have to be very careful when

[PATCHv2 03/16] irqchip: irq-armada-370-xp: suspend/resume support

2014-11-14 Thread Thomas Petazzoni
This commit adds suspend/resume support to the irqchip driver used on Armada XP platforms (amongst others). It does so by adding a set of suspend/resume syscore_ops, that will respectively save and restore the necessary registers to ensure interrupts continue to work after resume. It is worth

[PATCH 04/11] ia64: sync struct siginfo with general version

2014-11-14 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com New fields about bound violation are added into general struct siginfo. This will impact MIPS and IA64, which extend general struct siginfo. This patch syncs this struct for IA64 with general version. Signed-off-by: Qiaowei Ren

[PATCHv2 04/16] clocksource: time-armada-370-xp: add suspend/resume support

2014-11-14 Thread Thomas Petazzoni
This commit adds a set of suspend/resume syscore_ops to respectively save and restore a number of timer registers, in order to make sure the clockevent and clocksource devices continue to work properly across a suspend/resume cycle. Signed-off-by: Thomas Petazzoni

[PATCH 00/11] [v11] Intel MPX support

2014-11-14 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com Changes since v10: * get rid of some generic #ifdefs and add mpx_mm_init(mm) * add comment about reasons for doing xsaves * Cleanups in on-demand allocation patch, and add a missing return * Changes in some of the unmapping code error handling.

[PATCH 03/11] mips: sync struct siginfo with general version

2014-11-14 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com New fields about bound violation are added into general struct siginfo. This will impact MIPS and IA64, which extend general struct siginfo. This patch syncs this struct for MIPS with general version. Signed-off-by: Qiaowei Ren

[PATCH 01/11] x86, mpx: rename cfg_reg_u and status_reg

2014-11-14 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com According to Intel SDM extension, MPX configuration and status registers should be BNDCFGU and BNDSTATUS. This patch renames cfg_reg_u and status_reg to bndcfgu and bndstatus. Signed-off-by: Qiaowei Ren qiaowei@intel.com Signed-off-by: Dave

Re: [Patch V1 0/6] Refine generic/PCI MSI irqodmian interfaces

2014-11-14 Thread Jiang Liu
On 2014/11/14 23:16, Marc Zyngier wrote: On 14/11/14 14:26, Jiang Liu wrote: On 2014/11/14 22:11, Yijing Wang wrote: We have achieved 1 and 2. And seems we could also achieve 3 by converting all arch specific PCI MSI code to use hierarchy irqdomain. But not sure whether we could achieve 4,

[3.16.y-ckt stable] Linux 3.16.7-ckt1

2014-11-14 Thread Luis Henriques
I am announcing the release of the Linux 3.16.7-ckt1 kernel. The updated 3.16.y-ckt tree can be found at: git://kernel.ubuntu.com/ubuntu/linux.git linux-3.16.y and can be browsed at: http://kernel.ubuntu.com/git?p=ubuntu/linux.git;h=refs/heads/linux-3.16.y;a=shortlog The diff from v3.16.7

[PATCH v7 01/13] reset: add the Berlin reset controller driver

2014-11-14 Thread Antoine Tenart
Add a reset controller for Marvell Berlin SoCs which is used by the USB PHYs drivers (for now). Signed-off-by: Antoine Tenart antoine.ten...@free-electrons.com Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com Acked-by: Philipp Zabel p.za...@pengutronix.de ---

[PATCH v7 06/13] Documentation: bindings: add doc for the Berlin USB PHY

2014-11-14 Thread Antoine Tenart
Document the bindings of the Marvell Berlin USB PHY driver. Signed-off-by: Antoine Tenart antoine.ten...@free-electrons.com --- Documentation/devicetree/bindings/phy/berlin-usb-phy.txt | 16 1 file changed, 16 insertions(+) create mode 100644

[PATCH v7 12/13] ARM: dts: berlin: add BG2CD nodes for USB support

2014-11-14 Thread Antoine Tenart
From: Sebastian Hesselbarth sebastian.hesselba...@gmail.com Adds nodes describing the Marvell Berlin BG2CD USB PHY and USB. The BG2CD SoC has 2 USB ChipIdea controllers, with usb0 host-only and usb1 dual-role capable. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com

[PATCH v7 11/13] ARM: dts: Berlin: enable USB on the BG2Q DMP

2014-11-14 Thread Antoine Tenart
Enable the 2 available USB PHY and USB nodes on the Marvell Berlin BG2Q DMP. Signed-off-by: Antoine Tenart antoine.ten...@free-electrons.com --- arch/arm/boot/dts/berlin2q-marvell-dmp.dts | 53 ++ 1 file changed, 53 insertions(+) diff --git

[PATCH v7 00/13] ARM: berlin: USB support

2014-11-14 Thread Antoine Tenart
This series adds the support for ChipIdea USB2 (ci13xxx) controllers, the USB PHYs of the Marvell Berlin SoCs and also adds a reset controller for these SoCs. The reset controller is used by the PHY driver and shares the existing chip controller node with the clocks and one pin controller. The

[PATCH v7 02/13] Documentation: bindings: add reset bindings docs for Marvell Berlin SoCs

2014-11-14 Thread Antoine Tenart
Add the reset binding documentation to the SoC binding documentation as the reset driver in Marvell Berlin SoC is part of the chip/system control registers. This patch adds the required properties to configure the reset controller. Signed-off-by: Antoine Tenart antoine.ten...@free-electrons.com

[PATCH v7 13/13] ARM: dts: berlin: enable USB on the Google Chromecast

2014-11-14 Thread Antoine Tenart
From: Sebastian Hesselbarth sebastian.hesselba...@gmail.com Enable usb1 on Google Chromecast which is connected to micro-USB plug used for external power supply, too. Signed-off-by: Sebastian Hesselbarth sebastian.hesselba...@gmail.com Signed-off-by: Antoine Tenart

[PATCH v7 10/13] ARM: dts: berlin: add BG2Q nodes for USB support

2014-11-14 Thread Antoine Tenart
Adds nodes describing the Marvell Berlin BG2Q USB PHY and USB. The BG2Q SoC has 3 USB host controller, compatible with ChipIdea. Signed-off-by: Antoine Tenart antoine.ten...@free-electrons.com --- arch/arm/boot/dts/berlin2q.dtsi | 55 + 1 file changed, 55

[PATCH v7 09/13] Documentation: bindings: add doc for the USB2 ChipIdea USB driver

2014-11-14 Thread Antoine Tenart
Document the USB2 ChipIdea driver (ci13xxx) bindings. Signed-off-by: Antoine Tenart antoine.ten...@free-electrons.com --- .../devicetree/bindings/usb/ci-hdrc-usb2.txt | 24 ++ 1 file changed, 24 insertions(+) create mode 100644

[PATCH v7 08/13] usb: chipidea: add a usb2 driver for ci13xxx

2014-11-14 Thread Antoine Tenart
Add a USB2 ChipIdea driver for ci13xxx, with optional PHY, clock and DMA mask, to support USB2 ChipIdea controllers that don't need specific functions. Tested on the Marvell Berlin SoCs USB controllers. Signed-off-by: Antoine Tenart antoine.ten...@free-electrons.com ---

[PATCH v7 07/13] usb: chipidea: fix phy handling

2014-11-14 Thread Antoine Tenart
The generic platform device for CI drivers is probed by calling ci_hdrc_probe. This is not the same device as the one for the specific driver, so the of_node isn't the one we're looking into. This result in not being able to probe the phys. Since all CI driver are retrieving their phys in the

[PATCH v7 05/13] phy: add the Berlin USB PHY driver

2014-11-14 Thread Antoine Tenart
Add the driver driving the Marvell Berlin USB PHY. This allows to initialize the PHY and to use it from the USB driver later. Signed-off-by: Antoine Tenart antoine.ten...@free-electrons.com --- drivers/phy/Kconfig | 7 ++ drivers/phy/Makefile | 1 +

Re: [PATCH] x86, ia64: Do not lose track of the EFI default VGA device

2014-11-14 Thread Henrik Rydberg
On 11/14/2014 03:42 PM, Bruno Prémont wrote: On Fri, 14 Nov 2014 13:53:30 +0100 Henrik Rydberg wrote: Since commit 20cde694027e (x86, ia64: Move EFI_FB vga_default_device() initialization to pci_vga_fixup()) in the 3.17 merge window, the EFI framebuffer depends on the VGA arbitration layer.

[PATCH v7 03/13] ARM: Berlin: select the reset controller

2014-11-14 Thread Antoine Tenart
The Marvell Berlin SoCs now has a reset controller. Add the needed configuration. Signed-off-by: Antoine Tenart antoine.ten...@free-electrons.com --- arch/arm/mach-berlin/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-berlin/Kconfig b/arch/arm/mach-berlin/Kconfig

Re: [patch 07/16] genirq: Introduce helper irq_domain_set_info() to reduce duplicated code

2014-11-14 Thread Marc Zyngier
On 12/11/14 13:43, Thomas Gleixner wrote: From: Jiang Liu jiang@linux.intel.com Signed-off-by: Jiang Liu jiang@linux.intel.com Cc: Bjorn Helgaas bhelg...@google.com Cc: Grant Likely grant.lik...@linaro.org Cc: Marc Zyngier marc.zyng...@arm.com Cc: Yingjoe Chen

[PATCH v7 04/13] ARM: dts: berlin: add a required reset property in the chip controller node

2014-11-14 Thread Antoine Tenart
The chip controller node now also describes the Marvell Berlin reset controller. Add the required 'reset-cells' property. Signed-off-by: Antoine Tenart antoine.ten...@free-electrons.com Acked-by: Philipp Zabel p.za...@pengutronix.de --- arch/arm/boot/dts/berlin2.dtsi | 1 +

Re: [RFC][PATCH 09/23 v4] tracing/probes: Do not use return value of trace_seq_printf()

2014-11-14 Thread Masami Hiramatsu
(2014/11/14 10:12), Steven Rostedt wrote: From: Steven Rostedt (Red Hat) rost...@goodmis.org The functions trace_seq_printf() and friends will soon not have a return value and will only be a void function. Use trace_seq_has_overflowed() instead to know if the trace_seq operations succeeded

[PATCH] clk-divider: Fix READ_ONLY when divider 1

2014-11-14 Thread James Hogan
Commit 79c6ab509558 (clk: divider: add CLK_DIVIDER_READ_ONLY flag) in v3.16 introduced the CLK_DIVIDER_READ_ONLY flag which caused the recalc_rate() and round_rate() clock callbacks to be omitted. However using this flag has the unfortunate side effect of causing the clock recalculation code when

Re: [PATCH v2 net-next 1/7] bpf: add 'flags' attribute to BPF_MAP_UPDATE_ELEM command

2014-11-14 Thread Alexei Starovoitov
On Fri, Nov 14, 2014 at 4:11 AM, Hannes Frederic Sowa han...@stressinduktion.org wrote: On Do, 2014-11-13 at 17:36 -0800, Alexei Starovoitov wrote: the current meaning of BPF_MAP_UPDATE_ELEM syscall command is: either update existing map element or create a new one. Initially the plan was to

Re: [PATCH v7 03/13] ARM: Berlin: select the reset controller

2014-11-14 Thread Arnd Bergmann
On Friday 14 November 2014 16:25:53 Antoine Tenart wrote: menuconfig ARCH_BERLIN bool Marvell Berlin SoCs if ARCH_MULTI_V7 + select ARCH_HAS_RESET_CONTROLLER select ARCH_REQUIRE_GPIOLIB select ARM_GIC select GENERIC_IRQ_CHIP select DW_APB_ICTL

Re: [RFC][PATCH 10/23 v4] tracing/uprobes: Do not use return values of trace_seq_printf()

2014-11-14 Thread Masami Hiramatsu
(2014/11/14 10:12), Steven Rostedt wrote: From: Steven Rostedt (Red Hat) rost...@goodmis.org The functions trace_seq_printf() and friends will soon no longer have return values. Using trace_seq_has_overflowed() and trace_handle_return() should be used instead. Cc: Masami Hiramatsu

Re: [PATCH v2] can: Fix bug in suspend/resume

2014-11-14 Thread Marc Kleine-Budde
On 11/14/2014 04:20 PM, Sören Brinkmann wrote: Please look the at suspend/resume code and count the clock_enable/disable manually. After a suspend/resume cycle, you have enabled the clock twice, but disabled it once. I think you have to abstract the clock handling behind runtime PM. I

Re: [PATCH v7 03/13] ARM: Berlin: select the reset controller

2014-11-14 Thread Sebastian Hesselbarth
On 11/14/2014 04:33 PM, Arnd Bergmann wrote: On Friday 14 November 2014 16:25:53 Antoine Tenart wrote: menuconfig ARCH_BERLIN bool Marvell Berlin SoCs if ARCH_MULTI_V7 + select ARCH_HAS_RESET_CONTROLLER select ARCH_REQUIRE_GPIOLIB select ARM_GIC

Re: [RFC][PATCH 10/23 v4] tracing/uprobes: Do not use return values of trace_seq_printf()

2014-11-14 Thread Steven Rostedt
On Sat, 15 Nov 2014 00:35:15 +0900 Masami Hiramatsu masami.hiramatsu...@hitachi.com wrote: for (i = 0; i tu-tp.nr_args; i++) { struct probe_arg *parg = tu-tp.args[i]; - if (!parg-type-print(s, parg-name, data + parg-offset, entry)) -

Re: [PATCH] rtlwifi: Add more checks for get_btc_status callback

2014-11-14 Thread Mike Galbraith
On Wed, 2014-11-12 at 21:03 -0200, Murilo Opsfelder Araújo wrote: Hello, Larry. I'd like to let you know that next-20141112 brought my rtl8192se device back to life. I didn't need to build rtlwifi_new to be able to connect to my wifi network. It worked just fine. Yeah, unsurprisingly,

Re: [patch 07/16] genirq: Introduce helper irq_domain_set_info() to reduce duplicated code

2014-11-14 Thread Jiang Liu
On 2014/11/14 23:31, Marc Zyngier wrote: On 12/11/14 13:43, Thomas Gleixner wrote: From: Jiang Liu jiang@linux.intel.com Signed-off-by: Jiang Liu jiang@linux.intel.com Cc: Bjorn Helgaas bhelg...@google.com Cc: Grant Likely grant.lik...@linaro.org Cc: Marc Zyngier

simd: Allow simd use in kernel threads with softirqs disabled

2014-11-14 Thread Herbert Xu
While working on the cryptd request reordering problem, I noticed an anomaly where kernel threads are normally allowed to use simd per may_use_simd, but as soon as you disable softirqs, they suddenly lose that ability for no good reason. The problem is that in_interrupt does not distinguish

[PATCH] kernel:signal.c Fix coding style errors and warnings.

2014-11-14 Thread Ionut Alexa
Fix various coding style errors and warnings as: - space before tabs - exiting a function from different points (else after return ..) Signed-off-by: Ionut Alexa ionut.m.al...@gmail.com --- kernel/signal.c | 104

[PATCH] [v2] x86: remove arbitrary instruction size limit in instruction decoder

2014-11-14 Thread Dave Hansen
From: Dave Hansen dave.han...@linux.intel.com Changes from v1: * update the pebs code to handle short reads * add checking of insn_get_*() functions in case a short read causes them to fail (we probably need this anyway to handle other decoder failure cases) -- The current x86

Re: [PATCH 1/6] usb: chipidea: add a core function to setup ci_hdrc_platform_data

2014-11-14 Thread Antoine Tenart
Peter, On Fri, Nov 14, 2014 at 09:16:55AM +0800, Peter Chen wrote: Ok, Antoine, I find this patch set may not have many benefits due to below reasons: - There is already function ci_get_platdata to do the similar things - If the PHY can't get from the DT, it will use devm_phy_get or

Re: [RFC 0/5] perf tools: Add perf data CTF conversion

2014-11-14 Thread Mathieu Desnoyers
- Original Message - From: Sebastian Andrzej Siewior bige...@linutronix.de To: Mathieu Desnoyers mathieu.desnoy...@efficios.com Cc: Alexandre Montplaisir alexmon...@voxpopuli.im, Jiri Olsa jo...@redhat.com, linux-kernel@vger.kernel.org, Dominique Toupin dominique.tou...@ericsson.com,

Re: [Patch V1 0/6] Refine generic/PCI MSI irqodmian interfaces

2014-11-14 Thread Jiang Liu
On 2014/11/14 5:28, Marc Zyngier wrote: On 13/11/14 21:11, Thomas Gleixner wrote: On Thu, 13 Nov 2014, Marc Zyngier wrote: With the new stacked irq domains, it becomes pretty tempting to allocate an MSI domain per PCI bus, which would remove the requirement of either relying on arch-specific

[PATCH 5/6] arm64: add Cortex-A57 erratum 832075 workaround

2014-11-14 Thread Andre Przywara
The ARM erratum 832075 applies to certain revisions of Cortex-A57, one of the workarounds is to change device loads into using load-aquire semantics. This is achieved using the alternatives framework. Signed-off-by: Andre Przywara andre.przyw...@arm.com --- arch/arm64/include/asm/cpufeature.h |

[PATCH 2/6] arm64: add alternative runtime patching

2014-11-14 Thread Andre Przywara
With a blatant copy of some x86 bits we introduce the alternative runtime patching framework to arm64. This is quite basic for now and we only provide the functions we need at this time. This is connected to the newly introduced feature bits. Signed-off-by: Andre Przywara andre.przyw...@arm.com

[PATCH 3/6] arm64: detect silicon revisions and set cap bits accordingly

2014-11-14 Thread Andre Przywara
After each CPU has been started, we iterate through a list of CPU features or bugs to detect CPUs which need (or could benefit from) kernel code patches. For each feature/bug there is a function which checks if that particular CPU is affected. We will later provide some more generic functions for

Re: [PATCH v3] usb: dwc2: add bus suspend/resume for dwc2

2014-11-14 Thread Alan Stern
On Thu, 13 Nov 2014, Julius Werner wrote: Another thing might be that the port connect interrupt does not correctly resume the root hub. I don't really know many details about how that works, and it seems pretty complicated. But I can see that all other HCDs seem to call

Re: [PATCH v2] virt: kvm: arm: vgic: Process the failure case when kvm_register_device_ops() fails

2014-11-14 Thread Marc Zyngier
On 14/11/14 15:18, Chen Gang wrote: When kvm_register_device_ops() fails, need disable_percpu_irq(), need vgic_arch_unsetup(), need __unregister_cpu_notifier(), and also need free_percpu_irq(). At present, there is no vgic_arch_unsetup(), so add it for resetting '__vgic_sr_vectors'.

[PATCH 0/6] arm64: alternatives runtime patching

2014-11-14 Thread Andre Przywara
This series introduces alternatives runtime patching to arm64. This allows to patch assembly instruction at runtime to either fix hardware bugs or optimize for certain hardware features. Look at patch 5/6 for an example on how to use this. The code is heavily based on the x86 implementation.

[PATCH 6/6] arm64: protect alternatives workarounds with Kconfig options

2014-11-14 Thread Andre Przywara
Not all of the errata we have workarounds for apply necessarily to all SoCs, so people compiling a kernel for one very specific SoC may not need to patch the kernel. Introduce a new submenu in the Platform selection menu to allow people to turn off certain bugs if they are not affected. By default

[PATCH 1/6] arm64: add cpu_capabilities bitmap

2014-11-14 Thread Andre Przywara
For taking note if at least one CPU in the system needs a bug workaround or would benefit from a code optimization, we create a new bitmap to hold (artificial) feature bits. Since elf_hwcap is part of the userland ABI, we keep it alone and introduce a new data structure for that (along with some

[PATCH 4/6] arm64: add Cortex-A53 cache errata workaround

2014-11-14 Thread Andre Przywara
The ARM errata 819472, 826319, 827319 and 824069 define the same workaround for these hardware issues in certain Cortex-A53 parts. Use the new alternatives framework and the CPU MIDR detection to patch cache clean into cache clean and invalidate instructions if an affected CPU is detected at

Re: [PATCH 4/4] arm: dts: omap3-gta04: Add static configuration for devconf1 register

2014-11-14 Thread Tony Lindgren
* Grazvydas Ignotas nota...@gmail.com [141114 06:38]: On Fri, Nov 14, 2014 at 1:58 AM, Tony Lindgren t...@atomide.com wrote: * Paul Walmsley p...@pwsan.com [141113 15:01]: Hi On Thu, 13 Nov 2014, Tony Lindgren wrote: * Tomi Valkeinen tomi.valkei...@ti.com [141113 03:33]: On

Re: [PATCH 1/3] arch: Introduce load_acquire() and store_release()

2014-11-14 Thread Alexander Duyck
On 11/14/2014 02:19 AM, Will Deacon wrote: Hi Alex, On Thu, Nov 13, 2014 at 07:27:23PM +, Alexander Duyck wrote: It is common for device drivers to make use of acquire/release semantics when dealing with descriptors stored in device memory. On reviewing the documentation and code for

Re: [PATCH 09/16] percpu: Replace smp_read_barrier_depends() with lockless_dereference()

2014-11-14 Thread Pranith Kumar
On Fri, Nov 14, 2014 at 8:14 AM, Tejun Heo t...@kernel.org wrote: How should this be routed? There's a pending change on the same region of code and if this patch is routed outside percpu tree it'd cause a conflict and I can't route this as lockless_dereference() isn't in the mainline yet.

[PATCH 2/2] DT: i2c: Add more devices handled by the adxl34x-i2c driver

2014-11-14 Thread Geert Uytterhoeven
This allows checkpatch to validate more DTSes. Signed-off-by: Geert Uytterhoeven geert+rene...@glider.be --- Documentation/devicetree/bindings/i2c/trivial-devices.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt

Re: [Patch V1 0/6] Refine generic/PCI MSI irqodmian interfaces

2014-11-14 Thread Marc Zyngier
On 14/11/14 15:25, Jiang Liu wrote: On 2014/11/14 23:16, Marc Zyngier wrote: On 14/11/14 14:26, Jiang Liu wrote: On 2014/11/14 22:11, Yijing Wang wrote: We have achieved 1 and 2. And seems we could also achieve 3 by converting all arch specific PCI MSI code to use hierarchy irqdomain. But

[PATCH 1/2] DT: i2c: Add more devices handled by the rtc-rs5c372 driver

2014-11-14 Thread Geert Uytterhoeven
This allows checkpatch to validate more DTSes. Signed-off-by: Geert Uytterhoeven geert+rene...@glider.be --- Documentation/devicetree/bindings/i2c/trivial-devices.txt | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/trivial-devices.txt

RE: [PATCH 06/10] libata: use __scsi_format_command()

2014-11-14 Thread Elliott, Robert (Server Storage)
-Original Message- From: Hannes Reinecke [mailto:h...@suse.de] Sent: Thursday, 06 November, 2014 2:31 AM To: James Bottomley Cc: Christoph Hellwig; Ewan Milne; Elliott, Robert (Server Storage); linux-s...@vger.kernel.org; Hannes Reinecke; linux- i...@vger.kernel.org; LKML

Re: [PATCH v2 net-next 1/7] bpf: add 'flags' attribute to BPF_MAP_UPDATE_ELEM command

2014-11-14 Thread Hannes Frederic Sowa
On Fr, 2014-11-14 at 07:33 -0800, Alexei Starovoitov wrote: On Fri, Nov 14, 2014 at 4:11 AM, Hannes Frederic Sowa han...@stressinduktion.org wrote: On Do, 2014-11-13 at 17:36 -0800, Alexei Starovoitov wrote: the current meaning of BPF_MAP_UPDATE_ELEM syscall command is: either update

Re: [PATCH v2] ACPI/osl: speedup grace period in acpi_os_map_cleanup

2014-11-14 Thread joeyli
Hi, On Sun, Nov 09, 2014 at 01:53:37PM +0400, Konstantin Khlebnikov wrote: ACPI maintains cache of ioremap regions to speed up operations and access to them from irq context where ioremap() calls aren't allowed. This code abuses synchronize_rcu() on unmap path for synchronization with

Re: [Patch V1 0/6] Refine generic/PCI MSI irqodmian interfaces

2014-11-14 Thread Marc Zyngier
On 14/11/14 15:54, Jiang Liu wrote: On 2014/11/14 5:28, Marc Zyngier wrote: On 13/11/14 21:11, Thomas Gleixner wrote: On Thu, 13 Nov 2014, Marc Zyngier wrote: With the new stacked irq domains, it becomes pretty tempting to allocate an MSI domain per PCI bus, which would remove the

Re: simd: Allow simd use in kernel threads with softirqs disabled

2014-11-14 Thread Ard Biesheuvel
On 14 November 2014 16:43, Herbert Xu herb...@gondor.apana.org.au wrote: While working on the cryptd request reordering problem, I noticed an anomaly where kernel threads are normally allowed to use simd per may_use_simd, but as soon as you disable softirqs, they suddenly lose that ability for

Re: [PATCH v4 10/13] memory: tegra: Add EMC (external memory controller) driver

2014-11-14 Thread Tomeu Vizoso
On 12 November 2014 16:45, Thierry Reding thierry.red...@gmail.com wrote: On Wed, Nov 12, 2014 at 08:56:33AM +0100, Tomeu Vizoso wrote: snip +struct emc_timing { + unsigned long rate; + + /* + * Store EMC burst data in a union to minimize mistakes. This allows + * us to

Re: [PATCH V3 3/3] mfd: palmas: Add support for optional wakeup

2014-11-14 Thread Felipe Balbi
Hi, On Thu, Nov 13, 2014 at 09:40:31AM -0800, Tony Lindgren wrote: [snip] From: Tony Lindgren t...@atomide.com Date: Tue, 11 Nov 2014 07:53:55 -0800 Subject: [PATCH] genirq: Add support for wake-up interrupts to fix irq reentry issues in drivers As pointed out by Thomas Gleixner, at

Re: linux-next: build failure after merge of the block tree

2014-11-14 Thread Fabian Frederick
On 11 November 2014 at 16:27 Jens Axboe ax...@kernel.dk wrote: On 2014-11-11 04:20, Fabian Frederick wrote: On 11 November 2014 at 03:12 Stephen Rothwell s...@canb.auug.org.au wrote: Hi Jens, After merging the block tree, today's linux-next build (x86_64 allmodconfig)

Re: [PATCH 0/6] arm64: alternatives runtime patching

2014-11-14 Thread Arnd Bergmann
On Friday 14 November 2014 15:54:06 Andre Przywara wrote: This series introduces alternatives runtime patching to arm64. This allows to patch assembly instruction at runtime to either fix hardware bugs or optimize for certain hardware features. Look at patch 5/6 for an example on how to use

Re: [RFC][PATCH 12/23 v4] tracing: Remove return values of most trace_seq_*() functions

2014-11-14 Thread Steven Rostedt
On Fri, 14 Nov 2014 09:53:39 -0500 Steven Rostedt rost...@goodmis.org wrote: @@ -334,10 +297,7 @@ int trace_seq_putmem_hex(struct trace_seq *s, const void *mem, /* j increments twice per loop */ len -= j / 2; hex[j++] = ' '; - - cnt +=

Re: [Cocci] spatch for trivial pointer comparison style?

2014-11-14 Thread Joe Perches
On Fri, 2014-11-14 at 10:18 +0100, Julia Lawall wrote: On Thu, 13 Nov 2014, Joe Perches wrote: [] Yes, I agree with some of the things Al Viro said there, but isn't 'type t; t *p;' a subset of expression *e? No. How would you expect it to be different. [] type t means that the type

[PATCHv8 0/4] syscalls,x86,sparc: Add execveat() system call

2014-11-14 Thread David Drysdale
Sparc folks: the kbuild robots complained about sparc missing this syscall, so I've speculatively included an extra patch in this version for that. However, I've not run it (only cross-compiled it), so it may be best to skip the [3/4] patch and let the experts deal with other architectures later

[PATCHv8 man-pages 4/4] execveat.2: initial man page for execveat(2)

2014-11-14 Thread David Drysdale
Signed-off-by: David Drysdale drysd...@google.com --- man2/execveat.2 | 153 1 file changed, 153 insertions(+) create mode 100644 man2/execveat.2 diff --git a/man2/execveat.2 b/man2/execveat.2 new file mode 100644 index

[PATCHv8 1/4] syscalls,x86: implement execveat() system call

2014-11-14 Thread David Drysdale
Add a new execveat(2) system call. 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 specified, execveat() executes the file to which the

[PATCHv8 2/4] syscalls,x86: add selftest for execveat(2)

2014-11-14 Thread David Drysdale
Signed-off-by: David Drysdale drysd...@google.com --- tools/testing/selftests/Makefile| 1 + tools/testing/selftests/exec/.gitignore | 9 + tools/testing/selftests/exec/Makefile | 25 ++ tools/testing/selftests/exec/execveat.c | 397 4 files

Re: [RFC][PATCH 13/23 v4] tracing: Create seq_buf layer in trace_seq

2014-11-14 Thread Petr Mladek
On Thu 2014-11-13 20:12:57, Steven Rostedt wrote: From: Steven Rostedt (Red Hat) rost...@goodmis.org Create a seq_buf layer that trace_seq sits on. The seq_buf will not be limited to page size. This will allow other usages of seq_buf instead of a hard set PAGE_SIZE one that trace_seq has.

<    6   7   8   9   10   11   12   13   14   15   >