Re: [PATCH] hwrng: pseries - port to new read API and fix stack corruption

2014-10-31 Thread Michael Ellerman
On Fri, 2014-10-31 at 07:50 +0100, Greg Kurz wrote: > The add_early_randomness() function in drivers/char/hw_random/core.c passes > a 16-byte buffer to pseries_rng_data_read(). Unfortunately, plpar_hcall() > returns four 64-bit values and trashes 16 bytes on the stack. Hmm, thanks. I thought I'd f

Re: [PATCH v3] gpio: lib-sysfs: Add 'wakeup' attribute

2014-10-31 Thread Linus Walleij
On Mon, Oct 27, 2014 at 7:30 PM, Soren Brinkmann wrote: > Add an attribute 'wakeup' to the GPIO sysfs interface which allows > marking/unmarking a GPIO as wake IRQ. > The file 'wakeup' is created in each exported GPIOs directory, if an IRQ > is associated with that GPIO and the irqchip implements

[RESUBMIT PATCH v6 2/8] backlight: Add support Skyworks SKY81452 backlight driver

2014-10-31 Thread gyungoh
From: Gyungoh Yoo Signed-off-by: Gyungoh Yoo --- Changes v6: Added new line character at the end of line of dev_err() Changes v5: Move sky81452-backlight.h to include/linux/platform_data Changes v4: Reordering header files for readability Removed calling to backlight_device_unregister() Remove

[RESUBMIT PATCH v6 1/8] mfd: Add support for Skyworks SKY81452 driver

2014-10-31 Thread gyungoh
From: Gyungoh Yoo Signed-off-by: Gyungoh Yoo --- Changes v6: Added new line character at the end of line of dev_err() Changes v5: Move sky81452-backlight.h to include/linux/platform_data Changes v4: Removed MODULE_VERSION() Modified license to GPLv2 Changes v3: Fixed the backlight name from '

[RESUBMIT PATCH v6 3/8] devicetree: mfd: Add new SKY81452 mfd binding

2014-10-31 Thread gyungoh
From: Gyungoh Yoo Signed-off-by: Gyungoh Yoo --- Changes v6: Nothing Changes v5: Changed DT for regulator : 'lout' node should be defined under 'regulator' Removed compatible string from sky81452-regulator driver Changes v4: Nothing Changes v3: Nothing Changes v2: Added reg attribute for I2C

[RESUBMIT PATCH v6 4/8] devicetree: backlight: Add new SKY81452 backlight binding

2014-10-31 Thread gyungoh
From: Gyungoh Yoo Signed-off-by: Gyungoh Yoo --- Changes v6: Nothing Changes v5: Nothing Changes v4: Nothing Changes v3: Nothing Changes v2: Added reg attribute for I2C slave address .../video/backlight/sky81452-backlight.txt | 24 ++ 1 file changed, 24 insertio

[RESUBMIT PATCH v6 0/8] Add Skyworks SKY81452 device drivers

2014-10-31 Thread gyungoh
From: Gyungoh Yoo This patch set includes regulator and backlight driver for SKY81452. Also it includes documents for device tree and module. The initial version of sky81452-regulator was applied. Fo this, incremental patches are included. v6: Added new line character at the end of line of dev_e

[RESUBMIT PATCH v6 5/8] devicetree: Add vendor prefix for Skyworks Solutions, Inc.

2014-10-31 Thread gyungoh
From: Gyungoh Yoo Signed-off-by: Gyungoh Yoo --- Changes v6: Nothing Changes v5: Nothing Changes v4: Nothing Changes v3: Nothing Changes v2: Added vendor prefix for Skyworks Solutions, Inc. Documentation/devicetree/bindings/vendor-prefixes.txt | 1 + 1 file changed, 1 insertion(+) diff --

[RESUBMIT PATCH v6 6/8] devicetree: i2c: Add SKY81452 to the Trivial Devices list

2014-10-31 Thread gyungoh
From: Gyungoh Yoo Signed-off-by: Gyungoh Yoo --- Changes v6: Nothing Changes v5: Nothing Changes v4: Nothing Changes v3: Nothing Changes v2: Add SKY81452 to the Trivial Devices list Documentation/devicetree/bindings/i2c/trivial-devices.txt | 1 + 1 file changed, 1 insertion(+) diff --git

[RESUBMIT PATCH v6 7/8] regulator: sky81452: Add compatible string for device binding

2014-10-31 Thread gyungoh
From: Gyungoh Yoo Signed-off-by: Gyungoh Yoo --- Changes v6: Added new line character at the end of line of dev_err() Changes v5: Changed DT for regulator : 'lout' node should be defined under 'regulator' Removed compatible string Modified to return EINVAL when of_node is NULL Changes v4: Remo

[RESUBMIT PATCH v6 8/8] devicetree: regulator: sky81452: Add compatible string for device binding

2014-10-31 Thread gyungoh
From: Gyungoh Yoo Signed-off-by: Gyungoh Yoo --- Changes v6: Nothing Changes v5: Changed DT for regulator : 'lout' node should be defined under 'regulator' Removed compatible string from sky81452-regulator driver Changes v4: Nothing Changes v3: Nothing Changes v2: Added 'compatible' attribut

Re: [PATCH] x86, kaslr: Prevent .bss from overlaping initrd

2014-10-31 Thread Eternal
Kees Cook writes: > Ah! Thank you for tracking this bug down. I had never been able to reproduce > it! > > On Thu, Oct 30, 2014 at 5:41 AM, Junjie Mao wrote: >> When choosing a random address, the current implementation does not take into >> account the reversed space for .bss and .brk sections

