[PATCH v3 3/4] mfd: Palmas: Add TPS659038 PMIC support

2013-06-18 Thread Keerthy
From: J Keerthy The Patch adds TPS659038 PMIC support in the palmas mfd driver. The TPS659038 has almost the same registers as of the earlier supported variants of PALMAS family such as the TWL6035. The critical differences between TPS659038 and TWL6035 being: 1) TPS659038 has nothing related

[PATCH v3 4/4] regulator: Palmas: Add TPS659038 support

2013-06-18 Thread Keerthy
From: J Keerthy Add TPS659038 support. Signed-off-by: J Keerthy --- .../devicetree/bindings/regulator/palmas-pmic.txt |1 + drivers/regulator/palmas-regulator.c |1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git

[PATCH v3 1/4] MFD: Palmas: Check if irq is valid

2013-06-18 Thread Keerthy
From: J Keerthy Check if irq value obtained is valid. If it is not valid then skip the irq request step and go ahead with the probe. Signed-off-by: J Keerthy --- drivers/mfd/palmas.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/mfd/palmas.c

[PATCH v3 2/4] MFD: Palmas: Add SMPS10_BOOST feature

2013-06-18 Thread Keerthy
From: J Keerthy The SMPS10 regulator is not presesnt in all the variants of the PALMAS PMIC family. Hence adding a feature to distingush between them. Signed-off-by: J Keerthy --- drivers/mfd/palmas.c | 27 --- drivers/regulator/palmas-regulator.c |

[PATCH v3 0/4] MFD: Palmas: Add TPS659038 PMIC support on Palmas

2013-06-18 Thread Keerthy
From: J Keerthy The Patch series adds TPS659038 PMIC support in the palmas MFD and Regulator drivers. The TPS659038 has almost the same registers as of the earlier supported variants of PALMAS family such as the TWL6035. The critical differences between TPS659038 and TWL6035 being: 1)

Re: linux-next: manual merge of the driver-core tree with the driver-core.current tree

2013-06-18 Thread Greg KH
On Wed, Jun 19, 2013 at 03:32:25PM +1000, Stephen Rothwell wrote: > Hi Greg, > > Today's linux-next merge of the driver-core tree got a conflict in > drivers/base/firmware_class.c between commit 875979368eb4 ("firmware > loader: fix use-after-free by double abort") from the driver-core.current >

[net-next rfc 3/3] tuntap: increase the max queues to 16

2013-06-18 Thread Jason Wang
Since we've reduce the size of tun_struct and use flex array to allocate netdev queues, it's safe for us to increase the limit of queues in tuntap. Signed-off-by: Jason Wang --- drivers/net/tun.c |5 + 1 files changed, 1 insertions(+), 4 deletions(-) diff --git a/drivers/net/tun.c

[net-next rfc 2/3] tuntap: reduce the size of tun_struct by using flex array

2013-06-18 Thread Jason Wang
This patch switches to use flex array to implement the flow caches, it can brings several advantages: - save the size of the tun_struct structure, which can allows us to increase the upper limit of queues in the future. - avoid higher order memory allocation which could be used when switching

[net-next rfc 0/3] increase the limit of tuntap queues

2013-06-18 Thread Jason Wang
Hi all: This series tries to increase the limit of tuntap queues. Histrocially there're two reasons which prevent us from doing this: - We store the hash buckets in tun_struct which results a very large size of tun_struct, this high order memory allocation fail easily when the memory were

[net-next rfc 1/3] net: avoid high order memory allocation for queues by using flex array

2013-06-18 Thread Jason Wang
Currently, we use kcalloc to allocate rx/tx queues for a net device which could be easily lead to a high order memory allocation request when initializing a multiqueue net device. We can simply avoid this by switching to use flex array which always allocate at order zero. Signed-off-by: Jason

linux-next: manual merge of the driver-core tree with the driver-core.current tree

2013-06-18 Thread Stephen Rothwell
Hi Greg, Today's linux-next merge of the driver-core tree got a conflict in drivers/base/firmware_class.c between commit 875979368eb4 ("firmware loader: fix use-after-free by double abort") from the driver-core.current tree and commit fe304143b0c3 ("firmware: Avoid deadlock of usermodehelper lock

Re: [PATCH 1/2] perf/Power7: Save dcache_src fields in sample record.

2013-06-18 Thread Sukadev Bhattiprolu
Michael Neuling [mi...@neuling.org] wrote: | Suka, | | One of these two patches breaks pmac32_defconfig and I suspect all other | 32 bit configs (against mainline) | | arch/powerpc/perf/core-book3s.c: In function 'record_and_restart': | arch/powerpc/perf/core-book3s.c:1632:4: error: passing

[PATCH v7] Cpufreq: Fix governor start/stop race condition

2013-06-18 Thread Xiaoguang Chen
Cpufreq governor's stop and start operation should be kept in sequence. If not, there will be unexpected behavior, for example: There are 4 CPUs and policy->cpu=CPU0, CPU1/2/3 are linked to CPU0. The normal sequence is as below: 1) Current governor is userspace, One application tries to set

[PATCH v3] extcon: Add an API to get extcon device from dt node

