[PATCH] GPIO / ACPI: export acpi_gpiochip_request(free)_interrupts for module use

2015-06-10 Thread Hanjun Guo
acpi_gpiochip_request(free)_interrupts can be used for modules, so export them. This also fixs a compile error when xgene-sb configured as kernel module. Fixes: 733cf014f020 "gpio: xgene: add ACPI support for APM X-Gene GPIO standby driver" Signed-off-by: Hanjun Guo ---

Re: Discussion: quick_pit_calibrate is slow

2015-06-10 Thread Ingo Molnar
* Adrian Hunter wrote: > On 10/06/15 10:08, George Spelvin wrote: > > > The 8254 timer latches the msbyte when the lsbyte is read and returns the > > latched value on the next read > > Are you sure about? The docs I've read don't seem to say that. Btw., even if docs claim that, the code

Re: Discussion: quick_pit_calibrate is slow

2015-06-10 Thread George Spelvin
Ingo Molnar wrote: >* George Spelvin wrote: > As a side note: so VMs often want to skip the whole calibration business, > because they are running on a well-calibrated host. > 1,000 msecs is also an eternity: consider for example the KVM + tools/kvm > based "Clear Containers" feature from

Re: Discussion: quick_pit_calibrate is slow

2015-06-10 Thread George Spelvin
Adrian Hunter wrote: > On 10/06/15 10:08, George Spelvin wrote: >> The 8254 timer latches the msbyte when the lsbyte is read >> and returns the latched value on the next read > Are you sure about? The docs I've read don't seem to say that. You're right; I musy have been thinking about the write

[PATCH] iommu/vt-d: Don't copy translation tables if we find unexpected RTT setting

2015-06-10 Thread Joerg Roedel
From: Joerg Roedel The RTT bit in the RTADDR_REG can not be changed while translation is enabled. So check its value if we boot into a kdump kernel and find translation enabled, and if it is different from what we would set it to, bail out and don't try to copy over the translation tables from

Re: [REBASED 2/5] regulator: pwm-regulator: Separate voltage-table initialisation

2015-06-10 Thread Lee Jones
Oh my ... On Wed, 10 Jun 2015, Lothar Waßmann wrote: > > Take this out of the main .probe() routine in order to facilitate the > > introduction of different ways to obtain 'duty cycle' information. > > > > Signed-off-by: Lee Jones > > --- > > drivers/mfd/mfd-child.c | 47

[PATCH] [media] s5p-tv: fix wait_event_timeout return handling

2015-06-10 Thread Nicholas Mc Guire
event API conformance testing with coccinelle spatches are being used to locate API usage inconsistencies this triggert with: ./drivers/media/platform/s5p-tv/mixer_reg.c:364 incorrect check for negative return Return type of wait_event_timeout is signed long not int and the return type is

RE: [RFC,v3 02/10] dpaa_eth: add support for DPAA Ethernet

