Re: [PATCHv2 7/7] zram: deprecate zram attrs sysfs nodes

2015-03-12 Thread Sergey Senozhatsky
Hi Minchan, On (03/13/15 08:55), Minchan Kim wrote: > How about adding pid, comm? Admin can know which process touches. > ok. > > struct zram *zram = dev_to_zram(d); \ > > + \ > > +

[PATCH] mmc: sdhci-iproc: fix oops in sdhci_iproc_writew

2015-03-12 Thread Dmitry Torokhov
The driver co-allocates sdhci_iproc_host with sdhci_pltfm_host and so to access it we need to use sdhci_pltfm_priv() and not pltfm_host->priv. Signed-off-by: Dmitry Torokhov --- drivers/mmc/host/sdhci-iproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

linux-next: build failure after merge of the vfs tree

2015-03-12 Thread Stephen Rothwell
Hi Al, After merging the vfs tree, today's linux-next build (arm multi_v7_defconfig) failed like this: fs/ext4/indirect.c: In function 'ext4_ind_direct_IO': fs/ext4/indirect.c:653:2: error: implicit declaration of function 'iov_iter_count' [-Werror=implicit-function-declaration] size_t count

[PATCH v3 1/1] usb: xhci: apply XHCI_AVOID_BEI quirk to all Intel xHCI controllers

2015-03-12 Thread Lu Baolu
When a device with an isochronous endpoint is plugged into the Intel xHCI host controller, and the driver submits multiple frames per URB, the xHCI driver will set the Block Event Interrupt (BEI) flag on all but the last TD for the URB. This causes the host controller to place an event on the

[PATCH v7 4/4] ARM: dts: enable PCIe support for Cygnus

2015-03-12 Thread Ray Jui
Add PCIe device nodes in bcm-cygnus.dtsi but keep them disabled there. Only enable them for bcm958300k where PCIe interfaces are populated Signed-off-by: Ray Jui Reviewed-by: Scott Branden --- arch/arm/boot/dts/bcm-cygnus.dtsi | 42 +

Re: [PATCH v3] x86: svm: use kvm_fast_pio_in()

2015-03-12 Thread Marcelo Tosatti
On Mon, Mar 02, 2015 at 03:02:02PM -0600, Joel Schopp wrote: > From: David Kaplan > > We can make the in instruction go faster the same way the out instruction is > already. > > Changes from v2[Joel]: > * changed rax from u32 to unsigned long > * changed a couple return 0 to

[PATCH v7 1/4] PCI: Export symbols of PCI functions

2015-03-12 Thread Ray Jui
Export symbols of the following PCI functions so they can be referenced by a PCI driver compiled as a kernel loadable module: pci_common_swizzle pci_create_root_bus pci_stop_root_bus pci_remove_root_bus pci_assign_unassigned_bus_resources pci_fixup_irqs Signed-off-by: Ray Jui ---

[PATCH v7 3/4] pci: iproc: Add Broadcom iProc PCIe support

2015-03-12 Thread Ray Jui
This adds the support for Broadcom iProc PCIe controller pcie-iproc.c servers as the common core driver, and front-end bus interface needs to be added to support different bus interfaces pcie-iproc-pltfm.c contains the support for the platform bus interface Signed-off-by: Ray Jui Reviewed-by:

[PATCH v7 0/4] pci: iproc: Add Broadcom iProc PCIe support

2015-03-12 Thread Ray Jui
This patch series adds the support for Broadcom iProc PCIe controller pcie-iproc.c servers as the common core driver, and front-end bus interface needs to be added to support different bus interfaces pcie-iproc-pltfm.c contains the support for the platform bus interface Changes from v6: - Fix

[PATCH v7 2/4] pci: iProc: define iProc PCIe platform bus binding

2015-03-12 Thread Ray Jui
Document the Broadcom iProc PCIe platform interface device tree binding Signed-off-by: Ray Jui Reviewed-by: Scott Branden --- .../devicetree/bindings/pci/brcm,iproc-pcie.txt| 63 1 file changed, 63 insertions(+) create mode 100644

Re: Alternative to signals/sys_membarrier() in liburcu

2015-03-12 Thread Mathieu Desnoyers
- Original Message - > From: "One Thousand Gnomes" > To: "Mathieu Desnoyers" > Cc: "Michael Sullivan" , "Peter Zijlstra" > , "LKML" > , "Steven Rostedt" , > lttng-...@lists.lttng.org, "Thomas Gleixner" > , "Paul E. McKenney" , "Linus > Torvalds" > , "Ingo Molnar" > Sent: Thursday,

Re: [PATCH v1] lib/vsprintf.c: Even faster decimal conversion

2015-03-12 Thread Jeff Epler
On Thu, Mar 12, 2015 at 07:08:35PM -0500, Jeff Epler wrote: > Since you asked about big-endian systems I also built your test program > for the armeb architecture -- which involved hacking up the test harness > fairly heavily to not require libc -- and ran the result in qemu. It eventually

Re: [PATCH v3 1/6] staging: rtl8192e: fix coding style issues (merge broken strings)

2015-03-12 Thread Joe Perches
On Fri, 2015-03-13 at 00:53 +0100, Mateusz Kulikowski wrote: [] > diff --git a/drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.c > b/drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.c > index 0e6bdd2..01d2201 100644 > --- a/drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.c > +++

