[Patch Part3 V2 02/21] iommu/vt-d: use correct domain id to flush virtual machine domains

2014-05-06 Thread Jiang Liu
For virtual machine domains, domain->id is a virtual id, and the real domain id written into context entry is dynamically allocated. So use the real domain id instead of domain->id when flushing iotlbs for virtual machine domains. Signed-off-by: Jiang Liu --- drivers/iommu/intel-iommu.c |2 +

[Patch Part3 V2 01/21] iommu/vt-d: match segment number when searching for dev_iotlb capable devices

2014-05-06 Thread Jiang Liu
For virtual machine and static identity domains, there may be devices from different PCI segments associated with the same domain. So function iommu_support_dev_iotlb() should also match PCI segment number (iommu unit) when searching for dev_iotlb capable devices. Signed-off-by: Jiang Liu --- dr

[Patch Part3 V2 00/21] Enable support of Intel DMAR device hotplug

2014-05-06 Thread Jiang Liu
When hot plugging a descrete IOH or a physical processor with embedded IIO, we need to handle DMAR(or IOMMU) unit in the PCIe host bridge if DMAR is in use. This patch set tries to enhance current DMAR/IOMMU/IR drivers to support hotplug and is based on latest mainstream kernel v3.15-rc3-177-g0384d

[Patch Part3 V2 03/21] iommu/vt-d: introduce helper functions to improve code readability

2014-05-06 Thread Jiang Liu
Introduce domain_type_is_vm() and domain_type_is_vm_or_si() to improve code readability. Also kill useless macro DOMAIN_FLAG_P2P_MULTIPLE_DEVICES. Signed-off-by: Jiang Liu --- drivers/iommu/intel-iommu.c | 59 +++ 1 file changed, 26 insertions(+), 33 de

[Patch Part3 V2 05/21] iommu/vt-d: only dynamically allocate domain id for virtual domains

2014-05-06 Thread Jiang Liu
Check the same domain id is allocated for si_domain on each IOMMU, otherwise the IOTLB flush for si_domain will fail. Now the rules to allocate and manage domain id are: 1) For normal and static identity domains, domain id is allocated when creating domain structure. And this id will be written

[Patch Part3 V2 15/21] iommu/vt-d: dynamically allocate and free seq_id for DMAR units

2014-05-06 Thread Jiang Liu
Introduce functions to support dynamic IOMMU seq_id allocating and releasing, which will be used to support DMAR hotplug. Also rename IOMMU_UNITS_SUPPORTED as DMAR_UNITS_SUPPORTED. Signed-off-by: Jiang Liu --- drivers/iommu/dmar.c| 40 ++-- drivers/

[Patch Part3 V2 04/21] iommu/vt-d: introduce helper functions to make code symmetric for readability