2013-06-18 Thread Chanwoo Choi
From: Kishon Vijay Abraham I Added an API of_extcon_get_extcon_dev() to be used by drivers to get extcon device in the case of dt boot (this can be used instead of extcon_get_extcon_dev()). Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Chanwoo Choi Signed-off-by: Myungjoo Ham ---

Re: [PATCH v6] Cpufreq: Fix governor start/stop race condition

2013-06-18 Thread Xiaoguang Chen
2013/6/19 Viresh Kumar : > On 19 June 2013 10:45, Xiaoguang Chen wrote: >> 2013/6/19 Viresh Kumar : >>> On 19 June 2013 07:13, Xiaoguang Chen wrote: There are 4 CPUs and policy->cpu=cpu0, cpu1/2/3 are linked to cpu0. The normal sequence is as below: >>> >>> I thought Rafael asked to

Re: [PATCH] mm: fix up a spurious page fault whenever it happens

2013-06-18 Thread Linus Torvalds
On Tue, Jun 18, 2013 at 9:13 AM, Stanislav Meduna wrote: > > No crash in 2 days running with preempt none... Is this UP? There's the fast_tlb race that Peter fixed in commit 29eb77825cc7 ("arch, mm: Remove tlb_fast_mode()"). I'm not seeing how it would cause infinite TLB faults, but it

Re: [BUGFIX v2 0/4] fix bug 56531, 59501 and 59581

2013-06-18 Thread Alexander E. Patrakov
2013/6/19 Rafael J. Wysocki : > OK, let's try to untangle this a bit. > > If you applyt patches [1/4] and [4/4] from the $subject series only, what > does remain unfixed? [not tested, can do so in 12 hours if needed] I think there will be problems on undocking and/or on the second docking, as

Re: [PATCH v6] Cpufreq: Fix governor start/stop race condition

2013-06-18 Thread Viresh Kumar
On 19 June 2013 10:45, Xiaoguang Chen wrote: > 2013/6/19 Viresh Kumar : >> On 19 June 2013 07:13, Xiaoguang Chen wrote: >>> There are 4 CPUs and policy->cpu=cpu0, cpu1/2/3 are linked to cpu0. >>> The normal sequence is as below: >> >> I thought Rafael asked to write cpu0 as CPU0, ... > > I

Re: Question regarding put_prev_task in preempted condition

2013-06-18 Thread Lei Wen
Hi Peter, On Tue, Jun 18, 2013 at 5:55 PM, Peter Zijlstra wrote: > On Sun, Jun 09, 2013 at 11:59:36PM +0800, Lei Wen wrote: >> Hi Peter, >> >> While I am checking the preempt related code, I find a interesting part. >> That is when preempt_schedule is called, for its preempt_count be added >>

Re: [PATCH v6] Cpufreq: Fix governor start/stop race condition

