[PATCH v1 3/3] usb: musb: dsps: handle babble condition for dsps platform

2013-05-29 Thread Ravi Babu
Adding babble recovery mechanism for dsps platform and as part of babble recovery the controller will be restarted. Signed-off-by: Ravi Babu --- drivers/usb/musb/musb_dsps.c | 34 +- 1 files changed, 33 insertions(+), 1 deletions(-) diff --git

[PATCH v1 1/3] usb: musb: core: added musb_restart() API to handle babble condition

2013-05-29 Thread Ravi Babu
Added musb_restart() API, used for restart of the musb controller by the glue layer, when there is babble condition occured on the bus. During babble condition, the musb controller will remove the session and no longer in host-mode. As part of recovery this API can be used to restart the musb

Re: [PATCH v5, part4 12/41] mm/ARC: prepare for removing num_physpages and simplify mem_init()

2013-05-29 Thread Liu Jiang
On Wed 29 May 2013 04:41:30 PM CST, Vineet Gupta wrote: > Hi Jiang, > > On 05/08/2013 09:21 PM, Jiang Liu wrote: >> Prepare for removing num_physpages and simplify mem_init(). >> >> Signed-off-by: Jiang Liu >> Cc: Vineet Gupta >> Cc: James Hogan >> Cc: Rob Herring >> Cc:

Re: [patch v3 -mm 1/3] memcg: integrate soft reclaim tighter with zone shrinking code

2013-05-29 Thread Michal Hocko
On Mon 27-05-13 19:13:08, Michal Hocko wrote: [...] > Nevertheless I have encountered an issue while testing the huge number > of groups scenario. And the issue is not limitted to only to this > scenario unfortunately. As memcg iterators use per node-zone-priority > cache to prevent from over

Re: [PATCH] md: Partially revert 2f6db2a7, which broke raid5

2013-05-29 Thread Jens Axboe
On Wed, May 29 2013, Richard W.M. Jones wrote: > > On Sun, May 19, 2013 at 10:51:45AM -0700, Kent Overstreet wrote: > > Sorry for the delay - been vacationing. Reproduced the original bug, > > here's a patch that fixes it: > > > > > > commit 402f5db3708b2062795a384a3d8397cf702e27bc > > Author:

[PATCH] mm: Fix the TLB range flushed when __tlb_remove_page() runs out of slots

2013-05-29 Thread Vineet Gupta
zap_pte_range loops from @addr to @end. In the middle, if it runs out of batching slots, TLB entries needs to be flushed for @start to @interim, NOT @interim to @end. Since ARC port doesn't use page free batching I can't test it myself but this seems like the right thing to do. Observed this when

Re: [PATCH v6 net-next 1/5] net: add napi_id and hash

2013-05-29 Thread Eric Dumazet
On Wed, 2013-05-29 at 09:39 +0300, Eliezer Tamir wrote: > Adds a napi_id and a hashing mechanism to lookup a napi by id. > This will be used by subsequent patches to implement low latency > Ethernet device polling. > Based on a code sample by Eric Dumazet. > > Signed-off-by: Eliezer Tamir > ---

[PATCH v2] sched/x86: construct all sibling maps if smt

2013-05-29 Thread Andrew Jones
Commit 316ad248307fb ("sched/x86: Rewrite set_cpu_sibling_map()") broke the construction of sibling maps, which also broke the booted_cores accounting. Before the rewrite, if smt was present, then each map was updated for each smt sibling. After the rewrite only cpu_sibling_mask gets updated, as

Re: [RFC PATCHv4 0/6] arm: Initial TI-Nspire support

2013-05-29 Thread Arnd Bergmann
On Wednesday 29 May 2013, Daniel Tang wrote: > On 27/05/2013, at 8:31 PM, Arnd Bergmann wrote: > > > On Monday 27 May 2013, Daniel Tang wrote: > >>> The one remaining bit that sticks out is the clcd platform data. As I > >>> said before, I won't require you to convert that to DT in order to >

Re: [PATCH] md: Partially revert 2f6db2a7, which broke raid5

2013-05-29 Thread Richard W.M. Jones
On Sun, May 19, 2013 at 10:51:45AM -0700, Kent Overstreet wrote: > Sorry for the delay - been vacationing. Reproduced the original bug, > here's a patch that fixes it: > > > commit 402f5db3708b2062795a384a3d8397cf702e27bc > Author: Kent Overstreet > Date: Sun May 19 10:27:07 2013 -0700 > >

[PATCH] x86/crc32-pclmul: fix build with older binutils

2013-05-29 Thread Jan Beulich
binutils prior to 2.18 (e.g. the ones found on SLE10) don't support assembling PEXTRD, so a macro based approach like the one for PCLMULQDQ in the same file should be used. This requires making the helper macros capable of recognizing 32-bit general purpose register operands. Signed-off-by: Jan

Re: [PATCH v7 09/11] KVM: MMU: introduce kvm_mmu_prepare_zap_obsolete_page

2013-05-29 Thread Marcelo Tosatti
On Tue, May 28, 2013 at 10:51:38PM +0800, Xiao Guangrong wrote: > On 05/28/2013 08:13 AM, Marcelo Tosatti wrote: > > On Thu, May 23, 2013 at 03:55:58AM +0800, Xiao Guangrong wrote: > >> It is only used to zap the obsolete page. Since the obsolete page > >> will not be used, we need not spend time

Re: [PATCH v7 10/11] KVM: MMU: collapse TLB flushes when zap all pages