[PATCH] PNP / ACPI: Use ACPI_COMPANION_SET() during initialization

2015-03-12 Thread Rafael J. Wysocki
From: Rafael J. Wysocki pnpacpi_add_device() calls acpi_bind_one() on an already registered device, which is a mistake, but it can initialize the ACPI companion field of the struct device to be registered using ACPI_COMPANION_SET() instead, so make it do that. Signed-off-by: Rafael J. Wysocki

[RFC v2][PATCH 1/2] PNP: Convert pnp_lock into a mutex

2015-03-12 Thread Rafael J. Wysocki
From: Rafael J. Wysocki pnp_lock is a spinlock, but it is only acquired from process context, so it may be a mutex just fine. Signed-off-by: Rafael J. Wysocki --- drivers/pnp/base.h |2 +- drivers/pnp/card.c | 25 + drivers/pnp/core.c | 19

[RFC v2][PATCH 0/2] PNP: Avoid potential error code path problems

2015-03-12 Thread Rafael J. Wysocki
On Thursday, March 12, 2015 02:20:07 AM Rafael J. Wysocki wrote: > Hi, > > These two patches fix potential issues related to failing device registration > in the PNP subsystem. I overlooked the fact that the registration of a PNP device cannot be put under pnp_lock (as it will deadlock), so new

[RFC v2][PATCH 2/2] PNP: Avoid leaving unregistered device objects in lists

2015-03-12 Thread Rafael J. Wysocki
From: Rafael J. Wysocki pnp_register_protocol() and __pnp_add_device() both have a problem that if device_register() fails, the objects they create will be left in the lists they have been put one beforehand. Unfortunately, that is not handled by the callers of those routines either, so in case

Re: [PATCH v6 3/4] pci: iproc: Add Broadcom iProc PCIe support

2015-03-12 Thread Ray Jui
On 3/12/2015 2:08 PM, Bjorn Helgaas wrote: > On Wed, Mar 11, 2015 at 11:06:08AM -0700, Ray Jui wrote: >> This adds the support for Broadcom iProc PCIe controller >> >> pcie-iproc.c servers as the common core driver, and front-end bus >> interface needs to be added to support different bus

Re: [PATCH v3 06/15] drivers: reset: Add STM32 reset driver

2015-03-12 Thread Chanwoo Choi
Hi Maxime, On 03/13/2015 06:55 AM, Maxime Coquelin wrote: > From: Maxime Coquelin > > The STM32 MCUs family IP can be reset by accessing some shared registers. > > The specificity is that some reset lines are used by the timers. > At timer initialization time, the timer has to be reset, that's

Re: [PATCH v3 05/15] dt-bindings: Document the STM32 reset bindings

2015-03-12 Thread Chanwoo Choi
Hi Maxime, On 03/13/2015 06:55 AM, Maxime Coquelin wrote: > From: Maxime Coquelin > > This adds documentation of device tree bindings for the > STM32 reset controller. > > Signed-off-by: Maxime Coquelin > --- > .../devicetree/bindings/reset/st,stm32-rcc.txt | 102 > +

Re: [PATCH v1] lib/vsprintf.c: Even faster decimal conversion

2015-03-12 Thread Jeff Epler
Since you asked about big-endian systems I also built your test program for the armeb architecture -- which involved hacking up the test harness fairly heavily to not require libc -- and ran the result in qemu. Actually, it hasn't finished after 2 hours of (qemu) CPU time, but I can tell from the

Re: [PATCH v5] media: i2c: add support for omnivision's ov2659 sensor