2013-06-18 Thread Xiaoguang Chen
2013/6/19 Viresh Kumar : > On 19 June 2013 07:13, Xiaoguang Chen wrote: >> There are 4 CPUs and policy->cpu=cpu0, cpu1/2/3 are linked to cpu0. >> The normal sequence is as below: > > I thought Rafael asked to write cpu0 as CPU0, ... I changed "cpus" to "CPUs" as Rafael suggested(Please spell

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

2013-06-18 Thread Benjamin Herrenschmidt
On Wed, 2013-06-19 at 13:05 +0930, Rusty Russell wrote: > symbol_get() won't try to load a module; it'll just fail. This is what > you want, since they must have vfio in the kernel to get a valid fd... Ok, cool. I suppose what we want here Alexey is slightly higher level, something like:

Re: [PATCH 2/2] clk: exynos4: Add alias for cpufreq related clocks

2013-06-18 Thread Tushar Behera
On 06/17/2013 10:20 AM, Tushar Behera wrote: > On 06/11/2013 12:23 AM, Tomasz Figa wrote: >> On Monday 10 of June 2013 09:13:11 Tushar Behera wrote: >>> On 06/08/2013 05:20 PM, Tomasz Figa wrote: On Thursday 06 of June 2013 16:52:28 Tushar Behera wrote: > > [ ... ] > >

[PATCH] fs/jbd2: t_updates should increase when start_this_handle() failed in jbd2__journal_restart()

2013-06-18 Thread Younger Liu
jbd2_journal_restart() would restart a handle. In this function, it calls start_this_handle(). Before calling start_this_handle(),subtract 1 from transaction->t_updates. If start_this_handle() succeeds, transaction->t_updates increases by 1 in it. But if start_this_handle() fails,

[PATCH Resend 1/2] drivers: uio_dmem_genirq: Use of_match_ptr() macro

2013-06-18 Thread Sachin Kamat
This eliminates having an #ifdef returning NULL for the case when OF is disabled. Signed-off-by: Sachin Kamat Acked-by: Damian Hobson-Garcia --- This series is based on linux-next (next-20130618) and is compile tested. --- drivers/uio/uio_dmem_genirq.c |4 +--- 1 file changed, 1 insertion

[PATCH Resend 2/2] drivers: uio_pdrv_genirq: Use of_match_ptr() macro

2013-06-18 Thread Sachin Kamat
This eliminates having an #ifdef returning NULL for the case when OF is disabled. Signed-off-by: Sachin Kamat --- drivers/uio/uio_pdrv_genirq.c |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/uio/uio_pdrv_genirq.c b/drivers/uio/uio_pdrv_genirq.c index

Re: [PATCH] ACPI / PM: Fix error code path for power resources initialization

2013-06-18 Thread Yasuaki Ishimatsu
2013/06/18 7:37, Rafael J. Wysocki wrote: From: Rafael J. Wysocki Commit 781d737 (ACPI: Drop power resources driver) introduced a bug in the power resources initialization error code path causing a NULL pointer to be referenced in acpi_release_power_resource() if there's an error triggering a

Re: [PATCH] ACPI: Remove the use of CONFIG_ACPI_HOTPLUG_MEMORY_MODULE

2013-06-18 Thread Yasuaki Ishimatsu
2013/06/19 6:06, Toshi Kani wrote: > config ACPI_HOTPLUG_MEMORY has been changed to bool (y/n), and > its module option is no longer valid. So, remove the use of > CONFIG_ACPI_HOTPLUG_MEMORY_MODULE. > > Signed-off-by: Toshi Kani > --- > include/linux/acpi.h |3 +-- > 1 file changed, 1

RE: [PATCH 3.9-stable] ARM: tegra30: clocks: Fix pciex clock registration

2013-06-18 Thread Jay Agarwal
+Stephen to suggest > -Original Message- > From: Jonghwan Choi [mailto:jhbird.c...@samsung.com] > Sent: Wednesday, June 19, 2013 5:49 AM > To: 'Jonghwan Choi'; linux-kernel@vger.kernel.org > Cc: sta...@vger.kernel.org; Jay Agarwal > Subject: [PATCH 3.9-stable] ARM: tegra30: clocks: Fix

Re: [PATCH 1/2] perf/Power7: Save dcache_src fields in sample record.

2013-06-18 Thread Michael Neuling
Suka, One of these two patches breaks pmac32_defconfig and I suspect all other 32 bit configs (against mainline) arch/powerpc/perf/core-book3s.c: In function 'record_and_restart': arch/powerpc/perf/core-book3s.c:1632:4: error: passing argument 1 of 'ppmu->get_mem_data_src' from incompatible

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

2013-06-18 Thread Minchan Kim
Hello Dhaval, On Tue, Jun 18, 2013 at 12:59:02PM -0400, Dhaval Giani wrote: > On 2013-06-18 12:11 AM, Minchan Kim wrote: > >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

Re: [PATCH 8/8] vrange: Send SIGBUS when user try to access purged page

2013-06-18 Thread Minchan Kim
On Tue, Jun 11, 2013 at 09:22:51PM -0700, John Stultz wrote: > From: Minchan Kim > > By vrange(2) semantic, user should see SIGBUG if he try to access > purged page without vrange(...VRANGE_NOVOLATILE). > > This patch implements it. > > XXX: I reused PSE bit for quick prototype without enough

Re: [PATCH 7/8] vrange: Add method to purge volatile ranges

2013-06-18 Thread Minchan Kim
On Tue, Jun 11, 2013 at 09:22:50PM -0700, John Stultz wrote: > From: Minchan Kim > > This patch adds discarding function to purge volatile ranges under > memory pressure. Logic is as following: > > 1. Memory pressure happens > 2. VM start to reclaim pages > 3. Check the page is in volatile

Re: [PATCH 2/2] perf: Add support for the mem_xlvl field.

2013-06-18 Thread Michael Neuling
Sukadev Bhattiprolu wrote: > From 9f1a8a16e0ef36447e343d1cd4797c2b6a81225f Mon Sep 17 00:00:00 2001 > From: Sukadev Bhattiprolu > Date: Fri, 7 Jun 2013 13:26:31 -0700 > Subject: [PATCH 2/2] perf: Add support for the mem_xlvl field. > > A follow-on patch to adding perf_mem_data_src support for

Re: Regression in RCU subsystem in latest mainline kernel

2013-06-18 Thread Paul E. McKenney
On Mon, Jun 17, 2013 at 05:42:13PM +1000, Michael Ellerman wrote: > On Sat, Jun 15, 2013 at 12:02:21PM +1000, Benjamin Herrenschmidt wrote: > > On Fri, 2013-06-14 at 17:06 -0400, Steven Rostedt wrote: > > > I was pretty much able to reproduce this on my PA Semi PPC box. Funny > > > thing is, when

[PATCH] kernel/kthread.c: need spin_lock_irq() for 'worker' before main looping, since it can "WARN_ON(worker->task)".

2013-06-18 Thread Chen Gang
Since "WARN_ON(worker->task)", we can not assume that 'worker->task' will be NULL before set 'current' to it. So need let 'worker' lock protected too, just like it already lock protected all time in main looping. Signed-off-by: Chen Gang --- kernel/kthread.c |2 ++ 1 files changed, 2

linux-next: manual merge of the block tree with the cgroup tree

2013-06-18 Thread Stephen Rothwell
Hi Jens, Today's linux-next merge of the block tree got a conflict in include/linux/cgroup.h between commit f63674fd0d6a ("cgroup: update sane_behavior documentation") from the cgroup tree and commit 9138125beabb ("blk-throttle: implement proper hierarchy support") from the block tree. I fixed

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

2013-06-18 Thread Rusty Russell
Alex Williamson writes: > 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

Re: [PATCH percpu/for-3.11 1/2] percpu-refcount: add __must_check to percpu_ref_init() and don't use ACCESS_ONCE() in percpu_ref_kill_rcu()

2013-06-18 Thread Rusty Russell
Tejun Heo writes: > Two small changes. > > * Unlike most init functions, percpu_ref_init() allocates memory and > may fail. Let's mark it with __must_check in case the caller > forgets. But it's quite OK to ignore OOM errors in builtin init functions. It would be neatest to have it fail

[PATCH] drivers: hv: allocate synic structures before hv_synic_init()

2013-06-18 Thread Jason Wang
We currently allocate synic structures in hv_sync_init(), but there's no way for the driver to know about the allocation failure and it may continue to use the uninitialized pointers. Solve this by introducing helpers for allocating and freeing and doing the allocation before the on_each_cpu()

Re: [PATCH v5] cpufreq: fix governor start/stop race condition

2013-06-18 Thread Xiaoguang Chen
2013/6/19 Viresh Kumar : > On 19 June 2013 08:43, Viresh Kumar wrote: >> On 19 June 2013 06:50, Xiaoguang Chen wrote: >>> 2013/6/19 Rafael J. Wysocki : >> > 2) Current governor is userspace, now cpu0 hotplugs in cpu3, it will Can you please tell me what the above is supposed to