Re: [RFD] perf syscall error handling

2014-10-31 Thread Peter Zijlstra
On Thu, Oct 30, 2014 at 09:16:36PM -0400, Vince Weaver wrote: > On Thu, 30 Oct 2014, Peter Zijlstra wrote: > > > So would something simple, like an offset into the struct > > perf_event_attr pointing at the current field we're trying to process > > make sense? Maybe with negative offsets to indica

Re: [PATCH v5 4/4] crypto: Add Allwinner Security System crypto accelerator

2014-10-31 Thread Herbert Xu
On Thu, Oct 30, 2014 at 06:19:33PM +0100, Maxime Ripard wrote: > > > With AF_ALG and cryptodev, the SG is in highmem. Verified with some > > PageHighMem(). > > Then fix AF_ALG and cryptodev, because all of the other drivers might > be affected. No it's the driver that needs to be fixed. Of cours

[PATCH for v3.18] mm/compaction: skip the range until proper target pageblock is met

2014-10-31 Thread Joonsoo Kim
commit 7d49d8868336 ("mm, compaction: reduce zone checking frequency in the migration scanner") makes side-effect that change iteration range calculation. Before change, block_end_pfn is calculated using start_pfn, but, now, blindly add pageblock_nr_pages to previous value. This cause the problem

Re: [PATCH v2 4/6] hw_random: fix unregister race.

2014-10-31 Thread Herbert Xu
On Fri, Oct 31, 2014 at 10:28:00AM +1030, Rusty Russell wrote: > Herbert Xu writes: > > On Thu, Sep 18, 2014 at 08:37:45PM +0800, Amos Kong wrote: > >> From: Rusty Russell > >> > >> The previous patch added one potential problem: we can still be > >> reading from a hwrng when it's unregistered.

[PATCH v5 0/4] fix freepage count problems in memory isolation

2014-10-31 Thread Joonsoo Kim
Changes from v4 to v5 * Patch 3: Only freepage counting logic is moved. Others remains as is. (Vlastimil) * Patch 4: Consider merging on un-isolation process. (Minchan) * Add some Ack tags Changes from v3 to v4 * Patch 1: Add code comment on nr_isolate_pageblock on struct zone (Naoya) Add

[PATCH v5 1/4] mm/page_alloc: fix incorrect isolation behavior by rechecking migratetype

2014-10-31 Thread Joonsoo Kim
There are two paths to reach core free function of buddy allocator, __free_one_page(), one is free_one_page()->__free_one_page() and the other is free_hot_cold_page()->free_pcppages_bulk()->__free_one_page(). Each paths has race condition causing serious problems. At first, this patch is focused on

[PATCH v5 2/4] mm/page_alloc: add freepage on isolate pageblock to correct buddy list

2014-10-31 Thread Joonsoo Kim
In free_pcppages_bulk(), we use cached migratetype of freepage to determine type of buddy list where freepage will be added. This information is stored when freepage is added to pcp list, so if isolation of pageblock of this freepage begins after storing, this cached information could be stale. In

Re: [PATCH] kernel crypto API interface specification

2014-10-31 Thread Herbert Xu
On Fri, Oct 31, 2014 at 04:01:04AM +0100, Marek Vasut wrote: > > I can share the last state of the document I wrote. Currently, > it is not possible for me to keep up with my workload and do > anything else, so that's all I can do. Posting your latest revision would be great. Thanks! -- Email: H

[PATCH v5 3/4] mm/page_alloc: move freepage counting logic to __free_one_page()

2014-10-31 Thread Joonsoo Kim
All the caller of __free_one_page() has similar freepage counting logic, so we can move it to __free_one_page(). This reduce line of code and help future maintenance. This is also preparation step for "mm/page_alloc: restrict max order of merging on isolated pageblock" which fix the freepage counti

Re: [PATCH] x86, kaslr: Prevent .bss from overlaping initrd

2014-10-31 Thread Eternal
Mika Penttilä writes: >> When choosing a random address, the current implementation does not take into >> account the reversed space for .bss and .brk sections. Thus the relocated >> kernel >> may overlap other components in memory, e.g. the initrd image: > > initrd should be included in the avo

[PATCH v5 4/4] mm/page_alloc: restrict max order of merging on isolated pageblock

2014-10-31 Thread Joonsoo Kim
Current pageblock isolation logic could isolate each pageblock individually. This causes freepage accounting problem if freepage with pageblock order on isolate pageblock is merged with other freepage on normal pageblock. We can prevent merging by restricting max order of merging to pageblock order

RE: [PATCH v3 1/3] QE: move qe code from arch/powerpc to drivers/soc

2014-10-31 Thread qiang.z...@freescale.com
On Oct 30, 2014, at 9:37 AM, Kumar Gala wrote: > -Original Message- > From: Kumar Gala [mailto:ga...@kernel.crashing.org] > Sent: Thursday, October 30, 2014 9:37 PM > To: Zhao Qiang-B45475 > Cc: linuxppc-...@lists.ozlabs.org; linux-kernel@vger.kernel.org; Wood > Scott-B07421; Xie Xiaobo-R

[PATCH 3/3 v6] sched: Remove task and group entity load_avg when they are dead

2014-10-31 Thread Yuyang Du
When task exits or group is destroyed, the entity's load_avg should be removed from its parent cfs_rq's load_avg. Otherwise, it will take time for the parent cfs_rq to decay the dead entity's load_avg to 0, which is not desired. Signed-off-by: Yuyang Du --- kernel/sched/fair.c | 11 ++-

[PATCH 2/3 v6] sched: Rewrite per entity runnable load average tracking

