[PATCH V3 0/2] dma: mmp_pdma: Fix phy channels not protected issue

2013-06-17 Thread Xiang Wang
From: Xiang Wang This patch set deals with the issues that 1) phy channels are not protected in mmp_pdma. 2) dma request<->channel mapping is not cleared when a phy chan is freed. Xiang Wang (2): dma: mmp_pdma: add protect when alloc/free phy channels dma: mmp_pdma: clear DRCMR when free a p

[PATCH V3 2/2] dma: mmp_pdma: clear DRCMR when free a phy channel

2013-06-17 Thread Xiang Wang
From: Xiang Wang In mmp pdma, phy channels are allocated/freed dynamically. The mapping from DMA request to DMA channel number in DRCMR should be cleared when a phy channel is freed. Otherwise conflicts will happen when: 1. A is using channel 2 and free it after finished, but A still maps to chan

[PATCH V3 1/2] dma: mmp_pdma: add protect when alloc/free phy channels

2013-06-17 Thread Xiang Wang
From: Xiang Wang In mmp pdma, phy channels are allocated/freed dynamically and frequently. But no proper protection is added. Conflict will happen when multi-users are requesting phy channels at the same time. Use spinlock to protect. Signed-off-by: Xiang Wang --- drivers/dma/mmp_pdma.c | 42

Re: [RFC] should read(2) update the position if it returns an error?

2013-06-17 Thread Al Viro
On Fri, Jun 14, 2013 at 08:38:19AM -0700, Linus Torvalds wrote: > On Fri, Jun 14, 2013 at 1:05 AM, Al Viro wrote: > > > > Comments? I'd obviously prefer to solve it that way (i.e. leave > > ->f_pos untouched if vfs_read() returns an error), but I might be missing > > some case where we wa

Re: [PATCH 0/6] ipc/sem.c: performance improvements, FIFO

2013-06-17 Thread Mike Galbraith
On Sat, 2013-06-15 at 13:10 +0200, Manfred Spraul wrote: > On 06/14/2013 09:05 PM, Mike Galbraith wrote: > > # Events: 802K cycles > > # > > # Overhead Symbol > > # .. > > # > > 18.42% [k] SYSC_semtimedop

Re: + include-linux-smph-on_each_cpu-switch-back-to-a-macro.patch added to -mm tree

2013-06-17 Thread Stephen Rothwell
Hi Andrew, On Mon, 17 Jun 2013 13:31:17 -0700 a...@linux-foundation.org wrote: > > From: Andrew Morton > Subject: include/linux/smp.h:on_each_cpu(): switch back to a macro > > f21afc25f9ed4 ("smp.h: Use local_irq_{save,restore}() in !SMP version of > on_each_cpu()") converted on_each_cpu() to a

[PATCH] gpio-langwell: remove Withney point support

2013-06-17 Thread Andy Shevchenko
It seems there is no user of the wp_gpio driver in the kernel. Let's remove it. Signed-off-by: Andy Shevchenko Acked-by: Mika Westerberg --- drivers/gpio/gpio-langwell.c | 69 +--- 1 file changed, 1 insertion(+), 68 deletions(-) diff --git a/drivers/gpio

Re: [PATCH] Re: [Patch] MCE, APEI: Don't enable CMCI when Firmware First mode is set in

2013-06-17 Thread Naveen N. Rao
The Corrected Machine Check structure (CMC) in HEST has a flag which can be set by the firmware to indicate to the OS that it prefers to process the corrected error events first. In this scenario, the OS is expected to not monitor for corrected errors (through CMCI/polling). Instead, the firmware n

[PATCH v11 6/8] dmaengine: edma: enable build for AM33XX

2013-06-17 Thread Joel A Fernandes
From: Matt Porter Enable TI EDMA option on OMAP. Signed-off-by: Matt Porter Signed-off-by: Joel A Fernandes --- drivers/dma/Kconfig |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/Kconfig b/drivers/dma/Kconfig index e992489..3215a3c 100644 --- a/drivers/dma/

Re: [PATCH v3 1/3] cpufreq: Add boost frequency support in core

2013-06-17 Thread Viresh Kumar
On 17 June 2013 19:21, Lukasz Majewski wrote: > On Mon, 17 Jun 2013 18:40:50 +0530, Viresh Kumar wrote: >> >> > The core acpi-cpufreq.c code hadn't been changed by me, so I >> >> > assume that it will work as before. >> >> >> >> That should adapt your patch in your patchset. > > Could you explain

Re: [PATCH v2 2/4] SUNRPC: fix races on PipeFS MOUNT notifications

2013-06-17 Thread Stanislav Kinsbursky
17.06.2013 22:20, Myklebust, Trond пишет: On Tue, 2013-06-11 at 18:39 +0400, Stanislav Kinsbursky wrote: Below are races, when RPC client can be created without PiepFS dentries CPU#0 CPU#1 - - rp

[PATCH v11 2/8] ARM: edma: Add DT and runtime PM support to the private EDMA API

2013-06-17 Thread Joel A Fernandes
From: Matt Porter Adds support for parsing the TI EDMA DT data into the required EDMA private API platform data. Enables runtime PM support to initialize the EDMA hwmod. Enables build on OMAP. Changes by Joel: * Setup default one-to-one mapping for queue_priority and queue_tc mapping as discusse

[PATCH v11 1/8] dmaengine: edma: Add TI EDMA device tree binding

2013-06-17 Thread Joel A Fernandes
From: Matt Porter The binding definition is based on the generic DMA controller binding. Joel: * Droped reserved and queue DT entries from Documentation for now from the original patch series (v10) * Included properties in Documentation and clarified DMA properties (V11) * Made ti,hwmod option *