Re: [PATCH V2] USB: initialize or shutdown PHY when add or remove host controller

2013-06-18 Thread Chao Xie
On Wed, Jun 19, 2013 at 10:48 AM, Greg KH wrote: > On Tue, Jun 18, 2013 at 10:31:20PM -0400, Chao Xie wrote: >> Some controller need software to initialize PHY before add >> host controller, and shut down PHY after remove host controller. >> Add the generic code for these controllers so they do

[PATCH] Acpi: acpica: acmacros: fixed a semicolon formatting issue.

2013-06-18 Thread John B. Wyatt IV
From: "John B. Wyatt IV" Formatting patch: fixes all "space required after that ';'" errors in acmarcos.h. Please note this only fixes 12 out of 64 errors as reported by ./scripts/checkpatch.pl --- drivers/acpi/acpica/acmacros.h | 24 1 file changed, 12 insertions(+),

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

2013-06-18 Thread Alexey Kardashevskiy
On 06/16/2013 02:39 PM, Benjamin Herrenschmidt wrote: >> static pte_t kvmppc_lookup_pte(pgd_t *pgdir, unsigned long hva, bool >> writing, >> -unsigned long *pte_sizep) >> +unsigned long *pte_sizep, bool do_get_page) >> { >> pte_t *ptep; >>

Re: [PATCH v6] Cpufreq: Fix governor start/stop race condition

2013-06-18 Thread Viresh Kumar
On 19 June 2013 07:13, Xiaoguang Chen wrote: > There are 4 CPUs and policy->cpu=cpu0, cpu1/2/3 are linked to cpu0. > The normal sequence is as below: I thought Rafael asked to write cpu0 as CPU0, ... -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

[PATCH] include/linux/spinlock_api_smp.h: beautify code, correct the related comments.

2013-06-18 Thread Chen Gang
Correct the related comments for '#ifdef ... #endif'. Signed-off-by: Chen Gang --- include/linux/spinlock_api_smp.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/spinlock_api_smp.h b/include/linux/spinlock_api_smp.h index 51df117..bdb9993 100644 ---

Re: [PATCH v5] cpufreq: fix governor start/stop race condition

2013-06-18 Thread Viresh Kumar
On 19 June 2013 08:43, Viresh Kumar wrote: > On 19 June 2013 06:50, Xiaoguang Chen wrote: >> 2013/6/19 Rafael J. Wysocki : > 2) Current governor is userspace, now cpu0 hotplugs in cpu3, it will >>> >>> Can you please tell me what the above is supposed to mean? Is it supposed >>> to >>>

Re: [PATCH v5] cpufreq: fix governor start/stop race condition

2013-06-18 Thread Viresh Kumar
On 19 June 2013 06:50, Xiaoguang Chen wrote: > 2013/6/19 Rafael J. Wysocki : >>> 2) Current governor is userspace, now cpu0 hotplugs in cpu3, it will >> >> Can you please tell me what the above is supposed to mean? Is it supposed to >> mean "the online of cpu3 is being run on cpu0" or something

[no subject]

2013-06-18 Thread MERCEDES BENZ COMPANY
Did you receive Our last E-mail?. -- 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 http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH v5] cpufreq: fix governor start/stop race condition

2013-06-18 Thread Viresh Kumar
On 19 June 2013 06:50, Xiaoguang Chen wrote: > 2013/6/19 Rafael J. Wysocki : >> On Thursday, June 13, 2013 05:01:58 PM Xiaoguang Chen wrote: >>> cpufreq governor stop and start should be kept in sequence. >>> If not, there will be unexpected behavior, for example: >>> >>> we have 4 cpus and