2015-06-10 Thread Madalin-Cristian Bucur
Hi Eric, Can you please tell us if this change would be for the better? I was about to say yes to this request but checked and no other Ethernet driver seems to use the queue trans_start. I was able to find your patch "net: tx scalability works : trans_start" [

Re: [PATCH 0/3] TLB flush multiple pages per IPI v5

2015-06-10 Thread Ingo Molnar
* Ingo Molnar wrote: > Stop this crap. > > I made a really clear and unambiguous chain of arguments: > > - I'm unconvinced about the benefits of INVLPG in general, and your patches > adds >a whole new bunch of them. [...] ... and note that your claim that 'we were doing them before,

Re: [RFC PATCH 09/18] kthread: Make it easier to correctly sleep in iterant kthreads

2015-06-10 Thread Peter Zijlstra
On Mon, Jun 08, 2015 at 01:48:10PM -0400, Steven Rostedt wrote: > > commit 80ed87c8a9ca0cad7ca66cf3bbdfb17559a66dcf > > Author: Peter Zijlstra > > Date: Fri May 8 14:23:45 2015 +0200 > > > > sched/wait: Introduce TASK_NOLOAD and TASK_IDLE > > > > Currently people use

Re: [RFC PATCH 09/18] kthread: Make it easier to correctly sleep in iterant kthreads

2015-06-10 Thread Peter Zijlstra
On Tue, Jun 09, 2015 at 05:25:26PM +0200, Petr Mladek wrote: > On Mon 2015-06-08 13:39:55, Peter Zijlstra wrote: > > On Mon, 2015-06-08 at 12:01 +0200, Petr Mladek wrote: > > > > > Just to be sure. Do you suggest to use TASK_IDLE everywhere in > > > kthreads or only when the uninterruptible sleep

Re: [PATCH v11 3/5] x86/earlyprintk: Allocate early log_buf as early as possible

2015-06-10 Thread Borislav Petkov
On Tue, Jun 09, 2015 at 11:37:27PM +0600, Alexander Kuleshov wrote: > Borislav, I'm really not sure too, that using of printk to update > log_buf with the earlyprintk is a right correct here. Yes, so this whole approach and what you're trying to achieve seems kinda confusing and wrong. First of

[PATCH - v1] mtd: nand: davinci: add support for 4K page size nand devices.

2015-06-10 Thread Murali Karicheri
K2L EVM uses NAND with 4K page size. This patch add support for ECC layout requires to enable Micron MT29F16G08ADBCAH4 NAND available on this EVM. Signed-off-by: Murali Karicheri Signed-off-by: Hao Zhang --- - v1 - Remove the comment as well from the code as now 4K page is supported

Re: [PATCH 2/4] mm: Send one IPI per CPU to TLB flush all entries after unmapping pages

2015-06-10 Thread Mel Gorman
On Wed, Jun 10, 2015 at 10:33:32AM +0200, Ingo Molnar wrote: > > * Mel Gorman wrote: > > > Linear mapped reader on a 4-node machine with 64G RAM and 48 CPUs > > > > 4.1.0-rc6 4.1.0-rc6 > > vanilla

[Patch v3 2/4] PCI, x86: Allocate PCI IRQ on demand and free it when not used anymore

2015-06-10 Thread Jiang Liu
To support IOAPIC hotplug, we need to correctly manage IOAPIC pin usage, which is to allocate IRQs on demand and free them when not used anymore. So use pcibios_alloc_irq() and pcibios_free_irq() to dynamically allocate and free PCI IRQs. Also remove obseleted code mp_should_keep_irq().

[Patch v3 3/4] PCI: Add helpers to manage pci_dev->irq and pci_dev->irq_managed

2015-06-10 Thread Jiang Liu
Add three helpers to manage pci_dev->irq and pci_dev->irq_managed, which helps to improve maintenance. Signed-off-by: Jiang Liu Acked-by: Bjorn Helgaas --- arch/x86/pci/intel_mid_pci.c |4 ++-- arch/x86/pci/irq.c | 10 -- drivers/acpi/pci_irq.c | 10 --

[Patch v3 4/4] PCI, MSI: Free legacy PCI IRQ when enabling MSI/MSI-X

2015-06-10 Thread Jiang Liu
Once PCI MSI/MSI-X is enabled by the device driver, PCI device won't make use of legacy PCI IRQ until PCI MSI/MSI-X is disabled again. This patch enhances the PCI MSI core to call pcibios_free_irq() when enabling MSI/MSI-X and to call pcibios_alloc_irq() when disabling MSI/MSI-X. So legacy PCI IRQ

[Patch v3 1/4] PCI: Add hooks to allocate/free IRQ resources when binding/unbinding driver

2015-06-10 Thread Jiang Liu
Add two hook points pcibios_{alloc|free}_irq() into PCI core, which will be called when binding/unbinding PCI device drivers. Then PCI arch code may hook into these two points to allocate IRQ resources on demand and free them when not used anymore. Signed-off-by: Jiang Liu Acked-by: Bjorn

[Patch v3 0/4] Introduce a mechanism to allocate PCI IRQ on demand

2015-06-10 Thread Jiang Liu
Hi Bjorn, I have verified that this patch set could be applied to the mainstream kernel without dependency on other patches, so could you please help to merge it? This patch set introduces a mechanism to allocate PCI IRQ on demand and free it when not used anymore by hooking

Re: [PATCH 0/3] TLB flush multiple pages per IPI v5

2015-06-10 Thread Ingo Molnar
* Mel Gorman wrote: > > I think since it is you who wants to introduce additional complexity into > > the > > x86 MM code the burden is on you to provide proof that the complexity of > > pfn > > (or struct page) tracking is worth it. > > I'm taking a situation whereby IPIs are sent like

Re: [PATCH 2/4] mm: Send one IPI per CPU to TLB flush all entries after unmapping pages

2015-06-10 Thread Mel Gorman
On Wed, Jun 10, 2015 at 10:21:07AM +0200, Ingo Molnar wrote: > > * Mel Gorman wrote: > > > On Wed, Jun 10, 2015 at 09:47:04AM +0200, Ingo Molnar wrote: > > > > > > * Mel Gorman wrote: > > > > > > > --- a/include/linux/sched.h > > > > +++ b/include/linux/sched.h > > > > @@ -1289,6 +1289,18 @@

[PATCH] dma-mapping: harmonize definition of DMA_ERROR_CODE

2015-06-10 Thread Nicholas Mc Guire
All architectures except arm that define DMA_ERROR_CODE are casting it to (dma_addr_t) - as it is always compared to dma_addr_t in arm as well this could be harmonized. Signed-off-by: Nicholas Mc Guire --- This also fixes the build warning in ./arch/arm/include/asm/dma-mapping.h: In function

Re: [PATCH 3/4] mips: make loongsoon serial driver explicitly modular

2015-06-10 Thread Ralf Baechle
On Tue, Jun 09, 2015 at 07:15:28PM -0400, Paul Gortmaker wrote: > I've dropped my change in favour of this one, and crafted up a commit > log from this e-mail exchange as follows: > >

Re: [RFC/PATCH] pinctrl: sh-pfc: Accept standard function, pins and groups properties

2015-06-10 Thread Linus Walleij
On Tue, Jun 9, 2015 at 4:35 PM, Geert Uytterhoeven wrote: > On Fri, Mar 6, 2015 at 11:39 AM, Linus Walleij > wrote: >> This looks good to me, is the patch applicable as it is, or will you rebase >> it and send out a non-RFC version? > > This seems to have fallen through the (ELC?) cracks... >

Re: [PATCH] pinctrl: don't try to print function groups if we can't get them

2015-06-10 Thread Linus Walleij
On Mon, Jun 8, 2015 at 5:16 PM, Ludovic Desroches wrote: > There is no reason to try to print groups associated to a function if > get_function_groups returns an error. Moreover, it can lead to a NULL > pointer dereference error. > > Signed-off-by: Ludovic Desroches Patch applied. Yours,

Re: [PATCH] added device tree support to gpio-generic driver

2015-06-10 Thread Linus Walleij
This patch needs to go to the devicetree list too, see To: on this mail. On Fri, Jun 5, 2015 at 8:51 AM, Romain Baeriswyl wrote: > +Required properties: > +- compatible : "basic-mmio-gpio" for little endian register access or > + "basic-mmio-gpio-be" for big endian register access

Re: [RFT v2 44/48] genirq, pinctrl: Kill the first parameter 'irq' of irq_flow_handler_t

2015-06-10 Thread Heiko Stübner
Am Donnerstag, 4. Juni 2015, 12:13:54 schrieb Jiang Liu: > Now most IRQ flow handlers make no use of the first parameter 'irq'. > And for those who do make use of 'irq', we could easily get the irq > number through irq_desc->irq_data->irq. So kill the first parameter > 'irq' of irq_flow_handler_t.

Re: [RFT v2 34/48] pinctrl: Prepare for killing the first parameter 'irq' of irq_flow_handler_t

2015-06-10 Thread Heiko Stübner
Am Donnerstag, 4. Juni 2015, 12:13:44 schrieb Jiang Liu: > Change irq flow handler to prepare for killing the first parameter 'irq' > of irq_flow_handler_t. > > Signed-off-by: Jiang Liu > --- > drivers/pinctrl/pinctrl-rockchip.c|4 ++-- For Rockchip Acked-by: Heiko Stuebner -- To

Re: [RFT v2 06/48] pinctrl: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc

2015-06-10 Thread Heiko Stübner
Am Donnerstag, 4. Juni 2015, 12:13:16 schrieb Jiang Liu: > Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc while we > already have a pointer to corresponding irq_desc. > > Signed-off-by: Jiang Liu > Acked-by: Linus Walleij > --- > drivers/pinctrl/pinctrl-rockchip.c|

Re: [PATCH 2/4] mm: Send one IPI per CPU to TLB flush all entries after unmapping pages

2015-06-10 Thread Ingo Molnar
* Mel Gorman wrote: > Linear mapped reader on a 4-node machine with 64G RAM and 48 CPUs > > 4.1.0-rc6 4.1.0-rc6 > vanilla flushfull-v6 > Ops lru-file-mmap-read-elapsed 162.88 ( 0.00%) 120.81 (

Re: [PATCH 2/4] mm: Send one IPI per CPU to TLB flush all entries after unmapping pages

2015-06-10 Thread Ingo Molnar
* Mel Gorman wrote: > On a 4-socket machine the results were > > 4.1.0-rc6 4.1.0-rc6 > batchdirty-v6 batchunmap-v6 > Ops lru-file-mmap-read-elapsed 121.27 ( 0.00%) 118.79 ( 2.05%) > >

RE: [PATCH] Input - elan_i2c: support multi ic type and iap format

2015-06-10 Thread DusonLin
Hi Dmitry, When can I fetch the newest linux source code and make sure this patch had be merged? Thank you Duson -Original Message- From: Dmitry Torokhov [mailto:dmitry.torok...@gmail.com] Sent: Tuesday, June 09, 2015 8:09 AM To: duson Cc: linux-kernel@vger.kernel.org;

Re: [PATCH 3/3] edac, mce_amd_inj: Inject errors on NBC for bank 4 errors

2015-06-10 Thread Borislav Petkov
On Tue, Jun 09, 2015 at 11:45:17AM -0500, Aravind Gopalakrishnan wrote: > For bank 4 errors, MCE is logged and reported only on > node base cores. Refer D18F3x44[NbMcaToMstCpuEn] field in > Fam10h and later BKDGs. > > This patch ensures that we inject the error on the node base core > for bank 4

[alsa-devel][PATCH] ASoC: fsl: add imx-wm8960 machine driver

2015-06-10 Thread Zidan Wang
This imx-wm8960 device-tree-only machine driver works with sai driver and have below feature. * support codec master and slave mode * support headphone jack detect * support headphone and micphone jack event * support asrc<->sai<->wm8960 mode Signed-off-by: Zidan Wang ---

Re: [PATCH 0/3] Pinctrl support for msm8660

2015-06-10 Thread Linus Walleij
On Sat, Jun 6, 2015 at 12:52 AM, Bjorn Andersson wrote: > Per your request Linus, happy birthday! A opening this present 4 days late it still makes my day like it was my birthday again! Will boot my Dragon with these patches on, prompto! Yours, Linus Walleij -- To unsubscribe from this

Re: [PATCH 2/4] mm: Send one IPI per CPU to TLB flush all entries after unmapping pages

2015-06-10 Thread Ingo Molnar
* Mel Gorman wrote: > On Wed, Jun 10, 2015 at 09:47:04AM +0200, Ingo Molnar wrote: > > > > * Mel Gorman wrote: > > > > > --- a/include/linux/sched.h > > > +++ b/include/linux/sched.h > > > @@ -1289,6 +1289,18 @@ enum perf_event_task_context { > > > perf_nr_task_contexts, > > > }; > > >

Re: [PATCH 2/3] pinctrl: dt-binding: Add DT binding documentation for MSM8660

2015-06-10 Thread Linus Walleij
On Sat, Jun 6, 2015 at 12:52 AM, Bjorn Andersson wrote: > Signed-off-by: Bjorn Andersson Patch applied! Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH 1/3] pinctrl: qcom: Add MSM8660 pinctrl definitions

2015-06-10 Thread Linus Walleij
On Sat, Jun 6, 2015 at 12:52 AM, Bjorn Andersson wrote: > Signed-off-by: Bjorn Andersson Patch applied! Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH 3/3] ARM: dts: qcom: Replace gpio node with pinctrl node

