Re: [PATCH 2/2] gpio: omap: convert to use generic irq handler

2015-10-15 Thread Grygorii Strashko
Hi Thomas, On 10/13/2015 09:33 PM, Thomas Gleixner wrote: Grygorii, On Tue, 13 Oct 2015, Grygorii Strashko wrote: I'd very appreciate for any advice of how to better proceed with your request. - I can try to apply and re-send only patches marked by '*' - I can prepare branch with all above

Re: [PATCH v5 2/2] arm: perf: Add event descriptions

2015-10-15 Thread Drew Richardson
On Thu, Oct 15, 2015 at 04:41:26PM +0100, Mark Rutland wrote: > On Thu, Oct 15, 2015 at 04:29:15PM +0100, Will Deacon wrote: > > On Thu, Oct 15, 2015 at 08:15:06AM -0700, Drew Richardson wrote: > > > On Thu, Oct 15, 2015 at 02:21:12PM +0100, Will Deacon wrote: > > > > On Tue, Oct 13, 2015 at 08:36:

Re: [PATCH tip/locking/core v4 1/6] powerpc: atomic: Make *xchg and *cmpxchg a full barrier

2015-10-15 Thread Paul E. McKenney
On Thu, Oct 15, 2015 at 12:48:03PM +0800, Boqun Feng wrote: > On Wed, Oct 14, 2015 at 08:07:05PM -0700, Paul E. McKenney wrote: > > On Thu, Oct 15, 2015 at 08:53:21AM +0800, Boqun Feng wrote: > [snip] > > > > > > I'm afraid more than that, the above litmus also shows that > > > > > > CPU 0

Re: [PATCH v4 0/3]

2015-10-15 Thread Murali Karicheri
On 10/15/2015 12:21 PM, santosh shilimkar wrote: On 10/15/2015 9:02 AM, Murali Karicheri wrote: On 10/14/2015 11:41 AM, santosh shilimkar wrote: 10/14/2015 7:17 AM, Murali Karicheri wrote: This patch series enable accumulator queue support for K2 SoCs. Accumulator queues are a type of qmss que

Re: [PATCH tip/locking/core v4 1/6] powerpc: atomic: Make *xchg and *cmpxchg a full barrier

2015-10-15 Thread Paul E. McKenney
On Thu, Oct 15, 2015 at 03:50:44PM +0100, Will Deacon wrote: > On Thu, Oct 15, 2015 at 11:35:10AM +0100, Will Deacon wrote: > > Dammit guys, it's never simple is it? > > I re-read this and it's even more confusing than I first thought. > > > On Wed, Oct 14, 2015 at 02:44:53PM -0700, Paul E. McKen

Re: [PATCH] block: fix blk-core.c kernel-doc warning