[PATCH] kernel/timer.c: using spin_lock_irqsave instead of spin_lock + local_irq_save, especially when CONFIG_LOCKDEP not defined

2013-06-18 Thread Chen Gang
When CONFIG_LOCKDEP is not defined, spin_lock_irqsave() is not equal to spin_lock() + local_irq_save(). In __mod_timer(), After call spin_lock_irqsave() with 'base->lock' in lock_timer_base(), it may use spin_lock() with the 'new_base->lock'. It may let original call do_raw_spin_lock_flags()

Re: [Part3 PATCH v2 0/4] Support hot-remove local pagetable pages.

2013-06-18 Thread Yasuaki Ishimatsu
2013/06/19 8:59, Toshi Kani wrote: On Tue, 2013-06-18 at 19:05 +0200, Vasilis Liaskovitis wrote: Hi, On Thu, Jun 13, 2013 at 09:03:52PM +0800, Tang Chen wrote: The following patch-set from Yinghai allocates pagetables to local nodes. v1: https://lkml.org/lkml/2013/3/7/642 v2:

Re: [PATCH] pci: Enable overrides for missing ACS capabilities

2013-06-18 Thread Bjorn Helgaas
On Tue, Jun 18, 2013 at 5:03 PM, Don Dutile wrote: > On 06/18/2013 06:22 PM, Alex Williamson wrote: >> >> On Tue, 2013-06-18 at 15:31 -0600, Bjorn Helgaas wrote: >>> >>> On Tue, Jun 18, 2013 at 12:20 PM, Alex Williamson >>> wrote: On Tue, 2013-06-18 at 11:28 -0600, Bjorn Helgaas

[PATCH -next] dlm: remove duplicated include from lowcomms.c

2013-06-18 Thread Wei Yongjun
From: Wei Yongjun Remove duplicated include. Signed-off-by: Wei Yongjun --- fs/dlm/lowcomms.c | 1 - 1 file changed, 1 deletion(-) diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c index 4f539dd..d90909e 100644 --- a/fs/dlm/lowcomms.c +++ b/fs/dlm/lowcomms.c @@ -52,7 +52,6 @@ #include

Re: [PATCH V2] USB: initialize or shutdown PHY when add or remove host controller

2013-06-18 Thread Greg KH
On Tue, Jun 18, 2013 at 10:31:20PM -0400, Chao Xie wrote: > Some controller need software to initialize PHY before add > host controller, and shut down PHY after remove host controller. > Add the generic code for these controllers so they do not need > do it in its own host controller driver.

Re: [PATCH v3 0/6] KVM: MMU: fast invalidate all mmio sptes

2013-06-18 Thread Xiao Guangrong
On 06/18/2013 10:26 PM, Paolo Bonzini wrote: > Il 07/06/2013 10:51, Xiao Guangrong ha scritto: >> Changelog: >> V3: >> All of these changes are from Gleb's review: >> 1) rename RET_MMIO_PF_EMU to RET_MMIO_PF_EMULATE. >> 2) smartly adjust kvm generation number in kvm_current_mmio_generatio()

[PATCH -next] mfd: htc-egpio: use devm_ioremap_nocache() instead of ioremap_nocache()

2013-06-18 Thread Wei Yongjun
From: Wei Yongjun Replace probe-time ioremap_nocache() call with devm_ioremap_nocache() to avoid iounmap() missing and get rid of the corresponding iounmap() call on remove. Signed-off-by: Wei Yongjun --- drivers/mfd/htc-egpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH] vme: vme_tsi148.c: fix error return code in tsi148_probe()

2013-06-18 Thread Wei Yongjun
From: Wei Yongjun Fix to return a negative error code in the tsi148_crcsr_init() error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun --- drivers/vme/bridges/vme_tsi148.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH 1/1] arm: add bandgap DT entry for OMAP5

2013-06-18 Thread Eduardo Valentin
Add bandgap device DT entry for OMAP5 dtsi. Cc: "Benoît Cousson" Cc: Tony Lindgren Cc: Russell King Cc: linux-o...@vger.kernel.org Cc: devicetree-disc...@lists.ozlabs.org Cc: linux-arm-ker...@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Eduardo Valentin Signed-off-by: J

[PATCH V2] USB: initialize or shutdown PHY when add or remove host controller

2013-06-18 Thread Chao Xie
Some controller need software to initialize PHY before add host controller, and shut down PHY after remove host controller. Add the generic code for these controllers so they do not need do it in its own host controller driver. Signed-off-by: Chao Xie --- drivers/usb/core/hcd.c | 24

Tux3 Report: Meet Shardmap, the designated successor of HTree

2013-06-18 Thread Daniel Phillips
Greetings all, From time to time, one may fortunate enough to be blessed with a discovery in computer science that succeeds at improving all four of performance, scalability, reliability and simplicity. Of these normally conflicting goals, simplicity is usually the most elusive. It is

Re: [PATCH v2 1/2] pci: Fix flaw in pci_acs_enabled()