[PATCH v11 0/8] ] DMA Engine support for AM33XX

2013-06-17 Thread Joel A Fernandes
This series is a repost of Matt Porter's EDMA patches for AM33XX EDMA support with changes for few pending review comments on v9 series. Currently this is required for AM33XX (Beaglebone or EVM) to access MMC and be able mount to rootfs and boot till command prompt over MMC. Unless there are other

[PATCH v11 4/8] ARM: dts: add AM33XX EDMA support

2013-06-17 Thread Joel A Fernandes
From: Matt Porter Adds AM33XX EDMA support to the am33xx.dtsi as documented in Documentation/devicetree/bindings/dma/ti-edma.txt Joel: Drop DT entries that are non-hardware-description for now as discussed in [1] [1] https://patchwork.kernel.org/patch/2226761/ Signed-off-by: Matt Porter Sign

[PATCH v11 5/8] ARM: dts: add AM33XX SPI DMA support

2013-06-17 Thread Joel A Fernandes
From: Matt Porter Adds DMA resources to the AM33XX SPI nodes. Signed-off-by: Matt Porter Signed-off-by: Joel A Fernandes --- arch/arm/boot/dts/am33xx.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/am33xx.dtsi b/arch/arm/boot/dts/am33xx.dtsi index 3d59

[PATCH v11 8/8] spi: omap2-mcspi: convert to dma_request_slave_channel_compat()

2013-06-17 Thread Joel A Fernandes
From: Matt Porter Convert dmaengine channel requests to use dma_request_slave_channel_compat(). This supports the DT case of platforms requiring channel selection from either the OMAP DMA or the EDMA engine. AM33xx only boots from DT and is the only user implementing EDMA so in the !DT case we ca

[PATCH v11 3/8] ARM: edma: Add EDMA crossbar event mux support

2013-06-17 Thread Joel A Fernandes
From: Matt Porter Changes by Joel: * Split EDMA xbar support out of original EDMA DT parsing patch to keep it easier for review. * Rewrite shift and offset calculation. Suggested-by: Sekhar Nori Suggested by: Andy Shevchenko Signed-off-by: Joel A Fernandes Reference: [1] https://patchwork.ke

[PATCH v11 7/8] spi: omap2-mcspi: add generic DMA request support to the DT binding

2013-06-17 Thread Joel A Fernandes
From: Matt Porter The binding definition is based on the generic DMA request binding Signed-off-by: Matt Porter Signed-off-by: Joel A Fernandes --- Documentation/devicetree/bindings/spi/omap-spi.txt | 27 +++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/Doc

Re: linux-next: slab shrinkers: BUG at mm/list_lru.c:92

2013-06-17 Thread Glauber Costa
On Tue, Jun 18, 2013 at 12:46:23PM +1000, Dave Chinner wrote: > On Tue, Jun 18, 2013 at 02:30:05AM +0400, Glauber Costa wrote: > > On Mon, Jun 17, 2013 at 02:35:08PM -0700, Andrew Morton wrote: > > > On Mon, 17 Jun 2013 19:14:12 +0400 Glauber Costa > > > wrote: > > > > > > > > I managed to trigg

Re: linux-next: slab shrinkers: BUG at mm/list_lru.c:92