2013-05-29 Thread Marcelo Tosatti
On Wed, May 29, 2013 at 11:03:19AM +0800, Xiao Guangrong wrote: > >>> the pages since other vcpus may be doing locklessly shadow > >>> page walking > > > > Ah, yes, i agree with you. > > > > We can introduce a list, say kvm->arch.obsolte_pages, to link all of the > > zapped-page, the page-shrink

Re: [PATCH v7 04/11] KVM: MMU: zap pages in batch

2013-05-29 Thread Marcelo Tosatti
On Tue, May 28, 2013 at 11:02:09PM +0800, Xiao Guangrong wrote: > On 05/28/2013 08:18 AM, Marcelo Tosatti wrote: > > On Mon, May 27, 2013 at 10:20:12AM +0800, Xiao Guangrong wrote: > >> On 05/25/2013 04:34 AM, Marcelo Tosatti wrote: > >>> On Thu, May 23, 2013 at 03:55:53AM +0800, Xiao Guangrong

Re: [PATCH] drivers: mtd: devices: elm: use devm_ioremap_resource()

2013-05-29 Thread Artem Bityutskiy
On Thu, 2013-05-02 at 17:09 +0200, Laurent Navet wrote: > Replace a call to deprecated devm_request_and_ioremap by > devm_ioremap_resource. > > Found with coccicheck and this semantic patch: > scripts/coccinelle/api/devm_request_and_ioremap.cocci. > > Signed-off-by: Laurent Navet We already

Re: [PATCH V2] drivers: mtd: nand: davinci: use devm_ioremap_resource()

2013-05-29 Thread Artem Bityutskiy
On Thu, 2013-05-02 at 15:56 +0200, Laurent Navet wrote: > Replace a call to deprecated devm_request_and_ioremap by > devm_ioremap_resource. > > Found with coccicheck and this semantic patch: > scripts/coccinelle/api/devm_request_and_ioremap.cocci. > > Signed-off-by: Laurent Navet Pushed to

Re: [PATCH 1/3] proc: first_tid: fix the potential use-after-free

2013-05-29 Thread Oleg Nesterov
On 05/28, Eric W. Biederman wrote: > > Oleg Nesterov writes: > > > proc_task_readdir() verifies that the result of get_proc_task() > > is pid_alive() and thus its ->group_leader is fine too. However > > this is not necessarily true after rcu_read_unlock(), we need > > to recheck this after

[PATCH] xen-pciback: more uses of cached MSI-X capability offset

2013-05-29 Thread Jan Beulich
Signed-off-by: Jan Beulich --- drivers/xen/xen-pciback/pci_stub.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- 3.10-rc3/drivers/xen/xen-pciback/pci_stub.c +++ 3.10-rc3-xen-pciback-MSI-X-cap/drivers/xen/xen-pciback/pci_stub.c @@ -106,7 +106,7 @@ static void

[PATCH] x86: __force_order doesn't need to be an actual variable

2013-05-29 Thread Jan Beulich
It being static causes over a dozen instances to be scattered across the kernel image, with non of them ever being referenced in any way. Making the variable extern without ever defining it works as well - all we need is to have the compiler think the variable is being accessed. Signed-off-by:

Re: [PATCH] UBI: Fastmap: Fix memory leak

2013-05-29 Thread Richard Weinberger
Am 29.05.2013 14:27, schrieb Artem Bityutskiy: On Mon, 2013-05-27 at 10:10 +0200, Richard Weinberger wrote: Hi! Am 27.05.2013 10:02, schrieb Thomas Weber: Signed-off-by: wang bo [fix whitespace errors] Tested with linux-v3.10-rc3 on Devkit8000. Signed-off-by: Thomas Weber The discussion

Re: [PATCH] UBI: Fastmap: Fix memory leak

2013-05-29 Thread Artem Bityutskiy
On Mon, 2013-05-27 at 10:10 +0200, Richard Weinberger wrote: > Hi! > > Am 27.05.2013 10:02, schrieb Thomas Weber: > > Signed-off-by: wang bo > > > > [fix whitespace errors] > > > > Tested with linux-v3.10-rc3 on Devkit8000. > > Signed-off-by: Thomas Weber > > > > The discussion about this patch

[PATCH] ix86: don't waste fixmap entries

2013-05-29 Thread Jan Beulich
The vsyscall related pvclock entries can only ever be used on x86-64, and hence they shouldn't even get allocated for 32-bit kernels (the more that it is there where address space is relatively precious). Signed-off-by: Jan Beulich Cc: Marcelo Tosatti --- arch/x86/include/asm/fixmap.h |2

Re: [PATCH 1/2] pinmux: Add TB10x pinmux driver

2013-05-29 Thread Linus Walleij
On Fri, May 24, 2013 at 1:50 PM, Christian Ruppert wrote: > I haven't understood how to associate GPIOs to > other functions, however: Our hardware pin controller makes GPIO pins > available depending on the configuration of the non-GPIO interfaces. > This means that in many configurations, GPIO

Re: [PATCH v4 1/3] dmaengine: add dma_get_slave_sg_limits()

2013-05-29 Thread Lars-Peter Clausen
On 03/06/2013 08:56 PM, Matt Porter wrote: > Add a dmaengine API to retrieve slave SG transfer limits. > > The API is optionally implemented by dmaengine drivers and when > unimplemented will return a NULL pointer. A client driver using > this API provides the required dma channel, address width,