2013-06-18 Thread Bjorn Helgaas
On Tue, Jun 18, 2013 at 4:47 PM, Alex Williamson wrote: > On Tue, 2013-06-18 at 16:10 -0600, Bjorn Helgaas wrote: >> On Tue, Jun 18, 2013 at 12:38 PM, Alex Williamson >> wrote: >> > On Tue, 2013-06-18 at 11:09 -0600, Bjorn Helgaas wrote: >> >> On Fri, Jun 07, 2013 at 10:34:41AM -0600, Alex

[PATCH -next v2] Staging: netlogic: fix missing free_netdev() on error in xlr_net_probe()

2013-06-18 Thread Wei Yongjun
Fix missing free_netdev() before return from function xlr_net_probe() in the devm_ioremap_resource() error handling case. Signed-off-by: Wei Yongjun --- v1 -> v2: remove redundant error message. --- drivers/staging/netlogic/xlr_net.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)

[PATCHv4 1/6] thermal: ti-soc-thermal: use standard GPIO DT bindings

2013-06-18 Thread Eduardo Valentin
This change updates the ti-soc-thermal driver to use standard GPIO DT bindings to read the GPIO number associated to thermal shutdown IRQ, in case the device features it. Previously, the code was using a specific DT bindings. As now OMAP supports the standard way to model GPIOs, there is no point

[PATCH 2/3] drivers: gpio: msm: Fix the error condition for reading ngpio

2013-06-18 Thread Rohit Vaswani
of_property_read_u32 return 0 on success. The check was using a ! to return error. Fix the if condition. Signed-off-by: Rohit Vaswani --- drivers/gpio/gpio-msm-v2.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpio/gpio-msm-v2.c b/drivers/gpio/gpio-msm-v2.c

[PATCH 3/3] ARM: msm: Consolidate gpiomux for older architectures

2013-06-18 Thread Rohit Vaswani
Msm gpiomux can be used only for 7x30 and 8x50. Prevent compilation and fix build issues on 7X00, 8X60 and 8960. Signed-off-by: Rohit Vaswani --- arch/arm/mach-msm/Kconfig |3 +-- arch/arm/mach-msm/gpiomux-v1.c | 33 - arch/arm/mach-msm/gpiomux.h|

[PATCH 02/22] Audit: remove duplicate comments

2013-06-18 Thread Gao feng
Remove it. Signed-off-by: Gao feng --- kernel/audit.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/kernel/audit.c b/kernel/audit.c index ad3084c..843e7a2 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -1067,13 +1067,6 @@ static void wait_for_auditd(unsigned long sleep_time)

[PATCH 14/22] Audit: only allow init user namespace to change audit_failure

2013-06-18 Thread Gao feng
Setting audit_failure to AUDIT_FAIL_PANIC may cause system panic. We should disallow uninit user namesapce to change it. Signed-off-by: Gao feng --- kernel/audit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/audit.c b/kernel/audit.c index 306231d..79a8b8e 100644 ---

[PATCH 15/22] Audit: only allow init user namespace to change backlog_limit

2013-06-18 Thread Gao feng
Prevent un-init user namespace from generating lots of skb. Signed-off-by: Gao feng --- kernel/audit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/audit.c b/kernel/audit.c index 79a8b8e..297ac6e 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -303,6 +303,9 @@ static int

[PATCH 08/22] Audit: make kauditd_task per user namespace

2013-06-18 Thread Gao feng
This patch makes kauditd_task per user namespace, Since right now we only allow user in init user namesapce to send audit netlink message to kernel, so actually the kauditd_task belongs to other user namespace will still not run. Signed-off-by: Gao feng --- include/linux/audit.h | 1 +

[PATCH 06/22] Audit: make audit_skb_queue per user namespace

2013-06-18 Thread Gao feng
After this patch, ervery user namespace has one audit_skb_queue. Since we havn't finish the preparations, only allow user to operate the skb queue of init user namespace. Signed-off-by: Gao feng --- include/linux/audit.h | 4 include/linux/user_namespace.h | 2 ++ kernel/audit.c

[PATCH 1/3] ARM: msm: dts: Fix the gpio register address for msm8960

2013-06-18 Thread Rohit Vaswani
Fix the the gpio reg address for the device tree entry. Signed-off-by: Rohit Vaswani --- arch/arm/boot/dts/msm8960-cdp.dts |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/msm8960-cdp.dts b/arch/arm/boot/dts/msm8960-cdp.dts index db2060c..9c1167b0

[PATCH 11/22] Audit: make audit_ever_enabled per user namespace

2013-06-18 Thread Gao feng
We set audit_ever_enabled true after we enabled audit once. and if audit_ever_enabled is true, we will allocate audit context for task. We should decide if to allocate audit context for tasks based on if the audit is enabled once in the user namespace which the task belongs to. Signed-off-by:

[PATCH 05/22] Audit: implement audit self-defined compare function

2013-06-18 Thread Gao feng
After this patch, audit netlink sockets can communicate with each other when they belong to the same user namespace. Signed-off-by: Gao feng --- kernel/audit.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/kernel/audit.c b/kernel/audit.c index 11b56b7..a411b02 100644 ---

[PATCH 04/22] netlink: Add compare function for netlink_table