2015-03-12 Thread Sakari Ailus
Hi Prabhakar, On Thu, Mar 12, 2015 at 11:22:36PM +, Lad Prabhakar wrote: ... > +static int ov2659_probe(struct i2c_client *client, > + const struct i2c_device_id *id) > +{ > + const struct ov2659_platform_data *pdata = ov2659_get_pdata(client); > + struct

Re: Alternative to signals/sys_membarrier() in liburcu

2015-03-12 Thread One Thousand Gnomes
On Thu, 12 Mar 2015 20:56:00 + (UTC) Mathieu Desnoyers wrote: > (sorry for re-send, my mail client tricked me into posting HTML > to lkml) > > Hi, > > Michael Sullivan proposed a clever hack abusing mprotect() to > perform the same effect as sys_membarrier() I submitted a few > years

[PATCH v3 3/6] staging: rtl8192e: fix coding style issues (spaces before semicolon)

2015-03-12 Thread Mateusz Kulikowski
Fix checkpatch.pl warning 'space prohibited before semicolon'. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c | 2 +- drivers/staging/rtl8192e/rtl8192e/r8192E_firmware.c | 2 +- drivers/staging/rtl8192e/rtl8192e/r8192E_hwimg.h| 14 +++---

[PATCH v3 1/6] staging: rtl8192e: fix coding style issues (merge broken strings)

2015-03-12 Thread Mateusz Kulikowski
Fix checkpatch.pl warnings: - 'WARNING: quoted string split across lines' - 'WARNING: break quoted strings at a space character' Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl8192e/r8190P_rtl8256.c | 51 +++--- drivers/staging/rtl8192e/rtl8192e/r8192E_cmdpkt.c | 28 +--

Re: [PATCHv2 7/7] zram: deprecate zram attrs sysfs nodes

2015-03-12 Thread Minchan Kim
Hi Sergey, On Thu, Mar 12, 2015 at 11:47:18PM +0900, Sergey Senozhatsky wrote: > Add Documentation/ABI/obsolete/sysfs-block-zram file and list > obsolete and deprecated attributes there. The patch also adds > additional information to zram documentation and describes the > basic strategy: > - the

[PATCH v3 5/6] staging: rtl8192e: rtllib_wx: fix coding style (printk -> netdev_*)

2015-03-12 Thread Mateusz Kulikowski
Use netdev_*() functions to print diagnostic messages. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib_wx.c | 21 + 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib_wx.c

[PATCH v3 6/6] staging: rtl8192e: rtllib_wx: remove duplicate messages

2015-03-12 Thread Mateusz Kulikowski
Some messages were reported with netdev_* macros and internal driver-specific macro. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib_wx.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/staging/rtl8192e/rtllib_wx.c b/drivers/staging/rtl8192e/rtllib_wx.c

[PATCH v3 4/6] staging: rtl8192e: fix coding style errors (macros in parentheses)

2015-03-12 Thread Mateusz Kulikowski
Fix checkpatch.pl errors 'Macros with complex values should be enclosed in parentheses'. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtl819x_HT.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h

[PATCH v3 2/6] staging: rtl8192e: fix coding style issues (replace min with min_t)

2015-03-12 Thread Mateusz Kulikowski
Fix checkpatch.pl warning 'min() should probably be min_t()'. Signed-off-by: Mateusz Kulikowski --- drivers/staging/rtl8192e/rtllib_rx.c | 16 +++- drivers/staging/rtl8192e/rtllib_wx.c | 4 ++-- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git

Re: [RFC PATCH] PCI: Disable MSI/MSI-X only if device is shutdown

2015-03-12 Thread Bandan Das
Hi Fam, Fam Zheng writes: > If the device doesn't support shutdown, disabling interrupts may cause > trouble. For example, virtio-scsi-pci doesn't implement shutdown, and > after we disable MSI-X, futher notifications from device will be > delivered to IRQ, which is unexpected. This IRQ will

[PATCH v3 0/6] staging: rtl8192e: fix coding style issues

2015-03-12 Thread Mateusz Kulikowski
Various coding style fixes for rtl8192e driver. This series of patches includes v2 (changes to rtllib_wx.c), but also includes similar fixes for other files. checkpatch.pl still complains about some of patches - this will be fixed in further commits (warnings were mostly already there): 1/6: -

[PATCH] acpi: battery: make warning greppable

2015-03-12 Thread Martin Kepplinger
Signed-off-by: Martin Kepplinger --- I was so angry now, I had to write a change. Please keep things greppable and save unnecessary questions and time this way. drivers/acpi/battery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/battery.c

Re: [PATCH v3 00/15] Add support to STMicroelectronics STM32 family

2015-03-12 Thread Chanwoo Choi
Dear Maxime, I'm working for STM32 SoC. So, I'm very interesting in this patch-set. If you possible, please add me to Cc list on next patch-set. Best Regards, Chanwoo Choi On 03/13/2015 06:55 AM, Maxime Coquelin wrote: > From: Maxime Coquelin > > This third round tries to address most of the

[PATCH v3 04/12] ARM: ARMv7M: define size of vector table for Vybrid

2015-03-12 Thread Stefan Agner
Vybrids has 112 peripherial interrupts which can be routed to the Cortex-M4's NVIC interrupt controller. Signed-off-by: Stefan Agner --- arch/arm/mm/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig index 16d077e..8eebc0d 100644 ---

[PATCH v3 00/12] ARM: vf610m4: Add Vybrid Cortex-M4 support

2015-03-12 Thread Stefan Agner
This version of the patchset does not contain the interrupt router driver anymore (MSCM IR). The driver has been merged inbetween: https://lkml.org/lkml/2015/3/8/6 This patchset extends the NVIC driver to support irq domain hierarchy and the MSCM IR driver to support NVIC as a parent irq

[PATCH v3 08/12] ARM: allow MULTIPLATFORM with !MMU

2015-03-12 Thread Stefan Agner
In order to support SoC with heterogenous CPU architectures (such as Freescale Vybrid/i.MXSX) it is preferable to use the same architecture (ARCH_MXC in this case) for the MMU enabled and !MMU CPU. Hence allow to select MULTIPLATFORM even without MMU. Signed-off-by: Stefan Agner ---

[PATCH v3 06/12] ARM: unify MMU/!MMU addruart calls

2015-03-12 Thread Stefan Agner
Remove the needless differences between MMU/!MMU addruart calls. This allows to use the same addruart macro on SoC level. Useful for SoC consisting of multiple CPUs with and without MMU such as Freescale Vybrid. Signed-off-by: Stefan Agner --- arch/arm/include/debug/efm32.S | 2 +-

[PATCH v3 10/12] ARM: vf610: enable Cortex-M4 on Vybrid SoC

2015-03-12 Thread Stefan Agner
This patch allows to build the Kernel for Vybrid (VF6xx) SoC when ARMv7-M CPU is selected. The resulting image runs on the secondary Cortex-M4 core. This core has equally access to all peripherals as the main Cortex-A5 core. However, there is no resource control mechanism, hence when both cores

[PATCH v3 05/12] clocksource: add dependencies for Vybrid pit clocksource

2015-03-12 Thread Stefan Agner
Add the minimal dependencies required to use the Vybrid PIT clocksource driver. Those are not part of the SoC dependencies. Signed-off-by: Stefan Agner --- drivers/clocksource/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clocksource/Kconfig b/drivers/clocksource/Kconfig

[PATCH v3 03/12] irqchip: vf610-mscm: support NVIC parent

2015-03-12 Thread Stefan Agner
Support the NVIC interrupt controller as node parent of the MSCM interrupt router. On the dual-core variants of Vybird (VF6xx), the NVIC interrupt controller is used by the Cortex-M4. To support running Linux on this core too, MSCM needs NVIC parent support too. Signed-off-by: Stefan Agner ---

[PATCH v3 01/12] genirq: generic chip: support hierarchy domain

2015-03-12 Thread Stefan Agner
Use the new helper function irq_domain_set_info to make sure the function irq_domain_set_hwirq_and_chip is being called, which is crucial to save irqdomain specific data to irq_data. Signed-off-by: Stefan Agner --- kernel/irq/generic-chip.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[PATCH v3 12/12] ARM: vf610m4: add defconfig for Linux on Vybrids Cortex-M4

2015-03-12 Thread Stefan Agner
Add defconfig for Linux on Vybrid (vf610) on the secondary Cortex- M4 CPU. The use of a XIP image has been tested which needs to be loaded (e.g. using the custom m4boot loader) to the end of the available RAM at address 0x8f00. The Cortex-M4 has a code-alias which makes sure that the

[PATCH v3 09/12] ARM: efm32: move into multiplatform

2015-03-12 Thread Stefan Agner
From: Arnd Bergmann Since the multiplatform configuration can support no-MMU kernels now, there is nothing stopping us from moving the efm32 platform in there as well. This introduces a new ARCH_MULTI_V7M CPU architecture selection option, since v7-M is incompatible with v7-A, and we can have

[PATCH v3 07/12] ARM: imx: depend MXC debug board on 3DS machines

2015-03-12 Thread Stefan Agner
Depend the MXC debug board on machines which actually support it. Signed-off-by: Stefan Agner --- arch/arm/mach-imx/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index c8dffce..d21cb9a 100644 --- a/arch/arm/mach-imx/Kconfig +++

[PATCH v3 11/12] ARM: dts: add support for Vybrid running on Cortex-M4

2015-03-12 Thread Stefan Agner
This adds an initial device tree to run Linux on the Cortex-M4 on the Vybrid based Colibri VF61 module. Signed-off-by: Stefan Agner --- arch/arm/boot/dts/Makefile| 1 + arch/arm/boot/dts/vf610m4-colibri.dts | 98 +++ arch/arm/boot/dts/vf610m4.dtsi

Re: [PATCH] virtio: Remove virtio device during shutdown

2015-03-12 Thread Fam Zheng
On Thu, 03/12 17:22, Michael S. Tsirkin wrote: > On Wed, Mar 11, 2015 at 06:11:35PM +0800, Fam Zheng wrote: > > On Wed, 03/11 10:06, Michael S. Tsirkin wrote: > > > On Wed, Mar 11, 2015 at 04:09:17PM +0800, Fam Zheng wrote: > > > > Currently shutdown is nop for virtio devices, but the core code

[PATCH v3 02/12] irqchip: nvic: support hierarchy irq domain

2015-03-12 Thread Stefan Agner
Add support for hierarchy irq domain. Use to support the interrupt router found in Vybrid SoC, which is between the NVIC and the peripherals. Signed-off-by: Stefan Agner --- drivers/irqchip/irq-nvic.c | 28 +++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git

[PATCH] ARM: dts: am437x-gp-evm: add DT nodes for ov2659 sensor

2015-03-12 Thread Lad Prabhakar
From: "Lad, Prabhakar" this patch does the following: 1: adds DT node for fixed oscillator. 2: adds DT node entries for ov2659 sensor 3: adds remote-endpoint entry for VPFE. Signed-off-by: Lad, Prabhakar --- Note this patch depends on https://patchwork.kernel.org/patch/6000161/

Re: [PATCH] MAINTAINERS: Add maintainer for maxim codecs

2015-03-12 Thread anish
Is it picked up? On Mon, Mar 2, 2015 at 3:16 PM, Anish Kumar wrote: > This patch adds maintainer for maxim audio codecs. > Signed-off-by: Anish Kumar > --- > MAINTAINERS | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/MAINTAINERS b/MAINTAINERS > index 8bdd7a7..2128586 100644 >

Re: [RFC] powerpc: e6500 optimised copy_to_user/copy_from_user

2015-03-12 Thread Michael Ellerman
On Thu, 2015-03-12 at 17:45 -0500, Kim Phillips wrote: > This mimics commit a66086b8197da8dc83b698642d5947ff850e708d "powerpc: > POWER7 optimised copy_to_user/copy_from_user using VMX", but for > the e6500, or BOOK3S_64. Changes have been made for the smaller > cacheline size (64 bytes on e6500),

[PATCH v5] media: i2c: add support for omnivision's ov2659 sensor

2015-03-12 Thread Lad Prabhakar
From: Benoit Parrot this patch adds support for omnivision's ov2659 sensor, the driver supports following features: 1: Asynchronous probing 2: DT support 3: Media controller support Signed-off-by: Benoit Parrot Signed-off-by: Lad, Prabhakar --- Changes for v5: a: Implemented

Re: [RFC PATCH] PCI: Disable MSI/MSI-X only if device is shutdown

2015-03-12 Thread Fam Zheng
On Thu, 03/12 17:21, Paolo Bonzini wrote: > On 12/03/2015 06:21, Fam Zheng wrote: > > If the device doesn't support shutdown, disabling interrupts may cause > > trouble. For example, virtio-scsi-pci doesn't implement shutdown, and > > after we disable MSI-X, futher notifications from device will

[PATCH 1/7] x86/intel_rdt: Intel Cache Allocation Technology detection

2015-03-12 Thread Vikas Shivappa
This patch adds support for the new Cache Allocation Technology (CAT) feature found in future Intel Xeon processors. CAT is part of Intel Resource Director Technology(RDT) which enables sharing of processor resources. This patch includes CPUID enumeration routines for CAT and new values to track

[PATCH 6/7] x86/intel_rdt: Intel haswell CAT enumeration

2015-03-12 Thread Vikas Shivappa
CAT(Cache Allocation Technology) on hsw needs to be enumerated separately. CAT is only supported on certain HSW SKUs. This patch does a probe test for hsw CPUs by writing a CLOSid into high 32 bits of IA32_PQR_MSR and see if the bits stick. The probe test is only done after confirming that the

[PATCH 5/7] x86/intel_rdt: Software Cache for IA32_PQR_MSR

2015-03-12 Thread Vikas Shivappa
This patch implements a common software cache for IA32_PQR_MSR(RMID 0:9, CLOSId 32:63) to be used by both CMT and CAT. CMT updates the RMID where as CAT updates the CLOSid in the software cache. When the new RMID/CLOSid value is different from the cached values, IA32_PQR_MSR is updated. Since

[PATCH 4/7] x86/intel_rdt: Implement scheduling support for Intel RDT

2015-03-12 Thread Vikas Shivappa
Adds support for IA32_PQR_ASSOC MSR writes during task scheduling. The high 32 bits in the per processor MSR IA32_PQR_ASSOC represents the CLOSid. During context switch kernel implements this by writing the CLOSid of the cgroup to which the task belongs to the CPU's IA32_PQR_ASSOC MSR. For Cache

[PATCH 3/7] x86/intel_rdt: Support cache bit mask for Intel CAT

2015-03-12 Thread Vikas Shivappa
Add support for cache bit mask manipulation. The change adds a file to the RDT cgroup which represents the CBM(cache bit mask) for the cgroup. The RDT cgroup follows cgroup hierarchy ,mkdir and adding tasks to the cgroup never fails. When a child cgroup is created it inherits the CLOSid and the

[PATCH 7/7] x86/intel_rdt: Add CAT documentation and usage guide

2015-03-12 Thread Vikas Shivappa
This patch adds a description of Cache allocation technology, overview of kernel implementation and usage of CAT cgroup interface. Signed-off-by: Vikas Shivappa --- Documentation/cgroups/rdt.txt | 183 ++ 1 file changed, 183 insertions(+) create mode

[PATCH 2/7] x86/intel_rdt: Adds support for Class of service management

2015-03-12 Thread Vikas Shivappa
This patch adds a cgroup subsystem to support Intel Resource Director Technology(RDT) or Platform Shared resources Control. The resources that are currently supported for sharing is Last level cache (Cache Allocation Technology or CAT). When a RDT cgroup is created it has a CLOSid and CBM

[PATCH V5 0/7] x86/intel_rdt: Intel Cache Allocation Technology

2015-03-12 Thread Vikas Shivappa
This patch adds a new cgroup subsystem to support the new Cache Allocation Technology (CAT) feature found in future Intel Xeon Intel processors. CAT is part of Resource Director Technology(RDT) or Platform Shared resource control which provides support to control Platform shared resources like

Re: [PATCH] Fix page-flags build

2015-03-12 Thread Andi Kleen
> A bit more info would have helped! It didn't build because libabikfs doesn't exist anymore. Nothing more to say. > This appears to be a fix for 285a8f247b08c2 ("tools lib api: Rename > libapikfs.a to libapi.a"), authored by Jiri, committed by Arnaldo and > presently in linux-next. Ok. Should

Re: [PATCH] kernel:Change the function definiton of do_exit to comply with its function prototypes in kernel.h

2015-03-12 Thread Andrew Morton
On Wed, 11 Mar 2015 00:36:50 -0400 Nicholas Krause wrote: > This fixes the function definiton of do_exit to comply with its > function prototype as defined in kernel.h as found when running > sparse on the latest updated version of the mainline kernel. > > ... > > -void do_exit(long code)

[PATCH] net/macb: Only adjust tx_clk on link change

2015-03-12 Thread Jaeden Amero
The PHY state machine (in drivers/net/phy/phy.c) will unconditionally call phydev->adjust_link (macb_handle_link_change) when polling in the PHY_CHANGELINK state. As currently written, macb always ends up requesting a new tx_clk frequency in macb_handle_link_change. It is a waste of time to

Re: [PATCH v2 1/4] kernel.h: add find_closest() macro

2015-03-12 Thread Andrew Morton
On Tue, 10 Mar 2015 18:27:19 +0100 Bartosz Golaszewski wrote: > +/* > + * Similar to find_closest(), but 'a' is expected to be sorted > + * in descending order. > + */ > +#define find_closest_desc(x, a, as) __find_closest(x, a, as, >) description? descriptor? descendent? oh, it's

Re: Update the clk tree for linux-next

2015-03-12 Thread Stephen Rothwell
Hi Mike, On Thu, 12 Mar 2015 12:08:47 -0700 Mike Turquette wrote: > > Stephen Boyd has kindly agreed to co-maintain the clk framework with > me and we have shared commit access to a new git tree at kernel.org: > > https://git.kernel.org/cgit/linux/kernel/git/clk/linux.git/ > > Can you update

[RFC] powerpc: e6500 optimised copy_to_user/copy_from_user

2015-03-12 Thread Kim Phillips
This mimics commit a66086b8197da8dc83b698642d5947ff850e708d "powerpc: POWER7 optimised copy_to_user/copy_from_user using VMX", but for the e6500, or BOOK3S_64. Changes have been made for the smaller cacheline size (64 bytes on e6500), and data cache block touch (dcbt) instructions have been

Re: mmotm 2015-03-12-15-17 uploaded

2015-03-12 Thread Stephen Rothwell
Hi Andrew, On Thu, 12 Mar 2015 15:18:20 -0700 a...@linux-foundation.org wrote: > > * mm-move-memtest-under-mm.patch This had no From for Subject lines ... I made it From: Vladimir Murzin Subject: mm: move memtest under mm -- Cheers, Stephen Rothwells...@canb.auug.org.au

Re: [PATCH] Fix page-flags build

2015-03-12 Thread Andrew Morton
On Thu, 12 Mar 2015 15:39:13 -0700 Andi Kleen wrote: > From: Andi Kleen > > libabikfs.a doesn't exist anymore, so we now need to link with > libapi.a > > Signed-off-by: Andi Kleen > --- > tools/vm/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH] powercap/rapl: handle domain energy unit

2015-03-12 Thread kazutomo
On 03/12/2015 05:05 PM, Jacob Pan wrote: > On Thu, 12 Mar 2015 16:59:43 -0500 > kazutomo wrote: > >>> according to the document, future DRAM energy unit will always be >>> hardcoded to 15.3uJ, no enumeration since there is no domain >>> specific MSR for energy unit. >> Which document are you

Re: [PATCH v6 13/22] power_supply: Change ownership from driver to core

2015-03-12 Thread Rafael J. Wysocki
On Tuesday, March 10, 2015 09:27:17 AM Krzysztof Kozlowski wrote: > Change the ownership of power_supply structure from each driver > implementing the class to the power supply core. > > The patch changes power_supply_register() function thus all drivers > implementing power supply class are

Re: Re: [PATCH v2 3/3] efi: Capsule update with user helper interface

2015-03-12 Thread Matt Fleming
On Tue, 10 Mar, at 08:51:59AM, Andy Lutomirski wrote: > > I'm not 100% happy with write(2) (which is all we have in sysfs) for > two reasons: > > 1. If we write a file name, eww. That's more complicated, requires > temporary files, has annoying mount namespace issues, etc. > > 2. If we write

Re: [LKP] [mm/hotplug] 27356f54c8c:

2015-03-12 Thread Toshi Kani
On Thu, 2015-03-12 at 14:42 +0800, Huang Ying wrote: > FYI, we noticed the below changes on > > git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > commit 27356f54c8c32609ff45b4ed333bb64fb2eef374 ("mm/hotplug: verify hotplug > memory range") > > This may be the expected

Re: [PATCH v4 1/2] Input: touchscreen-iproc: Add Broadcom iProc touchscreen driver

2015-03-12 Thread Jonathan Richardson
On 15-03-12 10:59 AM, Joe Perches wrote: > On Thu, 2015-03-12 at 10:45 -0700, Jonathan Richardson wrote: >> Add initial version of the Broadcom touchscreen driver. > > style trivia: > (any of which could be fixed/improved/ignored later) > >> diff --git a/drivers/input/touchscreen/bcm_iproc_tsc.c

Re: [PATCH v10 14/21] ACPI / processor: Make it possible to get CPU hardware ID via GICC

2015-03-12 Thread Rafael J. Wysocki
On Wednesday, March 11, 2015 08:39:40 PM Hanjun Guo wrote: > Introduce a new function map_gicc_mpidr() to allow MPIDRs to be obtained > from the GICC Structure introduced by ACPI 5.1, since MPIDR for ARM64 is > 64-bit, so typedef u64 for phys_cpuid_t. > > The ARM architecture defines the MPIDR

[PATCH] Fix page-flags build

2015-03-12 Thread Andi Kleen
From: Andi Kleen libabikfs.a doesn't exist anymore, so we now need to link with libapi.a Signed-off-by: Andi Kleen --- tools/vm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/vm/Makefile b/tools/vm/Makefile index ac884b6..93aadaf 100644 ---

Re: [RFC][PATCH 1/2] fs proc: make pagemap a privileged interface

2015-03-12 Thread Andrew Morton
On Mon, 09 Mar 2015 13:43:21 -0700 Dave Hansen wrote: > > From: Dave Hansen > > Physical addresses are sensitive information. There are > existing, known exploits that are made easier if physical > information is available. Here is one example: > >

Re: [PATCH v10 06/21] ACPI / sleep: Introduce CONFIG_ACPI_GENERIC_SLEEP

2015-03-12 Thread Rafael J. Wysocki
On Wednesday, March 11, 2015 08:39:32 PM Hanjun Guo wrote: > From: Graeme Gregory > > ACPI 5.1 does not currently support S states for ARM64 hardware but > ACPI code will call acpi_target_system_state() and acpi_sleep_init() > for device power management, so introduce CONFIG_ACPI_GENERIC_SLEEP >

Re: [PATCH 1/2] ACPI / EC: Cleanup logging/debugging splitter support.

2015-03-12 Thread Joe Perches
On Fri, 2015-02-27 at 14:48 +0800, Lv Zheng wrote: > This patch refines logging/debugging splitter support so that when DEBUG is > disabled, splitters won't be visible in the kernel logs while they are > still available for developers when DEBUG is enabled. > > This patch also refines the

Re: Alternative to signals/sys_membarrier() in liburcu

2015-03-12 Thread Mathieu Desnoyers
- Original Message - > From: "Linus Torvalds" > To: "Mathieu Desnoyers" > Cc: "Michael Sullivan" , lttng-...@lists.lttng.org, "LKML" > , "Paul E. > McKenney" , "Peter Zijlstra" > , "Ingo Molnar" , > "Thomas Gleixner" , "Steven Rostedt" > Sent: Thursday, March 12, 2015 5:47:05 PM >

Re: [PATCH v6 2/2] hwspinlock: qcom: Add support for Qualcomm HW Mutex block

2015-03-12 Thread Lina Iyer
On Fri, Feb 27 2015 at 15:30 -0700, Bjorn Andersson wrote: Add driver for Qualcomm Hardware Mutex block found in many Qualcomm SoCs. Based on initial effort by Kumar Gala Signed-off-by: Bjorn Andersson +config HWSPINLOCK_QCOM + tristate "Qualcomm Hardware Spinlock device" +

Re: [RFC] capabilities: Ambient capabilities

2015-03-12 Thread Andrew Lutomirski
On Thu, Mar 12, 2015 at 3:10 PM, Andrew G. Morgan wrote: > I'm unclear why you refer to the inheritable set in this test: > > + } else { > + if (arg2 == PR_CAP_AMBIENT_RAISE && > + (!cap_raised(current_cred()->cap_permitted, arg3) >

Re: [PATCH 0/2] ACPI / EC: Enhance logging/debugging.

2015-03-12 Thread Rafael J. Wysocki
On Friday, February 27, 2015 02:48:07 PM Lv Zheng wrote: > This patchset enhances logging/debugging support in EC driver. > > Lv Zheng (2): > ACPI / EC: Cleanup logging/debugging splitter support. > ACPI / EC: Add GPE reference counting debugging messages. > > drivers/acpi/ec.c | 120 >

mmotm 2015-03-12-15-17 uploaded

2015-03-12 Thread akpm
The mm-of-the-moment snapshot 2015-03-12-15-17 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

Re: [PATCH] acpi: The count field of counter_show() function should be an unsigned value

2015-03-12 Thread Rafael J. Wysocki
On Wednesday, March 04, 2015 06:48:35 PM Lee, Chun-Yi wrote: > From: Nan Li > > The count field is an unsigned 32bit value, and the > counter_show() function should also treat it as a unsigned > value. > > Otherwise the counter may show negative number as we found on a > machine: > ... > gpe23:

Re: [PATCH] Lock 7 is cpuidle specific, use non-generic value for locking

2015-03-12 Thread Lina Iyer
On Thu, Mar 12 2015 at 15:12 -0600, Stephen Boyd wrote: On 03/12/15 13:48, Lina Iyer wrote: On Thu, Mar 12 2015 at 14:35 -0600, Stephen Boyd wrote: On 03/12/15 12:38, Lina Iyer wrote: --- sign off? :) I was just hacking it to make it easier to understand. Sure.