2014-05-06 Thread Jiang Liu
Introduce domain_attach_iommu()/domain_detach_iommu() and refine iommu_attach_domain()/iommu_detach_domain() to make code symmetric and improve readability. Signed-off-by: Jiang Liu --- drivers/iommu/intel-iommu.c | 146 --- 1 file changed, 80 insertions(

[Patch Part3 V2 11/21] iommu/vt-d: introduce helper domain_pfn_within_range() to simplify code

2014-05-06 Thread Jiang Liu
Introduce helper function domain_pfn_within_range() to simplify code and improve readability. Signed-off-by: Jiang Liu --- drivers/iommu/intel-iommu.c | 30 -- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/drivers/iommu/intel-iommu.c b/drivers/iomm

[Patch Part3 V2 16/21] iommu/vt-d: implement DMAR unit hotplug framework

2014-05-06 Thread Jiang Liu
On Intel platforms, an IO Hub (PCI/PCIe host bridge) may contain DMAR units, so we need to support DMAR hotplug when supporting PCI host bridge hotplug on Intel platforms. According to Section 8.8 "Remapping Hardware Unit Hot Plug" in "Intel Virtualization Technology for Directed IO Architecture S

[Patch Part3 V2 17/21] iommu/vt-d: search _DSM method for DMAR hotplug

2014-05-06 Thread Jiang Liu
According to Intel VT-d specification, _DSM method to support DMAR hotplug should exist directly under corresponding ACPI object representing PCI host bridge. But some BIOSes doesn't conform to this, so search for _DSM method in the subtree starting from the ACPI object representing the PCI host br

[Patch Part3 V2 20/21] iommu/vt-d: enhance intel-iommu driver to support DMAR unit hotplug

2014-05-06 Thread Jiang Liu
Implement required callback functions for intel-iommu driver to support DMAR unit hotplug. Signed-off-by: Jiang Liu --- drivers/iommu/intel-iommu.c | 206 +++ 1 file changed, 151 insertions(+), 55 deletions(-) diff --git a/drivers/iommu/intel-iommu.c b/d

[Patch Part3 V2 18/21] iommu/vt-d: enhance intel_irq_remapping driver to support DMAR unit hotplug

2014-05-06 Thread Jiang Liu
Implement required callback functions for intel_irq_remapping driver to support DMAR unit hotplug. Signed-off-by: Jiang Liu --- drivers/iommu/intel_irq_remapping.c | 222 ++- 1 file changed, 169 insertions(+), 53 deletions(-) diff --git a/drivers/iommu/intel_irq

[Patch Part3 V2 21/21] pci, ACPI, iommu: enhance pci_root to support DMAR device hotplug

2014-05-06 Thread Jiang Liu
Finally enhance pci_root driver to support DMAR device hotplug when hot-plugging PCI host bridges. Signed-off-by: Jiang Liu --- drivers/acpi/pci_root.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c index

[Patch Part3 V2 19/21] iommu/vt-d: enhance error recovery in function intel_enable_irq_remapping()

2014-05-06 Thread Jiang Liu
Enhance error recovery in function intel_enable_irq_remapping() by tearing down all created data structures. Signed-off-by: Jiang Liu --- drivers/iommu/intel_irq_remapping.c |8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/iommu/intel_irq_remapping.c b/driv

[Patch Part3 V2 14/21] IOMMU/vt-d: introduce helper function dmar_walk_resources()

2014-05-06 Thread Jiang Liu
Introduce helper function dmar_walk_resources to walk resource entries in DMAR table and ACPI buffer object returned by ACPI _DSM method for IOMMU hot-plug. Signed-off-by: Jiang Liu --- drivers/iommu/dmar.c| 208 +++ drivers/iommu/intel-iommu.c |

[Patch Part3 V2 09/21] iommu/vt-d: change iommu_enable/disable_translation to return void

2014-05-06 Thread Jiang Liu
Simplify error handling path by changing iommu_{enable|disable}_translation to return void. Signed-off-by: Jiang Liu --- drivers/iommu/intel-iommu.c | 18 +- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c

[Patch Part3 V2 12/21] iommu/vt-d: introduce helper function iova_size() to improve code readability

2014-05-06 Thread Jiang Liu
Signed-off-by: Jiang Liu --- drivers/iommu/intel-iommu.c |7 +++ include/linux/iova.h|5 + 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 7b54f4a08bb9..0ebea100108f 100644 --- a/drivers/iommu/i

[Patch Part3 V2 07/21] iommu/vt-d: avoid freeing virtual machine domain in free_dmar_iommu()

2014-05-06 Thread Jiang Liu
Virtual machine domains are created by intel_iommu_domain_init() and should be destroyed by intel_iommu_domain_destroy(). So avoid freeing virtual machine domain data structure in free_dmar_iommu() when doamin->iommu_count reaches zero, otherwise it may cause invalid memory access because the IOMMU

[Patch Part3 V2 10/21] iommu/vt-d: simplify intel_unmap_sg() and kill duplicated code

2014-05-06 Thread Jiang Liu
Introduce intel_unmap() to reduce duplicated code in intel_unmap_sg() and intel_unmap_page(). Also let dma_pte_free_pagetable() to call dma_pte_clear_range() directly, so caller only needs to call dma_pte_free_pagetable(). Signed-off-by: Jiang Liu --- drivers/iommu/intel-iommu.c | 77

[Patch Part3 V2 08/21] iommu/VT-d: simplify include/linux/dmar.h

2014-05-06 Thread Jiang Liu
Simplify include/linux/dmar.h a bit based on the fact that both CONFIG_INTEL_IOMMU and CONFIG_IRQ_REMAP select CONFIG_DMAR_TABLE. Signed-off-by: Jiang Liu --- include/linux/dmar.h | 50 ++ 1 file changed, 18 insertions(+), 32 deletions(-) diff -

[Patch Part3 V2 13/21] iommu/vt-d: fix bug in computing domain's iommu_snooping flag

2014-05-06 Thread Jiang Liu
IOMMU units may dynamically attached to/detached from domains, so we should scan all active IOMMU units when computing iommu_snooping flag for a domain instead of only scanning IOMMU units associated with the domain. Also check snooping and superpage capabilities when hot-adding DMAR units. Signe

Re: [PATCH v3] pcie: Add Xilinx PCIe Host Bridge IP driver

2014-05-06 Thread Srikanth Thokala
On Thu, May 1, 2014 at 3:11 AM, Bjorn Helgaas wrote: > On Tue, Apr 15, 2014 at 05:08:31PM +0530, Srikanth Thokala wrote: >> This is the driver for Xilinx AXI PCIe Host Bridge Soft IP >> >> Signed-off-by: Srikanth Thokala >> --- >> Changes in v3: >> - Rebased on v3.15.0-rc1 >> - Added support for

[Patch Part3 V2 06/21] iommu/vt-d: fix possible invalid memory access caused by free_dmar_iommu()

2014-05-06 Thread Jiang Liu
Static identity and virtual machine domains may be cached in iommu->domain_ids array after corresponding IOMMUs have been removed from domain->iommu_bmp. So we should check domain->iommu_bmp before decreasing domain->iommu_count in function free_dmar_iommu(), otherwise it may cause free of inuse do

Re: [PATCH] ahci: unregister acpi notify handler when a ZPODD is unbound

2014-05-06 Thread Levente Kurusa
Hi, On 05/06/2014 08:07 AM, Aaron Lu wrote: > On 05/06/2014 02:02 PM, Levente Kurusa wrote: >> Hi, >> >> On 05/06/2014 05:16 AM, Aaron Lu wrote: >>> On 05/01/2014 12:04 AM, Levente Kurusa wrote: When a ZPODD device is unbound via sysfs, the acpi notify handler is not removed. This causes

Re: [PATCH 1/9] ARM: STi: DT: STiH416: 416 DT Entry for clockgen A0/1/10/11/12

2014-05-06 Thread Lee Jones
> Patch adds DT entries for clockgen A0/1/10/11/12 > > Signed-off-by: Pankaj Dev > Signed-off-by: Gabriel Fernandez > --- > arch/arm/boot/dts/stih416-clks.h | 15 ++ This should live in include/dt-bindings/clk > arch/arm/boot/dts/stih416-clock.dtsi | 477 +

Re: [PATCH 6/9] ARM: STi: DT: STiH415: 415 DT Entry for clockgen A0/1/10/11/12

2014-05-06 Thread Lee Jones
> Patch adds DT entries for clockgen A0/1/10/11/12 > > Signed-off-by: Pankaj Dev > Signed-off-by: Gabriel Fernandez > --- > arch/arm/boot/dts/stih415-clks.h | 15 ++ Move to include/dt-bindings/clk. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source softwar

[PATCHv2] arm: put_user: fix possible data corruption in put_user

2014-05-06 Thread Andrey Ryabinin
According to arm procedure call standart r2 register is call-cloberred. So after the result of x expression was put into r2 any following function call in p may overwrite r2. To fix this, the result of p expression must be saved to the temporary variable before the assigment x expression to __r2.

Re: [PATCH V3] perf tools: Clarify the output of perf sched map.

2014-05-06 Thread Ingo Molnar
* Dongsheng Yang wrote: > From: Dongsheng > > In output of perf sched map, any shortname of thread will be explained > at the first time when it appear. > > Example: > *A0 228836.978985 secs A0 => perf:23032 > *. A0 228836.979016 secs B0 => swapper:0 >

Re: [PATCH 0/4] Introducing Exynos ChipId driver

2014-05-06 Thread Arnd Bergmann
On Monday 05 May 2014 10:34:02 Rob Herring wrote: > > > Ideally this should be done by slightly restructuring the DT > > source to make all on-chip devices appear below the soc node. > > We'd have to think a bit about how to best do this while > > preserving compatibility with existing dts files.

Re: RFC: A reduced Linux network stack for small systems

2014-05-06 Thread Richard Weinberger
On Tue, May 6, 2014 at 12:25 AM, Andi Kleen wrote: > There has been a lot of interest recently to run Linux on very small systems, > like Quark systems. These may have only 2-4MB memory. They are also limited > by flash space. > > One problem on these small system is the size of the network stack.

Re: [PATCH 0/4] Introducing Exynos ChipId driver

2014-05-06 Thread Arnd Bergmann
On Tuesday 06 May 2014 15:57:24 Pankaj Dubey wrote: > On 05/05/2014 11:58 PM, Arnd Bergmann wrote: > > On Monday 05 May 2014 18:23:55 Pankaj Dubey wrote: > >> On 05/04/2014 12:02 AM, Arnd Bergmann wrote: > >>> Ideally this should be done by slightly restructuring the DT > >>> source to make all on-

Re: [PATCH] ahci: unregister acpi notify handler when a ZPODD is unbound

2014-05-06 Thread Aaron Lu
On 05/06/2014 03:14 PM, Levente Kurusa wrote: > Hi, > > On 05/06/2014 08:07 AM, Aaron Lu wrote: >> On 05/06/2014 02:02 PM, Levente Kurusa wrote: >>> Hi, >>> >>> On 05/06/2014 05:16 AM, Aaron Lu wrote: On 05/01/2014 12:04 AM, Levente Kurusa wrote: > When a ZPODD device is unbound via sysfs

Re: [RFC PATCH 0/2] kpatch: dynamic kernel patching

2014-05-06 Thread Ingo Molnar
* Jiri Kosina wrote: > On Mon, 5 May 2014, David Lang wrote: > > > how would you know that all instances of the datastructure in memory > > have= been touched? just because all tasks have run and are outside the > > function in question doesn't tell you data structures have been > > converte

Re: [PATCH/RFC] Deprecate BUG/BUG_ON in favour of BUG_AND_HALT/BUG_AND_HALT_ON

2014-05-06 Thread Ingo Molnar
* Richard Weinberger wrote: > On Wed, Apr 30, 2014 at 5:03 PM, Paul Gortmaker > wrote: > > A long standing problem for us has been the misuse of BUG/BUG_ON. > > The typical misuse is someone only thinking of what represents > > a bug in their local code, and especially for people relatively > >

Re: [PATCH part2 0/6] charger/mfd: max14577: Part 2 of adding support for MAX77836

2014-05-06 Thread Krzysztof Kozlowski
Hi Dmitry, David, I need acks or reviews from power supply subsystem maintainers for patches: - 1/6: charger: max14577: Add support for MAX77836 charger - 3/6: charger: max14577: Configure battery-dependent settings from DTS - 4/6: power: max17040: Add ID for MAX77836 Fuel Gauge block These pa

[PATCH v4 2/2] ARM: i.MX6: Add OF configuration support for ksz9031

2014-05-06 Thread Hubert Chaumette
Adds support for ksz9031 PAD skew configuration over devicetree. Signed-off-by: Hubert Chaumette --- drivers/net/phy/micrel.c | 106 ++- 1 file changed, 105 insertions(+), 1 deletion(-) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c

[PATCH v4 0/2] net/phy: micrel: Add DT configuration support and documentation for KSZ9031

2014-05-06 Thread Hubert Chaumette
- Adds DT configuration support for ksz9031 - Renames micrel-ksz9021.txt to micrel-ksz90x1.txt and adds ksz9031 binding documentation Changes since v3: - Rebased on net-next Changes since v2: - Merged together ksz9031_load_{clk,data,ctrl}_skew_values() - Added field length and number of fi

[PATCH v4 1/2] Update Micrel KSZ90x1 binding documentation

2014-05-06 Thread Hubert Chaumette
Renames micrel-ksz9021.txt to micrel-ksz90x1.txt and adds documentation for the KSZ9031 binding from patch 1. Also adds step increment information, and note about phy fixups. Signed-off-by: Hubert Chaumette --- .../devicetree/bindings/net/micrel-ksz9021.txt | 49 - .../devicetree

Re: [PATCH/RFC 3/4] of/clk: Register clocks suitable for Runtime PM with the PM core

2014-05-06 Thread Ulf Hansson
On 2 May 2014 16:35, Geert Uytterhoeven wrote: > Hi Ulf, > > On Fri, May 2, 2014 at 10:56 AM, Ulf Hansson wrote: >>> +static int of_clk_pm_runtime_suspend(struct device *dev) >>> +{ >>> + int ret; >>> + >>> + ret = pm_generic_runtime_suspend(dev); >>> + if (ret) >>> +

Re: [PATCH 02/27] ACPICA: Utilities: Deploy ACPI_DEBUGGER_EXEC for ACPI_DEBUGGER enabled code in utglobal.c.

2014-05-06 Thread Pavel Machek
On Wed 2014-04-30 10:03:39, Lv Zheng wrote: > This patch deploys ACPI_DEBUGGER_EXEC usage to utglobal.c to reduce "ifdef" > of ACPI_DEBUGGER. No functional changes. Lv Zheng. > > Signed-off-by: Lv Zheng > Signed-off-by: Bob Moore > --- > drivers/acpi/acpica/utglobal.c |4 +--- > 1 file ch

Re: [PATCH/RFC 3/4] of/clk: Register clocks suitable for Runtime PM with the PM core

2014-05-06 Thread Ulf Hansson
On 2 May 2014 16:58, Geert Uytterhoeven wrote: > Hi Ulf, Tomasz, > > On Fri, May 2, 2014 at 10:13 AM, Ulf Hansson wrote: > +static int of_clk_register(struct device *dev, struct clk *clk) > +{ > + int error; > + > + if (!dev->pm_domain) { > + erro

Re: [PATCH 2/2] tty: Fix lockless tty buffer race

2014-05-06 Thread Manfred Schlaegl
On 2014-05-02 17:05, Peter Hurley wrote: > On 05/02/2014 10:56 AM, Peter Hurley wrote: >> Commit 6a20dbd6caa2358716136144bf524331d70b1e03, >> "tty: Fix race condition between __tty_buffer_request_room and >> flush_to_ldisc" >> correctly identifies an unsafe race condition between >> __tty_buffer_r

[PATCH] kmod: Pass usermodehelper "-b" to use blacklist commands

2014-05-06 Thread Kirill Tkhai
User may want to prohibit autoloading of some modules, which happens when someone in kernel calls request_module(). For comparison, udev considers blacklist even if corresponding hardware presents in the system. In-kernel request_module() functionality is rather similar to udev's, so user may

Re: [RFC PATCH 0/2] kpatch: dynamic kernel patching

2014-05-06 Thread Jiri Kosina
On Tue, 6 May 2014, Ingo Molnar wrote: > So what I'm curious about, what is the actual 'in the field' distro > experience, about the type of live-patches that get pushed with > urgency? This is of course a very good question. We've done some very light preparatory analysis and went through pat

Re: [PATCH v1.1 2/16 update] arcmsr: Adding code to support MSI-X interrupt

2014-05-06 Thread ching
Thanks for Tomas' suggestion. I will have a new update for this patch. On Mon, 2014-05-05 at 14:53 +0200, Tomas Henzl wrote: > On 05/05/2014 01:15 PM, ching wrote: > > From: Ching > > > > Adding code for supporting MSI-X interrupt. > > > > This update is for fixing bug of previous [PATCH v1.1 2/16

Re: [PATCH/RFC] Deprecate BUG/BUG_ON in favour of BUG_AND_HALT/BUG_AND_HALT_ON

2014-05-06 Thread Richard Weinberger
Am 06.05.2014 09:35, schrieb Ingo Molnar: > > * Richard Weinberger wrote: > >> On Wed, Apr 30, 2014 at 5:03 PM, Paul Gortmaker >> wrote: >>> A long standing problem for us has been the misuse of BUG/BUG_ON. >>> The typical misuse is someone only thinking of what represents >>> a bug in their lo

Re: sched_{set,get}attr() manpage

2014-05-06 Thread Peter Zijlstra
On Mon, May 05, 2014 at 09:21:14AM +0200, Peter Zijlstra wrote: > On Mon, May 05, 2014 at 08:55:28AM +0200, Michael Kerrisk (man-pages) wrote: > > Hi Peter, > > > > Looks like a good set of comments from Juri. Could you revise and > > resubmit? > > Yeah, I'll try and get it done today, but there

[PATCH v1.1 2/16 update 2] arcmsr: Adding code to support MSI-X interrupt

2014-05-06 Thread ching
From: Ching Adding code to support MSI-X interrupt. This update has modification by Tomas' suggestion. And I add a msix_vector_count for free_irq. Signed-off-by: Ching --- diff -uprN a/drivers/scsi/arcmsr/arcmsr.h b/drivers/scsi/arcmsr/arcmsr.h --- a/drivers/scsi/arcmsr/arcmsr.h 2014-04-28

Re: [PATCH 1/9] ARM: STi: DT: STiH416: 416 DT Entry for clockgen A0/1/10/11/12

2014-05-06 Thread Gabriel Fernandez
Hi Lee, On 6 May 2014 09:18, Lee Jones wrote: >> Patch adds DT entries for clockgen A0/1/10/11/12 >> >> Signed-off-by: Pankaj Dev >> Signed-off-by: Gabriel Fernandez >> --- >> arch/arm/boot/dts/stih416-clks.h | 15 ++ > > This should live in include/dt-bindings/clk > include/dt-bindings/cl

[PATCH] staging: rtl8192u: initialize array in C compliant way

2014-05-06 Thread Martin Kepplinger
Don't list elements to initialize. Remaining elements of a partly initialized array are set to zero. Sparse complained here. Signed-off-by: Martin Kepplinger --- drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/sta

Re: [Resend/PATCH] arm: dts: am43x-epos: Add qspi device.

2014-05-06 Thread sourav
Hi Tony, On Monday 28 April 2014 07:12 PM, Sourav Poddar wrote: This patch adds qspi nodes for am43xx SOC devices. Signed-off-by: Sourav Poddar This patch has been posted many times before. If this patch looks OK, can it be picked? --- Note, checpatch gives 1 warning on flash compatible stri

[patch 2/2] mm: pgtable -- Require X86_64 for soft-dirty tracker, v2

2014-05-06 Thread Cyrill Gorcunov
On Mon, May 05, 2014 at 04:31:23PM -0700, Andrew Morton wrote: > On Fri, 25 Apr 2014 12:10:32 +0400 Cyrill Gorcunov > wrote: > > > Tracking dirty status on 2 level pages requires very ugly macros > > and taking into account how old the machines who can operate > > without PAE mode only are, lets

Re: [RFC PATCH 2/3] KVM: x86: use memory_prepare in fetch helper function

2014-05-06 Thread Paolo Bonzini
Il 06/05/2014 02:40, Bandan Das ha scritto: Insn fetch fastpath function. Not that arch.walk_mmu->gva_to_gpa can't be used but let's piggyback on top of interface meant for our purpose Signed-off-by: Bandan Das --- arch/x86/kvm/x86.c | 25 + 1 file changed, 17 insertion

Re: [PATCH] crypto: x86/sha1: fix coverity CID 1195603

2014-05-06 Thread Pavel Machek
On Wed 2014-04-30 15:17:54, Milos Vyletel wrote: > Coverity detected possible use of uninitialized pointer when printing info > message during module load. While this is higly unlikely to cause any troubles > simple change in sha1_ssse3_mod_init to make it look like sha256/512 init > function will

Re: [PATCH/RFC v3 3/5] leds: Add support for max77693 mfd flash cell

2014-05-06 Thread Sakari Ailus
Hi Jacek, On Mon, Apr 28, 2014 at 01:27:27PM +0200, Jacek Anaszewski wrote: ... > +static void max77693_brightness_set_work(struct work_struct *work) > +{ > + struct max77693_led *led = > + container_of(work, struct max77693_led, work_brightness_set); > + int ret; > >>>

Re: [PATCH v4 2/7] Input: pixcir_i2c_ts: Initialize interrupt mode and power mode

2014-05-06 Thread Roger Quadros
Dmitry, On 05/06/2014 08:19 AM, Dmitry Torokhov wrote: > Hi Roger, > > On Mon, May 05, 2014 at 12:04:33PM +0300, Roger Quadros wrote: >> @@ -192,8 +364,8 @@ static int pixcir_i2c_ts_remove(struct i2c_client >> *client) >> >> device_init_wakeup(&client->dev, 0); >> >> -tsdata->exitin

Re: [PATCH 19/24] net, diet: Make RPS configurable

2014-05-06 Thread Bjørn Mork
Andi Kleen writes: > From: Andi Kleen > > Multiple receive queues are not needed on small systems, > so allow disabling them. > > This is already disabled with !SMP, but it also makes > sense to disable on very small SMP systems (like > dual core SOC) Such a pointless design still doesn't mean

Re: [PATCH v4 6/7] Input: pixcir_i2c_ts: Implement wakeup from suspend

2014-05-06 Thread Roger Quadros
On 05/06/2014 08:21 AM, Dmitry Torokhov wrote: > On Mon, May 05, 2014 at 12:04:37PM +0300, Roger Quadros wrote: >> Improve the suspend and resume handlers to allow the device >> to wakeup the system from suspend. >> >> Signed-off-by: Roger Quadros >> Acked-by: Mugunthan V N >> --- >> drivers/inp

[PATCH v2 5/6] soc: samsung: exynos-chipid: Add Exynos Chipid driver support

2014-05-06 Thread Pankaj Dubey
Exynos SoCs have Chipid, for identification of product IDs and SoC revistions. Till now we are using static macros such as soc_is_exynos and #ifdefs for run time identification of SoCs and their revisions. This is leading to add new Kconfig, soc_is_exynos definitions each time new SoC suppo

[PATCH v2 1/6] i2c: s3c2410: Moving I2C interrupt re-configuration code into i2c driver

2014-05-06 Thread Pankaj Dubey
Let's move I2C interrupt re-configuration code from machine file exynos.c to I2C driver. Since only Exynos5250, and Exynos5420 need to do this, added syscon based phandle to i2c device nodes of respective SoC DT files. CC: Rob Herring CC: Randy Dunlap CC: Wolfram Sang CC: Russell King CC: devi

[PATCH v2 4/6] ARM: EXYNOS: remove unused header inclusion from hotplug.c

2014-05-06 Thread Pankaj Dubey
This patch removed "plat/cpu.h" inclusion from hotplug.c as it is not required. Signed-off-by: Pankaj Dubey --- arch/arm/mach-exynos/hotplug.c |2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/mach-exynos/hotplug.c b/arch/arm/mach-exynos/hotplug.c index 0243ef3..5e19601 100644 ---

[PATCH v2 0/6] Introducing Exynos ChipId driver

2014-05-06 Thread Pankaj Dubey
This patch series attempts to get rid of soc_is_exynos macros and eventually with the help of this series we can probably get rid of CONFIG_SOC_EXYNOS in near future. Each Exynos SoC has ChipID block which can give information about SoC's product Id and revision number. Currently we have si

Re: [RESEND PATCH V5 0/8] remove cpu_load idx

2014-05-06 Thread Alex Shi
> > Maybe the predication is reasonable on per task history. but on a cpu > load history, with many tasks rebalance. No testing show current method > is helpful. > > For task load change, scheduler has no idea for its future except guess > from its history. but for cpu load change, scheduler kno

[PATCH v2 3/6] ARM: EXYNOS: remove soc_is_exynos4/5 from exynos.c

2014-05-06 Thread Pankaj Dubey
This patch removes usage of soc_is_exynos4/5 from exynos.c. For this we need to separate machine descriptors for exynos4 and exynos5. While doing this patch does some consolidation also. CC: Russell King CC: Thomas Abraham Signed-off-by: Pankaj Dubey --- arch/arm/mach-exynos/exynos.c

[PATCH v2 2/6] ARM: EXYNOS: Move SYS_I2C_CFG register save/restore to i2c driver

2014-05-06 Thread Pankaj Dubey
Let's move SYS_I2C_CFG register save/restore during s2r into i2c driver. This will help in removing static iodesc based mapping from exynos.c. Also will help in removing SoC specific checks in pm.c making it more independent of such macros. CC: Wolfram Sang CC: Russell King CC: linux-...@vger.ke

Re: [RESEND PATCH] staging: vt6656: make spin_lock_irq() human readable

2014-05-06 Thread Dan Carpenter
On Tue, May 06, 2014 at 07:58:39AM +0200, Martin Kepplinger wrote: > Don't require FIRMWAREbDownload() to, first off, unlock a held lock. > Thus do all locking in main_usb.c and hold it for a insignificantly > shorter period of time. This makes the affected area significantly more > readable though

Re: [PATCH v4 0/4] ARM: OMAP: SATA support for OMAP5 & DRA7

2014-05-06 Thread Roger Quadros
Hi Tony, On 04/23/2014 08:30 PM, Roger Quadros wrote: > Hi Tony, > > These are the pending HWMOD and DTS patches to get SATA working > on OMAP5-uevm and DRA7-evm. Please queue them for -next. Thanks. gentle reminder. Thanks. cheers, -roger > > --- > Balaji T K (2): > ARM: dts: omap5: add sa

[PATCH] mfd: twl6040: Correct HPPLL configuration for 19.2 and 38.4 MHz mclk

2014-05-06 Thread Peter Ujfalusi
When the MCLK is 19.2 or 38.4 MHz the HPPLL need to be enabled and can be put in bypass mode. This will fix HPPLL use on boards with 19.2MHz mclk. Signed-off-by: Peter Ujfalusi --- drivers/mfd/twl6040.c | 13 + 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/drivers/mfd

[f2fs-dev][PATCH 1/6] f2fs: add a tracepoint for f2fs_write_begin

2014-05-06 Thread Chao Yu
This patch adds a tracepoint for f2fs_write_begin to trace write op of user. Signed-off-by: Chao Yu --- fs/f2fs/data.c |2 ++ include/trace/events/f2fs.h | 30 ++ 2 files changed, 32 insertions(+) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index

[f2fs-dev][PATCH 2/6] f2fs: add a tracepoint for f2fs_write_end

2014-05-06 Thread Chao Yu
This patch adds a tracepoint for f2fs_write_end to trace write op of user. Signed-off-by: Chao Yu --- fs/f2fs/data.c |2 ++ include/trace/events/f2fs.h | 30 ++ 2 files changed, 32 insertions(+) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index cd

Re: [PATCH] staging: rtl8192u: initialize array in C compliant way

2014-05-06 Thread Dan Carpenter
On Tue, May 06, 2014 at 10:22:08AM +0200, Martin Kepplinger wrote: > Don't list elements to initialize. Remaining elements of a partly > initialized array are set to zero. Sparse complained here. > > Signed-off-by: Martin Kepplinger > --- > drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c |

[f2fs-dev][PATCH 3/6] f2fs: add a tracepoint for f2fs_write_{meta,node,data}_page

2014-05-06 Thread Chao Yu
This patch adds a tracepoint for f2fs_write_{meta,node,data}_page to trace when page is writting out. Signed-off-by: Chao Yu --- fs/f2fs/checkpoint.c|2 ++ fs/f2fs/data.c |2 ++ fs/f2fs/node.c |2 ++ include/trace/events/f2fs.h |7 +++ 4 file

Re: [PATCH 1/3] perf tests: Introduce perf_regs_load function on ARM64

2014-05-06 Thread Will Deacon
On Mon, May 05, 2014 at 08:07:11AM +0100, Jean Pihet wrote: > Hi Will, > > On Fri, May 2, 2014 at 6:51 PM, Will Deacon wrote: > > On Fri, May 02, 2014 at 10:19:38AM +0100, Jean Pihet wrote: > >> Hi WIll, Mark, > >> > >> Ping on this series. Can you please check? Is the refreshed patch OK? > > > >

[f2fs-dev][PATCH 4/6] f2fs: add a tracepoint for f2fs_write_{meta,node,data}_pages

2014-05-06 Thread Chao Yu
This patch adds a tracepoint for f2fs_write_{meta,node,data}_pages to trace when pages are fsyncing/flushing. Signed-off-by: Chao Yu --- fs/f2fs/checkpoint.c|2 ++ fs/f2fs/data.c |2 ++ fs/f2fs/node.c |2 ++ include/trace/events/f2fs.h | 64 +++

[f2fs-dev][PATCH 5/6] f2fs: add a tracepoint for f2fs_read_data_page

2014-05-06 Thread Chao Yu
This patch adds a tracepoint for f2fs_read_data_page to trace when page is readed by user. Signed-off-by: Chao Yu --- fs/f2fs/data.c |2 ++ include/trace/events/f2fs.h | 15 +-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/data.c b/fs/f2f

[f2fs-dev][PATCH 6/6] f2fs: add a tracepoint for f2fs_read_data_pages

2014-05-06 Thread Chao Yu
This patch adds a tracepoint for f2fs_read_data_pages to trace when pages are readahead by VFS. Signed-off-by: Chao Yu --- fs/f2fs/data.c |3 +++ include/trace/events/f2fs.h | 26 ++ 2 files changed, 29 insertions(+) diff --git a/fs/f2fs/data.c b/fs/f2

Re: [patch v2 4/4] mm, thp: do not perform sync compaction on pagefault

2014-05-06 Thread Mel Gorman
On Fri, May 02, 2014 at 01:29:33PM -0700, David Rientjes wrote: > On Fri, 2 May 2014, Mel Gorman wrote: > > > > The page locks I'm referring to is the lock_page() in __unmap_and_move() > > > that gets called for sync compaction after the migrate_pages() iteration > > > makes a few passes and uns

RE: [PATCH 02/27] ACPICA: Utilities: Deploy ACPI_DEBUGGER_EXEC for ACPI_DEBUGGER enabled code in utglobal.c.

2014-05-06 Thread Zheng, Lv
Hi, > From: Pavel Machek [mailto:pa...@ucw.cz] > Sent: Tuesday, May 06, 2014 3:54 PM > > On Wed 2014-04-30 10:03:39, Lv Zheng wrote: > > This patch deploys ACPI_DEBUGGER_EXEC usage to utglobal.c to reduce "ifdef" > > of ACPI_DEBUGGER. No functional changes. Lv Zheng. > > > > Signed-off-by: Lv Z

Re: [PATCH] DMA-API: Change dma_declare_coherent_memory() CPU address to phys_addr_t

2014-05-06 Thread Liviu Dudau
On Mon, May 05, 2014 at 11:42:40PM +0100, Bjorn Helgaas wrote: > On Fri, May 02, 2014 at 12:18:07PM +0100, Liviu Dudau wrote: > > On Thu, May 01, 2014 at 08:05:04PM +0100, Bjorn Helgaas wrote: > > > On Thu, May 1, 2014 at 8:08 AM, James Bottomley > > > wrote: > > > > On Wed, 2014-04-30 at 14:33 -0

Re: [PATCH/RFC v3 5/5] media: Add registration helpers for V4L2 flash sub-devices

2014-05-06 Thread Sakari Ailus
Hi Jacek, On Tue, May 06, 2014 at 08:44:41AM +0200, Jacek Anaszewski wrote: > Hi Sakari, > > On 05/02/2014 01:06 PM, Sakari Ailus wrote: > > [...] > >>+static inline enum led_brightness > >>v4l2_flash_intensity_to_led_brightness( > >>+ struc

Re: [PATCH 08/17] mm: page_alloc: Use word-based accesses for get/set pageblock bitmaps

2014-05-06 Thread Mel Gorman
On Mon, May 05, 2014 at 02:40:38PM +0200, Vlastimil Babka wrote: > >@@ -62,11 +65,35 @@ extern int pageblock_order; > > /* Forward declaration */ > > struct page; > > > >+unsigned long get_pageblock_flags_mask(struct page *page, > >+unsigned long end_bitidx, > >+

[PATCH] mtd: fsl_elbc_nand: set NAND_NO_SUBPAGE_WRITE flag if using hardware ECC

2014-05-06 Thread Nikita Yushchenko
Per MPC8572E manual, sec 14.4.3.1.3: "Transfers shorter than a full page, however, require software to prepare the appropriate ECC in the spare region" Need to set NAND_NO_SUBPAGE_WRITE flag. If this is not done, then generic nand_write_subpage_hwecc() is called instead of driver's write routine,

Re: [PATCH 0/4] staging: comedi: addi_apci_1564: Further cleanups

2014-05-06 Thread Ian Abbott
On 2014-05-03 08:54, Chase Southwood wrote: Latest patchset in a continuing cleanup of addi_apci_1564.c. Main focus is on the auto_attach() function, but also cleaning up some of the old addi common code wrappers. To be applied on top of my prior patchset to this file (the one beginning with [P

RE: A reduced Linux network stack for small systems

2014-05-06 Thread David Laight
From: Andi Kleen > There has been a lot of interest recently to run Linux on very small systems, > like Quark systems. These may have only 2-4MB memory. They are also limited > by flash space. I'm intrigued about the 2-4MB memory. That is more that would typically be available on-chip in a DSP or

Re: Using ftrace to identify source of excessive latency of USB write

2014-05-06 Thread Mason
Mason wrote: > I'm using Linux on a embedded system similar in spec to a desktop PC > from 15 years ago (256 MB RAM, 800-MHz CPU, USB). The system's primary > use is recording high-definition digital television programs. > > Typically, the storage sub-system consists of a recent hard-disk drive >

[PATCH] Fixing Coding style Warnings in file drivers/staging/comedi/drivers/das08.h

2014-05-06 Thread Sheetal Tigadoli
This patch fixes coding style warnings such as 'lines exceeding 80 characters limit' & 'lines begining with space character', in file drivers/staging/comedi/drivers/das08.h This patch is sent to complete one of Eudyptula Challenges Signed-off-by: Sheetal Tigadoli --- drivers/staging/comed

Re: [tip:perf/kprobes] kprobes: Introduce NOKPROBE_SYMBOL() macro to maintain kprobes blacklist

2014-05-06 Thread Masami Hiramatsu
(2014/05/06 5:48), Tony Luck wrote: > This patch is in linux-next ("next-20140505") and I see a > bunch of "Failed to find blacklist" messages when booting > on ia64: > > Failed to find blacklist 000101316830 > Failed to find blacklist 0001013000f0a000 > Failed to find blacklist 000101315f70a0

Re: [PATCH 23/24] net, diet: Add coccinelle script to convert drivers to ETHTOOL_OPS

2014-05-06 Thread Nicolas Palix
Hi David, I saw you rejected almost the entire patch series. However, is there any interest to enforce the use of SET_ETHTOOL_OPS ? Are you likely to merge the patch 24/24 [1] ? Regards, [1] https://lkml.org/lkml/2014/5/5/679 On Tue, May 6, 2014 at 12:26 AM, Andi Kleen wrote: > From: Andi Kl

Re: [PATCH] DMA-API: Change dma_declare_coherent_memory() CPU address to phys_addr_t

2014-05-06 Thread Arnd Bergmann
On Tuesday 06 May 2014 02:42:22 James Bottomley wrote: > On Mon, 2014-05-05 at 17:01 -0600, Bjorn Helgaas wrote: > > On Fri, May 02, 2014 at 10:42:18AM +0200, Arnd Bergmann wrote: > > > > I don't know about NCR_Q720, but all others are only used on machines > > > where physical addresses and bus a

Re: [PATCH] clk: st: Fix memory leak

2014-05-06 Thread Valentin Ilie
On 22 April 2014 16:15, Valentin Ilie wrote: > When it fails to allocate div, gate should be free'd before return > > Signed-off-by: Valentin Ilie > --- > drivers/clk/st/clkgen-pll.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/clk/st/clkgen-pll.c b/drivers

Re: [PATCH -V1 10/22] richacl: In-memory representation and helper functions

2014-05-06 Thread Kinglong Mee
于 4/28/2014 00:14, Aneesh Kumar K.V 写道: > From: Andreas Gruenbacher > > A richacl consists of an NFSv4 acl and an owner, group, and other mask. > These three masks correspond to the owner, group, and other file > permission bits, but they contain NFSv4 permissions instead of POSIX > permissions.

Re: [RFC PATCH] cmdline: Hide "debug" from /proc/cmdline

2014-05-06 Thread Felipe Contreras
On Thu, Apr 3, 2014 at 12:06 PM, Greg Kroah-Hartman wrote: > On Thu, Apr 03, 2014 at 08:17:33AM -0700, Tim Bird wrote: >> >> I had no idea systemd was so verbose and was abusing the kernel >> log buffers so badly. I'm not a big fan of the rate-limiting, as this just >> seems to encourage this kin

Re: [PATCH/RFC] Deprecate BUG/BUG_ON in favour of BUG_AND_HALT/BUG_AND_HALT_ON

2014-05-06 Thread Ingo Molnar
* Richard Weinberger wrote: > >> I like the idea but not the name. > >> What about DIE() and DIE_ON()? > > > > CRASH_ON() might be a suggestive name as well, as from the user's > > point of view we are crashing her system. > > I fear such users will think "Why should I crash the kernel?". ;-)

Re: [RFC PATCH] cmdline: Hide "debug" from /proc/cmdline

2014-05-06 Thread Felipe Contreras
On Sun, Apr 6, 2014 at 3:49 PM, David Timothy Strauss wrote: > On Fri, Apr 4, 2014 at 11:57 AM, Linus Torvalds > wrote: >> Since I haven't even heard a "my bad" from the systemd people, I'd be >> inclined to say that a bit of protection for future issues would be a >> good idea. > > Just coming b

Re: [RFC PATCH 3/3] KVM: x86: cache userspace address for faster fetches

2014-05-06 Thread Paolo Bonzini
Il 06/05/2014 02:40, Bandan Das ha scritto: On every instruction fetch, kvm_read_guest_virt_helper does the gva to gpa translation followed by searching for the memslot. Store the gva hva mapping so that if there's a match we can directly call __copy_from_user() Suggested-by: Paolo Bonzini Sign

Re: [PATCH/RFC] Deprecate BUG/BUG_ON in favour of BUG_AND_HALT/BUG_AND_HALT_ON

2014-05-06 Thread Richard Weinberger
Am 06.05.2014 11:35, schrieb Ingo Molnar: > > * Richard Weinberger wrote: > I like the idea but not the name. What about DIE() and DIE_ON()? >>> >>> CRASH_ON() might be a suggestive name as well, as from the user's >>> point of view we are crashing her system. >> >> I fear such user

Re: [PATCH v3 4/7] of: configure the platform device dma parameters

2014-05-06 Thread Arnd Bergmann
On Monday 05 May 2014 17:47:32 Santosh Shilimkar wrote: > + dev->coherent_dma_mask = DMA_BIT_MASK(32); > + if (!dev->dma_mask) > + dev->dma_mask = &dev->coherent_dma_mask; > + > + /* > +* if dma-ranges property doesn't exist - just return else > +* s

Re: [PATCH] printk: Remove separate printk_sched buffers and use printk buf instead

2014-05-06 Thread Jan Kara
On Mon 05-05-14 19:18:46, Steven Rostedt wrote: > To prevent deadlocks with doing a printk inside the scheduler, > printk_sched() was created. The issue is that printk has a console_sem > that it can grab and release. The release does a wake up if there's a > task pending on the sem, and this wake

Re: [RFC PATCH 2/3] KVM: x86: use memory_prepare in fetch helper function

2014-05-06 Thread Paolo Bonzini
Il 06/05/2014 02:40, Bandan Das ha scritto: + ret = ctxt->ops->memory_prepare(ctxt, addr, toread, + exception, false, + NULL, &uaddr); + if (ret != X86EMUL_CONTINUE) +

Re: [RFC PATCH] cmdline: Hide "debug" from /proc/cmdline

2014-05-06 Thread Felipe Contreras
On Thu, Apr 3, 2014 at 5:03 AM, Borislav Petkov wrote: > On Thu, Apr 03, 2014 at 11:34:15AM +0100, Måns Rullgård wrote: >> Once is an accident. Twice is incompetence. Three times is malice. > > Yeah, maybe it is time Linus started his own init daemon project, like > that other thing, git, he did

  1   2   3   4   5   6   7   8   9   >