2013-06-18 Thread Gao feng
As we know, netlink sockets are private resource of net namespace, they can communicate with each other only when they in the same net namespace. this works well until we try to add namespace support for other subsystems which use netlink. Don't like ipv4 and route table.., it is not suited to

[PATCH 13/22] Audit: only allow init user namespace to change rate limit

2013-06-18 Thread Gao feng
Because We want to avoid the DoS attack caused by other user namespace,so don't make audit_rate_limit per user namespace. And only init user namespace has rights to change it. Signed-off-by: Gao feng --- kernel/audit.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/audit.c

[PATCH 17/22] Audit: make audit_backlog_wait per user namespace

2013-06-18 Thread Gao feng
Tasks are added to audit_backlog_wait when the audit_skb_queue of user namespace is full, so audit_backlog_wait should be per user namespace too. Signed-off-by: Gao feng --- include/linux/user_namespace.h | 1 + kernel/audit.c | 11 +-- 2 files changed, 6 insertions(+),

[PATCH 16/22] Audit: make kauditd_wait per user namespace

2013-06-18 Thread Gao feng
kauditd_task is added to the wait queue kaudit_wait when there is no audit message being generated in user namespace, so the kaudit_wait should be per user namespace too. Signed-off-by: Gao feng --- include/linux/user_namespace.h | 1 + kernel/audit.c | 36

[PATCH 12/22] Audit: make audit_initialized per user namespace

2013-06-18 Thread Gao feng
audit_initialized is used to identify if the audit related resources have been initialized. it should be per user namespace too. Signed-off-by: Gao feng --- include/linux/user_namespace.h | 1 + kernel/audit.c | 21 +++-- 2 files changed, 12 insertions(+), 10

Re: [PATCH] Btrfs: do not ignore errors when truncating the free space cache inode

2013-06-18 Thread Miao Xie
It was fixed by Wei Yongjun http://marc.info/?l=linux-btrfs=136910396606489=2 Thanks Miao On tue, 18 Jun 2013 22:57:41 +0100, Djalal Harouni wrote: > btrfs_check_trunc_cache_free_space() tries to check if there is enough > space for cache inode truncation but it fails. > > Currently this

[PATCH 03/22] Audit: make audit kernel side netlink sock per userns

2013-06-18 Thread Gao feng
This patch try to make the audit_sock per user namespace, not global. Since sock is assigned to net namespace, when creating a netns, we will allocate a audit_sock for the userns which create this netns, and this netns will keep alive until the creator userns being destroyed. If userns creates

[Part1 PATCH 00/22] Add namespace support for audit

2013-06-18 Thread Gao feng
This patchset is first part of namespace support for audit. in this patchset, the mainly resources of audit system have been isolated. the audit filter, rules havn't been isolated now. It will be implemented in Part2. We finished the isolation of user audit message in this patchset. I choose to

[PATCH 01/22] Audit: change type of audit_ever_enabled to bool

2013-06-18 Thread Gao feng
It's better to define audit_ever_enabled as bool. Signed-off-by: Gao feng --- kernel/audit.c | 2 +- kernel/audit.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/audit.c b/kernel/audit.c index 91e53d0..ad3084c 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@

[PATCH 19/22] Audit: pass proper user namespace to audit_log_common_recv_msg

2013-06-18 Thread Gao feng
The audit log that generated in user namespace should be received by the auditd running in this user namespace. Signed-off-by: Gao feng --- kernel/audit.c | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/kernel/audit.c b/kernel/audit.c index

[PATCH 0/3] ARM: MSM: Consolidate MSM gpiomux for 7X30 and 8X50

2013-06-18 Thread Rohit Vaswani
This series is based on David Brown's for-next branch git://git.kernel.org/pub/scm/linux/kernel/git/davidb/linux-msm.git for-next The previous gpio patches left some room for consolidation and required a few fixes. This patch provides the necessary patches to do that. Rohit Vaswani (3): ARM:

[PATCH 07/22] Audit: make audit_skb_hold_queue per user namespace

2013-06-18 Thread Gao feng
After this patch, ervery user namespace has one audit_skb_hold_queue. Since we havn't finish the preparations, only allow user to operate the skb hold queue of init user namespace. Signed-off-by: Gao feng --- include/linux/user_namespace.h | 1 + kernel/audit.c | 16

[PATCH 22/22] Audit: Allow GET,SET,USER MSG operations in uninit user namespace

2013-06-18 Thread Gao feng
After this patch, user can set/get audit informations in container, and they can also send user msg to the audit subsystem. Signed-off-by: Gao feng --- kernel/audit.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/kernel/audit.c b/kernel/audit.c index

[PATCH 20/22] Audit: Log audit config change in uninit user namespace

2013-06-18 Thread Gao feng
This patch allow to log audit config change in uninit user namespace. Signed-off-by: Gao feng --- kernel/audit.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/kernel/audit.c b/kernel/audit.c index 2d81aac..84a882c 100644 --- a/kernel/audit.c +++

[PATCH 18/22] Audit: introduce new audit logging interface for user namespace

2013-06-18 Thread Gao feng
This interface audit_log_start_ns and audit_log_end_ns will be used for logging audit logs in user namespace. Signed-off-by: Gao feng --- include/linux/audit.h | 25 -- kernel/audit.c| 95 ++- 2 files changed, 78 insertions(+),