2013-06-17 Thread Glauber Costa
On Tue, Jun 18, 2013 at 02:30:05AM +0400, Glauber Costa wrote: > On Mon, Jun 17, 2013 at 02:35:08PM -0700, Andrew Morton wrote: > > On Mon, 17 Jun 2013 19:14:12 +0400 Glauber Costa wrote: > > > > > > I managed to trigger: > > > > [ 1015.776029] kernel BUG at mm/list_lru.c:92! > > > > [ 1015.77602

[PATCH] sched: fix load_above_capacity underflow

2013-06-17 Thread Lei Wen
Apparently we don't want to see sds->busiest_nr_running is small than sds->busiest_group_capacity, while our load_above_capacity is an "unsigned long" type. Signed-off-by: Lei Wen --- kernel/sched/fair.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/kernel/s

[PATCH v2] dma: mmp_pdma: fix a memory alloc error

2013-06-17 Thread Xiang Wang
From: Xiang Wang pdev->phy is of type "struct mmp_pdma_phy *". But when allocating memory for it, "struct mmp_pdma_chan" is used by mistake. Signed-off-by: Xiang Wang --- drivers/dma/mmp_pdma.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/dma/mmp_pdma.c b/d

Re: [Part1 PATCH v5 16/22] x86, mm, numa: Move numa emulation handling down.

2013-06-17 Thread Yinghai Lu
On Mon, Jun 17, 2013 at 6:58 PM, Tejun Heo wrote: > On Thu, Jun 13, 2013 at 09:03:03PM +0800, Tang Chen wrote: >> From: Yinghai Lu >> >> numa_emulation() needs to allocate buffer for new numa_meminfo >> and distance matrix, so execute it later in x86_numa_init(). >> >> Also we change the behavoir

linux-next: manual merge of the arm-soc tree with the usb tree

2013-06-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the arm-soc tree got a conflict in drivers/usb/phy/phy-rcar-usb.c between commit 56a9a6de2a87 ("usb: phy: rcar-usb: Fix comment w.r.t. devm_ioremap_resource") from the usb tree and commit 725bf9dcafe1 ("phy-rcar-usb: correct base address") from the arm-soc tree.

Re: [PATCH] [RFC] mnt: restrict a number of "struct mnt"

2013-06-17 Thread Andrew Vagin
On Mon, Jun 17, 2013 at 03:56:14PM -0700, Andrew Morton wrote: > On Mon, 17 Jun 2013 12:58:00 -0700 ebied...@xmission.com (Eric W. Biederman) > wrote: > > > > I found that a few processes can eat all host memory and nobody can kill > > > them. > > > $ mount -t tmpfs xxx /mnt > > > $ mount --make

Re: [PATCH 6/7] sound/usb/misc/ua101.c: convert __list_for_each usage to list_for_each

2013-06-17 Thread Takashi Iwai
At Mon, 17 Jun 2013 22:26:57 -0400, Dave Jones wrote: > > Signed-off-by: Dave Jones Thanks, applied now to sound git tree. Takashi > --- > sound/usb/misc/ua101.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/usb/misc/ua101.c b/sound/usb/misc/ua101.c > index

Re: [PATCH] dmatest: masking tests for channel capabilities

2013-06-17 Thread Andy Shevchenko
On Tue, Jun 18, 2013 at 12:12 AM, Dan Williams wrote: > On Mon, Jun 17, 2013 at 2:10 PM, Dan Williams wrote: >>> +Example to perform only MEMCPY and PQ mode tests (0x01 | 0x04 = 0x05): >>> + >>> +% modprobe dmatest >>> +% echo dma0chan0 > /sys/kernel/debug/dmatest/channel >>> +

Re: [PATCH] usb: host: Faraday fotg210-hcd driver

2013-06-17 Thread Yuan-Hsin Chen
Hi, On Tue, Jun 18, 2013 at 11:07 AM, Sarah Sharp wrote: > On Tue, Jun 18, 2013 at 10:42:09AM +0800, Yuan-Hsin Chen wrote: >> Hi, >> >> On Tue, Jun 18, 2013 at 4:39 AM, Greg KH wrote: >> > On Wed, Jun 05, 2013 at 05:15:43PM +, Yuan-Hsin Chen wrote: >> >> FOTG210 is an OTG controller which ca

Re: [PATCH] tcp: Modify the condition for the first skb to collapse

2013-06-17 Thread Eric Dumazet
On Tue, 2013-06-18 at 05:52 -0400, Jun Chen wrote: > > > There are many warning for tcp_recvmsg before this crash. I can't find > other memory warning in the logs, but I'm not sure whether there are > memory issues because of the length limitation of saved logs. I think > this logs will give you m

Re: [PATCH v10 0/8] DMA Engine support for AM33XX

2013-06-17 Thread Sekhar Nori
Joel, When you respin this, please base on top of Prabhakar's clean-up titled: "ARM: edma: Convert to devm_* api". Or better still, include his patch in your series. Thanks, Sekhar -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vg

Re: [PATCH RESEND v5] fat: editions to support fat_fallocate

2013-06-17 Thread Namjae Jeon
Hi, OGAWA. We checked several cases with respect to your questions. But we cannot find any issue. Also, We compare the results with Ext4. It is same. >cluster size == 512b >1) create new file >2) fallocate 100MB >3) write(2) data for each 512b >With this, write_begin() will be called for each 51

linux-next: manual merge of the irqdomain tree with the tree

2013-06-17 Thread Stephen Rothwell
Hi Grant, Today's linux-next merge of the irqdomain tree got a conflict in kernel/irq/irqdomain.c between commit c5cdc67a58a2 ("irqdomain: Remove temporary MIPS workaround code") from the mips tree and commit bd4641e31e90 ("irq: fix checkpatch error") from the irqdomain tree. I fixed it up (see b

Re: [Part1 PATCH v5 00/22] x86, ACPI, numa: Parse numa info earlier

2013-06-17 Thread Tang Chen
Hi tj, On 06/18/2013 10:03 AM, Tejun Heo wrote: .. So, can you please explain why you're doing the above? What are you trying to achieve in the end and why is this the best approach? This is all for memory hotplug, right? Yes, this is all for memory hotplug. [why] At early boot time (b

Re: [PATCH 1/2] Initial support for Allwinner's Security ID fuses

2013-06-17 Thread Andy Shevchenko
On Mon, Jun 17, 2013 at 11:59 PM, Oliver Schinagl wrote: > From: Oliver Schinagl > > Allwinner has electric fuses (efuse) on their line of chips. This driver > reads those fuses, seeds the kernel entropy and exports them as a sysfs node. > > These fuses are most likly to be programmed at the fact

Re: [PATCH] clocksource: sh_cmt: 32-bit control register support

2013-06-17 Thread Magnus Damm
Hi Laurent, On Tue, Jun 18, 2013 at 3:37 AM, Laurent Pinchart wrote: > Hi Magnus, > > Thanks for the patch. > > On Monday 17 June 2013 15:40:52 Magnus Damm wrote: >> From: Magnus Damm >> >> Add support for CMT hardware with 32-bit control and counter >> registers, as found on r8a73a4 and r8a7790

Re: [PATCH V5 1/3] pci: Add PCIe driver for Samsung Exynos