Re: [PATCH] Revert "cpupower Makefile change to help run the tool without 'make install'"

2015-03-12 Thread Rafael J. Wysocki
On Tuesday, March 10, 2015 08:26:36 PM Josh Boyer wrote: > This reverts commit 5c1de006e8e66b0be05be422416629e344c71652. > > While the original commit makes it easier to run cpupower from the local build > directory, it also leaves the binary with a rather poor rpath of './' in it > after it is

Re: [PATCH] MAINTAINERS: add entry for Generic PM domains (genpd)

2015-03-12 Thread Rafael J. Wysocki
On Thursday, March 12, 2015 06:37:24 PM Geert Uytterhoeven wrote: > On Thu, Mar 12, 2015 at 6:33 PM, Kevin Hilman wrote: > > Add entry for genpd with Rafael, myself and Ulf as co-maintainers. > > Thanks, Kevin! > > > Cc: Rafael J. Wysocki > > Cc: Ulf Hansson > > Signed-off-by: Kevin Hilman >

Re: [update][PATCH v10 13/21] ACPI / processor: Introduce phys_cpuid_t for CPU hardware ID

2015-03-12 Thread Rafael J. Wysocki
On Thursday, March 12, 2015 08:38:40 PM Hanjun Guo wrote: > CPU hardware ID (phys_id) is defined as u32 in structure acpi_processor, > but phys_id is used as int in acpi processor driver, so it will lead to > some inconsistence for the drivers. > > Furthermore, to cater for ACPI arch ports that