2014-10-31 Thread Yuyang Du
The idea of per entity runnable load average (let runnable time contribute to load weight) was proposed by Paul Turner, and it is still followed by this rewrite. This rewrite is done due to the following ends: 1. cfs_rq's load average (namely runnable_load_avg and blocked_load_avg) is updated

[PATCH 1/3 v6] sched: Remove update_rq_runnable_avg

2014-10-31 Thread Yuyang Du
The current rq->avg is not made use of anywhere, and the code is in fair scheduler's critical path, so remove it. Signed-off-by: Yuyang Du --- kernel/sched/debug.c |7 +-- kernel/sched/fair.c | 24 kernel/sched/sched.h |2 -- 3 files changed, 5 insertions(

[PATCH 0/3 v6] sched: Rewrite per entity runnable load average tracking

2014-10-31 Thread Yuyang Du
Many thanks to PeterZ for his review, to Dietmar, and to Fengguang for 0Day and LKP. v6 changes: Based on v3.18-rc2. - Unify decay_load 32 and 64 bits by mul_u64_u32_shr - Add force option in update_tg_load_avg - Read real-time cfs's load_avg for calc_tg_weight - Have tg_load_avg_contrib ifdef

[RFC] arm:remove clear_thread_flag(TIF_UPROBE)

2014-10-31 Thread Wang, Yalin
This patch remove clear_thread_flag(TIF_UPROBE) in do_work_pending(), because uprobe_notify_resume() have do this. Signed-off-by: Yalin Wang --- arch/arm/kernel/signal.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c i

Re: [RFC v2 1/4] backports: replace CPTCFG prefix for CONFIG_BACKPORT