2015-06-10 Thread Linus Walleij
On Sat, Jun 6, 2015 at 12:52 AM, Bjorn Andersson wrote: > Replace the standalone gpio driver with pinctrl-msm as we now have > msm8660 support there. > > Signed-off-by: Bjorn Andersson Acked-by: Linus Walleij please funnel this through the ARM SoC tree. Yours, Linus Walleij -- To

[RFT PATCH] dmaengine: Fix choppy sound because of unimplemented resume

2015-06-10 Thread Krzysztof Kozlowski
Some drivers implement only pause operation (no resuming). Example is pl330 where pause is needed for getting residuum. pl330 does not support resume operation, transfer must be stopped after pause. However for slaves this is exposed always as "pause and resume" which introduces subtle errors on

Re: [PATCH 3/4] mm: Defer flush of writable TLB entries

2015-06-10 Thread Mel Gorman
On Wed, Jun 10, 2015 at 09:50:34AM +0200, Ingo Molnar wrote: > > * Mel Gorman wrote: > > > + > > + /* > > +* If the PTE was dirty then it's best to assume it's writable. The > > +* caller must use try_to_unmap_flush_dirty() or try_to_unmap_flush() > > +* before the page any IO is

Re: Discussion: quick_pit_calibrate is slow

2015-06-10 Thread Adrian Hunter
On 10/06/15 10:08, George Spelvin wrote: > The 8254 timer latches the msbyte when the lsbyte is read > and returns the latched value on the next read Are you sure about? The docs I've read don't seem to say that. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [PATCH 2/4] mm: Send one IPI per CPU to TLB flush all entries after unmapping pages

2015-06-10 Thread Mel Gorman
On Wed, Jun 10, 2015 at 09:47:04AM +0200, Ingo Molnar wrote: > > * Mel Gorman wrote: > > > --- a/include/linux/sched.h > > +++ b/include/linux/sched.h > > @@ -1289,6 +1289,18 @@ enum perf_event_task_context { > > perf_nr_task_contexts, > > }; > > > > +/* Track pages that require TLB

[PATCH] ring-buffer-benchmark: Fix the wrong sched_priority of producer

2015-06-10 Thread Wang Long
The producer should be used producer_fifo as its sched_priority, so correct it. Signed-off-by: Wang Long --- kernel/trace/ring_buffer_benchmark.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/trace/ring_buffer_benchmark.c b/kernel/trace/ring_buffer_benchmark.c

Re: [PATCH] mtd: nand: support for Toshiba BENAND (Built-in ECC NAND)

2015-06-10 Thread Paul Bolle
On Wed, 2015-06-10 at 16:08 +0900, KOBAYASHI Yoshitake wrote: > drivers/mtd/nand/Kconfig | 16 > drivers/mtd/nand/Makefile|1 + > drivers/mtd/nand/nand_base.c | 32 ++-- > include/linux/mtd/nand.h |3 +++ > 4 files changed, 50

Re: [PATCH] net, swap: Remove a warning and clarify why sk_mem_reclaim is required when deactivating swap

2015-06-10 Thread Leon Romanovsky
On Tue, Jun 9, 2015 at 9:40 PM, Jeff Layton wrote: > From: Mel Gorman > > Jeff Layton reported the following; > > [ 74.232485] [ cut here ] > [ 74.233354] WARNING: CPU: 2 PID: 754 at net/core/sock.c:364 > sk_clear_memalloc+0x51/0x80() > [ 74.234790] Modules

[PATCH] ring-buffer-benchmark: Fix the wrong type

2015-06-10 Thread Wang Long
The macro 'module_param' shows that the type of the variable disable_reader and write_iteration is unsigned integer. so, we change their type form int to unsigned int. Signed-off-by: Wang Long --- kernel/trace/ring_buffer_benchmark.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

Re: [PATCH] ARM: STi: Remove platform call to trace_hardirqs_off()

2015-06-10 Thread Maxime Coquelin
Hi Peter On 06/09/2015 11:47 PM, Peter Griffin wrote: Calling trace_hardirqs_off() from the platform specific secondary startup code as not been necessary since Dec 2010 when Russell King consolidated the call into the common SMP code. 2c0136d ARM: SMP: consolidate trace_hardirqs_off() into

[PATCH] ring-buffer-benchmark: Fix the wrong param in module_param

2015-06-10 Thread Wang Long
The {producer|consumer}_{nice|fifo} parameters are integer type, we should use 'int' as the second param in module_param. For example(consumer_fifo): the default value of consumer_fifo is -1. Without this patch: # cat /sys/module/ring_buffer_benchmark/parameters/consumer_fifo

Re: [PATCH 2/3] spi: mediatek: Add spi bus for Mediatek MT8173

2015-06-10 Thread Eddie Huang
Hi Mark, On Tue, 2015-06-09 at 11:39 +0100, Mark Brown wrote: > On Tue, Jun 09, 2015 at 06:05:21PM +0800, Eddie Huang wrote: > > > --- a/drivers/spi/spi.c > > +++ b/drivers/spi/spi.c > > @@ -539,8 +539,8 @@ static int __spi_map_msg(struct spi_master *master, > > struct spi_message *msg) > >

Re: [RFC 3/6] mm: mark dirty bit on swapped-in page

2015-06-10 Thread Cyrill Gorcunov
On Wed, Jun 10, 2015 at 05:00:35PM +0900, Minchan Kim wrote: > > > > Ah, I recall. If there is no way to escape dirtifying the page in pte itself > > maybe we should at least not make it softdirty on read faults? > > You mean this? > > diff --git a/mm/memory.c b/mm/memory.c > index

Re: [PATCH v6 5/6] i2c: at91: print hardware version

2015-06-10 Thread Ludovic Desroches
On Tue, Jun 09, 2015 at 10:46:20PM +0300, Sergei Shtylyov wrote: > Hello. > > On 06/09/2015 07:22 PM, Cyrille Pitchen wrote: > > >The probe() function now prints the hardware version of the I2C > >controller. > > >Signed-off-by: Cyrille Pitchen > >--- > > drivers/i2c/busses/i2c-at91.c | 5

Re: [PATCH v2 0/3] Add code to release secondary cores from holding pen.

2015-06-10 Thread Maxime Coquelin
Hi Kevin, On 06/09/2015 05:43 PM, Kevin Hilman wrote: Peter Griffin writes: Hi Maxime, Patrice, Srini, Kevin, Olof & Arnd, This patchset adds in the necessary code to manage the holding pen for STi platforms. Due to all the STi upstream devs using JTAG to boot the STi boards, there is

Re: [PATCH 1/3] x86, amd: Store number of nodes in a static global variable

2015-06-10 Thread Borislav Petkov
On Tue, Jun 09, 2015 at 11:45:15AM -0500, Aravind Gopalakrishnan wrote: > Moving this out of function local scope as we want to > allow EDAC to be able to view this topology attribute. > > A follow-up patch introduces an accessor function for this variable > that will be used by EDAC's

Re: [RFC 3/6] mm: mark dirty bit on swapped-in page

2015-06-10 Thread Minchan Kim
On Wed, Jun 10, 2015 at 10:23:05AM +0300, Cyrill Gorcunov wrote: > On Wed, Jun 10, 2015 at 08:52:06AM +0900, Minchan Kim wrote: > > > > +++ b/mm/memory.c > > > > @@ -2557,9 +2557,11 @@ static int do_swap_page(struct mm_struct *mm, > > > > struct vm_area_struct *vma, > > > > > > > >

Re: clustered MD

2015-06-10 Thread Richard Weinberger
On Wed, Jun 10, 2015 at 5:33 AM, Goldwyn Rodrigues wrote: > David Lang has already responded: The idea is to use a RAID device > (currently only level 1 mirroring is supported) with multiple nodes of the > cluster. > > Here is a description on how to use it: >

Re: [PATCH 2/2] staging/lustre/llite: fix ll_getname user buffer copy

2015-06-10 Thread Oleg Drokin
On Jun 10, 2015, at 3:52 AM, Dan Carpenter wrote: > On Wed, Jun 10, 2015 at 12:41:23AM -0400, gr...@linuxhacker.ru wrote: >> From: Oleg Drokin >> >> strncpy_from_user could return negative values on error, >> so need to take those into account. >> Since ll_getname is used to get a single

[REBASED 5/5] regulator: pwm-regulator: Don't assign structure attributes right away

2015-06-10 Thread Lee Jones
Perhaps this is just personal preference, but ... This patch introduces a new local variable to receive and test regulator initialisation data. It simplifies and cleans up the code making it that little bit easier to read and maintain. The local value is assigned to the structure attribute when

Re: [PATCH 6/8] regulator: pwm-regulator: Separate voltage-table initialisation

2015-06-10 Thread Lee Jones
On Tue, 09 Jun 2015, Mark Brown wrote: > On Fri, Jun 05, 2015 at 07:42:49PM +0100, Lee Jones wrote: > > Take this out of the main .probe() routine in order to facilitate the > > introduction of different ways to obtain 'duty cycle' information. > > This and the rest of the patches are fine but

[REBASED 1/5] ARM: STi: STiH407: Add PWM Regulator node

2015-06-10 Thread Lee Jones
Signed-off-by: Lee Jones --- arch/arm/boot/dts/stih407-family.dtsi | 11 +++ 1 file changed, 11 insertions(+) diff --git a/arch/arm/boot/dts/stih407-family.dtsi b/arch/arm/boot/dts/stih407-family.dtsi index e096105..be201aa 100644 --- a/arch/arm/boot/dts/stih407-family.dtsi +++

[REBASED 4/5] dt: regulator: pwm-regulator: Re-write bindings

2015-06-10 Thread Lee Jones
* Add support for continuous-voltage mode * Put more meat on the bones with regards to voltage-table mode * Sort out formatting for ease of consumption Cc: devicet...@vger.kernel.org Signed-off-by: Lee Jones --- .../bindings/regulator/pwm-regulator.txt | 66 ++ 1

[REBASED 2/5] regulator: pwm-regulator: Separate voltage-table initialisation

2015-06-10 Thread Lee Jones
Take this out of the main .probe() routine in order to facilitate the introduction of different ways to obtain 'duty cycle' information. Signed-off-by: Lee Jones --- drivers/mfd/mfd-child.c | 47 drivers/regulator/pwm-regulator.c | 77

[REBASED 3/5] regulator: pwm-regulator: Add support for continuous-voltage

2015-06-10 Thread Lee Jones
The current version of PWM regulator only supports a static table approach, where pre-calculated values are supplied by the vendor and obtained via DT. The continuous-voltage method takes min_uV and max_uV, and divides the difference between them up into a number of slices. The number of slices

[REBASED 0/5] regulator: pwm-regulator: Introduce continuous-mode

2015-06-10 Thread Lee Jones
Continuous mode uses the PWM regulator's maximum and minimum supplied voltages specified in the regulator-{min,max}-microvolt properties to calculate appropriate duty-cycle values. This allows for a much more fine grained solution when compared with voltage-table mode, which this driver already

Re: [PATCH] i2c: designware: use enable on resume instead initialization

2015-06-10 Thread Mika Westerberg
On Mon, Jun 08, 2015 at 02:50:28PM -0300, lucas.de.mar...@gmail.com wrote: > @@ -320,7 +320,7 @@ static int dw_i2c_resume(struct device *dev) > clk_prepare_enable(i_dev->clk); > > if (!i_dev->pm_runtime_disabled) > - i2c_dw_init(i_dev); > +

Re: [PATCH] NET: Add ezchip ethernet driver

2015-06-10 Thread Paul Bolle
Just a nit and a question. On Tue, 2015-06-09 at 15:44 +0300, Noam Camus wrote: > --- /dev/null > +++ b/drivers/net/ethernet/ezchip/Kconfig > +config NET_VENDOR_EZCHIP > + bool "EZchip devices" > + default y > + ---help--- > + If you have a network (Ethernet) device belonging

Re: [PATCH 2/2] staging/lustre/llite: fix ll_getname user buffer copy

2015-06-10 Thread Dan Carpenter
On Wed, Jun 10, 2015 at 12:41:23AM -0400, gr...@linuxhacker.ru wrote: > From: Oleg Drokin > > strncpy_from_user could return negative values on error, > so need to take those into account. > Since ll_getname is used to get a single component name from userspace > to transfer to server as-is,

Re: [PATCH] oom: always panic on OOM when panic_on_oom is configured

2015-06-10 Thread Michal Hocko
On Tue 09-06-15 15:28:40, David Rientjes wrote: > On Tue, 9 Jun 2015, Michal Hocko wrote: > > > > > On Mon 08-06-15 12:51:53, David Rientjes wrote: > > > > Do you actually have panic_on_oops enabled? > > > > > > > > > > CONFIG_PANIC_ON_OOPS_VALUE should be 0, I'm not sure why that's relevant. >

Re: [PATCH] mtd: nand: support for Toshiba BENAND (Built-in ECC NAND)

2015-06-10 Thread Richard Weinberger
On Wed, Jun 10, 2015 at 9:08 AM, KOBAYASHI Yoshitake wrote: > This patch enables support for Toshiba BENAND. > Toshiba BENAND is a SLC NAND solution that automatically generates ECC > inside NAND chip. Newer generation SLC NAND devices of today need multi-bit > hardware ECC by NAND controller in

Re: [PATCH 3/4] mm: Defer flush of writable TLB entries

2015-06-10 Thread Ingo Molnar
* Mel Gorman wrote: > + > + /* > + * If the PTE was dirty then it's best to assume it's writable. The > + * caller must use try_to_unmap_flush_dirty() or try_to_unmap_flush() > + * before the page any IO is initiated. > + */ Speling nit: "before the page any IO is

