Re: [PATCHv2] mm/slub: fix lockups on PREEMPT && !SMP kernels

2015-03-17 Thread Joonsoo Kim
2015-03-17 21:15 GMT+09:00 Mark Rutland : > Commit 9aabf810a67cd97e ("mm/slub: optimize alloc/free fastpath by > removing preemption on/off") introduced an occasional hang for kernels > built with CONFIG_PREEMPT && !CONFIG_SMP. > > The problem is the following loop the patch introduced to >

Re: [PATCH] checkpatch: match more world writable permissions

2015-03-17 Thread Joe Perches
On Tue, 2015-03-17 at 16:17 -0700, Andrew Morton wrote: > --- > a/scripts/checkpatch.pl~checkpatch-match-more-world-writable-permissions-fix [] > -$our $mode_perms_world_writable = qr{ > +our $mode_perms_world_writable = qr{ You're a perl monk too? Cool! Thanks. -- To unsubscribe from this

Re: [PATCH 2/3] mm/vmalloc: occupy newly allocated vmap block just after allocation

2015-03-17 Thread Joonsoo Kim
2015-03-13 21:12 GMT+09:00 Roman Pen : > Previous implementation allocates new vmap block and repeats search of a free > block from the very beginning, iterating over the CPU free list. > > Why it can be better?? > > 1. Allocation can happen on one CPU, but search can be done on another CPU. >

Re: [PATCH 3/3] mm/vmalloc: get rid of dirty bitmap inside vmap_block structure

2015-03-17 Thread Joonsoo Kim
2015-03-13 21:12 GMT+09:00 Roman Pen : > In original implementation of vm_map_ram made by Nick Piggin there were two > bitmaps: alloc_map and dirty_map. None of them were used as supposed to be: > finding a suitable free hole for next allocation in block. vm_map_ram > allocates > space

[PATCH v2 1/3] mfd: provide RTC resource in MT6397 MFD

2015-03-17 Thread Eddie Huang
Provide MT6397 RTC interrupt, base address, and register in MT6397 MFD. Signed-off-by: Eddie Huang --- drivers/mfd/mt6397-core.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/mfd/mt6397-core.c b/drivers/mfd/mt6397-core.c index b61c4eb..ef431d8 100644 ---

[PATCH v2 3/3] MAINTAINERS: add Mediatek RTC driver

2015-03-17 Thread Eddie Huang
Add Mediatek RTC driver to maintainer entry. Signed-off-by: Eddie Huang --- MAINTAINERS | 7 +++ 1 file changed, 7 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index ddc5a8c..ca27a69 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -1202,6 +1202,13 @@ W:

[PATCH v2 2/3] rtc: mediatek: Add MT6397 RTC driver

2015-03-17 Thread Eddie Huang
From: Tianping Fang Add Mediatek MT6397 RTC driver Signed-off-by: Tianping Fang Signed-off-by: Eddie Huang --- drivers/rtc/Kconfig | 10 ++ drivers/rtc/Makefile | 1 + drivers/rtc/rtc-mt6397.c | 454 +++ 3 files changed, 465

[PATCH v2 0/3] Add Mediatek SoC RTC driver

2015-03-17 Thread Eddie Huang
RTC is one submodule of Mediatek MT6397 PMIC chip[1]. This series support RTC driver that work with Mediatek SoC like MT8135, MT8173. It implements second counter and also provide alarm function. This series base on 4.0-rc1, and Sascha's PMIC mfd patch[2]. Test ok on MT8173 platform. [1]

[PATCH v6 1/6] clk: iproc: define Broadcom iProc clock binding

2015-03-17 Thread Ray Jui
Document the device tree binding for Broadcom iProc architecture based clock controller Signed-off-by: Ray Jui Reviewed-by: Scott Branden --- .../bindings/clock/brcm,iproc-clocks.txt | 171 1 file changed, 171 insertions(+) create mode 100644

[PATCH v6 2/6] clk: iproc: add initial common clock support

2015-03-17 Thread Ray Jui
This adds basic and generic support for various iProc PLLs and clocks including the ARMPLL, GENPLL, LCPLL, MIPIPLL, and ASIU clocks. SoCs under the iProc architecture can define their specific register offsets and clock parameters for their PLL and clock controllers. These parameters can be

[PATCH v6 6/6] clk: cygnus: remove Cygnus dummy clock binding

2015-03-17 Thread Ray Jui
Remove old Cygnus dummy clock binding document, as it's replaced by Documentation/devicetree/bindings/clock/brcm,iproc-clocks.txt Signed-off-by: Ray Jui --- .../devicetree/bindings/clock/bcm-cygnus-clock.txt | 34 1 file changed, 34 deletions(-) delete mode 100644

[PATCH v6 5/6] ARM: dts: enable clock support for Broadcom Cygnus

2015-03-17 Thread Ray Jui
Replace current device tree dummy clocks with real clock support for Broadcom Cygnus SoC Signed-off-by: Ray Jui Reviewed-by: Scott Branden --- arch/arm/boot/dts/bcm-cygnus-clock.dtsi | 112 --- arch/arm/boot/dts/bcm-cygnus.dtsi |2 +- 2 files changed, 88

[PATCH v6 4/6] clk: cygnus: add clock support for Broadcom Cygnus

2015-03-17 Thread Ray Jui
The Broadcom Cygnus SoC is architected under the iProc architecture. It has the following PLLs: ARMPLL, GENPLL, LCPLL0, MIPIPLL, all dervied from an onboard crystal. Cygnus also has various ASIU clocks that are derived directly from the onboard crystal. Signed-off-by: Ray Jui Reviewed-by: Scott

[PATCH v6 0/6] Add common clock support for Broadcom iProc architecture

2015-03-17 Thread Ray Jui
This patchset contains the initial common clock support for Broadcom's iProc family of SoCs. The iProc clock architecture comprises of various PLLs, e.g., ARMPLL, GENPLL, LCPLL0, MIPIPLL, and etc. An onboard crystal serves as the basic reference clock for these PLLs. Each PLL may have several leaf

[PATCH v6 3/6] clk: Change bcm clocks build dependency

2015-03-17 Thread Ray Jui
The clock code under drivers/clk/bcm now contains code for both the Broadcom mobile SoCs and the iProc SoCs. Change the the makefile dependency to be under config flag CONFIG_ARCH_BCM that's enabled for both families of SoCs Signed-off-by: Ray Jui --- drivers/clk/Makefile |2 +- 1 file

Re:Re: [PATCH V2] gpio: mmp: add GPIO driver for Marvell MMP series

2015-03-17 Thread Chao Xie
At 2015-03-17 18:25:24, "Linus Walleij" wrote: >On Fri, Mar 6, 2015 at 3:04 AM, Chao Xie wrote: > >> Signed-off-by: Chao Xie > >First can some of the MMP people comment on this driver please? >(Eric/Haojian) > >So this driver duplicates drivers/gpio/gpio-pxa.c in some sense but >is nicer and

Re: [PATCH] vfs: avoid recopying filename in getname_flags

2015-03-17 Thread Boqun Feng
On Fri, Mar 13, 2015 at 09:45:59AM -0400, Paul Moore wrote: > On Monday, March 09, 2015 04:24:32 PM Boqun Feng wrote: > > Ping. > > Any opinion? > > You might want to look at some of the recent changes to Al's vfs.git#for-next > branch; at the very least it looks like your patch should be

Crypto Fixes for 4.0

2015-03-17 Thread Herbert Xu
Hi Linus: On Mon, Mar 09, 2015 at 04:19:50PM +1100, Herbert Xu wrote: > > This push fixes a bug in the ARM XTS implementation that can > cause failures to in decrypting encrypted disks. For some reason this didn't get pulled so I'm resending it with another fix. The new fix is a memory

Re: [PATCH v6 5/8] PM / devfreq: tegra: remove operating-points

2015-03-17 Thread MyungJoo Ham
> As the DT bindings don't have an operating-points property any more, > build the OPP table from the frequencies supported by the EMC clock. > > Signed-off-by: Tomeu Vizoso > --- > drivers/devfreq/tegra-devfreq.c | 12 ++-- > 1 file changed, 6 insertions(+), 6 deletions(-) > > diff

[PATCH] hwrng: core - allow perfect entropy from hardware devices

2015-03-17 Thread Keith Packard
Hardware random number quality is measured from 0 (no entropy) to 1024 (perfect entropy). Allow hardware devices to assert the full range by truncating the device-provided value at 1024 instead of 1023. Signed-off-by: Keith Packard --- drivers/char/hw_random/core.c | 3 ++- 1 file changed, 2

Re: [PATCH] hwrng: core - allow perfect entropy from hardware devices

2015-03-17 Thread Herbert Xu
On Tue, Mar 17, 2015 at 10:13:28PM -0700, Keith Packard wrote: > Hardware random number quality is measured from 0 (no entropy) to 1024 > (perfect entropy). Allow hardware devices to assert the full range by > truncating the device-provided value at 1024 instead of 1023. > > Signed-off-by: Keith

Re: [PATCH v6 0/8] Add support for Tegra Activity Monitor

2015-03-17 Thread MyungJoo Ham
> Hello, > > something happened during the last cycle and an old version of the devfreq > driver was merged. > > This thread contains patches that bring it up to date to the last submitted > version and also incorporates the feedback that that version received, plus > some other small fixes and

Re: [PATCH 1/3] mm/vmalloc: fix possible exhaustion of vmalloc space caused by vm_map_ram allocator

2015-03-17 Thread Joonsoo Kim
2015-03-18 6:58 GMT+09:00 Andrew Morton : > On Tue, 17 Mar 2015 17:22:46 +0900 Roman Peniaev wrote: > >> >> My second patch fixes this problem. >> >> I occupy the block on allocation and avoid jumping to the search loop. >> > >> > I'm not sure that this fixes above case. >> > 'vm_map_ram (3) *

Re: [PATCH 1/3] mm/vmalloc: fix possible exhaustion of vmalloc space caused by vm_map_ram allocator

2015-03-17 Thread Joonsoo Kim
2015-03-17 17:22 GMT+09:00 Roman Peniaev : > On Tue, Mar 17, 2015 at 4:29 PM, Joonsoo Kim wrote: >> On Tue, Mar 17, 2015 at 02:12:14PM +0900, Roman Peniaev wrote: >>> On Tue, Mar 17, 2015 at 1:56 PM, Joonsoo Kim wrote: >>> > On Fri, Mar 13, 2015 at 09:12:55PM +0900, Roman Pen wrote: >>> >> If

Re: [PATCH] tpm: fix: sanitized code paths in tpm_chip_register()

2015-03-17 Thread Jarkko Sakkinen
Resending v2 soon. This version was from wrong branch :( Sorry. On Wed, Mar 18, 2015 at 06:50:01AM +0200, Jarkko Sakkinen wrote: > I started to work with PPI interface so that it would be available > under character device sysfs directory and realized that chip > registeration was still too

[PATCH] rtmutex: Cleanup the variable's name in rt_mutex_adjust_prio_chain

2015-03-17 Thread Tom(JeHyeon) Yeon
From: "Tom(JeHyeon) Yeon" change "deadlock_detect" to "chwalk" following by commit 8930ed80 Signed-off-by: Tom(JeHyeon) Yeon --- kernel/locking/rtmutex.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/locking/rtmutex.c b/kernel/locking/rtmutex.c index

performance changes on d4b4c2cd: 37.6% fsmark.files_per_sec, -15.9% fsmark.files_per_sec, and few more

2015-03-17 Thread Yuanahn Liu
Hi, FYI, we noticed performance changes on `fsmark.files_per_sec' by d4b4c2cdffab86f5c7594c44635286a6d277d5c6: > commit d4b4c2cdffab86f5c7594c44635286a6d277d5c6 > Author: s...@kernel.org > AuthorDate: Mon Dec 15 12:57:03 2014 +1100 > Commit: NeilBrown > CommitDate:

performance changes on 4400755e: 200.0% fsmark.files_per_sec, -18.1% fsmark.files_per_sec, and few more

2015-03-17 Thread Yuanahn Liu
Hi, FYI, we noticed performance changes on `fsmark.files_per_sec' by 4400755e356f9a2b0b7ceaa02f57b1c7546c3765: > commit 4400755e356f9a2b0b7ceaa02f57b1c7546c3765 > Author: NeilBrown > AuthorDate: Thu Feb 26 12:47:56 2015 +1100 > Commit: NeilBrown > CommitDate: Wed

Re: [RFC, v2] powerpc/powernv: Introduce kernel param to control fastsleep workaround behavior

2015-03-17 Thread Michael Ellerman
On Tue, 2015-03-17 at 21:19 +0530, Shreyas B Prabhu wrote: > > On Tuesday 17 March 2015 03:09 PM, Benjamin Herrenschmidt wrote: > > On Tue, 2015-03-17 at 19:57 +1100, Michael Ellerman wrote: > >> > >> >From what I can see below, the decision as to whether you apply the > >> >workaround > >> or

[PATCH] tpm: fix: sanitized code paths in tpm_chip_register()

2015-03-17 Thread Jarkko Sakkinen
I started to work with PPI interface so that it would be available under character device sysfs directory and realized that chip registeration was still too messy. In TPM 1.x in some rare scenarios (errors that almost never occur) wrong order in deinitialization steps was taken in teardown. I

Re: [PATCH] Revert "of: Fix premature bootconsole disable with 'stdout-path'"

2015-03-17 Thread Michael Ellerman
On Tue, 2015-03-17 at 16:46 -0400, Peter Hurley wrote: > This reverts commit 2fa645cb2703d9b3786d850db815414dfeefa51d. > > The assumption that at least 1 preferred console will be registered > when the stdout-path property is set is invalid, which can result > in _no_ consoles. > >

[PATCH 3/4 V5] workqueue: Create low-level unbound workqueues cpumask

2015-03-17 Thread Lai Jiangshan
From: Frederic Weisbecker Create a cpumask that limit the affinity of all unbound workqueues. This cpumask is controlled though a file at the root of the workqueue sysfs directory. It works on a lower-level than the per WQ_SYSFS workqueues cpumask files such that the effective cpumask applied

[PATCH 2/4 V5] workqueue: split apply_workqueue_attrs() into 3 stages

2015-03-17 Thread Lai Jiangshan
Current apply_workqueue_attrs() includes pwqs-allocation and pwqs-installation, so when we batch multiple apply_workqueue_attrs()s as a transaction, we can't ensure the transaction must succeed or fail as a complete unit. To solve this, we split apply_workqueue_attrs() into three stages. The

[PATCH 0/4 V5] workqueue: Introduce low-level unbound wq sysfs cpumask v5

2015-03-17 Thread Lai Jiangshan
This patchset mostly copies from Frederic and split the apply_workqueue_attrs() as TJ's suggest. This patchset still doesn't include the patch "workqueue: Allow changing attributions of ordered workqueues", I hope to reduce the review processing. The handling for the ordered workqueue will be

[PATCH 4/4 V5] workqueue: Allow modifying low level unbound workqueue cpumask

2015-03-17 Thread Lai Jiangshan
Allow to modify the low-level unbound workqueues cpumask through sysfs. This is performed by traversing the entire workqueue list and calling wq_unbound_install_ctx_prepare() on the unbound workqueues with the low level mask passed in. Only after all the preparation are done, we commit them all

[PATCH 1/4 V5] workqueue: Reorder sysfs code

2015-03-17 Thread Lai Jiangshan
From: Frederic Weisbecker The sysfs code usually belongs to the botom of the file since it deals with high level objects. In the workqueue code it's misplaced and such that we'll need to work around functions references to allow the sysfs code to call APIs like apply_workqueue_attrs(). Lets

Re: [PATCH] Avoid null-pointer access in w1/slaves/w1_therm

2015-03-17 Thread David Fries
On Sat, Mar 14, 2015 at 11:55:16PM +0300, Evgeniy Polyakov wrote: > Hi David > > 12.03.2015, 03:54, "David Fries" : > > Would that be removing all four refcnt, w1_slave, w1_master, > > w1_family, w1_cb_block, or just some of them?  It sounds good to me, > > if that had bugs there would be much

Re: [PATCH] PM / devfreq: Fix faulty error message

2015-03-17 Thread MyungJoo Ham
> The misleading log "releasing devfreq which doesn't exist" prints out > for well behaved clients. This is due to the fact that _remove_devfreq > calls itself recursively by proxy (via put_device()). The second time > _devfreq_remove is called the respective device has already been > deleted,

linux-next: manual merge of the kvm-arm tree with Linus' tree

2015-03-17 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the kvm-arm tree got a conflict in virt/kvm/arm/vgic.c between commit ae705930fca6 ("arm/arm64: KVM: Keep elrsr/aisr in sync with software model") from Linus' tree and commit 71760950bf3d ("arm/arm64: KVM: add a common vgic_queue_irq_to_lr fn") from the kvm-arm

Re: [PATCH 1/1] UBIFS: fix incorrect unlocking handling

2015-03-17 Thread Taesoo Kim
Yes. The last commit that modifies 'ubifs/dir.c' (sorry for missing the context). All error handling routines introduced by 'd7f0b70d30ffb9bbe6b8a3e1035cf0b79965ef53' 1) incorrectly 'unlock' and 2) incorrectly restore 'i_size'. Thanks, Taesoo On 03/17/15 at 08:18pm, Brian Norris wrote: > On Tue,

Re: [PATCH 2/2] rtc: mediatek: Add MT63xx RTC driver

2015-03-17 Thread Eddie Huang
Hi Uwe, On Tue, 2015-03-17 at 14:43 +0100, Uwe Kleine-König wrote: > Hello Eddie, > > On Tue, Mar 17, 2015 at 08:31:14PM +0800, Eddie Huang wrote: > > On Mon, 2015-03-16 at 16:30 +0100, Uwe Kleine-König wrote: > > > On Wed, Jan 28, 2015 at 05:27:56PM +0800, Eddie Huang wrote: > > > > [...] > > >

[PATCH 3/3] ARM: sun8i: dt: Enable A23 SMP support

2015-03-17 Thread Chen-Yu Tsai
Add enable-method property to enable SMP support. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a23.dtsi | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a23.dtsi b/arch/arm/boot/dts/sun8i-a23.dtsi index 78440dffd678..b5684a0048b2 100644 ---

[PATCH 1/3] ARM: dts: sun8i: Enable ARM architected timer on A23

2015-03-17 Thread Chen-Yu Tsai
The A23 SoC has the architected timer, but the existing firmware from Allwinner does not set CNTFRQ at all. Signed-off-by: Chen-Yu Tsai --- arch/arm/boot/dts/sun8i-a23.dtsi | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-a23.dtsi

[PATCH 2/3] ARM: sun8i: Add SMP support for the Allwinner A23

2015-03-17 Thread Chen-Yu Tsai
The A23 is a dual Cortex-A7. Add the logic to use the IPs used to control the CPU configuration and the CPU power so that we can bring up secondary CPUs at boot. Signed-off-by: Chen-Yu Tsai --- We can't use of_io_request_and_map() here, as it will conflict with PRCM, and leave us without a

[PATCH 0/3] ARM: sun8i: Add SMP and arch-timer support for A23

2015-03-17 Thread Chen-Yu Tsai
Hi Maxime, This series adds support for SMP and arch-timer for the A23. This follows our discussion from yesterday about getting arch-timer support for sun8i and sun9i. I will post a separate patch for sun9i-a80. I know some people would like to see arch-timer and SMP supported with PSCI, but

Re: [PATCH 1/1] UBIFS: fix incorrect unlocking handling

2015-03-17 Thread Brian Norris
On Tue, Mar 17, 2015 at 10:09:26PM -0400, Taesoo Kim wrote: > When ubifs_init_security() fails, 'ui_mutex' is incorrectly > unlocked and incorrectly restores 'i_size'. There are four > such places that were introduce by the last commit. "The last commit" is not very descriptive. Are you speaking

Re: [PATCH V3 2/2 net-next] hyperv: Support batched notification

2015-03-17 Thread Jason Wang
On Wed, Mar 18, 2015 at 12:02 AM, K. Y. Srinivasan wrote: Optimize notifying the host by deferring notification until there are no more packets to be sent. This will help in batching the requests on the host. Signed-off-by: K. Y. Srinivasan --- drivers/net/hyperv/hyperv_net.h |2

Re: [PATCHv3 xfstests 2/3] generic: test openat and new O_BENEATH flag

2015-03-17 Thread Dave Chinner
On Tue, Mar 17, 2015 at 08:33:27AM -0700, Kees Cook wrote: > On Mon, Mar 16, 2015 at 4:24 PM, Dave Chinner > wrote: > > On Mon, Mar 09, 2015 at 02:00:11PM +, David Drysdale wrote: > >> Test basic openat(2) behaviour. > >> > >> Test that if O_BENEATH flag is set, openat() will only open > >>

[RFC V2] proc: change /proc/stat show

2015-03-17 Thread Wang, Yalin
This patch change /proc/stat to show each cpu, we show each present cpus instead of eacn online cpu, because some cpus are online / offline dynamically, we should also show its cputime even it is offline, some lib will read this file to detect cpu numbers, we should also return the real present

Re: Hit a deadlock: between AER and pcieport/pciehp

2015-03-17 Thread Bjorn Helgaas
[+cc Rafael] Hi Rajat, On Tue, Mar 17, 2015 at 2:11 PM, Rajat Jain wrote: > Hello, > > I was wondering if any one has a any suggestions to make here. I > believe this is a pretty serious deadlock - and I'm looking for ideas > on what should be the right way to fix this. I agree, this

RE: [f2fs-dev] [PATCH 2/4] f2fs: set buffer_new when new blocks are allocated

2015-03-17 Thread Chao Yu
Hi Jaegeuk, > -Original Message- > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > Sent: Wednesday, March 18, 2015 12:58 AM > To: linux-kernel@vger.kernel.org; linux-fsde...@vger.kernel.org; > linux-f2fs-de...@lists.sourceforge.net > Cc: Jaegeuk Kim > Subject: [f2fs-dev] [PATCH 2/4] f2fs:

[PATCH 1/1] UBIFS: fix incorrect unlocking handling

2015-03-17 Thread Taesoo Kim
When ubifs_init_security() fails, 'ui_mutex' is incorrectly unlocked and incorrectly restores 'i_size'. There are four such places that were introduce by the last commit. Signed-off-by: Taesoo Kim --- fs/ubifs/dir.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git

[PATCH 1/1] jbd2: fix incorrect unlock on j_list_lock

2015-03-17 Thread Taesoo Kim
When 'jh->b_transaction == transaction' (asserted by below) J_ASSERT_JH(jh, (jh->b_transaction == transaction || ... 'journal->j_list_lock' will be incorrectly unlocked, since the the lock is aquired only at the end of if / else-if statements (missing the else case). Signed-off-by: Taesoo Kim

Re: [PATCH] x86,boot: standardize strcmp()

2015-03-17 Thread Bernd Petrovitsch
On Die, 2015-03-17 at 19:43 +0530, Arjun Sreedharan wrote: [...] > On a related note, IMO strcmp() should return {-1,0,1} since many > programmers just expect this behavior. just my opinion. -ENOPATCH. MfG, Bernd -- "I dislike type abstraction if it has no real reason. And saving on

Re: [update][PATCH v10 06/21] ACPI / sleep: Introduce CONFIG_ACPI_GENERIC_SLEEP

2015-03-17 Thread Hanjun Guo
On 2015/3/17 22:33, Rafael J. Wysocki wrote: > On Tuesday, March 17, 2015 12:10:02 PM Hanjun Guo wrote: >> On 2015/3/17 11:23, Rafael J. Wysocki wrote: >>> On Tuesday, March 17, 2015 10:36:47 AM Hanjun Guo wrote: On 2015/3/17 10:28, Rafael J. Wysocki wrote: > On Tuesday, March 17, 2015

RE: [RFC] proc: change /proc/stat show

2015-03-17 Thread Wang, Yalin
> -Original Message- > From: David Rientjes [mailto:rient...@google.com] > Sent: Wednesday, March 18, 2015 7:02 AM > To: Wang, Yalin > Cc: a...@linux-foundation.org; heiko.carst...@de.ibm.com; > t...@linutronix.de; linux-kernel@vger.kernel.org > Subject: Re: [RFC] proc: change /proc/stat

Re: [PATCH REGRESSION FIX] x86 idle: restore mwait_idle()

2015-03-17 Thread Ian Malone
On 17 March 2015 at 08:22, Ingo Molnar wrote: > > * Ian Malone wrote: > >> Looks like Ingo Molnar has committed to tip which is probably a good >> sign, thanks all. >> (Have to hand this system on to someone who wont be patching kernels...) > > Guys, since I don't have the affected hardware,

Re: [LKP] [mm] cc87317726f: WARNING: CPU: 0 PID: 1 at drivers/iommu/io-pgtable-arm.c:413 __arm_lpae_unmap+0x341/0x380()

2015-03-17 Thread Huang Ying
On Tue, 2015-03-17 at 15:24 -0400, Johannes Weiner wrote: > On Tue, Mar 17, 2015 at 10:15:29AM -0700, Linus Torvalds wrote: > > Explicitly adding the emails of other people involved with that commit > > and the original oom thread to make sure people are aware, since this > > didn't get any

Re: [PATCH 0/2] gpio / ACPI: Two minor cleanups related to ACPI_HANDLE()

2015-03-17 Thread Alexandre Courbot
On Wed, Mar 18, 2015 at 10:37 AM, Rafael J. Wysocki wrote: > On Tuesday, March 10, 2015 11:07:36 PM Rafael J. Wysocki wrote: >> Hi, >> >> As per the subject, avoid evaluating ACPI_HANDLE() if we can as that one is >> rather costly. > > Linus, Alexandre, any objections to this series? > > If not,

linux-next: build failure after merge of the virtio tree

2015-03-17 Thread Stephen Rothwell
Hi Rusty, After merging the virtio tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/virtio/virtio_mmio.c:250:12: error: redefinition of 'vm_generation' static u32 vm_generation(struct virtio_device *vdev) ^ drivers/virtio/virtio_mmio.c:240:12: note:

Re: [PATCH 1/2] pinctrl: bindings: pinctrl: Add support for TI's IODelay configuration

2015-03-17 Thread Tony Lindgren
* Linus Walleij [150317 18:31]: > On Tue, Mar 10, 2015 at 7:33 PM, Nishanth Menon wrote: > > On 03/10/2015 12:31 PM, Tony Lindgren wrote: > > >> Yes except I'd make use of some kind of #pinctrl-cells here just like > >> interrupt controller has #interrupt-cells. Then you can have the values >

Re: install_special_mapping && vm_pgoff (Was: vvar, gup && coredump)

2015-03-17 Thread Andy Lutomirski
On Tue, Mar 17, 2015 at 6:43 AM, Oleg Nesterov wrote: > On 03/16, Oleg Nesterov wrote: >> >> On 03/16, Andy Lutomirski wrote: >> > >> > Ick, you're probably right. For what it's worth, the vdso *seems* to >> > be okay (on 64-bit only, and only if you don't poke at it too hard) if >> > you mremap

[PATCH v2] fs/pstore: Optimization function ramoops_init_przs

2015-03-17 Thread Wang Long
The value of cxt->record_size does not change in the loop, so this patch optimize the assign statement by dropping sz entirely and using cxt->record_size in its place. Signed-off-by: Wang Long --- fs/pstore/ram.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git

linux-next: manual merge of the virtio tree with Linus' tree

2015-03-17 Thread Stephen Rothwell
Hi Rusty, Today's linux-next merge of the virtio tree got a conflict in net/9p/trans_virtio.c between commit 8051a2a518fc ("9p/trans_virtio: fix hot-unplug") from Linus' tree and commit 1991755689ad ("9p/trans_virtio: fix hot-unplug") from the virtio tree. I fixed it up (the latter is an older

Re: [PATCH v6 6/8] pinctrl: cygnus: add gpio/pinconf driver

2015-03-17 Thread Linus Walleij
On Wed, Mar 11, 2015 at 10:15 AM, Linus Walleij wrote: > On Tue, Mar 10, 2015 at 6:57 PM, Ray Jui wrote: >> On 3/10/2015 3:20 AM, Linus Walleij wrote: >>> On Mon, Mar 9, 2015 at 9:45 PM, Ray Jui wrote: >>> This adds the initial support of the Broadcom Cygnus GPIO/PINCONF driver that

Re: [PATCH] fix platform_no_drv_owner.cocci warnings

2015-03-17 Thread Linus Walleij
On Wed, Mar 11, 2015 at 12:05 PM, Thierry Reding wrote: > On Fri, Jan 16, 2015 at 09:06:14AM +0800, kbuild test robot wrote: >> drivers/pwm/pwm-stmpe.c:99:3-8: No need to set .owner here. The core will do >> it. >> >> Remove .owner field if calls are used which set it automatically >> >>

Re: [PATCH v2 2/3] leds: ktd2692: add device tree bindings for ktd2692

2015-03-17 Thread Ingi Kim
Hi On 2015년 03월 18일 07:40, Jaehoon Chung wrote: > On 03/17/2015 05:45 PM, Ingi Kim wrote: >> This patch adds the device tree bindings for ktd2692 flash LEDs. >> Add optional properties 'flash-timeout-us' to control flash timeout >> and 'vin-supply' for flash-led regulator >> >> Signed-off-by:

Re: [PATCH 2/2] gpio / ACPI: Use local variable instead of ACPI_HANDLE()

2015-03-17 Thread Linus Walleij
On Tue, Mar 10, 2015 at 11:10 PM, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > In acpi_gpiochip_request_interrupts() the handle local > variable already contains the value that we want to pass > to acpi_walk_resources(), so it is better to use that > variable instead of evaluating

Re: [PATCH] fs/pstore: Optimization function ramoops_init_przs

2015-03-17 Thread long.wanglong
On 2015/3/18 1:39, Kees Cook wrote: > On Tue, Mar 17, 2015 at 2:31 AM, Wang Long wrote: >> The value of cxt->record_size does not change in the loop, >> so this patch optimize the assign statement by moving >> it to outer. >> >> Signed-off-by: Wang Long >> --- >> fs/pstore/ram.c | 4 ++-- >> 1

Re: [PATCH/RFC v13 02/13] dt-binding: leds: Add common LED DT bindings macros

2015-03-17 Thread Bryan Wu
On Thu, Mar 12, 2015 at 8:45 AM, Jacek Anaszewski wrote: > Add macros for defining boost mode and trigger type properties > of flash LED devices. > Applied, thanks, -Bryan > Signed-off-by: Jacek Anaszewski > Acked-by: Kyungmin Park > Cc: Bryan Wu > Cc: Richard Purdie > --- >

Re: [PATCH 1/2] gpio / ACPI: Avoid unnecessary checks in __gpiod_get_index()

2015-03-17 Thread Linus Walleij
On Tue, Mar 10, 2015 at 11:08 PM, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > If dev is NULL in __gpiod_get_index() and both ACPI and OF are > enabled, it will be checked twice before the code decides to give > up with DT/ACPI lookup, so avoid that. > > Also use the observation that

Re: [PATCH 1/2] pinctrl: bindings: pinctrl: Add support for TI's IODelay configuration

2015-03-17 Thread Linus Walleij
On Tue, Mar 10, 2015 at 7:33 PM, Nishanth Menon wrote: > On 03/10/2015 12:31 PM, Tony Lindgren wrote: >> Yes except I'd make use of some kind of #pinctrl-cells here just like >> interrupt controller has #interrupt-cells. Then you can have the values >> seprate and the controller knows what to do

Re: [PATCH] ACPI / sleep: Drop acpi_suspend() which is not used

2015-03-17 Thread Hanjun Guo
On 2015/3/17 22:29, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The acpi_suspend() function has no callers, so drop it. > > Signed-off-by: Rafael J. Wysocki Reviewed-by: Hanjun Guo > --- > drivers/acpi/sleep.c | 15 --- > drivers/acpi/sleep.h |2 -- > 2 files

[PATCH] MIPS: MSA: misaligned support

2015-03-17 Thread Leonid Yegoshin
MIPS R5, MIPS R6 and MSA HW specs allow a broad range of address exception on unalaigned MSA load/store operations - from none unaligned up to full support in HW. In practice, it is expected that HW can occasionally triggers AdE for non-aligned data access (misalignment). It is usually expected on

Re: [PATCH 2/6] ARM: cpuidle: Add a cpuidle ops structure to be used for DT

2015-03-17 Thread Stephen Boyd
On 03/17/15 04:29, Lorenzo Pieralisi wrote: > On Mon, Mar 16, 2015 at 10:08:19PM +, Stephen Boyd wrote: >> On 03/03/15 04:29, Daniel Lezcano wrote: >>> The code is optimized to use the __init section intensively in order to >>> reduce >>> the memory footprint after the driver is initialized

Re: [PATCH 0/2] gpio / ACPI: Two minor cleanups related to ACPI_HANDLE()

2015-03-17 Thread Rafael J. Wysocki
On Tuesday, March 10, 2015 11:07:36 PM Rafael J. Wysocki wrote: > Hi, > > As per the subject, avoid evaluating ACPI_HANDLE() if we can as that one is > rather costly. Linus, Alexandre, any objections to this series? If not, would there be any problem if I took these to my tree? I'll probably

RE: [f2fs-dev] [PATCH 4/4] f2fs: avoid wrong f2fs_bug_on when truncating inline_data

2015-03-17 Thread Chao Yu
Hi Jaegeuk, > -Original Message- > From: Jaegeuk Kim [mailto:jaeg...@kernel.org] > Sent: Wednesday, March 18, 2015 12:58 AM > To: linux-kernel@vger.kernel.org; linux-fsde...@vger.kernel.org; > linux-f2fs-de...@lists.sourceforge.net > Cc: Jaegeuk Kim > Subject: [f2fs-dev] [PATCH 4/4] f2fs:

Re: [PATCH 0/8] Add helper macro for pnp_register_driver boilerplate

2015-03-17 Thread Rafael J. Wysocki
On Monday, March 16, 2015 09:46:29 PM Peter Huewe wrote: > This patchset introduces the module_pnp_driver macro which is a > convenience macro for PNP driver modules similar to module_pci_driver > and convert the affected drivers to the new helper macro. > It is intended to be used by drivers

Re: [PATCH RESEND] KVM: nVMX: mask unrestricted_guest if disabled on L0

2015-03-17 Thread Marcelo Tosatti
On Tue, Mar 17, 2015 at 02:02:32PM +0100, Radim Krčmář wrote: > If EPT was enabled, unrestricted_guest was allowed in L1 regardless of > L0. L1 triple faulted when running L2 guest that required emulation. > > Another side effect was 'WARN_ON_ONCE(vmx->nested.nested_run_pending)' > in L0's

Re: [PATCH v2 11/18] pinctrl: Add pinctrl driver for STM32 MCUs

2015-03-17 Thread Linus Walleij
On Tue, Mar 10, 2015 at 4:08 PM, Arnd Bergmann wrote: > On Friday 20 February 2015 19:01:10 Maxime Coquelin wrote: >> +/* Pull-Up/Down */ >> +#define NO_PULL0 >> +#define PULL_UP1 >> +#define PULL_DOWN 2 >> + >> +/* Type */ >> +#define PUSH_PULL (0 << 2)

Re: [PATCH] pinctrl: at91: move lock/unlock_as_irq calls into request/release resources methods

2015-03-17 Thread Linus Walleij
On Tue, Mar 10, 2015 at 9:34 AM, Nicolas Ferre wrote: > Le 09/03/2015 17:14, Linus Walleij a écrit : >> On Sun, Feb 8, 2015 at 7:23 PM, Boris Brezillon >> wrote: >> >>> The gpiochip_lock_as_irq call can fail and return an error, while the >>> irq_startup is not expected to fail (returns an

Re: [RFC PATCH] sys_membarrier(): system/process-wide memory barrier (x86) (v12)

2015-03-17 Thread Steven Rostedt
On Tue, 17 Mar 2015 12:46:41 + (UTC) Mathieu Desnoyers wrote: > > Would that help? > > > > this_cpu_write(saved_next, next); > > rq = context_switch(rq, prev, next); > > rq->curr = this_cpu_read(saved_next); > > Assuming there is a full memory barrier (e.g. load_cr3) within >

Re: [PATCH] device_property: Add comments about returning array counts

2015-03-17 Thread Rafael J. Wysocki
On Tuesday, March 17, 2015 09:58:58 AM Adrian Hunter wrote: > The "read array" variants of the device property functions > can be used to return the number of values in an array. > Update the comments to reflect that. > > Signed-off-by: Adrian Hunter Looks OK to me. Greg, any objections? >

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

2015-03-17 Thread Stephen Rothwell
Hi Vinod, Today's linux-next merge of the slave-dma tree got a conflict in arch/arm/mach-shmobile/board-mackerel.c between commit a521422ea4ae ("ARM: shmobile: mackerel: Remove Legacy C board code") from the arm-soc tree and commit c078c62a7528 ("mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info

linux-next: manual merge of the slave-dma tree with the renesas tree

2015-03-17 Thread Stephen Rothwell
Hi Vinod, Today's linux-next merge of the slave-dma tree got a conflict in arch/arm/mach-shmobile/board-ape6evm.c between commit 9d07d414d4c3 ("ARM: shmobile: r8a73a4: ape6evm: Remove legacy platform") from the renesas tree and commit c078c62a7528 ("mmc: sh_mobile_sdhi: remove sh_mobile_sdhi_info

[PATCH] regulator: Fix documentation for regmap in the config

2015-03-17 Thread Axel Lin
dev_get_regulator() does not exist, fix the typo. Signed-off-by: Axel Lin --- include/linux/regulator/driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h index d4ad5b5..045f709 100644 ---

Re: [PATCH] rtc: at91rm9200: double locking bug in at91_rtc_interrupt()

2015-03-17 Thread Rafael J. Wysocki
On Tuesday, March 17, 2015 04:38:10 PM Nicolas Ferre wrote: > From: Dan Carpenter > > There is a typo here so we deadlock. > > Fixes: dd1f1f391dd7 ('rtc: at91rm9200: rework wakeup and interrupt handling') > Signed-off-by: Dan Carpenter > Acked-by: Boris Brezillon > Reported-also-by: David

[PATCH RESEND] mfd: stw481x: Remove unused fields from struct stw481x

2015-03-17 Thread Axel Lin
The mutex lock is not used at all, remove it. The *vmmc_regulator is not necessary, use a local variable in stw481x_vmmc_regulator_probe() instead. Signed-off-by: Axel Lin Reviewed-by: Linus Walleij Acked-by: Lee Jones --- Hi Mark, Lee prefers this patch to be applied via regulator tree, so I

Re: [PATCH] tracing: add trace event for memory-failure

2015-03-17 Thread Steven Rostedt
On Tue, 17 Mar 2015 18:47:40 +0800 Xie XiuQi wrote: > I'm not clearly why we need a hard coded here. As the strings or "result" have > defined in mm/memory-failure.c, so passing "action_name[result]" would be more > clean and more flexible here? The TP_printk() is what will be shown in the

Re: [PATCH 04/10] xen/blkfront: separate ring information to an new struct

2015-03-17 Thread Bob Liu
On 03/17/2015 10:52 PM, Felipe Franciosi wrote: > Hi Bob, > > I've put the hardware back together and am sorting out the software for > testing. Things are not moving as fast as I wanted due to other commitments. > I'll keep this thread updated as I progress. Malcolm is OOO and I'm trying to

Re: [RFC] lib/vsprintf.c: Even faster decimal conversion

2015-03-17 Thread Denys Vlasenko
On Wed, Mar 18, 2015 at 1:50 AM, Denys Vlasenko wrote: > On Sat, Feb 21, 2015 at 12:51 AM, Rasmus Villemoes > wrote: >> The most expensive part of decimal conversion is the divisions by 10 >> (albeit done using reciprocal multiplication with appropriately chosen >> constants). I decided to see

RE: [PATCH v2.0 1/2] pm: at91: add the PM initialization for the sama5d3 and sama5d4

2015-03-17 Thread Yang, Wenyou
Hi Sylvain, > -Original Message- > From: Sylvain Rochet [mailto:sylvain.roc...@finsecur.com] > Sent: 2015年3月16日 18:21 > To: Yang, Wenyou > Cc: Ferre, Nicolas; li...@arm.linux.org.uk; > linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org;

Re: Setting reboot type at run time for ARM

2015-03-17 Thread Florian Fainelli
On 17/03/15 14:44, Arun Ramamurthy wrote: > Hello > > I would like to specify a reset type just before issuing the reboot > command in the kernel. I know the kernel command line parameter can be > set as "reboot=w" to indicate warm reset but I want to be able to decide > this at run time before

Re: [RFC] lib/vsprintf.c: Even faster decimal conversion

2015-03-17 Thread Denys Vlasenko
On Sat, Feb 21, 2015 at 12:51 AM, Rasmus Villemoes wrote: > The most expensive part of decimal conversion is the divisions by 10 > (albeit done using reciprocal multiplication with appropriately chosen > constants). I decided to see if one could eliminate around half of > these multiplications by

Re: [Intel-gfx] [Regression] WARNING: drivers/gpu/drm/i915/i915_gem.c:4525 i915_gem_free_object

2015-03-17 Thread Steven Rostedt
On Tue, 17 Mar 2015 08:53:21 +0100 Daniel Vetter wrote: > Can you please cherry pick 42a7b088127f (\"drm/i915: Make sure the primary > plane is enabled before reading out the fb state\") from -next to 4.0-rc > to test whether this is indeed the difference in ducttape? I cherry-picked that patch

[PATCH 0/2] clk: samsung: exynos5433: Fix wrong offset and remove specific CONFIG_ARCH_EXYNOS5433

2015-03-17 Thread Chanwoo Choi
This patch fixes the wrong offset of PCLK_MSCL_SECURE_SMMU_JPEG in CMU_MSCL domain and removes the specific CONFIG_ARCH_EXYNOS5433 instead use the CONFIG_ARCH_EXYNOS. Because Arnd Bergmann gave me a comment[1] that don't add specific CONFIG_ARCH_EXYNOS5433 for ARM-64bit SoC. So, I send the

[PATCH 2/2] clk: samsung: exynos5433: Fix wrong offset of PCLK_MSCL_SECURE_SMMU_JPEG

2015-03-17 Thread Chanwoo Choi
From: Jonghwa Lee This patch fixes the wrong offoset of PCLK_MSCL_SECURE_SMMU_JPEG in CMU_MSCL domain. Fixes: b274bbfd8b4a94cb5bd6f (clk: samsung: exynos5433: Add clocks for CMU_MSCL domain Cc: Sylwester Nawrocki Cc: Tomasz Figa Signed-off-by: Jonghwa Lee Signed-off-by: Chanwoo Choi ---

[PATCH 1/2] clk: samsung: Use CONFIG_ARCH_EXYNOS instead of CONFIG_ARCH_EXYNOS5433

2015-03-17 Thread Chanwoo Choi
This patch removes the CONFIG_ARCH_EXYNOS5433 and then use only the CONFIG_ARCH_EXYNOS for ARM-64bit Exynos5433 SoC. Cc: Sylwester Nawrocki Cc: Tomasz Figa Cc: Arnd Bergmann Signed-off-by: Chanwoo Choi --- drivers/clk/samsung/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

linux-next: manual merge of the vfs tree with the ext3 tree

2015-03-17 Thread Stephen Rothwell
Hi Al, Today's linux-next merge of the vfs tree got a conflict in fs/udf/file.c between commit 13f0c2b0f67d ("udf: remove redundant buffer_head.h includes") from the ext3 tree and commit 52858684778b ("fs: move struct kiocb to fs.h") from the vfs tree. I fixed it up (see below) and can carry the

[PATCH v2] phy: Add a driver for dm816x USB PHY

2015-03-17 Thread Tony Lindgren
Add a minimal driver for dm816x USB. This makes USB work on dm816x without any other changes needed as it can use the existing musb_dsps glue layer for the USB controller. Note that this phy is different from dm814x and am335x. Cc: Bin Liu Cc: Brian Hutchinson Cc: Felipe Balbi Cc: Matthijs

  1   2   3   4   5   6   7   8   9   10   >