Re: [PATCH 1/3] x86: increase precision of x86_platform.get/set_wallclock()

2013-05-29 Thread David Vrabel
On 29/05/13 01:18, John Stultz wrote: > On 05/13/2013 10:56 AM, David Vrabel wrote: >> From: David Vrabel >> >> All the virtualized platforms (KVM, lguest and Xen) have persistent >> wallclocks that have more than one second of precision. >> >> read_persistent_wallclock() and

Re: [PATCH] arch: blackfin: kernel: memory overflow, 'namebuf' length need be more than 256

2013-05-29 Thread Chen Gang
On 05/29/2013 07:30 PM, Geert Uytterhoeven wrote: >> void show_regs(struct pt_regs *fp) >> > { >> > - char buf[150]; >> > + char buf[512]; > This will increase stack usage a lot. And this function calls > decode_address(), > which allocates another buffer on the stack. > Can it

Re: [PATCH 0/5] USB: PHY: Improve PHY selection logic

2013-05-29 Thread Roger Quadros
On 05/29/2013 02:59 PM, Arnd Bergmann wrote: > On Wednesday 29 May 2013 14:43:26 Roger Quadros wrote: >> >> Improve Kconfig so that the relevant PHY driver can be explicitely >> selected by the controller driver instead of relying on the user >> to do so. >> >> Detailed description in patch 1. >

Re: [PATCH] ARM: EXYNOS: Update defconfig for Arndale and Origen board

2013-05-29 Thread Tushar Behera
On 05/29/2013 11:01 AM, Olof Johansson wrote: >> There are a total of 6 patches on top of >> v3.10-rc3. 3 of them (a, b, d) are queued for 3.10-rc4 and another patch >> (c) is just a defconfig hack to get Arndale booting. Remaining 2 patches >> (e, f) are required to reset the hub during EHCI

Re: [PATCHv2 3/7] gpu: host1x: Don't reset firewall between gathers

2013-05-29 Thread Thierry Reding
* Arto Merilainen wrote: [...] > diff --git a/drivers/gpu/host1x/job.c b/drivers/gpu/host1x/job.c [...] > @@ -553,7 +549,6 @@ int host1x_job_pin(struct host1x_job *job, struct device > *dev) > > if (!err) > err = do_waitchks(job, host, g->bo); > - >

Re: [PATCH 0/5] USB: PHY: Improve PHY selection logic

2013-05-29 Thread Arnd Bergmann
On Wednesday 29 May 2013 14:43:26 Roger Quadros wrote: > > Improve Kconfig so that the relevant PHY driver can be explicitely > selected by the controller driver instead of relying on the user > to do so. > > Detailed description in patch 1. I think you have to fold patches 3-5 into patch 1,

Re: [PATCH 20/39] usb: musb: ux500: move channel number knowledge into the driver

2013-05-29 Thread Linus Walleij
On Tue, May 28, 2013 at 6:27 PM, Felipe Balbi wrote: > On Wed, May 15, 2013 at 07:18:01PM +0200, Linus Walleij wrote: >> I can't merge any of this without Felipes ACKs in any >> case. > > Do you want to take this yourself ? I haven't fully read the series yet, > but seems like this depends on

Re: [PATCH] perf tools: fix an error introduced by commit 93cbb398

2013-05-29 Thread Jiri Olsa
On Mon, May 27, 2013 at 11:27:35PM +0800, Runzhen Wang wrote: > commit 0a720538e5dd3f424bfcc15c1e4af09df0becf92 > and > commit 93cbb3985d5de867fb32e6e130fcfb1b5de4142b > move some contents of Makefile from perf/Makefile to > perf/config/Makefile. hi, so you based on latest acme's perf/core,

Re: [PATCH 0/2] kdump/mmap: Fix mmap of /proc/vmcore for s390

2013-05-29 Thread Michael Holzheu
On Tue, 28 May 2013 09:55:01 -0400 Vivek Goyal wrote: > On Sat, May 25, 2013 at 02:52:17PM +0200, Michael Holzheu wrote: [snip] > > Besides of the newmem mechanism, for completeness, we also > > implemented the oldmem ELF header mechansim in kexec. But this is > > disabled by default. > > > >

[PATCH v1 1/1] drivers/misc: lis3lv02d: convert to use devm_regulator_bulk_get

2013-05-29 Thread Nikolay Balandin
From: Nikolay Balandin Use devm_regulator_bulk_get to make cleanup paths simpler Signed-off-by: Nikolay Balandin --- drivers/misc/lis3lv02d/lis3lv02d_i2c.c |9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/misc/lis3lv02d/lis3lv02d_i2c.c

Re: [patch] ceph: tidy ceph_mdsmap_decode() a little

2013-05-29 Thread Alex Elder
On 05/29/2013 01:22 AM, Dan Carpenter wrote: > I introduced a new temporary variable "info" instead of > "m->m_info[mds]". Also I reversed the if condition and pulled > everything in one indent level. Looks good. I will apply this for you. Reviewed-by: Alex Elder > > Signed-off-by: Dan

[PATCH 4/5] USB: lpc32xx: USB_LPC32XX need not depend on USB_PHY

2013-05-29 Thread Roger Quadros
As the USB PHY drivers no longer depend on USB_PHY but select it if needed, the controller drivers need not depend on USB_PHY. They can safely select the necessary PHY driver i.e. USB_ISP1301 in this case. Signed-off-by: Roger Quadros CC: Roland Stigge --- drivers/usb/gadget/Kconfig |1 -

[PATCH 5/5] USB: OMAP: USB_OMAP need not depend USB_PHY

2013-05-29 Thread Roger Quadros
As the USB PHY drivers no longer depend on USB_PHY but select it if needed, the controller drivers need not depend on USB_PHY. They can safely select the necessary PHY driver i.e. ISP1301_OMAP in this case. Signed-off-by: Roger Quadros --- drivers/usb/gadget/Kconfig |1 - 1 files changed, 0

[PATCH 3/5] USB: ehci-msm: USB_EHCI_MSM need not depend on USB_PHY

2013-05-29 Thread Roger Quadros
As the USB PHY drivers no longer depend on USB_PHY but select it if needed, the controller drivers need not depend on USB_PHY. They can safely select the necessary PHY driver i.e. USB_MSM_OTG in this case. Signed-off-by: Roger Quadros CC: Pavankumar Kondeti --- drivers/usb/host/Kconfig |1

[PATCH 2/5] USB: ehci-omap: select NOP_USB_XCEIV PHY driver

2013-05-29 Thread Roger Quadros
ehci-omap needs NOP_USB_XCEIV PHY driver to function properly, so select it. As the USB PHY drivers no longer depend on USB_PHY, it is safe to select the PHY drivers. Signed-off-by: Roger Quadros --- drivers/usb/host/Kconfig |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff

[PATCH 1/5] USB: PHY: Make PHY driver selection possible by controller drivers

2013-05-29 Thread Roger Quadros
Convert PHY Drivers from menuconfig to menu so that the PHY drivers can be explicitely selected by the controller drivers. USB_PHY is no longer a user visible option. It is upto to the PHY drivers to select it if needed. This patch does so for the existing PHY drivers that use the USB_PHY

[PATCH 0/5] USB: PHY: Improve PHY selection logic

2013-05-29 Thread Roger Quadros
Hi, Improve Kconfig so that the relevant PHY driver can be explicitely selected by the controller driver instead of relying on the user to do so. Detailed description in patch 1. cheers, -roger Roger Quadros (5): USB: PHY: Make PHY driver selection possible by controller drivers USB:

Re: [PATCHv2 3/7] gpu: host1x: Don't reset firewall between gathers

2013-05-29 Thread Arto Merilainen
On 05/29/2013 02:21 PM, Thierry Reding wrote: * PGP Signed by an unknown key * Arto Merilainen wrote: [...] diff --git a/drivers/gpu/host1x/job.c b/drivers/gpu/host1x/job.c [...] @@ -553,7 +549,6 @@ int host1x_job_pin(struct host1x_job *job, struct device *dev) if (!err)

Re: [PATCH] arch: blackfin: kernel: memory overflow, 'namebuf' length need be more than 256

2013-05-29 Thread Geert Uytterhoeven
On Wed, May 29, 2013 at 12:07 PM, Chen Gang wrote: > The 'name' length in decode_address() may be 255, after call d_path() > successfully. > > So for decode_address(), the input 'buf' need be more than 256, or may > memory overflow. > > For simply thinking of, use 'namebuf[512]' instead of

Re: [RFC PATCH 2/2] uio: Add two platform uio drivers to one

2013-05-29 Thread Michal Simek
Hi Hans, any comment on this? Thanks, Michal On 05/23/2013 04:01 PM, Michal Simek wrote: > - Remove Userspace I/O platform driver without IRQ support > but add this functionality to genirq driver > - Remove code duplication from OF binding > > Signed-off-by: Michal Simek > --- > The main

[PATCH 2/2] DT: Add documentation for gpio-xilinx

2013-05-29 Thread Michal Simek
Describe gpio-xilinx binding. Signed-off-by: Michal Simek --- .../devicetree/bindings/gpio/gpio-xilinx.txt | 43 ++ 1 file changed, 43 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/gpio-xilinx.txt diff --git

[PATCH 1/2] GPIO: Add support for dual channel in gpio-xilinx.c

2013-05-29 Thread Michal Simek
Supporting the second channel in the driver. Offset is 0x8 and both channnels share the same IRQ. Signed-off-by: Michal Simek --- drivers/gpio/gpio-xilinx.c | 93 -- 1 file changed, 81 insertions(+), 12 deletions(-) diff --git

Re: [PATCHv2 0/7] Miscellaneous fixes to host1x

2013-05-29 Thread Thierry Reding
On Wed, May 29, 2013 at 01:26:01PM +0300, Arto Merilainen wrote: > This patch series fixes two issues in the host1x driver: First, the > command buffer validation routine had vulnerabilities that were not > detected in earlier testing. Second, the return codes of some > functions were misleading

Re: [PATCH 2/2 V3] perf/x86/amd: AMD IOMMU PC PERF uncore PMU implementation

2013-05-29 Thread Peter Zijlstra
On Tue, May 28, 2013 at 12:17:28PM -0500, Suravee Suthikulanit wrote: > On 5/28/2013 7:18 AM, Joerg Roedel wrote: > >That implementation is very basic. Any reason for not using the event > >reporting mechanism of the IOMMU? You could implement a nice perf > >iommutop or something to see which

Re: [PATCH] checkpatch: forgive use of mixed case variables measuring units

2013-05-29 Thread Joe Perches
On Wed, 2013-05-29 at 14:02 +0300, Phil Carmody wrote: > I don't think anyone really has an issue with things like max_mV. > And whilst nS et al. may not be SI standard, at least it's clear > what they represent. [] > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] > @@ -2940,6