[PATCH 04/10] A function to send peer node about starting zero out, using UI_FLAGS 16.

2015-06-10 Thread Nick Wang
Using UI_FLAGS(16) of P_UUIDS to start zeroing device of peer node. Signed-off-by: Nick Wang CC: Philipp Reisner CC: Lars Ellenberg CC: drbd-...@lists.linbit.com CC: linux-kernel@vger.kernel.org --- drbd/drbd_int.h | 1 + drbd/drbd_main.c | 5 + 2 files changed, 6 insertions(+) diff

[PATCH 06/10] New packet P_ZERO_OUT to get the status of zeroing out device from peer node.

2015-06-10 Thread Nick Wang
New packet P_ZERO_OUT for zero out device. Signed-off-by: Nick Wang CC: Philipp Reisner CC: Lars Ellenberg CC: drbd-...@lists.linbit.com CC: linux-kernel@vger.kernel.org --- drbd/drbd_protocol.h | 1 + drbd/drbd_receiver.c | 34 ++ 2 files changed, 35

[PATCH 07/10] Using P_ZERO_OUT to send back device zero out status.

2015-06-10 Thread Nick Wang
Send back status of zero out device to peer node. Signed-off-by: Nick Wang CC: Philipp Reisner CC: Lars Ellenberg CC: drbd-...@lists.linbit.com CC: linux-kernel@vger.kernel.org --- drbd/drbd_int.h | 2 ++ drbd/drbd_main.c | 28 2 files changed, 30 insertions(+)