Re: [RFC] capabilities: Ambient capabilities

2015-03-12 Thread Andrew G. Morgan
I'm unclear why you refer to the inheritable set in this test: + } else { + if (arg2 == PR_CAP_AMBIENT_RAISE && + (!cap_raised(current_cred()->cap_permitted, arg3) || +

[PATCH RT] irq_work: Hide access to hirq_work_list in PREEMPT_RT_FULL

2015-03-12 Thread Steven Rostedt
The hirq_work_list is only defined when PREEMPT_RT_FULL is configured. Most access to it is within an #ifdef CONFIG_PREEMPT_RT_FULL, except for one. Encapsulate that location too. Signed-off-by: Steven Rostedt --- diff --git a/kernel/irq_work.c b/kernel/irq_work.c index

Re: [PATCH] powercap/rapl: handle domain energy unit

2015-03-12 Thread Jacob Pan
On Thu, 12 Mar 2015 16:59:43 -0500 kazutomo wrote: > > according to the document, future DRAM energy unit will always be > > hardcoded to 15.3uJ, no enumeration since there is no domain > > specific MSR for energy unit. > Which document are you referring to? Intel DocID:330784-001 Sept 2014

Re: [PATCH v2 18/22] usb: gadget: serial: %pf is only for function pointers

2015-03-12 Thread Fabio Estevam
On Thu, Mar 12, 2015 at 6:46 PM, Scott Wood wrote: > Use %ps for actual addresses, otherwise you'll get bad output > on arches like ppc64 where %pf expects a function descriptor > (which is not what __builtin_return_address returns). > > Signed-off-by: Scott Wood > Cc: linux-...@vger.kernel.org