2015-10-15 Thread Jeff Moyer
Randy Dunlap writes: > From: Randy Dunlap > > Fix kernel-doc warning in blk-core.c: > > Warning(..//block/blk-core.c:1545): No description found for parameter > 'same_queue_rq' > > Signed-off-by: Randy Dunlap > --- > block/blk-core.c |2 ++ > 1 file changed, 2 insertions(+) > > --- lnx-42

[PATCH 2/2] isdn: correctly check failed allocation

2015-10-15 Thread Insu Yun
Since skb_clone is memory allocation, it could be failed when lack of resource. Therefore, return value of skb_clone needs to be checked and handle error. Signed-off-by: Insu Yun --- drivers/isdn/mISDN/layer2.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/isdn/mISDN/layer2.c

[PATCH 1/2] isdn: correctly check failed allocation

2015-10-15 Thread Insu Yun
Since skb_clone can be failed in memory pressure, return value of skb_clone needs to be checked. Signed-off-by: Insu Yun --- drivers/isdn/hisax/isdnl2.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/isdn/hisax/isdnl2.c b/drivers/isdn/hisax/isdnl2.c index 18accb0..e74f847 100644

[PATCH 2/2 v2] ARM: DRA7/335x/437x: hwmod: Remove gpmc address space from hwmod data

2015-10-15 Thread Franklin S Cooper Jr
GPMC address information is provided by device tree. No longer need to include this information within hwmod. Signed-off-by: Franklin S Cooper Jr --- Version 2 changes: None arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c | 10 -- arch/arm/mach-omap2/omap_hwmod_7xx_data.c

[PATCH 1/2 v2] ARM: DRA7/335x/437x/OMAP4: hwmod: Remove elm address space from hwmod data

2015-10-15 Thread Franklin S Cooper Jr
ELM address information is provided by device tree. No longer need to include this information within hwmod. Signed-off-by: Franklin S Cooper Jr --- Version 2 changes: Removing elm addr entries also for 335x,437x and omap4 hwmod arch/arm/mach-omap2/omap_hwmod_33xx_43xx_interconnect_data.c | 10

[PATCH] usnic: corretly check failed allocation

2015-10-15 Thread Insu Yun
Since ib_alloc_device returns allocated memory address, not error, it should be checked as IS_NULL, not IS_ERR_OR_NULL. Signed-off-by: Insu Yun --- drivers/infiniband/hw/usnic/usnic_ib_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/usnic/usn

Re: [PATCH 05/11] x86, pci, acpi: Move arch-agnostic MMCONFIG (aka ECAM) and ACPI code out of arch/x86/ directory

2015-10-15 Thread Marc Zyngier
On 15/10/15 15:34, Tomasz Nowicki wrote: > Of course your help in testing is welcomed. Also please have a look at > my GICv3/ITS patches, they are important for ACPI PCI. Where is the dependency? ACPI/PCI should really be standalone. Thanks, M. -- Jazz is not dead. It just smells funn

[PATCH] xen: check return value of xenbus_printf

2015-10-15 Thread Insu Yun
Internally, xenbus_printf uses memory allocation, so it can be failed in memory pressure.Therefore, xenbus_printf's return should be checked and properly handled. Signed-off-by: Insu Yun --- drivers/input/misc/xen-kbdfront.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --g

[PATCH] xen-netback: corretly check failed allocation

2015-10-15 Thread Insu Yun
Since vzalloc can be failed in memory pressure, return value should be checked and return ENOMEM. Signed-off-by: Insu Yun --- drivers/net/xen-netback/xenbus.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/net/xen-netback/xenbus.c b/drivers/net/xen-netback/xenbus.c index 929a6e

Re: [PATCH] fs/block_dev.c: Remove WARN_ON() when inode writeback fails

2015-10-15 Thread Jeff Moyer
Vivek Goyal writes: > Hi Jens, > > Do you have concerns with this patch? If not, can you please include it. The concept is fine, but: >> -static void bdev_write_inode(struct inode *inode) >> +static void bdev_write_inode(struct block_device *bdev) >> { >> +struct inode *inode = bdev->bd_in

[PATCH 2/2] bitops.h: add sign_extend64()

2015-10-15 Thread Martin Kepplinger
Months back, this was discussed, see https://lkml.org/lkml/2015/1/18/289 The result was the 64-bit version being "likely fine", "valuable" and "correct". The discussion only fell asleep but since there are possible users, let's add it. Signed-off-by: Martin Kepplinger --- include/linux/bitops.h

[PATCH] mlx4: corretly check failed allocation

2015-10-15 Thread Insu Yun
When allocation fails, mlx4_alloc_cmd_mailbox returns -ENOMEM. Since there is no case that mlx4_alloc_cmd_mailbox returns NULL, it needs to be checked by IS_ERR, not IS_ERR_OR_NULL Signed-off-by: Insu Yun --- drivers/net/ethernet/mellanox/mlx4/mr.c | 2 +- 1 file changed, 1 insertion(+), 1 delet

bitops.h: improve sign extending API

2015-10-15 Thread Martin Kepplinger
PATCH 1/2 improves the doc of sign_extend32() This should help to avoid different manual approaches to sign extension PATCH 2/2 adds sign_extend64() An informal example of what could follow in arch/sh/kernel/traps_64.c after PATCH 2/2: @@ -101,7 +102,7 @@ static int generate_and_check_address(

[PATCH] ARM: configs: Enable FIXED_PHY in multi_v7 defconfig

2015-10-15 Thread Maxime Coquelin
CONFIG_FIXED_PHY is needed to have Ethernet working on STi boards. Select it as built-in since RootFS is accessible from NFS on these boards. Signed-off-by: Maxime Coquelin --- Hi Arnd, Olof, Could you please apply it directly as this is the only defconfig patch I have in my queue for v4.4. T

[PATCH] keys: correctly check failed allocation for kmemdup

2015-10-15 Thread Insu Yun
kmemdup return value is saved in 'key->index_key.description', not 'key->descrption' and kmemdup can be failed in memory pressure. Therefore, key->index_key.description should be checked. Signed-off-by: Insu Yun --- security/keys/key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

Re: [PATCH v4 0/3]

2015-10-15 Thread santosh shilimkar
On 10/15/2015 9:02 AM, Murali Karicheri wrote: On 10/14/2015 11:41 AM, santosh shilimkar wrote: 10/14/2015 7:17 AM, Murali Karicheri wrote: This patch series enable accumulator queue support for K2 SoCs. Accumulator queues are a type of qmss queue that is monitored by the PDSP firmware and accu

[PATCH 1/2] bitops.h: Improve sign_extend32()'s documentation

2015-10-15 Thread Martin Kepplinger
It is often overlooked that sign_extend32(), despite it's name, is safe to use for 16 and 8 bit types aswell. This should help that sign extension isn't done manually some other way. Signed-off-by: Martin Kepplinger --- include/linux/bitops.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a

Build and runtime failures with next-20151015

2015-10-15 Thread Guenter Roeck
There are too many failures for me to list it all individually, or to track it all down. Here is a summary. Build results: total: 144 pass: 127 fail: 17 Failed builds: arc:allnoconfig arm:allmodconfig arm64:allmodconfig avr32:allnoconfig cris:alln

[PATCH v3 5/5] mmc: sdhci-pxav3: enable modifying MMC_CARD bit during card initialization

2015-10-15 Thread Marcin Wojtas
On Marvell Armada 38x SoC's the MMC_CARD bit in SD_CE_ATA_1 register must be set to 0x1 when a MMC card is supposed to work in DDR mode, or when commands CMD11, CMD14 and CMD20 are used. This commit enables the above for all MMC cards by modifying the host registers during card initialization. It

[PATCH v3 3/5] ARM: mvebu: set SW polling as SDHCI card detection on A388-GP

2015-10-15 Thread Marcin Wojtas
The newest revisions of A388-GP (v1.5 and higher) support only DAT3-based card detection. Revisions < v1.5 based on GPIO detection via I2C expander, but this solution is supposed to be deprecated on new boards. In order to satisfy all type of hardware this commit changes card detection to use softw

[PATCH v3 1/5] mmc: sdhci-pxav3: enable proper resuming on Armada 38x SoC

2015-10-15 Thread Marcin Wojtas
When resuming from suspend on Armada 38x SoC MBus windows have to be re-configured and for that purpose mv_conf_mbus_windows function needed rework. MBus windows register base address obtaining was moved to armada_38x_quirks function in order to be kept in pxa global structure, because it is used d

Re: [PATCH] PCI: iproc: fix 32-bit build error

2015-10-15 Thread Ray Jui
On 10/15/2015 9:00 AM, Bjorn Helgaas wrote: > On Tue, Oct 13, 2015 at 11:00:31PM +0200, Arnd Bergmann wrote: >> On Tuesday 13 October 2015 13:11:34 Ray Jui wrote: > diff --git a/drivers/pci/host/pcie-iproc.c b/drivers/pci/host/pcie-iproc.c > index f3481ddff344..abcb4be2ee19 100644 > -

[PATCH] acpi:correctly check failed allocation

2015-10-15 Thread Insu Yun
Since kobject_create_and_add can be failed in memory pressure, return value need to be checked and return ENOMEM. Signed-off-by: Insu Yun --- drivers/acpi/sysfs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/acpi/sysfs.c b/drivers/acpi/sysfs.c index 40a4265..e712a7b 100644 --- a

[PATCH v3 0/5] Armada 38x SDHCI driver improvements

2015-10-15 Thread Marcin Wojtas
Hi, Thank you for reviewing the patches. According to your remarks and some new ideas I prepared third patchset. I modified my HW and now I could check operation when using all three modes of detection (polling, gpio and dat3) - it all seems working fine. Any remarks will be wellcome. Best regard

[PATCH v3 4/5] mmc: sdhci: add init_card callback to sdhci

2015-10-15 Thread Marcin Wojtas
Some sdhci hosts may require handling quirks during card initialization at the time when its type is already known. Hence a new callback (init_card) is added in sdhci_ops. Signed-off-by: Marcin Wojtas --- drivers/mmc/host/sdhci.c | 9 + drivers/mmc/host/sdhci.h | 1 + 2 files changed, 10

[PATCH v3 2/5] mmc: sdhci-pxav3: enable usage of DAT3 pin as HW card detect

2015-10-15 Thread Marcin Wojtas
Marvell Armada 38x SDHCI controller enable using DAT3 pin as a hardware card detection. According to the SD sdandard this signal can be used for this purpose combined with a pull-down resistor, implying inverted (active high) polarization of a card detect. MMC standard does not support this feature

Re: [PATCH v4 05/79] exynos_drm.h: use __u64 from linux/types.h

2015-10-15 Thread Gustavo Padovan
2015-10-15 Mikko Rapeli : > Fixes userspace compilation error: > > drm/exynos_drm.h:30:2: error: unknown type name ‘uint64_t’ > > Signed-off-by: Mikko Rapeli > --- > include/uapi/drm/exynos_drm.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Gustavo Padovan

Re: [PATCH tip/locking/core v4 1/6] powerpc: atomic: Make *xchg and *cmpxchg a full barrier

2015-10-15 Thread Paul E. McKenney
On Thu, Oct 15, 2015 at 10:49:23PM +0800, Boqun Feng wrote: > On Wed, Oct 14, 2015 at 01:19:17PM -0700, Paul E. McKenney wrote: > > On Wed, Oct 14, 2015 at 11:55:56PM +0800, Boqun Feng wrote: > > > According to memory-barriers.txt, xchg, cmpxchg and their atomic{,64}_ > > > versions all need to imp

[PATCH] rc: allow rc modules to be loaded if rc-main is not a module

2015-10-15 Thread Russell King
rc-main mistakenly uses #ifdef MODULE to determine whether it should load the rc keymap modules. This symbol is only defined if rc-main is being built as a module itself, and bears no relation to whether the rc keymaps are modules. Fix this to use CONFIG_MODULES instead. Fixes: 631493ecacd8 ("[m

Re: [PATCH v1 1/2] phy: keystone: serdes driver for gbe 10gbe and pcie

2015-10-15 Thread Rob Herring
On Thu, Oct 15, 2015 at 9:25 AM, WingMan Kwok wrote: > On TI's Keystone platforms, several peripherals such as the > gbe ethernet switch, 10gbe ethernet switch and PCIe controller > require the use of a SerDes for converting SoC parallel data into > serialized data that can be output over a high-s

[RFC PATCH 0/4] drm: Cleanup probe function for component based masters.

2015-10-15 Thread Liviu Dudau
A few drivers in drivers/gpu/drm are component-enabled and use quite similar code sequences to probe for their encoder slaves at the remote end of the ports. Move the code into a "generic" function and remove it from the drivers. The end results is that drivers get a reference count fix (imx), mor

[PATCH V2 4/4] PM / OPP: Create separate structure for regulator/supplies

2015-10-15 Thread Viresh Kumar
Support for multiple regulators will be added later, until then move all power-supply related information in a separate structure. To make allocating/freeing memory for these supply structures easy, allocate memory for them along with opp. Signed-off-by: Viresh Kumar --- drivers/base/power/opp/

Re: [PATCH 1/3] dt-bindings: add SMP enable-method for Broadcom NSP

2015-10-15 Thread Kapil Hali
On 10/15/2015 3:57 AM, Hauke Mehrtens wrote: > On 10/14/2015 07:46 PM, Kapil Hali wrote: >> Add a compatible string "brcm,bcm-nsp-smp" for Broadcom's >> Northstar Plus CPU to the 32-bit ARM CPU device tree binding >> documentation file and create a new binding documentation for >> Northstar Plus

[PATCH V2 3/4] PM / OPP: Parse all power-supply related bindings together

2015-10-15 Thread Viresh Kumar
Move all DT parsing for the power supplies to a single function, rather than keeping them at separate places. This will help manage things properly. Signed-off-by: Viresh Kumar --- drivers/base/power/opp/core.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drive

[PATCH V2 2/4] PM / OPP: Rename routines specific to old bindings with _v1

2015-10-15 Thread Viresh Kumar
Clearly distinguish routines based on what version of bindings they parse. We have already postfixed routines properly with _v2 for new bindings. Postfix the older ones now with _v1. Signed-off-by: Viresh Kumar --- drivers/base/power/opp/core.c | 10 +- 1 file changed, 5 insertions(+), 5

[RFC PATCH 2/4] drm/imx: Convert the probe function to the generic drm_of_component_probe()

2015-10-15 Thread Liviu Dudau
The generic function is functionally equivalent to the driver's imx_drm_platform_probe(). Use the generic function and reduce the overall code size. Signed-off-by: Liviu Dudau --- drivers/gpu/drm/imx/imx-drm-core.c | 54 +- 1 file changed, 1 insertion(+), 53 d

[PATCH V2 1/4] PM / OPP: Improve debug print messages with pr_fmt

2015-10-15 Thread Viresh Kumar
With debug options on, it is difficult to locate OPP core's debug prints. Fix this by prefixing OPP debug prints with KBUILD_MODNAME. Signed-off-by: Viresh Kumar --- drivers/base/power/opp/core.c | 2 ++ drivers/base/power/opp/cpu.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/driver

[RFC PATCH 4/4] drm/armada: Convert the probe function to the generic drm_of_component_probe()

2015-10-15 Thread Liviu Dudau
The armada DRM driver keeps some old platform data compatibility in the probe function that makes moving to the generic drm_of_component_probe() a bit more complicated that it should. Refactor the probe function to do the platform_data processing after the generic probe (and if that fails). This wa

[RFC PATCH 3/4] drm/rockchip: Convert the probe function to the generic drm_of_component_probe()

2015-10-15 Thread Liviu Dudau
Use the generic drm_of_component_probe() function to probe for components. Signed-off-by: Liviu Dudau --- drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 84 ++--- 1 file changed, 5 insertions(+), 79 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/

[RFC PATCH 1/4] drm: Introduce generic probe function for component based masters.

2015-10-15 Thread Liviu Dudau
A lot of component based DRM drivers use a variant of the same code as the probe function. They bind the crtc ports in the first iteration and then scan through the child nodes and bind the encoders attached to the remote endpoints. Factor the common code into a separate function called drm_of_comp

Re: [PATCH 3/3] ARM: BCM: Add SMP support for Broadcom NSP

2015-10-15 Thread Kapil Hali
On 10/15/2015 3:56 AM, Hauke Mehrtens wrote: > On 10/14/2015 07:47 PM, Kapil Hali wrote: >> Add SMP support for Broadcom's Northstar Plus SoC, >> cpu enable method and pen_release procedures. This >> changes also consolidates iProc family's - BCM NSP >> and BCM Kona, SMP handling in a common file

[PATCH V2 4/5] cpufreq: create cpu/cpufreq/policyX directories

2015-10-15 Thread Viresh Kumar
The cpufreq sysfs interface had been a bit inconsistent as one of the CPUs for a policy had a real directory within its sysfs 'cpuX' directory and all other CPUs had links to it. That also made the code a bit complex as we need to take care of moving the sysfs directory if the CPU containing the re

[PATCH V2 3/5] cpufreq: remove cpufreq_sysfs_{create|remove}_file()

2015-10-15 Thread Viresh Kumar
They don't do anything special now, remove the unnecessary wrapper. Reviewed-by: Saravana Kannan Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 22 +- include/linux/cpufreq.h | 2 -- 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/drivers/cpuf

[PATCH V2 2/5] cpufreq: create cpu/cpufreq at boot time

2015-10-15 Thread Viresh Kumar
Later patches will need to create policy specific directories in /sys/devices/system/cpu/cpufreq/ directory and so the cpufreq directory wouldn't be ever empty. And so no fun creating/destroying it on need basis anymore. Create it once on system boot. Reviewed-by: Saravana Kannan Signed-off-by:

[PATCH V2 5/5] cpufreq: postfix policy directory with the first CPU in related_cpus

2015-10-15 Thread Viresh Kumar
The sysfs policy directory is postfixed currently with the CPU number for which the policy was created, which isn't necessarily the first CPU in related_cpus mask. To make it more consistent and predictable, lets postfix the policy with the first cpu in related-cpus mask. Suggested-by: Saravana K

[PATCH V2 1/5] cpufreq: Use cpumask_copy instead of cpumask_or to copy a mask

2015-10-15 Thread Viresh Kumar
->related_cpus is empty at this point of time and copying ->cpus to it or orring ->related_cpus with ->cpus would result in the same value. But cpumask_copy makes it rather clear. Reviewed-by: Saravana Kannan Signed-off-by: Viresh Kumar --- drivers/cpufreq/cpufreq.c | 2 +- 1 file changed, 1 in

Re: [PATCH] ahci: qoriq: Fix a compiling warning

2015-10-15 Thread Tejun Heo
Hello, I see. I applied the following to libata/for-4.4. Thanks. -- 8< -- >From eb351031a15c4a83b9955aadad783c6672ab8868 Mon Sep 17 00:00:00 2001 From: Arnd Bergmann Date: Wed, 14 Oct 2015 16:46:52 +0800 Subject: [PATCH] ahci: qoriq: Fix a compiling warning kbuild test robot reports t

Re: [PATCH v4 0/3]

2015-10-15 Thread Murali Karicheri
On 10/14/2015 11:41 AM, santosh shilimkar wrote: 10/14/2015 7:17 AM, Murali Karicheri wrote: This patch series enable accumulator queue support for K2 SoCs. Accumulator queues are a type of qmss queue that is monitored by the PDSP firmware and accumulated. Host is interrupted by PDSP firmware wh

Re: [PATCH v4 2/2] arm64: Expand the stack trace feature to support IRQ stack

2015-10-15 Thread James Morse
On 15/10/15 15:24, Jungseok Lee wrote: > On Oct 9, 2015, at 11:24 PM, James Morse wrote: >> I think unwind_frame() needs to walk the irq stack too. [2] is an example >> of perf tracing back to userspace, (and there are patches on the list to >> do/fix this), so we need to walk back to the start of

Re: [PATCH v1 1/2] phy: keystone: serdes driver for gbe 10gbe and pcie

2015-10-15 Thread Murali Karicheri
On 10/15/2015 10:51 AM, Arnd Bergmann wrote: On Thursday 15 October 2015 10:25:44 WingMan Kwok wrote: On TI's Keystone platforms, several peripherals such as the gbe ethernet switch, 10gbe ethernet switch and PCIe controller require the use of a SerDes for converting SoC parallel data into seria

Re: [PATCH] IB/core: Print error when umem fails due to locked memory limit.

2015-10-15 Thread Doug Ledford
On 10/15/2015 10:21 AM, j.gli...@gmail.com wrote: > From: Jérôme Glisse > > It can be rather tedious to find why userspace is failing when only > thing kernel report is -ENOMEM. This add an error message so that > user can figure out why they are getting -ENOMEM. > > Signed-off-by: Jérôme Glisse

Re: [PATCH RFC 0/7] Adding core support for wire-MSI bridges

2015-10-15 Thread Marc Zyngier
Hi Arnd, On 15/10/15 16:46, Arnd Bergmann wrote: > On Thursday 15 October 2015 16:39:21 Marc Zyngier wrote: >> There seems to be a new class of interrupt controller out there whose >> sole purpose (apart from making everybody's life a nightmare) is to >> turn wired interrupts into MSIs. >> >> Inst

Re: [PATCH] PCI: iproc: fix 32-bit build error

2015-10-15 Thread Bjorn Helgaas
On Tue, Oct 13, 2015 at 11:00:31PM +0200, Arnd Bergmann wrote: > On Tuesday 13 October 2015 13:11:34 Ray Jui wrote: > > >> diff --git a/drivers/pci/host/pcie-iproc.c > > >> b/drivers/pci/host/pcie-iproc.c > > >> index f3481ddff344..abcb4be2ee19 100644 > > >> --- a/drivers/pci/host/pcie-iproc.c > >

Re: [PATCH v4 2/2] arm64: Expand the stack trace feature to support IRQ stack

2015-10-15 Thread James Morse
On 14/10/15 13:12, Jungseok Lee wrote: > On Oct 14, 2015, at 12:00 AM, Jungseok Lee wrote: >> On Oct 13, 2015, at 8:00 PM, James Morse wrote: >>> On 12/10/15 23:13, Jungseok Lee wrote: On Oct 13, 2015, at 1:34 AM, James Morse wrote: > Having two kmem_caches for 16K stacks on a 64K page sys

Re: [PATCH] ARM: tegra: Comment out gpio-ranges properties

2015-10-15 Thread Arnd Bergmann
On Friday 09 October 2015 17:51:47 Thierry Reding wrote: > From: Thierry Reding > > While the addition of these properties is technically correct it unveils > a bug with deferred probe. The problem is that the presence of the gpio- > range property causes the gpio-tegra driver to defer probe (it

Re: [PATCH v3 1/2] ACPI / tables: simplify acpi_parse_entries

2015-10-15 Thread Al Stone
On 10/15/2015 09:44 AM, Sudeep Holla wrote: > Hi Rafael, > > On 01/10/15 16:11, Sudeep Holla wrote: >> acpi_parse_entries passes the table end pointer to the sub-table entry >> handler. acpi_parse_entries itself could validate the end of an entry >> against the table end using the length in the su

[PATCH] IB/core: Print error when umem fails due to locked memory limit.

2015-10-15 Thread j . glisse
From: Jérôme Glisse It can be rather tedious to find why userspace is failing when only thing kernel report is -ENOMEM. This add an error message so that user can figure out why they are getting -ENOMEM. Signed-off-by: Jérôme Glisse cc: Cc: Haggai Eran Cc: Sagi Grimberg Cc: Shachar Raindel

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

2015-10-15 Thread Arnd Bergmann
On Thursday 15 October 2015 10:40:45 Jisheng Zhang wrote: > On Thu, 15 Oct 2015 10:19:20 +1100 > Stephen Rothwell wrote: > > > Hi all, > > > > After merging the arm-soc tree, today's linux-next build (arm > > multi_v7_defconfig) failed like this: > > > > arch/arm/boot/dts/berlin2q.dtsi:62.24-25

Re: [PATCH 0/1] kmod: don't run async usermode helper as a child of kworker thread

2015-10-15 Thread Frederic Weisbecker
On Thu, Oct 15, 2015 at 04:37:57PM +0200, Oleg Nesterov wrote: > call_usermodehelper_exec_sync() does fork() + wait() with "unignored" > SIGCHLD. What we have missed is that this worker thread can have other > children previously forked by call_usermodehelper_exec_work() without > UMH_WAIT_PROC.

Re: [PATCH 01/13] ACPICA: Remove unnecessary conditional compilation.

2015-10-15 Thread kbuild test robot
Hi Bob, [auto build test ERROR on pm/linux-next -- if it's inappropriate base, please suggest rules for selecting the more suitable base] url: https://github.com/0day-ci/linux/commits/Lv-Zheng/ACPICA-20150930-Release/20151015-101636 config: x86_64-lkp (attached as .config) repr

Re: [PATCH block/for-linus] block: don't release bdi while request_queue has live references

2015-10-15 Thread Jeff Moyer
Tejun Heo writes: [snip] Thanks for the nice write-up of the problem. This looks good to me. The only minor nit I have is that you might want to rename cgwb_bdi_destroy to cgwb_bdi_unregister. Reviewed-by: Jeff Moyer > Signed-off-by: Tejun Heo > Fixes: a13f35e87140 ("writeback: don't embed

Re: [PATCH v5 2/2] arm: perf: Add event descriptions

2015-10-15 Thread Pawel Moll
On Thu, 2015-10-15 at 16:42 +0100, Mark Rutland wrote: > On Thu, Oct 15, 2015 at 04:20:37PM +0100, Pawel Moll wrote: > > On Thu, 2015-10-15 at 08:15 -0700, Drew Richardson wrote: > > > On Thu, Oct 15, 2015 at 02:21:12PM +0100, Will Deacon wrote: > > > > On Tue, Oct 13, 2015 at 08:36:45AM -0700, Dre

Re: [PATCH] VFIO: platform: AMD xgbe reset module

2015-10-15 Thread Arnd Bergmann
On Thursday 15 October 2015 17:03:21 Christoffer Dall wrote: > On Thu, Oct 15, 2015 at 04:55:13PM +0200, Arnd Bergmann wrote: > > On Thursday 15 October 2015 16:46:09 Eric Auger wrote: > > > > > > > > This is where we'd need a little more changes for this approach. Instead > > > > of unbinding the

Re: [PATCH 3/3] ARM: BCM: Add SMP support for Broadcom NSP

2015-10-15 Thread Jon Mason
On Wed, Oct 14, 2015 at 06:40:04PM -0400, Jon Mason wrote: > On Thu, Oct 15, 2015 at 12:26:25AM +0200, Hauke Mehrtens wrote: > > On 10/14/2015 07:47 PM, Kapil Hali wrote: > > > Add SMP support for Broadcom's Northstar Plus SoC, > > > cpu enable method and pen_release procedures. This > > > changes

Re: [PATCH v5 2/2] arm: perf: Add event descriptions

2015-10-15 Thread Mark Rutland
On Thu, Oct 15, 2015 at 04:20:37PM +0100, Pawel Moll wrote: > On Thu, 2015-10-15 at 08:15 -0700, Drew Richardson wrote: > > On Thu, Oct 15, 2015 at 02:21:12PM +0100, Will Deacon wrote: > > > On Tue, Oct 13, 2015 at 08:36:45AM -0700, Drew Richardson wrote: > > > > Add additional information about th

Re: [PATCHv3 10/11] arm64: Add 16K page size support

2015-10-15 Thread Suzuki K. Poulose
On 15/10/15 16:36, Steve Capper wrote: On 15 October 2015 at 15:48, Suzuki K. Poulose wrote: On 15/10/15 15:06, Mark Rutland wrote: Hi, I have fixed all the nits locally. Thanks for pointing them out. config FORCE_MAX_ZONEORDER int default "14" if (ARM64_64K_PAGES &&

Re: [PATCH RFC 0/7] Adding core support for wire-MSI bridges

2015-10-15 Thread Arnd Bergmann
On Thursday 15 October 2015 16:39:21 Marc Zyngier wrote: > There seems to be a new class of interrupt controller out there whose > sole purpose (apart from making everybody's life a nightmare) is to > turn wired interrupts into MSIs. > > Instead of considering that the MSIs allocated to a device a

Re: [PATCH v3 1/2] ACPI / tables: simplify acpi_parse_entries

2015-10-15 Thread Sudeep Holla
Hi Rafael, On 01/10/15 16:11, Sudeep Holla wrote: acpi_parse_entries passes the table end pointer to the sub-table entry handler. acpi_parse_entries itself could validate the end of an entry against the table end using the length in the sub-table entry. This patch adds the validation of the sub

Re: [PATCH 3/3] ARM: at91/defconfig: update sama5 defconfig

2015-10-15 Thread Nicolas Ferre
Le 15/10/2015 17:31, Ludovic Desroches a écrit : > On Thu, Oct 15, 2015 at 03:24:51PM +0200, Alexandre Belloni wrote: >> Hi, >> >> On 14/10/2015 at 14:11:24 +0200, Ludovic Desroches wrote : >>> Add SAMA5D2 SoC plus Atmel flexcom and Atmel sdhci devices. >>> >>> Signed-off-by: Ludovic Desroches >>>

Re: [PATCH tip/locking/core v4 1/6] powerpc: atomic: Make *xchg and *cmpxchg a full barrier

2015-10-15 Thread Paul E. McKenney
On Thu, Oct 15, 2015 at 11:35:44AM +0100, Will Deacon wrote: > Dammit guys, it's never simple is it? > > On Wed, Oct 14, 2015 at 02:44:53PM -0700, Paul E. McKenney wrote: > > To that end, the herd tool can make a diagram of what it thought > > happened, and I have attached it. I used this diagram

Re: [PATCH 4/5] KVM: x86: MMU: Remove mapping_level_dirty_bitmap()

2015-10-15 Thread Paolo Bonzini
On 15/10/2015 12:43, Takuya Yoshikawa wrote: > +static inline bool memslot_invalid(struct kvm_memory_slot *slot) Can you make this function memslot_valid_for_gpte(struct kvm_memory_slot *slot, bool no_dirty_log), and have it return slot && !(slot->flags & KVM_MEMSLOT_INVALID) &&

Re: [PATCHv3 10/11] arm64: Add 16K page size support

2015-10-15 Thread Steve Capper
On 15 October 2015 at 15:48, Suzuki K. Poulose wrote: > On 15/10/15 15:06, Mark Rutland wrote: >> >> Hi, >> > > I have fixed all the nits locally. Thanks for pointing them out. > >>> config FORCE_MAX_ZONEORDER >>> int >>> default "14" if (ARM64_64K_PAGES && TRANSPARENT_HUGEPAGE)

[PATCH] fmc: correctly handle failed allocation

2015-10-15 Thread Insu Yun
Since kmemdup can be failed in memory pressure, return value should be checked and return -ENOMEM. Signed-off-by: Insu Yun --- drivers/fmc/fmc-fakedev.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/fmc/fmc-fakedev.c b/drivers/fmc/fmc-fakedev.c index 941d093..0515909 100644

[PATCH RFC 0/7] Adding core support for wire-MSI bridges

2015-10-15 Thread Marc Zyngier
There seems to be a new class of interrupt controller out there whose sole purpose (apart from making everybody's life a nightmare) is to turn wired interrupts into MSIs. Instead of considering that the MSIs allocated to a device are for the direct use of that device, we can turn this set of MSIs

[PATCH RFC 2/7] platform-msi: Factor out allocation/free of private data

2015-10-15 Thread Marc Zyngier
As we're going to have multiple paths to allocate/free the platform-msi private data, factor this out into separate utility functions. Signed-off-by: Marc Zyngier --- drivers/base/platform-msi.c | 84 ++--- 1 file changed, 48 insertions(+), 36 deletions(-)

[PATCH RFC 1/7] platform-msi: Allow MSIs to be allocated in chunks

2015-10-15 Thread Marc Zyngier
MSIs for a given device are normally all allocated in one go. Make sure the internal code can allocate them one at a time if required. Signed-off-by: Marc Zyngier --- drivers/base/platform-msi.c | 32 1 file changed, 20 insertions(+), 12 deletions(-) diff --git

Re: [PATCH v5 2/2] arm: perf: Add event descriptions

2015-10-15 Thread Mark Rutland
On Thu, Oct 15, 2015 at 04:29:15PM +0100, Will Deacon wrote: > On Thu, Oct 15, 2015 at 08:15:06AM -0700, Drew Richardson wrote: > > On Thu, Oct 15, 2015 at 02:21:12PM +0100, Will Deacon wrote: > > > On Tue, Oct 13, 2015 at 08:36:45AM -0700, Drew Richardson wrote: > > > > Add additional information

[PATCH RFC 4/7] genirq/msi: Make the .prepare callback reusable

2015-10-15 Thread Marc Zyngier
The .prepare callbacks are so far only called from msi_domain_alloc_irqs. In order to reuse that code, split that code and create a msi_domain_prepare_irqs function that the existing code can call into. Signed-off-by: Marc Zyngier --- include/linux/msi.h | 4 kernel/irq/msi.c| 20 +

Re: [PATCH] clocksource/imx: allow timer irq affinity change

2015-10-15 Thread Daniel Lezcano
On 10/14/2015 11:24 AM, Lucas Stach wrote: Allow the timer core to change the smp affinity of the broadcast timer irq by setting CLOCK_EVT_FEAT_DYNIRQ flag. For this to work the timer core needs to be told about the used irq. This reduces interrupt pressure and wakeups on CPU0 as well as vastly

[PATCH RFC 5/7] genirq/msi: Add msi_domain_populate_irqs

2015-10-15 Thread Marc Zyngier
To be able to allocate interrupts from the MSI layer down, add a new msi_domain_populate_irqs entry point. Signed-off-by: Marc Zyngier --- include/linux/msi.h | 2 ++ kernel/irq/msi.c| 27 +++ 2 files changed, 29 insertions(+) diff --git a/include/linux/msi.h b/incl

[PATCH RFC 6/7] platform-msi: Allow creation of a MSI-based stacked irq domain

2015-10-15 Thread Marc Zyngier
We almost have all the needed bits to be able to create a irq domain on top of a MSI domain. For this, we enable a few things: - the virq is stored in the msi_desc - device, msi_alloc_info and domain-specific data are stored in the platform_pric_data structure - we introduce a new API for platfo

[PATCH RFC 3/7] irqdomain: Make irq_domain_alloc_irqs_recursive available

2015-10-15 Thread Marc Zyngier
We are soon going to need the MSI layer to call into the domain allocators. Instead of open coding this, make the standard irq_domain_alloc_irqs_recursive function available to the MSI layer. Signed-off-by: Marc Zyngier --- include/linux/irqdomain.h | 3 +++ kernel/irq/irqdomain.c| 6 +++---

[PATCH RFC 7/7] irqchip: [Example] dummy wired interrupt/MSI bridge driver

2015-10-15 Thread Marc Zyngier
In order to demonstrate how to put together a wire/MSI bridge, add a dummy driver that doesn't do anything at all, except for allocating interrupts. It comes together with an even more stupid client driver that allocates an interrupt and dump the hierarchy of that interrupt. Signed-off-by: Marc Z

Re: [PATCH] ahci: qoriq: Fix a compiling warning

2015-10-15 Thread Arnd Bergmann
On Thursday 15 October 2015 11:11:52 Tejun Heo wrote: > > On Wed, Oct 14, 2015 at 04:46:52PM +0800, Tang Yuantian wrote: > > kbuild test robot reports the warnings: > > drivers/ata/ahci_qoriq.c: In function 'ahci_qoriq_hardreset': > > >> include/asm-generic/io.h:163:2: warning: 'px_is' may be used

Re: [PATCH] ARM: at91: debug: update prompt for DEBUG_AT91_UART

2015-10-15 Thread Ludovic Desroches
On Thu, Oct 15, 2015 at 04:04:45PM +0200, Alexandre Belloni wrote: > On 14/10/2015 at 09:24:42 +0200, Ludovic Desroches wrote : > > Add (read help!) to DEBUG_AT91_UART prompt. It is not obvious there are > > such useful information to set DEBUG_UART_PHYS. > > > > Signed-off-by: Ludovic Desroches

Re: [PATCH 1/1] Revert "kmod: handle UMH_WAIT_PROC from system unbound workqueue"

2015-10-15 Thread Frederic Weisbecker
On Thu, Oct 15, 2015 at 05:18:19PM +0200, Oleg Nesterov wrote: > On 10/15, Frederic Weisbecker wrote: > > > > On Wed, Oct 14, 2015 at 08:52:09PM +0200, Oleg Nesterov wrote: > > > This reverts commit bb304a5c6fc63d8506cd9741a3a5f35b73605625. > > > > > > Because this patch leads to kthread zombies. >

Re: [PATCH 0/5] x86/setup/crash: Cleanup some code

2015-10-15 Thread Joerg Roedel
On Thu, Oct 15, 2015 at 10:20:26AM +0200, Borislav Petkov wrote: > this is ontop of Baoquan's fix from yesterday: > https://lkml.kernel.org/r/20151014104338.ga8...@pd.tnic > > Looking at the crashkernel reservation code made a couple of style > problems wink at me so this short cleanup should addr

Re: Fwd: Re: [PATCH net-next v2 1/2] hisilicon net: removes the once HANDEL_TX_MSG macro

2015-10-15 Thread Kenneth Lee
On Tue, Oct 13, 2015 at 04:18:23PM +0200, Arnd Bergmann wrote: > Date: Tue, 13 Oct 2015 16:18:23 +0200 > From: Arnd Bergmann > To: Kenneth Lee > Cc: da...@davemloft.net, j...@perches.com, liguo...@hisilicon.com, > yisen.zhu...@huawei.com, net...@vger.kernel.org, linux...@huawei.com, > salil.me.

Re: [dm-devel] [PATCH 3/6] sd: implement the Persistent Reservation API

2015-10-15 Thread Christoph Hellwig
On Thu, Oct 15, 2015 at 08:30:50AM -0700, Bart Van Assche wrote: > Can you explain why this functionality has been added to the sd driver > instead of the SCSI core ? Aren't persistent reservations a concept that > applies to all SCSI device types ? In theory it does. In practice it's only used

Re: [PATCH v5 2/2] arm: perf: Add event descriptions

2015-10-15 Thread Will Deacon
On Thu, Oct 15, 2015 at 08:15:06AM -0700, Drew Richardson wrote: > On Thu, Oct 15, 2015 at 02:21:12PM +0100, Will Deacon wrote: > > On Tue, Oct 13, 2015 at 08:36:45AM -0700, Drew Richardson wrote: > > > Add additional information about the ARM architected hardware events > > > to make counters self

Re: [PATCH 3/3] ARM: at91/defconfig: update sama5 defconfig

2015-10-15 Thread Ludovic Desroches
On Thu, Oct 15, 2015 at 03:24:51PM +0200, Alexandre Belloni wrote: > Hi, > > On 14/10/2015 at 14:11:24 +0200, Ludovic Desroches wrote : > > Add SAMA5D2 SoC plus Atmel flexcom and Atmel sdhci devices. > > > > Signed-off-by: Ludovic Desroches > > --- > > arch/arm/configs/sama5_defconfig | 6 +

Re: [dm-devel] [PATCH 3/6] sd: implement the Persistent Reservation API

2015-10-15 Thread Bart Van Assche
On 10/15/2015 05:10 AM, Christoph Hellwig wrote: This is a mostly trivial mapping to the PERSISTENT RESERVE IN/OUT commands. Hello Christoph, Can you explain why this functionality has been added to the sd driver instead of the SCSI core ? Aren't persistent reservations a concept that applie

Re: [PATCH 4/4] blk-mq: mark ctx as pending at batch in flush plug path

2015-10-15 Thread Jeff Moyer
Ming Lei writes: > Most of times, flush plug should be the hottest I/O path, > so mark ctx as pending after all requests in the list are > inserted. Hi, Ming, Did you see some performance gain from this? -Jeff > > Signed-off-by: Ming Lei > --- > block/blk-mq.c | 18 +- > 1 f

Re: GPF in keyring_destroy

2015-10-15 Thread David Howells
Dmitry Vyukov wrote: > RAX: ff82 This is the value that matters. It would appear to be -ENOKEY and would be in key->type_data.reject_error, I think. David -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.or

Re: [PATCH 1/1] Revert "kmod: handle UMH_WAIT_PROC from system unbound workqueue"

2015-10-15 Thread Oleg Nesterov
On 10/15, Frederic Weisbecker wrote: > > On Wed, Oct 14, 2015 at 08:52:09PM +0200, Oleg Nesterov wrote: > > This reverts commit bb304a5c6fc63d8506cd9741a3a5f35b73605625. > > > > Because this patch leads to kthread zombies. > > > > call_usermodehelper_exec_sync() does fork() + wait() with "unignored

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