[PATCH 09/10] Notify peer to change status after both side finished zero out.

2015-06-10 Thread Nick Wang
Update peer node state after both finished. Signed-off-by: Nick Wang CC: Philipp Reisner CC: Lars Ellenberg CC: drbd-...@lists.linbit.com CC: linux-kernel@vger.kernel.org --- drbd/drbd_int.h | 1 + drbd/drbd_main.c | 5 + drbd/drbd_receiver.c | 13 + 3 files

[PATCH 10/10] Update flag when receive uuid.

2015-06-10 Thread Nick Wang
Clear bitmap write and add lock when change state. Signed-off-by: Nick Wang CC: Philipp Reisner CC: Lars Ellenberg CC: drbd-...@lists.linbit.com CC: linux-kernel@vger.kernel.org --- drbd/drbd_receiver.c | 8 1 file changed, 8 insertions(+) diff --git a/drbd/drbd_receiver.c

[PATCH 05/10] Start zero out device when drbdadm new-current-uuid --zap-device

2015-06-10 Thread Nick Wang
Two new device flags to represent peer zero out status. Start zero out local device. Signed-off-by: Nick Wang CC: Philipp Reisner CC: Lars Ellenberg CC: drbd-...@lists.linbit.com CC: linux-kernel@vger.kernel.org --- drbd/drbd_int.h | 4 drbd/drbd_nl.c | 33