2013-06-17 Thread Jingoo Han
On Monday, June 17, 2013 9:45 PM, Arnd Bergmann wrote: > On Monday 17 June 2013 18:45:52 Jingoo Han wrote: > > On Friday, June 14, 2013 9:54 PM, Arnd Bergmann wrote: > > > [.] > > > > > > +static int __exit exynos_pcie_remove(struct platform_device *pdev) > > > > > > +{ > > > > > > + struct p

[PATCH 4/4] idr: Percpu ida

2013-06-17 Thread Kent Overstreet
Percpu frontend for allocating ids. With percpu allocation (that works), it's impossible to guarantee it will always be possible to allocate all nr_tags - typically, some will be stuck on a remote percpu freelist where the current job can't get to them. We do guarantee that it will always be possi

[PATCH 3/4] idr: Rewrite ida

2013-06-17 Thread Kent Overstreet
This is a new, from scratch implementation of ida that should be simpler, faster and more space efficient. Two primary reasons for the rewrite: * A future patch will reimplement idr on top of this ida implementation + radix trees. Once that's done, the end result will be ~1k fewer lines of

RE: [PATCH 1/4] MFD: Palmas: Add Interrupt feature

2013-06-17 Thread J, KEERTHY
Hi Mark, Thanks for the review. > -Original Message- > From: Mark Brown [mailto:broo...@kernel.org] > Sent: Monday, June 17, 2013 9:46 PM > To: J, KEERTHY > Cc: linux-o...@vger.kernel.org; ldewan...@nvidia.com; > sa...@linux.intel.com; grant.lik...@secretlab.ca; swar...@nvidia.com; > linu

[PATCH] drivers: hv: switch to use mb() instead of smp_mb()

2013-06-17 Thread Jason Wang
Even if guest were compiled without SMP support, it could not assume that host wasn't. So switch to use mb() instead of smp_mb() to force memory barriers for UP guest. Cc: K. Y. Srinivasan Cc: Haiyang Zhang Cc: sta...@vger.kernel.org Signed-off-by: Jason Wang --- drivers/hv/ring_buffer.c | 1

Re: [PATCH] Allow binding drivers/uio/uio_pdrv_genirq.c to devices using command line option

2013-06-17 Thread Sachin Kamat
Hi Greg, On 17 June 2013 23:07, Greg KH wrote: > On Mon, Jun 17, 2013 at 03:47:41PM +0200, Pavel Machek wrote: >> Hi! >> >> > This adds ability to bind uio driver to given open firmware device >> > using command line option. Thus, userspace driver can be developed and >> > used without modifying

[RESEND PATCH v1 2/3] spi: s3c64xx: Added provision for dedicated cs pin

2013-06-17 Thread girishks2000
From: Girish K S The existing driver supports gpio based /cs signal. For controller's that have one device per controller, the slave device's /cs signal might be internally controlled by the chip select bit of slave select register. They are not externally asserted/deasserted using gpio pin. Thi

[RESEND PATCH v1 1/3] spi: s3c64xx: added support for polling mode

2013-06-17 Thread girishks2000
From: Girish K S The 64xx spi driver supports partial polling mode. Only the last chunk of the transfer length is transferred or recieved in polling mode. Some SoC's that adopt this controller might not have have dma interface. This patch adds support for complete polling mode and gives flexibit

[RESEND PATCH v1 0/3] Polling support for s3c64xx spi controller

2013-06-17 Thread girishks2000
From: Girish K S This patch series adds support for the polling mode only. Also 2nd patch in the series adds support for dedicated cs pin. After Thomas's patch for using default gpio is merged(commit id: 00ab539), one of the patch in this series is dropped and new series is generated. Girish K S

[RESEND PATCH v1 3/3] spi: s3c64xx: Added support for exynos5440 spi

2013-06-17 Thread girishks2000
From: Girish K S This patch adds support for the exynos5440 spi controller. The integration of the spi IP in exynos5440 is different from other SoC's. The I/O pins are no more configured via gpio, they have dedicated pins. Signed-off-by: Girish K S --- drivers/spi/spi-s3c64xx.c | 12

Re: [RFC patch 1/4] sched: change cfs_rq load avg to unsigned long

2013-06-17 Thread Alex Shi
On 06/07/2013 03:29 PM, Alex Shi wrote: > Since the 'u64 runnable_load_avg, blocked_load_avg' in cfs_rq struct are > smaller than 'unsigned long' cfs_rq->load.weight. We don't need u64 > vaiables to describe them. unsigned long is more efficient and convenience. > update with a a bit clean up in

linux-next: manual merge of the staging tree with the usb tree

2013-06-17 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the staging tree got a conflict in drivers/staging/serqt_usb2/serqt_usb2.c between commit 1143832eca8f ("USB: serial: ports: add minor and port number") from the usb tree and commit d68edc2881b1 ("staging: serqt_usb2: Fixed coding style CamelCases") from the st

Re: Build regressions/improvements in v3.10-rc6

2013-06-17 Thread Michael Ellerman
On Mon, Jun 17, 2013 at 09:19:51PM +0200, Geert Uytterhoeven wrote: > On Mon, 17 Jun 2013, Geert Uytterhoeven wrote: > > powerpc-randconfig > + arch/powerpc/include/asm/mmu-hash64.h: error: control reaches end of > non-void function [-Werror=return-type]: => 180:1 This is running past a BUG(

Re: [PATCH v2 2/2] mmc: dw_mmc: Add the ability to set the ciu clock frequency

2013-06-17 Thread Jaehoon Chung
Hi Doug, I have one question for using . I found the fixed-rate-clocks feature. If we want to set , then can we use the fixed-rate-clocks? i'm not sure how use the fixed-rate-clocks. but it seems to set fixed-rate value for clock frequency. clk_set_rate() didn't ensure to set the value. Best R

Re: [PATCH] build some drivers only when compile-testing

2013-06-17 Thread Michal Marek
Dne 17.6.2013 22:05, Jiri Slaby napsal(a): > On 05/23/2013 05:09 AM, Jeff Mahoney wrote: >> On 5/22/13 10:23 PM, Greg Kroah-Hartman wrote: >>> On Wed, May 22, 2013 at 11:18:46AM +0200, Jiri Slaby wrote: Some drivers can be built on more platforms than they run on. This causes users and di

Re: [PATCH V2 Resend 4/4] timer: Migrate running timer

2013-06-17 Thread Viresh Kumar
On 31 May 2013 16:19, Viresh Kumar wrote: > On 22 May 2013 14:04, Viresh Kumar wrote: >> Sorry for being late in replying to your queries. >> >> On 13 May 2013 16:05, Thomas Gleixner wrote: >>> Which mechanism is migrating the timer away? >> >> It will be the same: get_nohz_timer_target() which

Re: [PATCH] cpufreq: userspace: Simplify governor

2013-06-17 Thread Viresh Kumar
On 5 June 2013 18:38, Viresh Kumar wrote: > To be honest with the amount of experience I have now, my log was > poor :( > > I have used following log in the attached patch: > > Subject: [PATCH] cpufreq: userspace: Simplify governor > > Userspace governor has got more code than what it needs for it

Re: [PATCH v10 5/8] dmaengine: edma: Add TI EDMA device tree binding

2013-06-17 Thread Sekhar Nori
On 6/17/2013 9:10 PM, Fernandes, Joel A wrote: > Hi Arnd, > >> -Original Message- >> From: Arnd Bergmann [mailto:a...@arndb.de] >> Sent: Monday, June 17, 2013 6:13 AM >> To: Fernandes, Joel A >> Cc: Tony Lindgren; Nori, Sekhar; Matt Porter; Grant Likely; Rob Herring; >> Vinod >> Koul; Ma

[PATCH] input/joystick: Fix for xpad driver support of "Mad Catz Street Fighter IV FightPad" controllers

2013-06-17 Thread Shawn
From: shawn joseph Added MAP_TRIGGERS_TO_BUTTONS for Mad Catz Street Fighter IV FightPad device. This controller model was already supported by the xpad driver, but none of the buttons work correctly without this change. Tested on kernel version 3.9.5. Signed-off-by: shawn joseph --- --- linux-3

Re: [PATCH 3/4] KVM: PPC: Add support for IOMMU in-kernel handling

2013-06-17 Thread Benjamin Herrenschmidt
On Mon, 2013-06-17 at 20:32 -0600, Alex Williamson wrote: > Right, we don't want to create dependencies across modules. I don't > have a vision for how this should work. This is effectively a complete > side-band to vfio, so we're really just dealing in the iommu group > space. Maybe there need

[PATCH V2 11/15] regulator: ti-abb: Convert to use devm_ioremap_resource

2013-06-17 Thread Tushar Behera
Commit 75096579c3ac ("lib: devres: Introduce devm_ioremap_resource()") introduced devm_ioremap_resource() and deprecated the use of devm_request_and_ioremap(). While at it, remove the error message as devm_ioremap_resource prints a similar error message. Signed-off-by: Tushar Behera CC: Mark Bro

[PATCH -next] pinctrl: core: fix missing unlock on error in pinctrl_find_gpio_range_from_pin()

2013-06-17 Thread Wei Yongjun
From: Wei Yongjun Add the missing unlock before return from function pinctrl_find_gpio_range_from_pin() in the error handling case. Introduced by commit 2ff3477efd7086544b9e298fc63afab0645921b4. (pinctrl: add pin list based GPIO ranges) Signed-off-by: Wei Yongjun --- drivers/pinctrl/core.c |

Re: [RFC PATCH v4 2/2] drivers: mfd: vexpress: add Serial Power Controller (SPC) support

2013-06-17 Thread Nicolas Pitre
On Mon, 17 Jun 2013, Lorenzo Pieralisi wrote: > The TC2 versatile express core tile integrates a logic block that provides the > interface between the dual cluster test-chip and the M3 microcontroller that > carries out power management. The logic block, called Serial Power Controller > (SPC), con

Re: [PATCH] x86, efi: retry ExitBootServices() on failure

2013-06-17 Thread Zachary Bobroff
The timer is shutdown before callbacks on exitbootservices are called. The bios should be entirely single threaded at this point unless Linux has started some other CPUs. So exitbootservices will not return until each until each callback is complete. In short, then it would return the status

Re: [PATCH] firmware loader: fix use-after-free by double abort

2013-06-17 Thread Ming Lei
On Tue, Jun 18, 2013 at 12:05 PM, Guenter Roeck wrote: >> > I may be missing something, but why would mainline not need it ? > Or do you mean "mainline plus 3.9" ? Yes, mainline need it of course, sorry for not mentioning that explicitly. Thanks, -- Ming Lei -- To unsubscribe from this list: sen

Re: [PATCH 0/8] Volatile Ranges (v8?)

2013-06-17 Thread Minchan Kim
Hello Dhaval, On Mon, Jun 17, 2013 at 12:24:07PM -0400, Dhaval Giani wrote: > Hi John, > > I have been giving your git tree a whirl, and in order to simulate a > limited memory environment, I was using memory cgroups. > > The program I was using to test is attached here. It is your test > code,

[x86] only print out DR registers if they are not power-on defaults.

2013-06-17 Thread Dave Jones
The DR registers are rarely useful when decoding oopses. With screen real estate during oopses at a premium, we can save two lines by only printing out these registers when they are set to something other than they power-on state. Signed-off-by: Dave Jones diff -durpN '--exclude-from=/home/davej

Re: [PATCH] net: fec: Fix build for MCF5272

2013-06-17 Thread Guenter Roeck
On Mon, Jun 17, 2013 at 04:11:51PM -0700, David Miller wrote: > From: Guenter Roeck > Date: Mon, 17 Jun 2013 13:16:19 -0700 > > > Commits 4c09eed9 (net: fec: Enable imx6 enet checksum acceleration) and > > baa70a5c (net: fec: enable pause frame to improve rx prefomance for 1G > > network) introdu

Re: [PATCH] firmware loader: fix use-after-free by double abort

2013-06-17 Thread Guenter Roeck
On Tue, Jun 18, 2013 at 08:33:55AM +0800, Ming Lei wrote: > On Tue, Jun 18, 2013 at 7:59 AM, Greg Kroah-Hartman > wrote: > > On Sat, Jun 15, 2013 at 04:36:38PM +0800, Ming Lei wrote: > >> fw_priv->buf is accessed in both request_firmware_load() and > >> writing to sysfs file of 'loading' context,

Re: [GIT PULL] extcon for 3.11

2013-06-17 Thread Chanwoo Choi
On 06/18/2013 08:03 AM, Greg KH wrote: > On Mon, Jun 17, 2013 at 04:01:19PM -0700, Greg KH wrote: >> On Fri, Jun 14, 2013 at 09:39:13PM +0900, Chanwoo Choi wrote: >>> Hi Greg, >>> >>> First of all, I'm so sorry about previous wrong pull-request. >>> I will be careful and not to make same mistakes >

[PATCH V3 2/5] arm: mmp: use matrix_keymap for all boards

2013-06-17 Thread Chao Xie
Compile passed for the configuration pxa168_defconfig aspenite.c(MACH_ASPENITE), teton_bgs.c(MACH_TENTON_BGA) Signed-off-by: Chao Xie --- arch/arm/mach-mmp/aspenite.c | 10 +++--- arch/arm/mach-mmp/teton_bga.c | 10 +++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff -

[PATCH V3 0/5] input: pxa27x-keypad: enhancement and device tree support

2013-06-17 Thread Chao Xie
The patches include 2 parts 1. use matrix_keypad for matrix keyes support 2. add device tree support for pxa27x-keypad V2->V1: Do not copy the members from pdata. For device tree support, directly allocate the pdata structure. V3->V2 add matrix_keypad changes for all boards using pxa27x-keypad un

[PATCH V3 3/5] arm: pxa: use matrix_keymap for all boards

2013-06-17 Thread Chao Xie
Compile passed for configurations em_x270_defconfig em_x270x.c(MACH_EM_X270, MACH_EXEDA) ezx_defconfig ezx.c(MACH_EZX_A780, MACH_EZX_E680, MACH_EZX_A1200, MACH_EZX_A910, MACH_EZX_E6, MACH_EZX_E2) palmz72_defconfig palmld.c(MACH_PALMLD), palmtreo.c(PALM_TREO), palmtx.c(MACH_PALMTX

[PATCH V3 5/5] input: pxa27x-keypad: add device tree support

2013-06-17 Thread Chao Xie
Signed-off-by: Chao Xie --- .../devicetree/bindings/input/pxa27x-keypad.txt| 60 + drivers/input/keyboard/pxa27x_keypad.c | 232 +++- 2 files changed, 288 insertions(+), 4 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/pxa27x-keypad

[PATCH V3 4/5] input: pxa27x-keypad: remove the unused members at platform data

2013-06-17 Thread Chao Xie
Now pxa27x-keypad make use matrix_keymap for matrix keyes, so remove the unused members in platform data. Signed-off-by: Chao Xie --- include/linux/platform_data/keypad-pxa27x.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/include/linux/platform_data/keypad-pxa27x.h

[PATCH V3 1/5] input: pxa27x-keypad: use matrix_keymap for matrix keyes

2013-06-17 Thread Chao Xie
pxa27x-keypad includes matrix keyes. Make use of matrix_keymap for the matrix keyes. Signed-off-by: Chao Xie --- drivers/input/keyboard/Kconfig |1 + drivers/input/keyboard/pxa27x_keypad.c | 36 +- include/linux/platform_data/keypad-pxa27x.h |1

Re: [PATCH V5 1/3] pci: Add PCIe driver for Samsung Exynos

2013-06-17 Thread Jingoo Han
On Monday, June 17, 2013 9:45 PM, Arnd Bergmann wrote: > On Monday 17 June 2013 18:45:52 Jingoo Han wrote: > > On Friday, June 14, 2013 9:54 PM, Arnd Bergmann wrote: > > > > > > Please look up the documentation about inbound viewport and describe > > > in a code comment what it does. I /assume/ tha

Re: [patch v8 6/9] sched: compute runnable load avg in cpu_load and cpu_avg_load_per_task

2013-06-17 Thread Alex Shi
On 06/18/2013 07:00 AM, Paul Turner wrote: > On Mon, Jun 17, 2013 at 6:57 AM, Alex Shi wrote: >> > On 06/17/2013 08:17 PM, Paul Turner wrote: >>> >> On Mon, Jun 17, 2013 at 3:51 AM, Paul Turner wrote: >>> On Fri, Jun 7, 2013 at 12:20 AM, Alex Shi wrote: > They are the base values i

Re: Re: [PATCH 2/3] tracing/kprobes: Kill probe_enable_lock

2013-06-17 Thread Masami Hiramatsu
(2013/06/18 0:18), Oleg Nesterov wrote: >> because >> those calls are the reason why I have introduced this lock. > > Please do not hesitate to nack this patch if you think that we should > keep probe_enable_lock for safety even if it is not currently needed. > In this case I'd suggest to move loc

Re: [PATCH v3] arch/*/asm/include/bitops.h: api issue, find_*_bit() defination are different with each other

2013-06-17 Thread Chen Gang
Hello related Maintainers: Please help check this patch when you have time. Thanks. On 06/06/2013 05:37 PM, Chen Gang wrote: > > For arm and m68k, they customize find_*_bit(), but the API is different > with 'generic'. > > avr32, s390, and unicore32 also customize find_*_bit(), but the API is

[PATCH 3/4] Staging: silicom: move assignments out of if conditions

2013-06-17 Thread Chad Williamson
Remove a bunch of assignments from if-statement conditions in bpctl_mod.c, resolving checkpatch.pl errors. (This isn't all of them, but the patch is getting rather long...) Signed-off-by: Chad Williamson --- drivers/staging/silicom/bpctl_mod.c | 54 +++-- 1 file c

[PATCH 1/4] Staging: silicom: remove unnecessary braces in bpctl_mod.c

2013-06-17 Thread Chad Williamson
Remove unnecessary braces in bpctl_mod.c, resolving checkpatch.pl warnings. Signed-off-by: Chad Williamson --- drivers/staging/silicom/bpctl_mod.c | 58 +++-- 1 file changed, 23 insertions(+), 35 deletions(-) diff --git a/drivers/staging/silicom/bpctl_mod.c b/dr

[PATCH 0/4] Staging: silicom: coding style cleanup

2013-06-17 Thread Chad Williamson
More coding style cleanup in bpctl_mod.c, resolving many checkpatch.pl warnings and errors. I've skipped a number of issues in functions that are going to need to be split up/rewritten anyway, etc. Tearing out the new typedefs is next on my todo list... Chad Williamson (4): Staging: silicom: rem

[PATCH 2/4] Staging: silicom: whitespace fixes in bpctl_mod.c

2013-06-17 Thread Chad Williamson
Two trivial whitespace fixes in bpctl_mod.c for the sake of checkpatch.pl happiness, etc. Signed-off-by: Chad Williamson --- drivers/staging/silicom/bpctl_mod.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/silicom/bpctl_mod.c b/drivers/staging/silico

[PATCH 4/4] Staging: silicom: move more assignments out of if conditions

2013-06-17 Thread Chad Williamson
Remove more assignments from if-statement conditions in bpctl_mod.c, resolving checkpatch.pl errors. Those that remain need more attention than I'm presently prepared to give them. Signed-off-by: Chad Williamson --- drivers/staging/silicom/bpctl_mod.c | 53 -

[PATCH v3 3/3] sched: scale cpu load for judgment of group imbalance

2013-06-17 Thread Lei Wen
We cannot compare two load directly from two cpus, since the cpu power over two cpu may vary largely. Suppose we meet such two kind of cpus. CPU A: No real time work, and there are 3 task, with rq->load.weight being 512. CPU B: Has real time work, and it take 3/4 of the cpu power,

Re: ext4 extent status tree LRU locking

2013-06-17 Thread Zheng Liu
On Mon, Jun 17, 2013 at 10:51:34PM -0400, Theodore Ts'o wrote: > On Tue, Jun 18, 2013 at 10:25:48AM +0800, Zheng Liu wrote: > > Ah, sorry, I forgot to mention that this patch bases against ext4/master > > branch. Now ext4/dev branch has some regression when I run xfstests. > > What regressions ar

[PATCH v3 1/3] sched: reduce calculation effort in fix_small_imbalance

2013-06-17 Thread Lei Wen
Actually all below item could be repalced by scaled_busy_load_per_task (sds->busiest_load_per_task * SCHED_POWER_SCALE) /sds->busiest->sgp->power; Signed-off-by: Lei Wen --- kernel/sched/fair.c | 19 --- 1 file changed, 8 insertions(+), 11 deletions(-)

Re: [PATCH] kernel: timer: looping issue, need reset variable 'found'

2013-06-17 Thread Chen Gang
Sorry again for replying late, and now I can focus on this patch, I will see the related details again. Thanks. On 06/13/2013 11:39 AM, Chen Gang wrote: > > Sorry for replying late during these days, firstly. > > > On 06/10/2013 10:12 PM, Thomas Gleixner wrote: >> On Sun, 9 Jun 2013, Chen Ga

[PATCH v3 0/3] small fix for scale usage

2013-06-17 Thread Lei Wen
Here are three patches which correct scale usage in both fix_small_imbalance and update_sg_lb_stats. And give out comment over when fix_small_imbalance would cause load change. V2: fix scale usage for update_sg_lb_stats V3: fix scale problem in comparing sds->busiest_load_per_task and sds->a

[PATCH v3 2/3] sched: scale the busy and this queue's per-task load before compare

2013-06-17 Thread Lei Wen
Since for max_load and this_load, they are the value that already be scaled. It is not reasonble to get a minimum value between the scaled and non-scaled value, like below example. min(sds->busiest_load_per_task, sds->max_load); Also add comment over in what condition, there would be cpu p

Re: [RFC 08/10] irqdomain: Refactor irq_domain_associate_many()

2013-06-17 Thread Mike Qiu
于 2013/6/10 8:49, Grant Likely 写道: Originally, irq_domain_associate_many() was designed to unwind the mapped irqs on a failure of any individual association. However, that proved to be a problem with certain IRQ controllers. Some of them only support a subset of irqs, and will fail when attemptin

Re: [PATCH] usb: host: Faraday fotg210-hcd driver

2013-06-17 Thread Sarah Sharp
On Tue, Jun 18, 2013 at 10:42:09AM +0800, Yuan-Hsin Chen wrote: > Hi, > > On Tue, Jun 18, 2013 at 4:39 AM, Greg KH wrote: > > On Wed, Jun 05, 2013 at 05:15:43PM +, Yuan-Hsin Chen wrote: > >> FOTG210 is an OTG controller which can be configured as an > >> USB2.0 host. FOTG210 host is an ehci-l

linux-next: manual merge of the drm-intel tree with the drm tree

2013-06-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the drm-intel tree got a conflict in drivers/gpu/drm/i915/intel_fb.c between commit b72447cdf129 ("drm/i915: Drop bogus fbdev sprite disable code") from the drm tree and commit b51b32cde175 ("drm/i915: s/drm_i915_private_t/struct drm_i915_private/") from the drm

Re: ext4 extent status tree LRU locking

2013-06-17 Thread Theodore Ts'o
On Tue, Jun 18, 2013 at 10:25:48AM +0800, Zheng Liu wrote: > Ah, sorry, I forgot to mention that this patch bases against ext4/master > branch. Now ext4/dev branch has some regression when I run xfstests. What regressions are you seeing? > Ted, I notice that now in ext4 tree we have 'dev', 'dev-

Re: [PATCH 2/3] tracing/kprobes: Kill probe_enable_lock

2013-06-17 Thread Masami Hiramatsu
(2013/06/18 0:18), Oleg Nesterov wrote: > On 06/17, Masami Hiramatsu wrote: >> >> (2013/06/17 2:21), Oleg Nesterov wrote: >>> enable_trace_probe() and disable_trace_probe() should not worry about >>> serialization, the caller (perf_trace_init or __ftrace_set_clr_event) >>> holds event_mutex. >>> >>

RE: [PATCH] x86, efi: retry ExitBootServices() on failure

2013-06-17 Thread joeyli
Hi Zach, 於 二,2013-06-18 於 00:18 +,Zachary Bobroff 提到: > All, > > >> Why a single retry is having reasonable guarantees to work when the > original one failed (nothing prevents an event handler to do another > allocation the next time through). > > This patch is being submitted because of th

Re: ext4 extent status tree LRU locking

2013-06-17 Thread Theodore Ts'o
> Subject: [PATCH v2] ext4: improve extent cache shrink mechanism to avoid to > burn CPU time > > From: Zheng Liu > > Now we maintain an proper in-order LRU list in ext4 to reclaim entries > from extent status tree when we are under heavy memory pressure. For > keeping this order, a spin lock

Re: linux-next: slab shrinkers: BUG at mm/list_lru.c:92

2013-06-17 Thread Dave Chinner
On Tue, Jun 18, 2013 at 02:30:05AM +0400, Glauber Costa wrote: > On Mon, Jun 17, 2013 at 02:35:08PM -0700, Andrew Morton wrote: > > On Mon, 17 Jun 2013 19:14:12 +0400 Glauber Costa wrote: > > > > > > I managed to trigger: > > > > [ 1015.776029] kernel BUG at mm/list_lru.c:92! > > > > [ 1015.77602

Re: [lttng-dev] [-stable 3.8.1 performance regression] madvise POSIX_FADV_DONTNEED

2013-06-17 Thread Andrew Morton
On Mon, 17 Jun 2013 22:15:28 -0400 Mathieu Desnoyers wrote: > * Andrew Morton (a...@linux-foundation.org) wrote: > > On Mon, 17 Jun 2013 17:39:36 -0400 Rapha__l Beamonte > > wrote: > > > > > 2013/6/17 Andrew Morton > > > > > > > That change wasn't terribly efficient - if there are any unpop

Re: [PATCH] usb: host: Faraday fotg210-hcd driver

2013-06-17 Thread Yuan-Hsin Chen
Hi, On Tue, Jun 18, 2013 at 4:39 AM, Greg KH wrote: > On Wed, Jun 05, 2013 at 05:15:43PM +, Yuan-Hsin Chen wrote: >> FOTG210 is an OTG controller which can be configured as an >> USB2.0 host. FOTG210 host is an ehci-like controller with >> some differences. First, register layout of FOTG210 i

Re: power-efficient scheduling design

2013-06-17 Thread David Lang
On Fri, 14 Jun 2013, Morten Rasmussen wrote: Looking at the discussion it seems that people have slightly different views, but most agree that the goal is an integrated scheduling, frequency, and idle policy like you pointed out from the beginning. What is less clear is how such design would l

Re: [PATCH 4/4 v2] silicom: checkpatch: errors caused by macros

2013-06-17 Thread Joe Perches
On Mon, 2013-06-17 at 14:14 -0700, Greg KH wrote: > On Mon, Jun 17, 2013 at 02:03:43PM -0700, Joe Perches wrote: > > Generally I think it's better that new submitters patches > > should go through more strict reviews and be as correct > > as possible. I think this is especially true for patches >

Re: [PATCH 3/4] KVM: PPC: Add support for IOMMU in-kernel handling

2013-06-17 Thread Alex Williamson
On Mon, 2013-06-17 at 13:56 +1000, Benjamin Herrenschmidt wrote: > On Sun, 2013-06-16 at 21:13 -0600, Alex Williamson wrote: > > > IOMMU groups themselves don't provide security, they're accessed by > > interfaces like VFIO, which provide the security. Given a brief look, I > > agree, this looks

  1   2   3   4   5   6   7   8   9   10   >