[PATCH 21/22] Audit: send reply message to the auditd in proper user namespace

2013-06-18 Thread Gao feng
We can send the audit reply message to userspace auditd process which running in the same user namespace with the process which send the audit request message to kernel. Signed-off-by: Gao feng --- kernel/audit.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git

[PATCH 10/22] Audit: make audit_enabled per user namespace

2013-06-18 Thread Gao feng
This patch makes audit_enabled per user namespace, Right now,use audit_enabled of init user namespace to decide if audit is enabled no matter which user namespace we belong to. Signed-off-by: Gao feng --- include/linux/audit.h | 4 +++- include/linux/user_namespace.h | 1 +

[PATCH 09/22] Audit: make audit_nlk_portid per user namesapce

2013-06-18 Thread Gao feng
After this patch, audit_nlk_port is per user namespace. Just like prev patch does,use audit_nlk_portid of init user namespace in kauditd_send_skb. Signed-off-by: Gao feng --- include/linux/user_namespace.h | 1 + kernel/audit.c | 11 ++- 2 files changed, 3

[PATCH v6] Cpufreq: Fix governor start/stop race condition

2013-06-18 Thread Xiaoguang Chen
Cpufreq governor's stop and start operation should be kept in sequence. If not, there will be unexpected behavior, for example: There are 4 CPUs and policy->cpu=cpu0, cpu1/2/3 are linked to cpu0. The normal sequence is as below: 1) Current governor is userspace, One application tries to set

[PATCH] kvm api doc: fix section numbers

2013-06-18 Thread Alexey Kardashevskiy
Signed-off-by: Alexey Kardashevskiy --- Documentation/virtual/kvm/api.txt |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/virtual/kvm/api.txt b/Documentation/virtual/kvm/api.txt index 5f91eda..6365fef 100644 --- a/Documentation/virtual/kvm/api.txt

Re: linux-next: Tree for Jun 18 usb/chipidea)

2013-06-18 Thread Peter Chen
On Wed, Jun 19, 2013 at 4:12 AM, Felipe Balbi wrote: > Hi, > > On Tue, Jun 18, 2013 at 11:52:36AM -0700, Randy Dunlap wrote: >> On 06/18/13 00:30, Stephen Rothwell wrote: >> > Hi all, >> > >> > Changes since 20130617: >> > >> >> >> on i386: >> >> # CONFIG_USB_PHY is not set >> >>

Re: [PATCH v4 6/6] mm/pgtable: Don't accumulate addr during pgd prepopulate pmd

2013-06-18 Thread Zhang Yanfei
On 06/19/2013 07:52 AM, Wanpeng Li wrote: > Changelog: > v2 - > v3: >* add Michal's Reviewed-by > > The old codes accumulate addr to get right pmd, however, > currently pmds are preallocated and transfered as a parameter, > there is unnecessary to accumulate addr variable any more, this >

Re: [PATCH] Percpu tag allocator

2013-06-18 Thread Kent Overstreet
On Thu, Jun 13, 2013 at 12:23:39PM -0700, Andrew Morton wrote: > On Thu, 13 Jun 2013 12:15:07 -0700 Tejun Heo wrote: > > Oh, I'm sure the current id[r|a] can be improved upon a lot but I'm > > very skeptical one can reach the level of scalability necessary for, > > say, pci-e attached extremely

Re: [PATCH ] cgroup: rename cont to cgrp

2013-06-18 Thread Li Zefan
Hi Tejun, Could you apply this patch? On 2013/6/14 11:17, Li Zefan wrote: > Cont is short for container. control group was named process container > at first, but then people found container already has a meaning in > linux kernel. > > Clean up the leftover variable name @cont. > >

Re: [PATCH 2/4] ARM: dts: AM33XX: Add PWMSS device tree nodes

2013-06-18 Thread Benoit Cousson
Hi Sebastian, On 06/18/2013 08:36 AM, Sebastian Andrzej Siewior wrote: On 06/12/2013 06:40 PM, Felipe Balbi wrote: On Wed, Jun 12, 2013 at 06:10:32PM +0200, Sebastian Andrzej Siewior wrote: On 06/06/2013 03:52 PM, Sebastian Andrzej Siewior wrote: From: Philip Avinash Add PWMSS device tree

Re: [PATCH v4 0/9] memcg: make memcg's life cycle the same as cgroup

2013-06-18 Thread Li Zefan
Hi Andrew, any chance for this patchset to be queued for 3.11? On 2013/6/14 9:53, Li Zefan wrote: > Hi Andrew, > > All the patches in this patchset has been acked by Michal and Kamezawa-san, > and > it's ready to be merged into -mm. > > I have another pending patchset that kills css_id, which

Re: next-20130607 BUG: Bad page state in process systemd pfn:127643

2013-06-18 Thread Chen Gang
Hello Valdis: Could you delete the patch: (8094dd4 mm/page_alloc.c: add additional checking and return value for the 'table->data') and try it again to see whether still has this issue ? If no issue any more, it means I cause this issue directly, and I should continue to analyze it to find the

  1   2   3   4   5   6   7   8   9   10   >