[PATCH 08/10] Receive UI_FLAGS 16 of P_UUIDS to start zero out devices.

2015-06-10 Thread Nick Wang
Receive P_UUIDS protocol to start zero out device. Signed-off-by: Nick Wang CC: Philipp Reisner CC: Lars Ellenberg CC: drbd-...@lists.linbit.com CC: linux-kernel@vger.kernel.org --- drbd/drbd_receiver.c | 23 +++ 1 file changed, 23 insertions(+) diff --git

[PATCH 02/10] Add options zap_devices to new-current-uuid for zeroing out device before initial sync.

2015-06-10 Thread Nick Wang
Add zap-devices options for new-current-uuid. Need to change .h file in drbd-utils for user space. Signed-off-by: Nick Wang CC: Philipp Reisner CC: Lars Ellenberg CC: drbd-...@lists.linbit.com CC: linux-kernel@vger.kernel.org --- drbd/drbd_nl.c | 9 + drbd/linux/drbd_genl.h |

[PATCH] [media] ddbridge: fix wait_event_timeout return handling

2015-06-10 Thread Nicholas Mc Guire
API conformance testing for completions with coccinelle spatches are being used to locate API usage inconsistencies: ./drivers/media/pci/ddbridge/ddbridge-core.c:89 incorrect check for negative return Return type of wait_event_timeout is signed long not int and the return type is >=0