2014-10-31 Thread Johannes Berg
On Wed, 2014-10-29 at 01:21 -0700, Luis R. Rodriguez wrote: > From: "Luis R. Rodriguez" > > In order to support built-in kernel integration we want to use > a more generic approach to defining symbols, CPTCFG was nice as > it was short and relied on the fact that kconfig can work with > a getenv(

Re: [RFC v2 2/4] backports: replace BACKPORT_PWD with BACKPORT_DIR

2014-10-31 Thread Johannes Berg
On Wed, 2014-10-29 at 01:21 -0700, Luis R. Rodriguez wrote: > From: "Luis R. Rodriguez" > > This will also be used for built-in kernel integration, by > using this we can share more code with the built-in kernel > approach. I see no issues with this, looks like a straight rename. johannes -- T

Re: [RFC] arm:remove clear_thread_flag(TIF_UPROBE)

2014-10-31 Thread Joe Perches
On Fri, 2014-10-31 at 15:40 +0800, Wang, Yalin wrote: > This patch remove clear_thread_flag(TIF_UPROBE) in do_work_pending(), > because uprobe_notify_resume() have do this. [] > diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c [] > @@ -591,10 +591,9 @@ do_work_pending(struct pt_regs

Re: [RFC v2 3/4] backports: use BACKPORT_DIR prefix on kconfig sources

2014-10-31 Thread Johannes Berg
On Wed, 2014-10-29 at 01:21 -0700, Luis R. Rodriguez wrote: > src_line = re.compile(r'^\s*source\s+"?(?P[^\s"]*)"?\s*$') > +bk_src_line = > re.compile(r'^\s*source\s+"?\$BACKPORT_DIR/(?P[^\s"]*)"?\s*$') > tri_line = re.compile(r'^(?P\s+)tristate') > bool_line = re.compile(r'^(?P\s+)bool') > c

Re: [PATCH 1/5] mm, compaction: pass classzone_idx and alloc_flags to watermark checking

2014-10-31 Thread Joonsoo Kim
On Wed, Oct 29, 2014 at 02:51:11PM +0100, Vlastimil Babka wrote: > On 10/28/2014 08:16 AM, Joonsoo Kim wrote:> On Mon, Oct 27, 2014 at > 10:11:31AM +0100, Vlastimil Babka wrote: > >> On 10/27/2014 07:46 AM, Joonsoo Kim wrote: > >>> On Tue, Oct 07, 2014 at 05:33:35PM +0200, Vlastimil Babka wrote: >

[PATCH 0/3] Add support for ADC on am437x-gp and am43x-epos-evm

2014-10-31 Thread Vignesh R
This series of patches enable ADC on am437x-gp-evm and am43x-epos-evm. The ADC clock hwmod data of am33xx has been moved to commom place so that both am43xx and am33xx can reuse them. tscadc DT node has been adided to am437x-gp and am43x-epos dt files. With these patches, ADC functionalities are no

Re: [RFC v2 4/4] backports: add kernl integration support to gentree.py

2014-10-31 Thread Johannes Berg
On Wed, 2014-10-29 at 17:00 +0100, Luis R. Rodriguez wrote: > backport/Kconfig | 54 > backport/Kconfig.package | 31 + > backport/Kconfig.sources | 23 I think you should do this split as a separate patch

[PATCH 2/3] arm: mach-omap2: omap_hwmod_43xx_data: add hwmod support for tscadc on am43x-evm

2014-10-31 Thread Vignesh R
This patch adds hwmod support for tscadc to work on am43xx-evm. The am33xx hwmod structures of tscadc has been moved to ipblock_data so that it can be reused in am43xx. The clock domain names are separately set for am33xx and am43xx. Thus tscadc dt entries can now be added to am43xx board dt files.

[PATCH 3/3] arm: boot: dts: am4372: add tscadc DT entries for am437x-evm and am43x-epos-evm

2014-10-31 Thread Vignesh R
This patch adds tscadc DT entries for am437x-gp-evm and am43x-epos-evm. Signed-off-by: Vignesh R --- arch/arm/boot/dts/am4372.dtsi| 20 arch/arm/boot/dts/am437x-gp-evm.dts | 8 arch/arm/boot/dts/am43x-epos-evm.dts | 8 3 files changed, 36 inserti

RE: [RFC] arm:remove clear_thread_flag(TIF_UPROBE)

2014-10-31 Thread Wang, Yalin
> From: Joe Perches [mailto:j...@perches.com] > > diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c > [] > > @@ -591,10 +591,9 @@ do_work_pending(struct pt_regs *regs, unsigned int > thread_flags, int syscall) > > return restart; > >

[PATCH 1/3] arm: mach-omap2: omap_hwmod_33xx_43xx_ipblock_data: Move am33xx_l4_hs_hwmod to ipblock_data

2014-10-31 Thread Vignesh R
This patch moves am33xx_l4_hs_hwmod from 33xx_data to ipblock_data. This is required because it can be reused in 43xx to add hwmod support to tscadc as it uses the same l4_hs hwmod in am43xx. This helps in setting appropriate clock domain names for tscadc on am33xx and am43xx. Signed-off-by: Vigne

Re: [PATCH 6/8] regulator: max77686: Add external GPIO control

2014-10-31 Thread Krzysztof Kozlowski
On pią, 2014-10-31 at 12:31 +0900, Alexandre Courbot wrote: > On Fri, Oct 31, 2014 at 12:03 AM, Krzysztof Kozlowski > wrote: > > On czw, 2014-10-30 at 22:56 +0900, Alexandre Courbot wrote: > >> Hi, and thanks for bringing this issue to us! > >> > >> On Wed, Oct 29, 2014 at 7:49 PM, Javier Martinez

RE: [RFC V6 2/3] add CONFIG_HAVE_ARCH_BITREVERSE to support rbit instruction

2014-10-31 Thread Wang, Yalin
> From: Wang, Yalin > Subject: [RFC V6 2/3] add CONFIG_HAVE_ARCH_BITREVERSE to support rbit > instruction > > This patch add bitrev.h file to support rbit instruction, so that we can do > bitrev operation by hardware. > Signed-off-by: Yalin Wang > --- > arch/arm/Kconfig | 1 + > ar

[bisected] nouveau dual monitor setup broken

2014-10-31 Thread Frans Klaver
Hi there, My dual monitor setup on the Dell Precision M4500 is broken by commit 1dce6264045cd23e9c07574ed0bb31c7dce9354f ("drm/nv50/kms: Set VBLANK time in modeset script"). I am no longer able to have more than one monitor active. Full dmesg can be found at http://pastebin.com/7e68yMRy, but I've

Re: [RFC] arm:remove clear_thread_flag(TIF_UPROBE)

2014-10-31 Thread Joe Perches
On Fri, 2014-10-31 at 15:51 +0800, Wang, Yalin wrote: > > From: Joe Perches [mailto:j...@perches.com] > > > diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c > > [] > > > @@ -591,10 +591,9 @@ do_work_pending(struct pt_regs *regs, unsigned int > > thread_flags, int syscall) > > >

RE: [RFC] arm:remove clear_thread_flag(TIF_UPROBE)

2014-10-31 Thread Wang, Yalin
> From: Joe Perches [mailto:j...@perches.com] > > > > @@ -591,10 +591,9 @@ do_work_pending(struct pt_regs *regs, unsigned > int > > > thread_flags, int syscall) > > > > return restart; > > > > } > > > >

[RFC V2] arm:remove clear_thread_flag(TIF_UPROBE)

2014-10-31 Thread Wang, Yalin
This patch remove clear_thread_flag(TIF_UPROBE) in do_work_pending(), because uprobe_notify_resume() have do this. Signed-off-by: Yalin Wang --- arch/arm/kernel/signal.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c index bd19834..8aa6f1b

[PATCH for v3.18] mm/slab: fix unalignment problem on Malta with EVA due to slab merge

2014-10-31 Thread Joonsoo Kim
Unlike the SLUB, sometimes, object isn't started at the beginning of the slab in the SLAB. This causes the unalignment problem after slab merging is supported by commit 12220dea07f1 ("mm/slab: support slab merge"). Following is the report from Markos that fail to boot on Malta with EVA. Calibratin

[PATCH] mm/slab: reverse iteration on find_mergeable()

2014-10-31 Thread Joonsoo Kim
Unlike the SLUB, sometimes, object isn't started at the beginning of the slab in the SLAB. This causes the unalignment problem when after slab merging is supported by commit 12220dea07f1 ("mm/slab: support slab merge"). Alignment mismatch check is introduced ("mm/slab: fix unalignment problem on Ma

Re: [PATCH] UBI: vtbl: Use ubi_eba_atomic_leb_change()

2014-10-31 Thread Richard Weinberger
Hujianyang, Am 31.10.2014 um 05:03 schrieb hujianyang: > Hi Artem and Richard, > > We are using atomic operation, leb_change(), for master_node > in ubifs-level. We use two lebs for master_node even if they > are changed with atomic operation. > > I think volume_table and master_node play simila

Re: [PATCH] pinctrl: baytrail: show output gpio state correctly on Intel Baytrail

2014-10-31 Thread Linus Walleij
On Tue, Oct 28, 2014 at 3:42 PM, Felipe Balbi wrote: > On Tue, Oct 28, 2014 at 11:15:20AM +0100, Linus Walleij wrote: >> On Mon, Oct 13, 2014 at 9:36 PM, Felipe Balbi wrote: >> > On Mon, Oct 13, 2014 at 02:26:32PM -0500, Felipe Balbi wrote: >> >> > I also noticed that this is missing: >> > >> > d

Re: [PATCH 00/17] RFC: userfault v2

2014-10-31 Thread zhanghailiang
On 2014/10/31 13:17, Andres Lagar-Cavilla wrote: On Thu, Oct 30, 2014 at 9:38 PM, zhanghailiang wrote: On 2014/10/31 11:29, zhanghailiang wrote: On 2014/10/31 10:23, Peter Feiner wrote: On Thu, Oct 30, 2014 at 07:31:48PM +0800, zhanghailiang wrote: On 2014/10/30 1:46, Andrea Arcangeli wro

Re: [PATCH v5 4/4] crypto: Add Allwinner Security System crypto accelerator

2014-10-31 Thread Maxime Ripard
On Fri, Oct 31, 2014 at 03:20:30PM +0800, Herbert Xu wrote: > On Thu, Oct 30, 2014 at 06:19:33PM +0100, Maxime Ripard wrote: > > > > > With AF_ALG and cryptodev, the SG is in highmem. Verified with some > > > PageHighMem(). > > > > Then fix AF_ALG and cryptodev, because all of the other drivers mi

Re: [PATCH RFC v2 8/8] ARM: zynq: DT: Add pinctrl information

2014-10-31 Thread Linus Walleij
On Tue, Oct 28, 2014 at 5:03 PM, Sören Brinkmann wrote: > On Tue, 2014-10-28 at 04:05PM +0100, Linus Walleij wrote: >> On Thu, Oct 16, 2014 at 7:11 PM, Soren Brinkmann >> wrote: >> >> > Add pinctrl descriptions to the zc702 and zc706 device trees. >> > >> > Signed-off-by: Soren Brinkmann >> >> (

Re: [PATCH v5 4/4] crypto: Add Allwinner Security System crypto accelerator

2014-10-31 Thread Herbert Xu
On Fri, Oct 31, 2014 at 09:13:23AM +0100, Maxime Ripard wrote: > > I don't understand here. Why would other drivers *not* being affected? > > If the scatter list passed by AF_ALG can be in highmem, I guess it's > the case for every driver out there. Almost every kernel code I've > seen so far make

Re: [PATCH RFC v2 3/8] pinctrl: pinconf-generic: Add parameter 'IO standard'

2014-10-31 Thread Linus Walleij
On Tue, Oct 28, 2014 at 5:07 PM, Sören Brinkmann wrote: > So, this might also map to a certain drive-strength, but is not really > mapping well to Zynq pin configuration options. > Hence, I thought introducing this new property which allows a more > flexible interpretation of the argument would b

[GIT PULL] Quota and ext3 fixes for 3.18-rc3

2014-10-31 Thread Jan Kara
Hello Linus, could you please pull from git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs.git for_linus to get the following minor ext3 & quota fixes. Top of the tree is 3c9cafe05ff0. The full shortlog is: Jan Kara (2): ext3: Don't check quota format when there are no quo

[PATCH] block: Fix computation of merged request priority

2014-10-31 Thread Jan Kara
Priority of a merged request is computed by ioprio_best(). If one of the requests has undefined priority (IOPRIO_CLASS_NONE) and another request has priority from IOPRIO_CLASS_BE, the function will return the undefined priority which is wrong. Fix the function to properly return priority of a reque

Re: IO request merging

2014-10-31 Thread Jan Kara
On Thu 16-10-14 10:10:39, Jens Axboe wrote: > On 10/16/2014 06:27 AM, Jan Kara wrote: > > Hello, > > > > one of our customers was complaining that elv_attempt_insert_merge() > > merges two requests (via blk_attempt_req_merge()) without asking IO > > scheduler for permission (->elevator_allow_m

[V9 PATCH 0/2] irqchip: gic: Introduce ARM GICv2m MSI(-X) support

2014-10-31 Thread suravee.suthikulpanit
From: Suravee Suthikulpanit This patch set introduces support for MSI(-X) in GICv2m specification, which is implemented in some variation of GIC400. This patch set is rebased from: Git tree : git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git Git branch : domain_hier

[V9 PATCH 2/2] irqchip: gicv2m: Add supports for ARM GICv2m MSI(-X)

2014-10-31 Thread suravee.suthikulpanit
From: Suravee Suthikulpanit ARM GICv2m specification extends GICv2 to support MSI(-X) with a new set of register frame. This patch introduces support for the non-secure GICv2m register frame. Currently, GICV2m is available in certain version of GIC-400. The patch introduces a new property in ARM

Re: DMA allocations from CMA and fatal_signal_pending check

2014-10-31 Thread Joonsoo Kim
On Tue, Oct 28, 2014 at 12:08:46PM -0700, Florian Fainelli wrote: > Hello, > > While debugging why some dma_alloc_coherent() allocations where > returning NULL on our brcmstb platform, specifically with > drivers/net/ethernet/broadcom/bcmcsysport.c, I came across the > fatal_signal_pending() check

[V9 PATCH 1/2] genirq: Add irq_chip_set_type_parent function

2014-10-31 Thread suravee.suthikulpanit
From: Suravee Suthikulpanit Add a helper function to set irq type in parent irq domain. Signed-off-by: Suravee Suthikulpanit --- include/linux/irq.h | 1 + kernel/irq/chip.c | 10 ++ 2 files changed, 11 insertions(+) diff --git a/include/linux/irq.h b/include/linux/irq.h index 6159

Re: IO request merging

2014-10-31 Thread Jan Kara
On Thu 30-10-14 20:56:14, Jan Kara wrote: > On Thu 16-10-14 10:10:39, Jens Axboe wrote: > > On 10/16/2014 06:27 AM, Jan Kara wrote: > > > Hello, > > > > > > one of our customers was complaining that elv_attempt_insert_merge() > > > merges two requests (via blk_attempt_req_merge()) without aski

[PATCH v2] phy: phy-core: use the np present in of_phandle_args to get the PHY

2014-10-31 Thread Kishon Vijay Abraham I
Instead of using the node pointer of the PHY provider and then scanning its child nodes to get a reference to the PHY, directly use the node pointer present in of_phandle_args to get a reference to the PHY. Signed-off-by: Kishon Vijay Abraham I --- I sent the wrong version of the patch before. No

Re: [PATCH 2/2] hwmon: (ibmpowernv) Make the driver name more recognisable

2014-10-31 Thread Jean Delvare
Hi Michael, On Fri, 31 Oct 2014 17:45:23 +1100, Michael Ellerman wrote: > Seeing "ibmpowernv" in dmesg is not very useful, that is just the name > of the platform and doesn't identify the message as coming from the > hwmon driver. > > Change DRVNAME to "powernv-hwmon" to make it clearer. > > Sig

Re: [PATCH v4 04/14] perf tools: Add kbuild support into Makefile.kbuild

2014-10-31 Thread Jiri Olsa
On Thu, Oct 30, 2014 at 12:05:07AM +0100, Alexis Berlemont wrote: SNIP > > > tools/perf/util/Kbuild | 126 ++ > > > tools/perf/util/PERF-VERSION-GEN | 4 + > > > tools/perf/util/generate-cmdlist.sh| 8 +- > > > tools/perf/util

iwlwifi: mvm: BACKPORT_WANT_DEV_COREDUMP?

2014-10-31 Thread Paul Bolle
Your commit aadede6e9f4c ("iwlwifi: mvm: port to devcoredump framework") landed in today's linux-next (next-20141031). It adds a select statement for BACKPORT_WANT_DEV_COREDUMP. There's no Kconfig symbol BACKPORT_WANT_DEV_COREDUMP so this select is currently a nop. (In https:

Re: [RFC PATCH] fs: allow open(dir, O_TMPFILE|..., 0) with mode 0

2014-10-31 Thread Christoph Hellwig
On Thu, Oct 30, 2014 at 05:01:30PM -0700, Andy Lutomirski wrote: > > flink()), the mode really matters. So this idiotic glibc behavior of > > only forwarding the third argument if O_CREAT is set seems to be a > > bug. > > We could bite the bullet and add a tmpfile syscall. /me ducks I've got an

Re: iwlwifi: mvm: BACKPORT_WANT_DEV_COREDUMP?

2014-10-31 Thread Johannes Berg
On Fri, 2014-10-31 at 09:40 +0100, Paul Bolle wrote: > Your commit aadede6e9f4c ("iwlwifi: mvm: port to devcoredump framework") > landed in today's linux-next (next-20141031). It adds a select statement > for BACKPORT_WANT_DEV_COREDUMP. There's no Kconfig symbol &g

Re: [PATCH v2] mmc: dw_mmc: add support for the other bit of sdio interrupt

2014-10-31 Thread Jaehoon Chung
Hi, Addy. On 10/31/2014 12:50 PM, Addy Ke wrote: > The bit of sdio interrupt is 16 in designware implementation, > but it is 24 in RK3288. This patch add sdio_id0 for the number > of slot0 in the SDIO interrupt registers, which can be set in > platform DT table, such as: > - rockchip,sdio-interrup

[PATCH v8 08/10] sched: add SD_PREFER_SIBLING for SMT level

2014-10-31 Thread Vincent Guittot
Add the SD_PREFER_SIBLING flag for SMT level in order to ensure that the scheduler will put at least 1 task per core. Signed-off-by: Vincent Guittot Reviewed-by: Preeti U. Murthy --- kernel/sched/core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/core.c b/kernel/sched/core.

[PATCH v8 00/10] sched: consolidation of CPU capacity and usage

2014-10-31 Thread Vincent Guittot
This patchset consolidates several changes in the capacity and the usage tracking of the CPU. It provides a frequency invariant metric of the usage of CPUs and generally improves the accuracy of load/usage tracking in the scheduler. The frequency invariant metric is the foundation required for the

[PATCH v8 04/10] sched: add utilization_avg_contrib

2014-10-31 Thread Vincent Guittot
Add new statistics which reflect the average time a task is running on the CPU and the sum of these running time of the tasks on a runqueue. The latter is named utilization_load_avg. This patch is based on the usage metric that was proposed in the 1st versions of the per-entity load tracking patch

[PATCH v8 09/10] sched: Make sched entity usage tracking scale-invariant

2014-10-31 Thread Vincent Guittot
From: Morten Rasmussen Apply frequency scale-invariance correction factor to usage tracking. Each segment of the running_load_avg geometric series is now scaled by the current frequency so the utilization_avg_contrib of each entity will be invariant with frequency scaling. As a result, utilizatio

[PATCH v8 07/10] sched: replace capacity_factor by usage

2014-10-31 Thread Vincent Guittot
The scheduler tries to compute how many tasks a group of CPUs can handle by assuming that a task's load is SCHED_LOAD_SCALE and a CPU's capacity is SCHED_CAPACITY_SCALE. group_capacity_factor divides the capacity of the group by SCHED_LOAD_SCALE to estimate how many task can run in the group. Then,

Re: [RFC PATCH 1/2] pinctrl: Add output-disable

2014-10-31 Thread Linus Walleij
On Tue, Oct 28, 2014 at 9:57 PM, Doug Anderson wrote: > The pinctrl bindings / API allow you to specify that: > - a pin should be an output > - a pin should have its input path enabled / disabled > > ...but they don't allow you to tell a pin to stop outputting. Lets > add a new setting for that j

[PATCH v8 10/10] sched: make scale_rt invariant with frequency

2014-10-31 Thread Vincent Guittot
The average running time of RT tasks is used to estimate the remaining compute capacity for CFS tasks. This remaining capacity is the original capacity scaled down by a factor (aka scale_rt_capacity). This estimation of available capacity must also be invariant with frequency scaling. A frequency

[PATCH v8 06/10] sched: get CPU's usage statistic

2014-10-31 Thread Vincent Guittot
Monitor the usage level of each group of each sched_domain level. The usage is the portion of cpu_capacity_orig that is currently used on a CPU or group of CPUs. We use the utilization_load_avg to evaluate the usage level of each group. The utilization_load_avg only takes into account the running

[PATCH v8 03/10] sched: move cfs task on a CPU with higher capacity

2014-10-31 Thread Vincent Guittot
When a CPU is used to handle a lot of IRQs or some RT tasks, the remaining capacity for CFS tasks can be significantly reduced. Once we detect such situation by comparing cpu_capacity_orig and cpu_capacity, we trig an idle load balance to check if it's worth moving its tasks on an idle CPU. Once t

[PATCH v8 02/10] sched: remove frequency scaling from cpu_capacity

2014-10-31 Thread Vincent Guittot
Now that arch_scale_cpu_capacity has been introduced to scale the original capacity, the arch_scale_freq_capacity is no longer used (it was previously used by ARM arch). Remove arch_scale_freq_capacity from the computation of cpu_capacity. The frequency invariance will be handled in the load tracki

Re: [PATCH v2] cpufreq: Guard against not-yet-initialized policies in cpufreq_cpu_get()

2014-10-31 Thread Tomeu Vizoso
On 29 October 2014 22:24, Rafael J. Wysocki wrote: > On Wednesday, October 29, 2014 04:45:47 PM Tomeu Vizoso wrote: >> There's a substantial window of opportunity from the time the policy objects >> are created until they are initialized, causing this: >> >> WARNING: CPU: 1 PID: 64 at include/linu

[PATCH v8 01/10] sched: add per rq cpu_capacity_orig

2014-10-31 Thread Vincent Guittot
This new field cpu_capacity_orig reflects the original capacity of a CPU before being altered by rt tasks and/or IRQ The cpu_capacity_orig will be used: - to detect when the capacity of a CPU has been noticeably reduced so we can trig load balance to look for a CPU with better capacity. As an ex

[PATCH v8 05/10] sched: Track group sched_entity usage contributions

2014-10-31 Thread Vincent Guittot
From: Morten Rasmussen Adds usage contribution tracking for group entities. Unlike se->avg.load_avg_contrib, se->avg.utilization_avg_contrib for group entities is the sum of se->avg.utilization_avg_contrib for all entities on the group runqueue. It is _not_ influenced in any way by the task group

Re: [PATCH] Return short read or 0 at end of a raw device, not EIO

2014-10-31 Thread Christoph Hellwig
Could someone please pick up this regression fix? On Mon, Sep 29, 2014 at 10:21:10AM -0400, David Jeffery wrote: > Changes to the basic direct I/O code have broken the raw driver when reading > to the end of a raw device. Instead of returning a short read for a read that > extends partially beyon

Re: iwlwifi: mvm: BACKPORT_WANT_DEV_COREDUMP?

2014-10-31 Thread Paul Bolle
On Fri, 2014-10-31 at 09:45 +0100, Johannes Berg wrote: > On Fri, 2014-10-31 at 09:40 +0100, Paul Bolle wrote: > > Your commit aadede6e9f4c ("iwlwifi: mvm: port to devcoredump framework") > > landed in today's linux-next (next-20141031). It a

Re: iwlwifi: mvm: BACKPORT_WANT_DEV_COREDUMP?

2014-10-31 Thread Johannes Berg
On Fri, 2014-10-31 at 10:06 +0100, Paul Bolle wrote: > On Fri, 2014-10-31 at 09:45 +0100, Johannes Berg wrote: > > On Fri, 2014-10-31 at 09:40 +0100, Paul Bolle wrote: > > > Your commit aadede6e9f4c ("iwlwifi: mvm: port to devcoredump framework") > > > landed

Re: [PATCH v9 09/12] x86, mpx: decode MPX instruction to get bound violation information

2014-10-31 Thread Thomas Gleixner
On Fri, 31 Oct 2014, Ren Qiaowei wrote: > On 10/31/2014 06:38 AM, Dave Hansen wrote: > > > @@ -316,6 +317,11 @@ dotraplinkage void do_bounds(struct pt_regs *regs, > > > long error_code) > > > break; > > > > > > case 1: /* Bound violation. */ > > > + do_mpx_bound

Re: [PATCH] kernel crypto API interface specification

2014-10-31 Thread Marek Vasut
On Friday, October 31, 2014 at 08:23:53 AM, Herbert Xu wrote: > On Fri, Oct 31, 2014 at 04:01:04AM +0100, Marek Vasut wrote: > > I can share the last state of the document I wrote. Currently, > > it is not possible for me to keep up with my workload and do > > anything else, so that's all I can do.

Re: [PATCH v8 1/5] PM / Runtime: Add getter for querying the IRQ safe option

2014-10-31 Thread Krzysztof Kozlowski
On pon, 2014-10-20 at 11:04 +0200, Krzysztof Kozlowski wrote: > Add a simple getter pm_runtime_is_irq_safe() for querying whether runtime > PM IRQ safe was set or not. > > Various bus drivers implementing runtime PM may use choose to suspend > differently based on IRQ safeness status of child driv

Re: iwlwifi: mvm: BACKPORT_WANT_DEV_COREDUMP?

2014-10-31 Thread Paul Bolle
On Fri, 2014-10-31 at 10:08 +0100, Johannes Berg wrote: > On Fri, 2014-10-31 at 10:06 +0100, Paul Bolle wrote: > > Perhaps you could also look into somehow guarding the call of > > dev_coredumpm(), that this commit added, with checks for > > CONFIG_DEV_COREDUMP. See, I had a quick look at all this

[PATCH v2] drivers: s390: net: ctcm: migrate variables to handle y2038 problem

2014-10-31 Thread Aya Mahfouz
This patch is concerned with migrating the time variables for the s390 network driver. The changes handle the y2038 problem where timespec will overflow in the year 2038. timespec was replaced by unsigned long and all time variables get their values from the jiffies global variable. This was done f

Re: [RFD] perf syscall error handling

2014-10-31 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Thu, Oct 30, 2014 at 09:16:36PM -0400, Vince Weaver wrote: > > On Thu, 30 Oct 2014, Peter Zijlstra wrote: > > > > > So would something simple, like an offset into the struct > > > perf_event_attr pointing at the current field we're trying > > > to process make sen

Re: [RFC patch] mm: hugetlb: fix __unmap_hugepage_range

2014-10-31 Thread Michal Hocko
[CCing people involved in 24669e58477e2] On Fri 31-10-14 12:22:12, Hillf Danton wrote: > First, after flushing TLB, we have no need to scan pte from start again. > Second, before bail out loop, the address is forwarded one step. I can imagine a more comprehensive wording here. It is not immediate

Re: [PATCH v8 1/5] PM / Runtime: Add getter for querying the IRQ safe option

2014-10-31 Thread Ulf Hansson
On 31 October 2014 10:14, Krzysztof Kozlowski wrote: > On pon, 2014-10-20 at 11:04 +0200, Krzysztof Kozlowski wrote: >> Add a simple getter pm_runtime_is_irq_safe() for querying whether runtime >> PM IRQ safe was set or not. >> >> Various bus drivers implementing runtime PM may use choose to suspe

[PATCH] clk: rockchip: change hierarchy for some clocks

2014-10-31 Thread Kever Yang
This patch change the hierarchy for some clocks, to met the following bus hierarchy: hclk_usb_peri is bus clock for |- hclk_otg0, |- hclk_host0, |- hclk_host1, |- hclk_hsic hclk_emem is bus clock for |- hclk_nandc0 |- hclk_nandc1 hclk_mem is bus clock for |- hclk_sdmmc |- hclk_sdio0 |- hclk_sdio1

Re: [PATCH v3 2/6] uio: Add new UIO_MEM_PHYS_CACHE type for mem regions

2014-10-31 Thread Ankit Jindal
Hi Kumar, On 21 October 2014 12:08, Kumar Gala wrote: > > On Oct 21, 2014, at 7:56 AM, Ankit Jindal wrote: > >> Currently, three types of mem regions are supported: UIO_MEM_PHYS, >> UIO_MEM_LOGICAL and UIO_MEM_VIRTUAL. Among these UIO_MEM_PHYS helps >> UIO driver export physcial memory to user s

Re: [PATCH] hwrng: pseries - port to new read API and fix stack corruption

2014-10-31 Thread Greg Kurz
On Fri, 31 Oct 2014 18:00:12 +1100 Michael Ellerman wrote: > On Fri, 2014-10-31 at 07:50 +0100, Greg Kurz wrote: > > The add_early_randomness() function in drivers/char/hw_random/core.c passes > > a 16-byte buffer to pseries_rng_data_read(). Unfortunately, plpar_hcall() > > returns four 64-bit va

Re: [PATCH v8 1/5] PM / Runtime: Add getter for querying the IRQ safe option

2014-10-31 Thread Krzysztof Kozlowski
On pią, 2014-10-31 at 10:29 +0100, Ulf Hansson wrote: > On 31 October 2014 10:14, Krzysztof Kozlowski wrote: > > On pon, 2014-10-20 at 11:04 +0200, Krzysztof Kozlowski wrote: > >> Add a simple getter pm_runtime_is_irq_safe() for querying whether runtime > >> PM IRQ safe was set or not. > >> > >> V

Re: [PATCH v8 1/5] PM / Runtime: Add getter for querying the IRQ safe option

2014-10-31 Thread Russell King - ARM Linux
On Fri, Oct 31, 2014 at 10:29:36AM +0100, Ulf Hansson wrote: > On 31 October 2014 10:14, Krzysztof Kozlowski wrote: > > On pon, 2014-10-20 at 11:04 +0200, Krzysztof Kozlowski wrote: > >> Add a simple getter pm_runtime_is_irq_safe() for querying whether runtime > >> PM IRQ safe was set or not. > >>

Re: [PATCH v2] mmc: davinci: Fix and simplify probe failure path

2014-10-31 Thread Ulf Hansson
On 30 October 2014 12:45, Pramod Gurav wrote: > Thanks Ulf, > > On Thu, Oct 30, 2014 at 4:38 PM, Ulf Hansson wrote: >> On 30 October 2014 08:46, Pramod Gurav wrote: >>> The sequence of resource release in probe failure path in this >>> driver was wrong and needed fixes to cleanly unload the driv

  1   2   3   4   5   6   7   >