[PATCH v3 02/15] ARM: ARMv7-M: Enlarge vector table up to 256 entries

2015-03-12 Thread Maxime Coquelin
From: Maxime Coquelin >From Cortex-M reference manuals, the nvic supports up to 240 interrupts. So the number of entries in vectors table is up to 256. This patch adds a new config flag to specify the number of external interrupts. Some ifdeferies are added in order to respect the natural

Re: [PATCH] powercap/rapl: handle domain energy unit

2015-03-12 Thread Rafael J. Wysocki
On Thursday, March 12, 2015 01:17:39 PM Jacob Pan wrote: > On Wed, 11 Mar 2015 23:01:30 +0100 > "Rafael J. Wysocki" wrote: > > > On Wednesday, March 11, 2015 05:55:09 AM Jacob Pan wrote: > > > The current driver assumes all RAPL domains within a CPU package > > > have the same energy unit. This

[PATCH v3 00/15] Add support to STMicroelectronics STM32 family

2015-03-12 Thread Maxime Coquelin
From: Maxime Coquelin This third round tries to address most of the comments made on previous series. It contains few less patches, as the reset_controller_of_init() patch has been removed, now that the bootlaoder handles the reset of the timers. The pinctrl driver has also been removed after

[PATCH v3 05/15] dt-bindings: Document the STM32 reset bindings