[PATCH 03/10] A function to zero out drbd backing device.

2015-06-10 Thread Nick Wang
A function to zero out local backing device. Signed-off-by: Nick Wang CC: Philipp Reisner CC: Lars Ellenberg CC: drbd-...@lists.linbit.com CC: linux-kernel@vger.kernel.org --- drbd/drbd_int.h | 1 + drbd/drbd_receiver.c | 21 + 2 files changed, 22 insertions(+)

[PATCH 01/10] drbd: Fix potenial risk of overlap the old history when move history.

2015-06-10 Thread Nick Wang
Fix the potential history overlap when using more than two history uuids. Signed-off-by: Nick Wang CC: Philipp Reisner CC: Lars Ellenberg CC: drbd-...@lists.linbit.com CC: linux-kernel@vger.kernel.org --- drbd/drbd_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 00/10] Zero out devices instead of initial full sync

2015-06-10 Thread Nick Wang
Full sync for drbd initial usually take a long time, especically when network become the bottleneck the syncing. Simply skip the full sync with "--clear-bitmap" may not the perfect solution for all the cases. So this patches can be used to zero out devices locally instead of a full sync,two make

Re: [RFC] pinctrl: pinctrl-imx: implement suspend/resume

2015-06-10 Thread Linus Walleij
On Thu, Jun 4, 2015 at 10:24 PM, Stefan Agner wrote: > I actually tried to experiment with pinctrl_pm_select_default_state and > pinctrl_pm_select_sleep_state. I think, one solution would be to create > sleep states for all drivers. However, it's not necessary to change to a > sleep state, since

Re: [PATCH 2/4] mm: Send one IPI per CPU to TLB flush all entries after unmapping pages

2015-06-10 Thread Ingo Molnar
* Mel Gorman wrote: > --- a/include/linux/sched.h > +++ b/include/linux/sched.h > @@ -1289,6 +1289,18 @@ enum perf_event_task_context { > perf_nr_task_contexts, > }; > > +/* Track pages that require TLB flushes */ > +struct tlbflush_unmap_batch { > + /* > + * Each bit set is a

[PATCH v2] ARM: socfpga: add smp_ops.cpu_kill to make kexec/kdump available

2015-06-10 Thread Hiraku Toyooka
Kexec_load syscall in ARM requires that machine-specific code has the smp_ops.cpu_kill() before loading kernel image. This patch adds the cpu_kill(), as a result, kexec reboot and kernel crash dump become available in mach-socfpga. Signed-off-by: Hiraku Toyooka Cc: Dinh Nguyen Cc: Russell King

Re: [PATCH 08/14] hrtimer: Allow hrtimer::function() to free the timer

2015-06-10 Thread Kirill Tkhai
Hi, Oleg, В Вт, 09/06/2015 в 23:33 +0200, Oleg Nesterov пишет: > On 06/08, Peter Zijlstra wrote: > > > > On Mon, Jun 08, 2015 at 11:14:17AM +0200, Peter Zijlstra wrote: > > > > Finally. Suppose that timer->function() returns HRTIMER_RESTART > > > > and hrtimer_active() is called right after

Re: [PATCH v5 5/5] block: loop: support DIO & AIO

2015-06-10 Thread Christoph Hellwig
> + int ret; > + > + /* nomerge for loop request queue */ > + WARN_ON(cmd->rq->bio != cmd->rq->biotail); > + > + bvec = __bvec_iter_bvec(bio->bi_io_vec, bio->bi_iter); > + iov_iter_bvec(, ITER_BVEC | rw, bvec, > + bio_segments(bio), blk_rq_bytes(cmd->rq)); > +

Re: [PATCH] slub/slab: fix kmemleak didn't work on some case

2015-06-10 Thread Zhang, Yanmin
On 2015/6/9 23:03, Catalin Marinas wrote: > On Tue, Jun 09, 2015 at 09:10:45AM +0100, Zhang, Yanmin wrote: >> On 2015/6/8 18:13, Catalin Marinas wrote: >>> As I replied already, I don't think this is that bad, or at least not >>> worse than what kmemleak already does (looking at all data whether

Re: [PATCH v2] gpio: Added GPIO support to Zynq Ultrascale+ MPSoC

2015-06-10 Thread Linus Walleij
On Thu, Jun 4, 2015 at 2:10 PM, Anurag Kumar Vulisha wrote: > Added support to Zynq Ultrascale+ MPSoC on the existing zynq gpio driver. > > Signed-off-by: Anurag Kumar Vulisha > --- > Chnages in v2: > 1.Added device tree bingings for Zynq Ultrascale+ MPSoC > 2.Changed the

Re: [PATCH] ARM: STi: Remove platform call to trace_hardirqs_off()

2015-06-10 Thread Lee Jones
On Tue, 09 Jun 2015, Peter Griffin wrote: > Calling trace_hardirqs_off() from the platform specific > secondary startup code as not been necessary since Dec 2010 > when Russell King consolidated the call into the common SMP > code. > > 2c0136d ARM: SMP: consolidate trace_hardirqs_off() into

Re: [PATCH v0] arm64: dts: Add APM X-Gene standby GPIO controller DTS entries

2015-06-10 Thread Linus Walleij
On Thu, Jun 4, 2015 at 9:19 AM, Y Vo wrote: > Add standby domain gpio controller for APM X-Gene SoC platform. > > Signed-off-by: Y Vo Acked-by: Linus Walleij Please funnel this through the ARM SoC tree. Yours, Linus Walleij -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH v5 4/5] block: loop: prepare for supporing direct IO