[PATCH v7] ARM: dts: omap4-panda: Update the LED support for the panda DTS

2013-05-29 Thread Dan Murphy
The GPIO for LED D1 on the omap4-panda a1-a3 rev and the omap4-panda-es are different. A1-A3 = gpio_wk7 ES = gpio_110 There is no change to LED D2 Abstract away the pinmux and the LED definitions for the two boards into the respective DTS files. Signed-off-by: Dan Murphy --- v7 - Update

Re: System slow down from udev

2013-05-29 Thread Rafael J. Wysocki
On Tuesday, May 28, 2013 08:46:11 PM Yinghai Lu wrote: > On Tue, May 28, 2013 at 5:30 PM, Rafael J. Wysocki wrote: > > On Tuesday, May 28, 2013 05:01:41 PM Yinghai Lu wrote: > > > > Please attach your .config for comparison and maybe Greg will have an idea > > about what's up with udev vs that

Re: [PATCH v4 7/9] liblockdep: Support using LD_PRELOAD

2013-05-29 Thread Peter Zijlstra
On Tue, May 28, 2013 at 03:38:38PM -0400, Sasha Levin wrote: > On 05/22/2013 05:27 AM, Peter Zijlstra wrote: > > I guess that begs the question do we really want to support !glibc? > > I assumed we didn't want to give up on that based on your patch. I think that > if we plan to get it into