2015-03-12 Thread Maxime Coquelin
From: Maxime Coquelin This adds documentation of device tree bindings for the STM32 reset controller. Signed-off-by: Maxime Coquelin --- .../devicetree/bindings/reset/st,stm32-rcc.txt | 102 + 1 file changed, 102 insertions(+) create mode 100644

[PATCH v3 07/15] dt-bindings: Document the STM32 timer bindings

2015-03-12 Thread Maxime Coquelin
From: Maxime Coquelin This adds documentation of device tree bindings for the STM32 timer. Signed-off-by: Maxime Coquelin --- .../devicetree/bindings/timer/st,stm32-timer.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644

[PATCH v3 03/15] dt-bindings: Document the ARM System timer bindings

2015-03-12 Thread Maxime Coquelin
From: Maxime Coquelin This adds documentation of device tree bindings for the ARM System timer. Signed-off-by: Maxime Coquelin --- .../devicetree/bindings/arm/armv7m_systick.txt | 26 ++ 1 file changed, 26 insertions(+) create mode 100644

[PATCH v3 04/15] clocksource: Add ARM System timer driver

2015-03-12 Thread Maxime Coquelin
From: Maxime Coquelin This patch adds clocksource support for ARMv7-M's System timer, also known as SysTick. Signed-off-by: Maxime Coquelin --- drivers/clocksource/Kconfig | 7 drivers/clocksource/Makefile | 1 + drivers/clocksource/armv7m_systick.c | 78

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