2015-06-10 Thread Christoph Hellwig
On Tue, Jun 09, 2015 at 09:49:25PM +0800, Ming Lei wrote: > This patches provides two approaches for enabling direct IO > from user space: > > - userspace(such as losetup) can pass 'file' which is > opened/fcntl as O_DIRECT > - sysfs file is provided to run dio tests easily I

Re: [PATCH] gpio: pcf857x: handle only enabled irqs

2015-06-10 Thread Linus Walleij
On Wed, Jun 3, 2015 at 9:33 PM, Grygorii Strashko wrote: > Now pcf857x_irq() IRQ's dispatcher will try to run nested > IRQ handlers for each GPIO pin which state has changed. > Such IRQs are, actually, spurious and nested IRQ handlers > have to be called only for IRQs wich were enabled by users.

Re: [PATCH] oom: split out forced OOM killer

2015-06-10 Thread Michal Hocko
On Tue 09-06-15 15:45:35, David Rientjes wrote: > On Tue, 9 Jun 2015, Michal Hocko wrote: > > > > Yes, and that's why I believe we should pursue that direction without the > > > associated "cleanup" that adds 35 lines of code to supress a panic. In > > > other words, there's no reason to

Re: [PATCH v5 2/5] block: loop: set QUEUE_FLAG_NOMERGES for request queue of loop

2015-06-10 Thread Christoph Hellwig
On Tue, Jun 09, 2015 at 09:49:23PM +0800, Ming Lei wrote: > It doesn't make sense to enable merge because the I/O > submitted to backing file is handled page by page. Looks fine, but does it make any difference? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

Re: [PATCH v2 2/2] locking/qrwlock: Don't contend with readers when setting _QW_WAITING

2015-06-10 Thread Ingo Molnar
* Waiman Long wrote: > The current cmpxchg() loop in setting the _QW_WAITING flag for writers > in queue_write_lock_slowpath() will contend with incoming readers > causing possibly extra cmpxchg() operations that are wasteful. This > patch changes the code to do a byte cmpxchg() to eliminate

Re: [PATCH 1/7] platform_device: better support builtin boilerplate avoidance

2015-06-10 Thread Linus Walleij
On Wed, Jun 3, 2015 at 4:07 PM, Paul Gortmaker wrote: > On 15-06-02 05:19 AM, Linus Walleij wrote: >> For example if this is a builtin regulator, clock, GPIO, DMA etc >> driver, we want to suppress the binding/unbinding from userspace >> too, since these drivers provide resources to others and

Re: [PATCH v5 1/5] fs: direct-io: don't dirtying pages for ITER_BVEC/ITER_KVEC direct read

2015-06-10 Thread Christoph Hellwig
On Tue, Jun 09, 2015 at 09:49:22PM +0800, Ming Lei wrote: > When direct read IO is submitted from kernel, it is often > unnecessary to dirty pages, for example of loop, dirtying pages > have been considered in the upper filesystem(over loop) side > already, and they don't need to be dirtied again.

Re: [PATCH v5 18/21] nd_btt: atomic sector updates

2015-06-10 Thread Christoph Hellwig
Hi Vishal, I'm mostly worried about handling scalability to large CPU counts properly. If you think this is the best way to handle it that fine, but please document the decisions on the changelog in a similar form to what you did below. -- To unsubscribe from this list: send the line

Re: [PATCH 0/2] get pinctrl more flexible for per pin muxing controllers

2015-06-10 Thread Linus Walleij
On Wed, Jun 3, 2015 at 3:31 PM, Nicolas Ferre wrote: > Le 04/05/2015 10:56, Ludovic Desroches a écrit : >> >> The way pins, groups and functions are tied is too constraining for some >> controllers. It concerns mainly the ones we don't care about groups and >> functions, each pin can be muxed to

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