Re: [PATCH v4 7/9] liblockdep: Support using LD_PRELOAD

2013-05-29 Thread Peter Zijlstra
On Tue, May 28, 2013 at 03:35:36PM -0400, Sasha Levin wrote: > On 05/22/2013 05:24 AM, Peter Zijlstra wrote: > > Do we still need this with the glibc __pthread_* static initialization? > > Sadly we do. > > We need to deal with the two things that cause allocation in our code (because > they loop

Re: [PATCH v4 3/9] liblockdep: Add public headers for pthread_mutex_t implementation

2013-05-29 Thread Peter Zijlstra
On Tue, May 28, 2013 at 03:33:51PM -0400, Sasha Levin wrote: > On 05/22/2013 05:22 AM, Peter Zijlstra wrote: > > They will however then also want all the 'normal' lockdep annotations to > > deal with that like: > > > > liblockdep_pthread_mutex_lock_nested() > >

Re: [PATCH v4 2/9] liblockdep: Wrap kernel/lockdep.c to allow usage from userspace

2013-05-29 Thread Peter Zijlstra
On Tue, May 28, 2013 at 03:30:35PM -0400, Sasha Levin wrote: > On 05/22/2013 05:17 AM, Peter Zijlstra wrote: > > On Wed, May 15, 2013 at 11:15:34PM -0400, Sasha Levin wrote: > >> --- /dev/null > >> +++ b/tools/lib/lockdep/uinclude/linux/lockdep.h > >> @@ -0,0 +1,55 @@ > >> +#ifndef

Re: [PATCH] sched/x86: construct all sibling maps if smt

2013-05-29 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Wed, May 29, 2013 at 12:26:01PM +0200, Andrew Jones wrote: > > On Mon, May 27, 2013 at 07:09:00PM +0200, Andrew Jones wrote: > > > Commit 316ad248307fb ("sched/x86: Rewrite set_cpu_sibling_map()") broke > > > the construction of sibling maps, which also broke the

[PATCH v7 02/11] cgroup: implement CFTYPE_NO_PREFIX

2013-05-29 Thread Glauber Costa
From: Tejun Heo When cgroup files are created, cgroup core automatically prepends the name of the subsystem as prefix. This patch adds CFTYPE_NO_PREFIX which disables the automatic prefix. This will be used to deprecate cpuacct which will make cpu create and serve the cpuacct files.

[PATCH v7 03/11] cgroup, sched: let cpu serve the same files as cpuacct

2013-05-29 Thread Glauber Costa
From: Tejun Heo cpuacct being on a separate hierarchy is one of the main cgroup related complaints from scheduler side and the consensus seems to be * Allowing cpuacct to be a separate controller was a mistake. In general multiple controllers on the same type of resource should be avoided,

[PATCH v7 05/11] cpuacct: don't actually do anything.

2013-05-29 Thread Glauber Costa
All the information we have that is needed for cpuusage (and cpuusage_percpu) is present in schedstats. It is already recorded in a sane hierarchical way. If we have CONFIG_SCHEDSTATS, we don't really need to do any extra work. All former functions become empty inlines. Signed-off-by: Glauber

Re: [PATCH] ACPI: Fix potential NULL pointer dereference in acpi_processor_add()

2013-05-29 Thread Martin Mokrejs
Hanjun Guo wrote: > On 2013-5-29 7:30, Rafael J. Wysocki wrote: >> On Thursday, May 23, 2013 08:44:26 PM Hanjun Guo wrote: >>> In acpi_processor_add(), get_cpu_device() will return NULL sometimes, >>> although the chances are small, I think it should be fixed. >>> >>> Signed-off-by: Hanjun Guo >>

Re: [PATCH V2 3/3] x86/microcode: early microcode patch loading support on AMD

2013-05-29 Thread Borislav Petkov
On Tue, May 28, 2013 at 06:43:07PM -0500, Jacob Shin wrote: > > Anyway, this whole Kconfig microcode section could use a simplification > > but this is not the subject of this patchset - I'll try to address it > > after this, as stated in another mail. > > Yes, I'll simplify the Kconfig as you

Re: [PATCH] sched/x86: construct all sibling maps if smt

2013-05-29 Thread Peter Zijlstra
On Wed, May 29, 2013 at 12:26:01PM +0200, Andrew Jones wrote: > On Mon, May 27, 2013 at 07:09:00PM +0200, Andrew Jones wrote: > > Commit 316ad248307fb ("sched/x86: Rewrite set_cpu_sibling_map()") broke > > the construction of sibling maps, which also broke the booted_cores > > accounting. > > > >

[PATCH v7 04/11] sched: adjust exec_clock to use it as cpu usage metric

2013-05-29 Thread Glauber Costa
exec_clock already provides per-group cpu usage metrics, and can be reused by cpuacct in case cpu and cpuacct are comounted. However, it is only provided by tasks in fair class. Doing the same for rt is easy, and can be done in an already existing hierarchy loop. This is an improvement over the

[PATCH] arch: alpha: kernel: typo issue, using '1' instead of '11'

2013-05-29 Thread Chen Gang
For sending message: *(unsigned int *)>ipc_buffer[0] = len; cp1 = (char *) >ipc_buffer[1]; But for receive message: cnt = cpu->ipc_buffer[0] >> 32; ... cp1 = (char *) >ipc_buffer[11]; They are not pairs, it is typo issue

[PATCH v7 09/11] sched: record per-cgroup number of context switches

2013-05-29 Thread Glauber Costa
Context switches are, to this moment, a property of the runqueue. When running containers, we would like to be able to present a separate figure for each container (or cgroup, in this context). The chosen way to accomplish this is to increment a per cfs_rq or rt_rq, depending on the task, for

[PATCH v7 10/11] sched: change nr_context_switches calculation.

2013-05-29 Thread Glauber Costa
This patch changes the calculation of nr_context_switches. The variable "nr_switches" is now used to account for the number of transition to the idle task, or stop task. It is removed from the schedule() path. The total calculation can be made using the fact that the transitions to fair and rt

[PATCH v7 11/11] sched: introduce cgroup file stat_percpu

2013-05-29 Thread Glauber Costa
The file cpu.stat_percpu will show various scheduler related information, that are usually available to the top level through other files. For instance, most of the meaningful data in /proc/stat is presented here. Given this file, a container can easily construct a local copy of /proc/stat for

Re: [PATCH v4 1/4] xen: move xen_setup_runstate_info and get_runstate_snapshot to drivers/xen/time.c

2013-05-29 Thread Stefano Stabellini
On Tue, 28 May 2013, Konrad Rzeszutek Wilk wrote: > On Tue, May 28, 2013 at 06:54:29PM +0100, Stefano Stabellini wrote: > > Signed-off-by: Stefano Stabellini > > Acked-by: Ian Campbell > > CC: konrad.w...@oracle.com > > > > Changes in v2: > > - leave do_stolen_accounting in arch/x86/xen/time.c;

[PATCH v7 07/11] sched: account guest time per-cgroup as well.

2013-05-29 Thread Glauber Costa
We already track multiple tick statistics per-cgroup, using the task_group_account_field facility. This patch accounts guest_time in that manner as well. Signed-off-by: Glauber Costa CC: Peter Zijlstra CC: Paul Turner --- kernel/sched/cputime.c | 10 -- 1 file changed, 4

[PATCH v7 08/11] sched: Push put_prev_task() into pick_next_task()

2013-05-29 Thread Glauber Costa
From: Peter Zijlstra In order to avoid having to do put/set on a whole cgroup hierarchy when we context switch, push the put into pick_next_task() so that both operations are in the same function. Further changes then allow us to possibly optimize away redundant work. [ glom...@openvz.org:

[PATCH v7 06/11] sched: document the cpu cgroup.

2013-05-29 Thread Glauber Costa
The CPU cgroup is so far, undocumented. Although data exists in the Documentation directory about its functioning, it is usually spread, and/or presented in the context of something else. This file consolidates all cgroup-related information about it. Signed-off-by: Glauber Costa ---

[PATCH v7 01/11] don't call cpuacct_charge in stop_task.c

2013-05-29 Thread Glauber Costa
Commit 8f618968 changed stop_task to do the same bookkeping as the other classes. However, the call to cpuacct_charge() doesn't affect the scheduler decisions at all, and doesn't need to be moved over. Moreover, being a kthread, the migration thread won't belong to any cgroup anyway, rendering

[PATCH v7 00/11] per-cgroup cpu-stat

2013-05-29 Thread Glauber Costa
Peter et. al, I am coming again with this series, hoping this is a better time for you all to look at it. I am *not* going as far as marking cpuacct deprecated, because I think it deserves a special discussion (even though my position in this matter is widely known), but all the infrastructure

[PATCH] checkpatch: forgive use of mixed case variables measuring units

2013-05-29 Thread Phil Carmody
I don't think anyone really has an issue with things like max_mV. And whilst nS et al. may not be SI standard, at least it's clear what they represent. Signed-off-by: Phil Carmody --- scripts/checkpatch.pl |1 + 1 file changed, 1 insertion(+) diff --git a/scripts/checkpatch.pl

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

2013-05-29 Thread Stefano Stabellini
On Wed, 29 May 2013, Stephen Rothwell wrote: > Hi Stefano, > > After merging the xen-arm tree, today's linux-next build (powerpc > ppc64_defconfig) failed like this: > > kernel/sched/cputime.c:8:26: fatal error: asm/paravirt.h: No such file or > directory > #include >

Re: [PATCH 09/12] tegra20-apb-dma: remove useless use of lock

2013-05-29 Thread Laxman Dewangan
On Monday 27 May 2013 05:44 PM, Andy Shevchenko wrote: Accordingly to dma_cookie_status() description locking is not required. I think we need lock here: From isr handler, we call dma_cookie_complete() which is in spin-locked. This function updates tx->chan->completed_cookie = tx->cookie; In

Re: [PATCH] cpufreq: MAINTAINERS: Add git tree path for ARM specific updates

2013-05-29 Thread Viresh Kumar
On 29 May 2013 16:17, Joe Perches wrote: > On Wed, 2013-05-29 at 16:10 +0530, Viresh Kumar wrote: >> ARM specific patches would be >> Applied by me now. Rafael will pull in these changes from time to time (at >> rc's). > [] >> diff --git a/MAINTAINERS b/MAINTAINERS > [] >> @@ -2216,6 +2216,7 @@

[PATCH] arch: alpha: kernel: using memcpy() instead of strcpy()

2013-05-29 Thread Chen Gang
When sending message in send_secondary_console_msg(), the length is not include the NUL byte, and also not copy NUL to 'ipc_buffer'. When receive message in recv_secondary_console_msg(), the 'cnt' also excludes NUL. So when get string from ipc_buffer, it may not be NUL terminated. Then use

Re: [PATCH] cpufreq: MAINTAINERS: Add git tree path for ARM specific updates

2013-05-29 Thread Joe Perches
On Wed, 2013-05-29 at 16:10 +0530, Viresh Kumar wrote: > ARM specific patches would be > Applied by me now. Rafael will pull in these changes from time to time (at > rc's). [] > diff --git a/MAINTAINERS b/MAINTAINERS [] > @@ -2216,6 +2216,7 @@ L: cpuf...@vger.kernel.org [] > T:

[PATCH] cpufreq: MAINTAINERS: Add git tree path for ARM specific updates

2013-05-29 Thread Viresh Kumar
To reduce cpufreq maintenance load on Rafael, ARM specific patches would be Applied by me now. Rafael will pull in these changes from time to time (at rc's). Additionally I would be sending him pull request for every merge window and rc's (for fixes). Web interface of my tree is present here:

[PATCHv2 1/7] gpu: host1x: Check INCR opcode correctly

2013-05-29 Thread Arto Merilainen
From: Terje Bergstrom The firewall code used a wrong loop condition (pointer to a structure) while checking INCR opcode. This patch fixes the code to use correct loop condition (number of words remaining). Signed-off-by: Terje Bergstrom Signed-off-by: Arto Merilainen ---

[PATCHv2 0/7] Miscellaneous fixes to host1x

2013-05-29 Thread Arto Merilainen
This patch series fixes two issues in the host1x driver: First, the command buffer validation routine had vulnerabilities that were not detected in earlier testing. Second, the return codes of some functions were misleading or completely missing. This caused the driver to give wrong return codes

[PATCHv2 4/7] gpu: host1x: Copy gathers before verification

2013-05-29 Thread Arto Merilainen
The firewall verified gather buffers before copying them. This allowed a malicious application to rewrite the buffer content by timing the rewrite carefully. This patch makes the buffer validation occur after copying the buffers. Signed-off-by: Arto Merilainen Signed-off-by: Terje Bergstrom

[PATCHv2 2/7] gpu: host1x: Check reloc table before usage

2013-05-29 Thread Arto Merilainen
The firewall assumed that the user space always delivers a relocation table when it is accessing address registers. If userspace did not deliver a relocation table and tried to access the address registers, the code performed bad memory accesses. This patch modifies the firewall to check

[PATCHv2 5/7] gpu: host1x: Fix memory access in syncpt request

2013-05-29 Thread Arto Merilainen
This patch fixes a bad memory access in syncpoint request code. If no syncpoints were available, the code accessed unreserved memory area causing unexpected behaviour. Signed-off-by: Arto Merilainen --- drivers/gpu/host1x/syncpt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[PATCHv2 7/7] gpu: host1x: Rework CPU syncpoint increment

2013-05-29 Thread Arto Merilainen
This patch merges host1x_syncpt_cpu_incr to host1x_syncpt_incr() as they are in practise doing the same thing. host1x_syncpt_incr() is also modified to return error codes. User space interface is modified accordingly to pass return values. Signed-off-by: Arto Merilainen ---

[PATCHv2 6/7] gpu: host1x: Fix client_managed type

2013-05-29 Thread Arto Merilainen
client_managed field in syncpoint structure was defined as an integer. The field holds, however, only a boolean value. This patch modifies the type to boolean. Signed-off-by: Arto Merilainen --- drivers/gpu/host1x/drm/gr2d.c | 2 +- drivers/gpu/host1x/syncpt.c | 8

[PATCHv2 3/7] gpu: host1x: Don't reset firewall between gathers

2013-05-29 Thread Arto Merilainen
From: Terje Bergstrom The firewall was reinitialised for each gather. Because the filter was reinitialised, it did not track the class over gather boundaries. This allowed the user application to set host1x class to one class in one gather and use that class in another gather without firewall

Re: [PATCH] sched/x86: construct all sibling maps if smt

2013-05-29 Thread Andrew Jones
On Mon, May 27, 2013 at 07:09:00PM +0200, Andrew Jones wrote: > Commit 316ad248307fb ("sched/x86: Rewrite set_cpu_sibling_map()") broke > the construction of sibling maps, which also broke the booted_cores > accounting. > > Before the rewrite, if smt was present, then each map was updated for >

Re: [I2C] informations + advice about messages handling

2013-05-29 Thread Mylene Josserand
Hi Jean, Le 24/05/2013 14:20, Jean Delvare a écrit : > On Fri, 24 May 2013 11:52:54 +0200, Mylene Josserand wrote: >> - an audio codec tlv320aic3204 : There is a driver for this device but >> for some reasons, we did not use it. Did not find a "SMBus compliant" in >> its datasheet. > > The

Re: [PATCH v7 0/2] perf: use hrtimer for event multiplexing

2013-05-29 Thread Stephane Eranian
On Tue, May 28, 2013 at 10:33 AM, Stephane Eranian wrote: > On Mon, May 27, 2013 at 3:12 PM, Peter Zijlstra wrote: >> >> >> I already queued your v6, however Ingo was ill last week so it didn't >> get merged. It says nothing changed, so I left whatever I had in my >> queue. >> > Thanks. >>

RE: [PATCH 4/4] ARM: tegra: pcie: Enable PCIe controller on Cardhu

2013-05-29 Thread Jay Agarwal
> > > So, if I apply this series, I do see the PCIe bridge and Ethernet > > > device get enumerated, but I don't see the USB3 controller get > > > enumerated. I believe that is a PCIe device behind the same bridge > > > on the > > same Tegra PCIe port. > > > Shouldn't this device show up? > > I

Re: [PATCH v2] rcu: fix a race in hlist_nulls_for_each_entry_rcu macro

2013-05-29 Thread Roman Gushchin
On 29.05.2013 09:08, Eric Dumazet wrote: On Tue, 2013-05-28 at 18:31 -0700, Paul E. McKenney wrote: On Tue, May 28, 2013 at 05:34:53PM -0700, Eric Dumazet wrote: On Tue, 2013-05-28 at 13:10 +0400, Roman Gushchin wrote: On 28.05.2013 04:12, Eric Dumazet wrote: About your earlier question, I

[PATCH] arch: blackfin: kernel: memory overflow, 'namebuf' length need be more than 256

2013-05-29 Thread Chen Gang
The 'name' length in decode_address() may be 255, after call d_path() successfully. So for decode_address(), the input 'buf' need be more than 256, or may memory overflow. For simply thinking of, use 'namebuf[512]' instead of 'namebuf[150]' which will pass to decode_address() as input 'buf'.

Re: [PATCH v1 0/3] PM / AVS: SmartReflex: driver misc fixes

2013-05-29 Thread Andrii Tseglytskyi
On 05/29/2013 12:03 AM, Kevin Hilman wrote: Andrii Tseglytskyi writes: The following patch series contain several misc fixes to SmartReflex driver: 1. disable errgen before vpbound disable. Critical fix, needed for proper work of AVS-VP communicaton protocol. 2. disable runtime PM on driver

RE: [PATCH v2 11/14] Documentation: dt: binding: omap: am43x timer

2013-05-29 Thread Mohammed, Afzal
Hi Benoit, On Wed, May 29, 2013 at 14:09:18, Cousson, Benoit wrote: > On 05/29/2013 10:06 AM, Mohammed, Afzal wrote: > > On Wed, May 29, 2013 at 03:35:10, Stephen Warren wrote: > >> On 05/28/2013 03:25 PM, Jon Hunter wrote: > >>> If you are adding more compatibility strings, then this implies

Re: [PATCH v1 1/3] PM / AVS: SmartReflex: disable errgen before vpbound disable

2013-05-29 Thread Andrii Tseglytskyi
Hi Kevin, Thanks a lot for your comments. On 05/28/2013 09:45 PM, Kevin Hilman wrote: Andrii Tseglytskyi writes: From: Nishanth Menon vpboundsintr_en is available inside the IP block as an re-sycned version and one which is not. Due to this, there is an 1 sysclk cycle window where

[PATCH] parisc: rename "CONFIG_PA7100" to "CONFIG_PA7000"

2013-05-29 Thread Paul Bolle
There's a Makefile line setting cflags for CONFIG_PA7100. But that Kconfig macro doesn't exist. There is a Kconfig symbol PA7000, which covers both PA7000 and PA7100 processors. So let's use the corresponding Kconfig macro. Signed-off-by: Paul Bolle --- Untested. This needs testing for two

Re: A bug about system call on ARM

2013-05-29 Thread Will Deacon
Hello, On Wed, May 29, 2013 at 09:46:42AM +0100, richard -rw- weinberger wrote: > On Wed, May 29, 2013 at 10:24 AM, Wang, Yalin > wrote: > > I have download the latest linux kernel code 3.9.4 > > And Compare with 3.4.0 kernel . > > > > It seems there is no change for this part , > > So it

Re: [Xen-devel] [PATCH 2/2] x86/xen: sync the wallclock when the system time changes

2013-05-29 Thread David Vrabel
On 29/05/13 08:39, Jan Beulich wrote: On 28.05.13 at 20:22, David Vrabel wrote: >> +static int xen_pvclock_gtod_notify(struct notifier_block *nb, unsigned long >> unused, >> + void *priv) >> +{ >> +static struct timespec last, next; >> +struct timespec

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