[PATCH v2 8/9] mtd: fsl-quadspi: disable AHB buffer prefetch

2016-04-22 Thread Yunhui Cui
From: Yunhui Cui A-009282: QuadSPI: QuadSPI data pre-fetch can result in incorrect data Affects: QuadSPI Description: With AHB buffer prefetch enabled, the QuadSPI may return incorrect data on the AHB interface. The buffer pre-fetch is enabled if the fetch size as configured either in the LUT or

[PATCH v2 5/9] mtd: spi-nor: fsl-quadspi:Support qspi for ls2080a

2016-04-22 Thread Yunhui Cui
There is a hardware feature that qspi_amba_base is added internally by SOC design on ls2080a. So as to software, the driver need support to the feature. Signed-off-by: Yunhui Cui Signed-off-by: Yunhui Cui --- drivers/mtd/spi-nor/fsl-quadspi.c | 24 ++-- 1 file changed, 22 in

[PATCH v2 4/9] mtd: spi-nor: fsl-quadspi: extend support for some special requerment.

2016-04-22 Thread Yunhui Cui
From: Yunhui Cui Add extra info in LUT table to support some special requerments. Spansion S25FS-S family flash need some special operations. Signed-off-by: Yunhui Cui --- drivers/mtd/spi-nor/fsl-quadspi.c | 44 +-- include/linux/mtd/spi-nor.h | 4 +++

Re: Nokia N900 retention mode in v4.6, camera buttons fun

2016-04-22 Thread Pali Rohár
On Thursday 21 April 2016 23:28:08 Pavel Machek wrote: > Hi! > > > > CONFIG_HSI breaks power management completely, so power management > > > with modem will be another topic. > > > > Sebastian, any idea why power management does not work for HSI? > > > > > > > > In the meantime, I found what

RE: [PATCH 8/9] mtd: fsl-quadspi: disable AHB buffer prefetch

2016-04-22 Thread Yunhui Cui
> -Original Message- > From: Han Xu > Sent: Friday, April 22, 2016 12:49 PM > To: Yunhui Cui; Yunhui Cui; dw...@infradead.org; > computersforpe...@gmail.com; han...@freescale.com > Cc: linux-kernel@vger.kernel.org; linux-...@lists.infradead.org; linux- > arm-ker...@lists.infradead.org; Ya

Re: [PATCH v2] PM / Runtime: Only force-resume device if it has been force-suspended

2016-04-22 Thread Ulf Hansson
On 21 April 2016 at 23:07, Laurent Pinchart wrote: > Hi Rafael, > > On Thursday 21 Apr 2016 23:02:06 Rafael J. Wysocki wrote: >> On Thu, Apr 21, 2016 at 10:57 PM, Laurent Pinchart wrote: >> > On Thursday 21 Apr 2016 21:52:56 Rafael J. Wysocki wrote: >> >> On Thursday, April 21, 2016 02:52:55 AM La

Re: [PATCH 2/5] x86, KASLR: Drop CONFIG_RANDOMIZE_BASE_MAX_OFFSET

2016-04-22 Thread Ingo Molnar
* Kees Cook wrote: > >> + Since the kernel is built using 2GB addressing, > > > > Does that try to refer to the 1G kernel and 1G fixmap pagetable > > mappings? I.e., level2_kernel_pgt and level2_fixmap_pgt in > > arch/x86/kernel/head_64.S? > > The "2GB addressing" part is in reference to:

Integer overflow in target_core_device.c

2016-04-22 Thread Марк Коренберг
Linux kernel commit 8a9ebe717a133ba7bc90b06047f43cc6b8bcb8b3 attrib->max_unmap_lba_count = (q->limits.max_discard_sectors << 9) Since max_discard_sectors is 32-bit, there may be integer overflow, making wrong max_unmap_lba_count. For example, LVM Thin provisioning reports that it have 16 GB maxi

Re: [PATCH 7/8] gpio: stmpe: Add STMPE1600 support

2016-04-22 Thread Patrice Chotard
On 04/20/2016 04:53 PM, Linus Walleij wrote: On Tue, Apr 19, 2016 at 2:18 PM, wrote: From: Patrice Chotard The particularities of this variant are: - GPIO_XXX_LSB and GPIO_XXX_MSB memory locations are inverted compared to other variants. - There is no Edge detection, Rising Edge and Fa

Re: [PATCHv1 0/6] leds: pca9653x: support inverted outputs and cleanups

2016-04-22 Thread Olliver Schinagl
Hi Ricardo, On 20-04-16 11:17, Ricardo Ribalda Delgado wrote: Hello again On Wed, Apr 20, 2016 at 11:06 AM, Olliver Schinagl wrote: The devil is in the details :) :) Saving mode2 sounds like a good compromise then. But I still believe that we should limit the lock to ledout. No matter wha

[PATCH v2 9/9] mtd: fsl-quadspi: add multi flash chip R/W on ls2080a

2016-04-22 Thread Yunhui Cui
From: Yunhui Cui There is a hardware feature that qspi_amba_base is added internally by SOC design on ls2080a. so memmap_phy need not be added in driver. If memmap_phy is added, the flash A1 addr space is [0, memmap_phy] which far more than flash size. The AMBA memory will be divided into four pa

Re: [PATCH V3 04/11] CRIS v32: nand: set ECC algorithm explicitly

2016-04-22 Thread Jesper Nilsson
On Sun, Apr 17, 2016 at 10:53:00PM +0200, Rafał Miłecki wrote: > This is part of process deprecating NAND_ECC_SOFT_BCH (and switching to > enum nand_ecc_algo). > > Signed-off-by: Rafał Miłecki Acked-by: Jesper Nilsson /^JN - Jesper Nilsson -- Jesper Nilsson -- jesper.nils...@a

[PULL] clockevents fixes for 4.6

2016-04-22 Thread Daniel Lezcano
Hi Thomas, Ingo, Please pull this fix for the tango xtal driver. * Fix the boot hang on Sigma Design Tango4 by inverting the error check condition at init time (Daniel Lezcano) The following changes since commit b7c8b4aac6ea6746b1c49fda0a0563a07203dd26: clocksource/drivers/pistachio: Corr

[PATCH] clocksource/drivers/tango-xtal: Fix boot hang due to incorrect test

2016-04-22 Thread Daniel Lezcano
Commit 0881841f7e78 introduced a regression by inverting a test check after calling clocksource_mmio_init(). That results on the system to hang at boot time. Fix it by inverting the test again. Fixes: 0881841f7e78 ("Replace code by clocksource_mmio_init") Reported-by: Marc Gonzalez Signed-off-by

Re: [PATCH] kvm: x86: do not leak guest xcr0 into host interrupt handlers

2016-04-22 Thread Wanpeng Li
Hi Paolo and David, 2016-03-31 3:24 GMT+08:00 David Matlack : > An interrupt handler that uses the fpu can kill a KVM VM, if it runs > under the following conditions: > - the guest's xcr0 register is loaded on the cpu > - the guest's fpu context is not loaded > - the host is using eagerfpu > > N

[PATCH] qla1280: Reduce can_queue to 32

2016-04-22 Thread Johannes Thumshirn
It was reported in https://bugzilla.redhat.com/show_bug.cgi?id=1321033, that the qla1280 driver sets the scsi_host_template's can_queue field to 0xf which results in an allocation failure when allocating the block layer tags for the driver's queues like the one shown below: [4.804166] scsi

[PATCH] doc: correct Documentation/x86/x86_64/mm.txt

2016-04-22 Thread Juergen Gross
Correct the size of the module mapping space and the maximum available physical memory size of current processors. Signed-off-by: Juergen Gross --- Documentation/x86/x86_64/mm.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Documentation/x86/x86_64/mm.txt b/Document

Re: [PATCH v7 5/8] [media] vcodec: mediatek: Add Mediatek V4L2 Video Encoder Driver

2016-04-22 Thread kbuild test robot
-Driver-and-VPU-Driver/20160422-123111 base: git://linuxtv.org/media_tree.git master config: i386-allyesconfig (attached as .config) reproduce: # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): drivers/media/platfo

[PATCH] ARM: EXYNOS: Properly skip unitialized parent clock in power domain on

2016-04-22 Thread Krzysztof Kozlowski
We want to skip reparenting a clock on turning on power domain, if we do not have the parent yet. The parent is obtained when turning the domain off. However due to a typo, the loop is continued on IS_ERR() of clock being reparented, not on the IS_ERR() of the parent. Theoretically this could lead

Is the page always in swapcache?

2016-04-22 Thread Chen Feng
Hi Matainers, In the file mm/migrate.c 316 int migrate_page_move_mapping(struct address_space *mapping, 317 struct page *newpage, struct page *page, 318 struct buffer_head *head, enum migrate_mode mode, 319 int extra_count) 320 { 321 s

Re: [PATCH 1/5] x86, KASLR: Update description for decompressor worst case size

2016-04-22 Thread Ingo Molnar
* Kees Cook wrote: > +# > +# Getting to provably safe in-place decompression is hard. Worst case > +# behaviours need be analyzed. Here let's take decompressing gzip-compressed > +# kernel as example to illustrate it: > +# > +# The file layout of gzip compressed kernel is as follows. For more >

Re: [PATCH] asus-laptop: correct error handling in asus_read_brightness()

2016-04-22 Thread Giedrius Statkevičius
On Fri, Apr 22, 2016 at 02:09:22AM +0300, Andy Shevchenko wrote: > On Sat, Apr 16, 2016 at 3:27 AM, Giedrius Statkevičius > wrote: > > It is possible that acpi_evaluate_integer might fail and value would not be > > set to any value so correct this defect by returning 0 in case of an > > error. Thi

Re: [PATCH 2/2 v5] irqchip/Layerscape: Add SCFG MSI controller support

2016-04-22 Thread Marc Zyngier
On 22/04/16 06:33, Leo Li wrote: > On Mon, Mar 7, 2016 at 3:50 AM, Marc Zyngier wrote: >> On Mon, 7 Mar 2016 11:36:22 +0800 >> Minghuan Lian wrote: >> >>> Some kind of NXP Layerscape SoC provides a MSI >>> implementation which uses two SCFG registers MSIIR and >>> MSIR to support 32 MSI interrupt

Re: [PATCH 0/5] x86, boot: clean up KASLR code (step 2)

2016-04-22 Thread Ingo Molnar
Another small request, I've been doing this to the previous patches: sed -i 's/x86, KASLR: /x86\/KASLR: /g' sed -i 's/x86, boot: /x86\/boot: /g' Could you please apply the regular x86/subsys title format for future patches? Thanks! Ingo

Re: [PATCH] ARM64: dts: rockchip: add core dtsi file for RK3399 SoCs

2016-04-22 Thread Marc Zyngier
On 22/04/16 02:50, jay.xu wrote: > Hi Marc: > > On 2016年04月22日 05:12, Marc Zyngier wrote: >> On Thu, 21 Apr 2016 22:24:09 +0200 >> Heiko Stübner wrote: >> >>> Am Donnerstag, 21. April 2016, 12:30:18 schrieb Marc Zyngier: On Thu, 21 Apr 2016 18:47:20 +0800 "Huang, Tao" wrote: >

Re: [PATCH v1 4/5] perf: Introduce address range filtering

2016-04-22 Thread Peter Zijlstra
On Thu, Apr 21, 2016 at 06:17:02PM +0300, Alexander Shishkin wrote: > +struct addr_filter_setup_data { > + struct perf_event *event; > + unsigned long *offs; > + unsigned long gen; > +}; > + > +static int __perf_event_addr_filters_setup(void *info) > +{ > +

Re: [PATCH 1/2] clocksource: sp804: Add support for OX810SE 24bit timer width

2016-04-22 Thread Daniel Lezcano
On Fri, Apr 01, 2016 at 04:22:38PM +0200, Neil Armstrong wrote: > In order to support the Dual-Timer on the Oxford Semiconductor OX810SE SoC, > implement variable counter width, keeping 32bit as default width. > Add new compatible string oxsemi,ox810se-rps-timer in order to select > the 24bit count

Re: [PATCH] scripts: kconfig: implement a sort method

2016-04-22 Thread Felipe Balbi
Hi, Randy Dunlap writes: > On 04/21/16 13:07, Felipe Balbi wrote: >> With a growing amount of Kernel configuration, it's >> getting ever more difficult to find anything on >> menuconfig. Because of that, implement mergesort for >> kconfig to make it a little easier for anybody >> building kernel

Re: [PATCH 4/5] x86, boot: Make memcpy handle overlaps

2016-04-22 Thread Ingo Molnar
* Kees Cook wrote: > Two uses of memcpy (screen scrolling and ELF parsing) were handling > overlapping memory areas. While there were no explicitly noticed bugs > here (yet), it is best to fix this so that the copying will always be > safe. > > Instead of making a new memmove function that migh

Re: [PATCH v7 6/8] [media] vcodec: mediatek: Add Mediatek VP8 Video Encoder Driver

2016-04-22 Thread kbuild test robot
-Driver-and-VPU-Driver/20160422-123111 base: git://linuxtv.org/media_tree.git master config: i386-allyesconfig (attached as .config) reproduce: # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): drivers/media/platfo

Re: [regression] linux318, linux41 - kernel stack is corrupted

2016-04-22 Thread Sebastian M. Bobrecki
Hi, I just hit the same with 4.1.22 on Gentoo. 4.1.21 are working fine. On 22.04.2016 at 08:46, Greg Kroah-Hartman wrote: ... You are going to have to be a bit more specific here... What is the oops message? How do you reproduce this? Does it also happen on 4.6-rc4? Can you run 'git bisect'

RE: [PATCH 2/2 v5] irqchip/Layerscape: Add SCFG MSI controller support

2016-04-22 Thread Minghuan Lian
Hi Marc, Please see the link: https://patchwork.kernel.org/patch/8649241/ Rob Herring has given the ACK. I have submitted the v6 patch: https://patchwork.kernel.org/patch/8649251/ Please apply the latest the patch after you review. Thank you very much. Regard, Minghuan > -Original Mess

Re: [PATCH v7 00/24] i2c mux cleanup and locking update

2016-04-22 Thread Peter Rosin
Hi Wolfram, Wolfram Sang wrote: > This was the diff of v6: > > > 32 files changed, 1277 insertions(+), 915 deletions(-) > > This is v7: > > > 32 files changed, 1225 insertions(+), 916 deletions(-) > > So, we gained a little overall. And while the individual drivers have a > few lines more no

[tip:smp/urgent] cpu/hotplug: Fix rollback during error-out in __cpu_disable()

2016-04-22 Thread tip-bot for Sebastian Andrzej Siewior
Commit-ID: 3b9d6da67e11ca8f78fde887918983523a36b0fa Gitweb: http://git.kernel.org/tip/3b9d6da67e11ca8f78fde887918983523a36b0fa Author: Sebastian Andrzej Siewior AuthorDate: Fri, 8 Apr 2016 14:40:15 +0200 Committer: Thomas Gleixner CommitDate: Fri, 22 Apr 2016 09:49:49 +0200 cpu/hotplug

Re: [PATCH 1/2] clocksource: sp804: Add support for OX810SE 24bit timer width

2016-04-22 Thread Thomas Gleixner
On Fri, 22 Apr 2016, Daniel Lezcano wrote: > On Fri, Apr 01, 2016 at 04:22:38PM +0200, Neil Armstrong wrote: > > In order to support the Dual-Timer on the Oxford Semiconductor OX810SE SoC, > > implement variable counter width, keeping 32bit as default width. > > Add new compatible string oxsemi,ox

Re: [PATCH 4/5] x86, boot: Make memcpy handle overlaps

2016-04-22 Thread Ingo Molnar
* Kees Cook wrote: > Two uses of memcpy (screen scrolling and ELF parsing) were handling > overlapping memory areas. While there were no explicitly noticed bugs > here (yet), it is best to fix this so that the copying will always be > safe. > > Instead of making a new memmove function that migh

Re: [regression] linux318, linux41 - kernel stack is corrupted

2016-04-22 Thread Greg Kroah-Hartman
On Fri, Apr 22, 2016 at 09:47:04AM +0200, Sebastian M. Bobrecki wrote: > Hi, > > I just hit the same with 4.1.22 on Gentoo. 4.1.21 are working fine. > > On 22.04.2016 at 08:46, Greg Kroah-Hartman wrote: > > ... > > You are going to have to be a bit more specific here... > > What is the oops messa

Re: [PATCH 2/2 v5] irqchip/Layerscape: Add SCFG MSI controller support

2016-04-22 Thread Marc Zyngier
On 22/04/16 08:53, Minghuan Lian wrote: > Hi Marc, > > Please see the link: > https://patchwork.kernel.org/patch/8649241/ > > Rob Herring has given the ACK. > > I have submitted the v6 patch: https://patchwork.kernel.org/patch/8649251/ > Please apply the latest the patch after you review. Than

Re: [PATCH 1/5] perf tools: fix incorrect ordering of callchain entries

2016-04-22 Thread Adrian Hunter
On 19/04/16 11:56, Chris Phlipot wrote: > The existing implentation implementation of thread__resolve_callchain, Remove 'implentation' > under certain circumstanes, can assemble callchain entries in the 'circumstanes' -> 'circumstances' > incorrect order. > > A the callchain entries are resolv

Re: [PATCH 2/5] perf script: extend db-export api to include callchains for samples

2016-04-22 Thread Adrian Hunter
On 19/04/16 11:56, Chris Phlipot wrote: > The current implementation of the python database export API only > includes call path information when using some form of call/return > tracing, but is unable to do so when sampling. > > The following API extensions allow exporting of data collected by >

Re: [PATCH v1 2/5] perf/x86/intel/pt: IP filtering register/cpuid bits

2016-04-22 Thread Thomas Gleixner
On Thu, 21 Apr 2016, Borislav Petkov wrote: > On Thu, Apr 21, 2016 at 08:55:38PM +0200, Thomas Gleixner wrote: > > I have to disagree here. The MSRs itself can really go into msr-index.h > > while > > the bit definitions might go elsewhere. What's wrong with having all MSRs > > at a > > central

Re: [PATCH v5] irqchip, gicv3-its, numa: Enable workaround for Cavium thunderx erratum 23144

2016-04-22 Thread Marc Zyngier
On 21/04/16 18:40, Robert Richter wrote: > On 15.04.16 21:30:05, Robert Richter wrote: >> From: Ganapatrao Kulkarni >> >> The erratum fixes the hang of ITS SYNC command by avoiding inter node >> io and collections/cpu mapping on thunderx dual-socket platform. >> >> This fix is only applicable for

Re: [PATCH 1/5] perf tools: fix incorrect ordering of callchain entries

2016-04-22 Thread Adrian Hunter
+Jiri since he wrote the original code On 22/04/16 10:55, Adrian Hunter wrote: > On 19/04/16 11:56, Chris Phlipot wrote: >> The existing implentation implementation of thread__resolve_callchain, > > Remove 'implentation' > >> under certain circumstanes, can assemble callchain entries in the > >

Re: [PATCH v7 7/8] [media] vcodec: mediatek: Add Mediatek H264 Video Encoder Driver

2016-04-22 Thread kbuild test robot
-Driver-and-VPU-Driver/20160422-123111 base: git://linuxtv.org/media_tree.git master config: i386-allyesconfig (attached as .config) reproduce: # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): drivers/media/platfo

Re: [regression] linux318, linux41 - kernel stack is corrupted

2016-04-22 Thread Sebastian M. Bobrecki
W dniu 22.04.2016 o 09:55, Greg Kroah-Hartman pisze: On Fri, Apr 22, 2016 at 09:47:04AM +0200, Sebastian M. Bobrecki wrote: Hi, I just hit the same with 4.1.22 on Gentoo. 4.1.21 are working fine. On 22.04.2016 at 08:46, Greg Kroah-Hartman wrote: ... You are going to have to be a bit more spec

Re: [PATCH V2 04/14] irqdomain: Fix handling of type settings for existing mappings

2016-04-22 Thread Marc Zyngier
On 20/04/16 12:03, Jon Hunter wrote: > When mapping an IRQ, it is possible that a mapping for the IRQ already > exists. If mapping does exist then there are the following issues with > regard to the handling of the IRQ type settings ... > 1. If the domain is part of a hierarchy, then: >a. We do

Re: [GIT PULL] phy: for 4.6 -rc

2016-04-22 Thread Greg KH
On Sun, Apr 17, 2016 at 12:27:09PM +0530, Kishon Vijay Abraham I wrote: > Hi Greg, > > Please find the pull request for 4.6 -rc cycle below. It consists of > couple of fixes to move the rockchip emmc phy and rockchip display phy > as a child device of GRF. Both these PHY drivers were merged in the

[PATCH 0/7] Make debugobjects fixup functions return bool type

2016-04-22 Thread changbin . du
From: "Du, Changbin" Hello, I am going to introduce debugobjects infrastructure to USB subsystem. But before this, I found the code of debugobjects could be improved. This patchset will make fixup functions return bool type instead of int. Because fixup only need report success or no. boolean is

[PATCH 1/7] debugobjects: make fixup functions return bool instead of int

2016-04-22 Thread changbin . du
From: "Du, Changbin" The object debugging infrastructure core provides some fixup callbacks for the subsystem who use it. These callbacks are called from the debug code whenever a problem in debug_object_init is detected. And debugobjects core suppose them returns 1 when the fixup was successful,

[PATCH 4/7] timer: update debugobjects fixup callbacks return type

2016-04-22 Thread changbin . du
From: "Du, Changbin" Update the return type to use bool instead of int, corresponding to cheange (debugobjects: make fixup functions return bool instead of int). Signed-off-by: Du, Changbin --- kernel/time/hrtimer.c | 18 +- kernel/time/timer.c | 30 +++---

[PATCH 5/7] rcu: update debugobjects fixup callbacks return type

2016-04-22 Thread changbin . du
From: "Du, Changbin" Update the return type to use bool instead of int, corresponding to cheange (debugobjects: make fixup functions return bool instead of int). Signed-off-by: Du, Changbin --- kernel/rcu/update.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel

[PATCH 7/7] Documentation: update debugobjects doc

2016-04-22 Thread changbin . du
From: "Du, Changbin" Update documentation creangponding to change(debugobjects: make fixup functions return bool instead of int). Signed-off-by: Du, Changbin --- Documentation/DocBook/debugobjects.tmpl | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --g

Re: [PATCH 9/9] arm64: dts: rockchip: move the rk3368 thermal data into rk3368.dtsi

2016-04-22 Thread Heiko Stübner
Am Montag, 18. April 2016, 11:36:01 schrieb Caesar Wang: > In order to be standard to manage for rockchip SoCs, move the thermal > data into rk3368 dtsi, we needn't to add a new file for thermal. > > Fixes commit f990238f859e > ("arm64: dts: rockchip: Add main thermal info to rk3368.dtsi") > > S

[PATCH 6/7] percpu_counter: update debugobjects fixup callbacks return type

2016-04-22 Thread changbin . du
From: "Du, Changbin" Update the return type to use bool instead of int, corresponding to cheange (debugobjects: make fixup functions return bool instead of int). Signed-off-by: Du, Changbin --- lib/percpu_counter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/p

[PATCH 3/7] workqueue: update debugobjects fixup callbacks return type

2016-04-22 Thread changbin . du
From: "Du, Changbin" Update the return type to use bool instead of int, corresponding to cheange (debugobjects: make fixup functions return bool instead of int) Signed-off-by: Du, Changbin --- kernel/workqueue.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff

[PATCH 2/7] debugobjects: correct the usage of fixup call results

2016-04-22 Thread changbin . du
From: "Du, Changbin" If debug_object_fixup() return non-zero when problem has been fixed. But the code got it backwards, it taks 0 as fixup successfully. So fix it. Signed-off-by: Du, Changbin --- lib/debugobjects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/debugo

Re: [PATCH V2 06/14] irqdomain: Don't set type when mapping an IRQ

2016-04-22 Thread Marc Zyngier
Hi Jon, On 21/04/16 16:45, Jon Hunter wrote: > > On 20/04/16 12:03, Jon Hunter wrote: >> Some IRQ chips, such as GPIO controllers or secondary level interrupt >> controllers, may require require additional runtime power management >> control to ensure they are accessible. For such IRQ chips, it m

Re: [regression] linux318, linux41 - kernel stack is corrupted

2016-04-22 Thread Greg Kroah-Hartman
On Fri, Apr 22, 2016 at 10:10:59AM +0200, Sebastian M. Bobrecki wrote: > W dniu 22.04.2016 o 09:55, Greg Kroah-Hartman pisze: > > On Fri, Apr 22, 2016 at 09:47:04AM +0200, Sebastian M. Bobrecki wrote: > > > Hi, > > > > > > I just hit the same with 4.1.22 on Gentoo. 4.1.21 are working fine. > > >

Re: [PATCH 2/8] drm/udl: Change drm_fb_helper_sys_*() calls to sys_*()

2016-04-22 Thread Daniel Vetter
On Thu, Apr 21, 2016 at 08:18:48PM +0200, Noralf Trønnes wrote: > > Den 21.04.2016 09:28, skrev Daniel Vetter: > >On Wed, Apr 20, 2016 at 08:15:30PM +0200, Noralf Trønnes wrote: > >>Den 20.04.2016 19:42, skrev Daniel Vetter: > >>>On Wed, Apr 20, 2016 at 05:25:23PM +0200, Noralf Trønnes wrote: > >>

Re: [PATCH 4/8] drm/fb-helper: Add fb_deferred_io support

2016-04-22 Thread Daniel Vetter
On Thu, Apr 21, 2016 at 08:54:45PM +0200, Noralf Trønnes wrote: > > Den 20.04.2016 17:25, skrev Noralf Trønnes: > >This adds deferred io support if CONFIG_FB_DEFERRED_IO is enabled. > >Accumulated fbdev framebuffer changes are signaled using the callback > >(struct drm_framebuffer_funcs *)->dirty(

Re: [PATCH 0/8] Input: atmel_mxt_ts - output raw touch diagnostic data via V4L

2016-04-22 Thread Hans Verkuil
Hi Nick, On 04/21/2016 11:31 AM, Nick Dyer wrote: > This is a series of patches to add diagnostic data support to the Atmel > maXTouch driver. It's a rewrite of the previous implementation which output > via > debugfs: it now uses a V4L2 device in a similar way to the sur40 driver. > > There are

Re: [PATCH v12 1/2] kernel.h: add u64_to_user_ptr()

2016-04-22 Thread Daniel Vetter
On Thu, Apr 21, 2016 at 12:38:49PM -0300, Gustavo Padovan wrote: > From: Gustavo Padovan > > This function had copies in 3 different files. Unify them in kernel.h. > > Cc: Joe Perches > Cc: Andrew Morton > Cc: David Airlie > Cc: Daniel Vetter > Cc: Rob Clark > Signed-off-by: Gustavo Padovan

[PATCH 3/4] soc: qcom: spm: Use const and __initconst for qcom_cpuidle_ops

2016-04-22 Thread Daniel Lezcano
From: Jisheng Zhang The qcom_cpuidle_ops structures is not over-written, so add "const" qualifier and replace __initdata with __initconst. Signed-off-by: Jisheng Zhang Signed-off-by: Daniel Lezcano Acked-by: Andy Gross --- drivers/soc/qcom/spm.c | 2 +- 1 file changed, 1 insertion(+), 1 dele

[PATCH 4/4] drivers: firmware: psci: use const and __initconst for psci_cpuidle_ops

2016-04-22 Thread Daniel Lezcano
From: Jisheng Zhang The psci_cpuidle_ops structures is not over-written, so add "const" qualifier and replace __initdata with __initconst. Acked-by: Lorenzo Pieralisi Signed-off-by: Jisheng Zhang Signed-off-by: Daniel Lezcano --- drivers/firmware/psci.c | 2 +- 1 file changed, 1 insertion(+)

[PATCH 2/4] ARM: cpuidle: constify return value of arm_cpuidle_get_ops()

2016-04-22 Thread Daniel Lezcano
From: Jisheng Zhang arm_cpuidle_read_ops() just copies '*ops' to cpuidle_ops[cpu], so the structure '*ops' is not modified at all. The comment is also updated accordingly. Signed-off-by: Jisheng Zhang Signed-off-by: Daniel Lezcano --- arch/arm/kernel/cpuidle.c | 6 +++--- 1 file changed, 3 i

[PATCH 1/4] ARM: cpuidle: add const qualifier to cpuidle_ops member in structures

2016-04-22 Thread Daniel Lezcano
From: Jisheng Zhang The core code does not modify smp_operations structures. To clarify it, this patch adds 'const' qualifier to the 'ops' member of struct of_cpuidle_method. This change allows each arm cpuidle code to add 'const' qualifier to its cpuidle_ops structure. Signed-off-by: Jisheng Z

Re: [PATCH 1/7] debugobjects: make fixup functions return bool instead of int

2016-04-22 Thread Thomas Gleixner
On Fri, 22 Apr 2016, changbin...@intel.com wrote: > From: "Du, Changbin" > > The object debugging infrastructure core provides some fixup callbacks > for the subsystem who use it. These callbacks are called from the debug > code whenever a problem in debug_object_init is detected. And > debugobje

Re: [tip:x86/asm] x86/entry: Rename is_{ia32,x32}_task() to in_{ia32,x32}_syscall()

2016-04-22 Thread Ingo Molnar
* Andy Lutomirski wrote: > On Tue, Apr 19, 2016 at 4:15 AM, Ingo Molnar wrote: > > > > * tip-bot for Dmitry Safonov wrote: > > > >> Commit-ID: abfb9498ee1327f534df92a7ecaea81a85913bae > >> Gitweb: > >> http://git.kernel.org/tip/abfb9498ee1327f534df92a7ecaea81a85913bae > >> Author: Dm

Re: linux-next: build failure after merge of the sound-asoc tree

2016-04-22 Thread Philipp Zabel
Am Freitag, den 22.04.2016, 12:03 +1000 schrieb Stephen Rothwell: > Hi all, > > After merging the sound-asoc tree, today's linux-next build (x86_64 > allmodconfig) failed like this: > > In file included from include/linux/notifier.h:13:0, > from include/linux/memory_hotplug.h:6,

Re: [PATCH V2 03/14] irqchip: Mask the non-type/sense bits when translating an IRQ

2016-04-22 Thread Marc Zyngier
On 20/04/16 12:03, Jon Hunter wrote: > The firmware parameter that contains the IRQ sense bits may also contain > other data. When return the IRQ type, bits outside of these sense bits > should be masked. If these bits are not masked and > irq_create_fwspec_mapping() is called to map an IRQ, then t

Re: [PATCH v11 3/3] printk: make printk.synchronous param rw

2016-04-22 Thread Petr Mladek
On Fri 2016-04-22 10:28:26, Sergey Senozhatsky wrote: > Hello, > > On (04/21/16 13:07), Petr Mladek wrote: > [..] > > Please, what is the purpose of "printk_initcall_done" then? If I get > > this correctly, it will always be true when printk_sync_set() is > > called. > > well, this is a bit ugly,

[PATCH] MIPS: Allow R6 compact branch policy to be left unspecified

2016-04-22 Thread Paul Burton
It turns out that some toolchains which support MIPS R6 don't support the -mcompact-branches flag to specify compact branch behaviour. Default to not providing the -mcompact-branch option to the compiler such that we can build with such toolchains. Signed-off-by: Paul Burton Reported-by: kbuild t

Re: [PATCH] mm: make fault_around_bytes configurable

2016-04-22 Thread Vinayak Menon
On 04/22/2016 05:31 AM, Andrew Morton wrote: On Mon, 18 Apr 2016 20:47:16 +0530 Vinayak Menon wrote: Mapping pages around fault is found to cause performance degradation in certain use cases. The test performed here is launch of 10 apps one by one, doing something with the app each time, and

Re: [PATCH V2 06/14] irqdomain: Don't set type when mapping an IRQ

2016-04-22 Thread Jon Hunter
On 22/04/16 09:22, Marc Zyngier wrote: > Hi Jon, > > On 21/04/16 16:45, Jon Hunter wrote: >> >> On 20/04/16 12:03, Jon Hunter wrote: >>> Some IRQ chips, such as GPIO controllers or secondary level interrupt >>> controllers, may require require additional runtime power management >>> control to en

Re: [PATCH net-next] hv_netvsc: Fix the list processing for network change event

2016-04-22 Thread Vitaly Kuznetsov
Haiyang Zhang writes: > RNDIS_STATUS_NETWORK_CHANGE event is handled as two "half events" -- > media disconnect & connect. The second half should be added to the list > head, not to the tail. So all events are processed in normal order. > Thanks, this matters when we get some other events in be

Re: [PATCH V2 02/14] irqchip/gic: WARN if setting the interrupt type for a PPI fails

2016-04-22 Thread Marc Zyngier
On 20/04/16 12:03, Jon Hunter wrote: > Setting the interrupt type for private peripheral interrupts (PPIs) may > not be supported by a given GIC because it is IMPLEMENTATION DEFINED > whether this is allowed. There is no way to know if setting the type is > supported for a given GIC and so the valu

[PATCH v4] i2c: designware-platdrv: fix unbalanced clk enable and prepare

2016-04-22 Thread Jisheng Zhang
If i2c_dw_probe() fails, we should disable and unprepare the clock, otherwise the clock enable and prepare is left unbalanced. In dw_i2c_plat_remove(), we'd better to not rely on runtime PM to disable and unprepare the clock since CONFIG_PM may be disabled when configuring the kernel. So we explic

RE: [PATCH 1/7] debugobjects: make fixup functions return bool instead of int

2016-04-22 Thread Du, Changbin
Hi, > On Fri, 22 Apr 2016, changbin...@intel.com wrote: > > From: "Du, Changbin" > > > > The object debugging infrastructure core provides some fixup callbacks > > for the subsystem who use it. These callbacks are called from the debug > > code whenever a problem in debug_object_init is detected.

Re: [kbuild-all] mipsel-linux-gnu-gcc: error: unrecognized command line option '-mcompact-branches=optimal'

2016-04-22 Thread Paul Burton
On Thu, Apr 21, 2016 at 10:10:51PM +0100, Maciej W. Rozycki wrote: > On Thu, 21 Apr 2016, Ralf Baechle wrote: > > > > I don't think it makes sense as the compiler won't support MIPSr6 code > > > anyway, so first it'll bail out on `-march=mips32r6', and if we go even > > > further and disable th

Re: [PATCH v5] irqchip, gicv3-its, numa: Enable workaround for Cavium thunderx erratum 23144

2016-04-22 Thread Will Deacon
On Fri, Apr 22, 2016 at 09:01:05AM +0100, Marc Zyngier wrote: > On 21/04/16 18:40, Robert Richter wrote: > > On 15.04.16 21:30:05, Robert Richter wrote: > >> From: Ganapatrao Kulkarni > >> > >> The erratum fixes the hang of ITS SYNC command by avoiding inter node > >> io and collections/cpu mappin

Re: [PATCH 2/7] mfd: lp8788: Use devm_mfd_add_devices and devm_regmap_add_irq_chip

2016-04-22 Thread Laxman Dewangan
On Friday 22 April 2016 04:45 AM, Kim, Milo wrote: Hi Laxman, On 4/21/2016 9:25 PM, Laxman Dewangan wrote: Use devm_mfd_add_devices() for adding MFD child devices and devm_regmap_add_irq_chip() for IRQ chip registration. This patch doesn't include the code regarding devm_mfd_add_devices().

Re: [PATCH v7 1/9] clk: mediatek: Refine the makefile to support multiple clock drivers

2016-04-22 Thread Matthias Brugger
On 14/04/16 10:11, James Liao wrote: Add a Kconfig to define clock configuration for each SoC, and modify the Makefile to build drivers that only selected in config. Signed-off-by: Shunli Wang Signed-off-by: James Liao Tested-by: John Crispin --- Reviewed-by: Matthias Brugger drivers

Re: [PATCH v2 3/7] regulator: rk808: Migrate to regulator core's simplified DT parsing code

2016-04-22 Thread Wadim Egorov
On 21.04.2016 18:01, Mark Brown wrote: > On Thu, Apr 21, 2016 at 03:12:37PM +0200, Wadim Egorov wrote: > >> +static int rk808_set_suspend_voltage(struct regulator_dev *rdev, int uv) >> +{ >> +unsigned int reg; >> +int sel = regulator_map_voltage_linear(rdev, uv, uv); >> + >> +if (sel

Re: [PATCH v7 3/9] clk: mediatek: Add dt-bindings for MT2701 clocks

2016-04-22 Thread Matthias Brugger
On 14/04/16 10:11, James Liao wrote: From: Shunli Wang Add MT2701 clock dt-bindings, include topckgen, apmixedsys, infracfg, pericfg and subsystem clocks. Signed-off-by: Shunli Wang Signed-off-by: James Liao Tested-by: John Crispin Reviewed-by: Matthias Brugger --- include/dt-bindi

Re: [PATCH 2/7] debugobjects: correct the usage of fixup call results

2016-04-22 Thread Thomas Gleixner
On Fri, 22 Apr 2016, changbin...@intel.com wrote: > From: "Du, Changbin" > > If debug_object_fixup() return non-zero when problem has been > fixed. But the code got it backwards, it taks 0 as fixup > successfully. So fix it. Wrong. > @@ -415,7 +415,7 @@ int debug_object_activate(void *addr, st

[PATCH v3] sched/cpufreq: optimize cpufreq update kicker to avoid update multiple times

2016-04-22 Thread Wanpeng Li
From: Wanpeng Li Sometimes delta_exec is 0 due to update_curr() is called multiple times, this is captured by: u64 delta_exec = rq_clock_task(rq) - curr->se.exec_start; This patch optimizes the cpufreq update kicker by bailing out when nothing changed, it will benefit the upcoming sche

Re: [PATCH resend 0/3] mm: allow arch to override lowmem_page_address

2016-04-22 Thread Will Deacon
On Thu, Apr 21, 2016 at 04:51:38PM -0700, Andrew Morton wrote: > On Mon, 18 Apr 2016 18:04:54 +0200 Ard Biesheuvel > wrote: > > > These patches allow the arch to define the page_to_virt() conversion that > > is used in lowmem_page_address(). This is desirable for arm64, where this > > conversion

Re: [PATCH v2 05/13] ARM: dts: db600c: add pmic regulator supplies

2016-04-22 Thread Srinivas Kandagatla
On 19/04/16 20:10, Stephen Boyd wrote: On 04/12/2016 02:33 AM, Srinivas Kandagatla wrote: This patch adds pmic regulator supplies connected on the board. Rest of the invidual regulators would be added as and when required by the devices. Signed-off-by: Srinivas Kandagatla Acked-by: Bjorn And

Re: [PATCH 0/2] mtd: nand: omap2: Fix SDMA support for NAND DMA prefetch

2016-04-22 Thread Boris Brezillon
On Fri, 15 Apr 2016 15:28:57 -0500 Franklin S Cooper Jr wrote: > NAND DMA prefetch for SDMA based devices has been broken for awhile. This > patchset fixes it so SOCs that use the SDMA can make use of the NAND > DMA prefetch. > > I've decided to split this patchset from the slightly larger patch

Re: [PATCH 4/4] mtd: nandsim: add __init attribute

2016-04-22 Thread Boris Brezillon
On Tue, 19 Apr 2016 14:33:35 +0200 Julia Lawall wrote: > Add __init attribute on functions that are only called from other __init > functions and that are not inlined, at least with gcc version 4.8.4 on an > x86 machine with allyesconfig. Currently, the functions are put in the > .text.unlikely

Re: [PATCH 00/12] mtd: get rid of of_mtd.{c,h} and of_get_nand_xx()

2016-04-22 Thread Boris Brezillon
On Fri, 1 Apr 2016 14:54:20 +0200 Boris Brezillon wrote: > Hello, > > of_mtd.{h,c} are providing the of_get_nand_xxx() helpers to help NAND > controller drivers parse some generic NAND DT properties. > An infrastructure has recently been added to NAND core to automatically > parse those propert

RE: [PATCH 1/7] debugobjects: make fixup functions return bool instead of int

2016-04-22 Thread Thomas Gleixner
On Fri, 22 Apr 2016, Du, Changbin wrote: > > On Fri, 22 Apr 2016, changbin...@intel.com wrote: > > > A bad thing is that debug_object_fixup use the return value for > > > arithmetic operation. It confused me that what is the reall return > > > > What's bad about that? The fact that it's used for a

Re: [PATCH] media: vb2: Fix regression on poll() for RW mode

2016-04-22 Thread Hans Verkuil
Hi Ricardo, On 04/21/2016 11:15 AM, Ricardo Ribalda Delgado wrote: > When using a device is read/write mode, vb2 does not handle properly the > first select/poll operation. It allways return POLLERR. > > The reason for this is that when this code has been refactored, some of > the operations have

Re: linux-next: build failure after merge of the sound-asoc tree

2016-04-22 Thread Mark Brown
On Fri, Apr 22, 2016 at 10:40:11AM +0200, Philipp Zabel wrote: > 8< > From: Philipp Zabel > Subject: [PATCH] fixup! ASoC: hdmi-codec: Add ELD control Please don't bury patches in the middle of e-mails. signature.asc Description: PGP signature

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

2016-04-22 Thread Mark Brown
On Wed, Apr 13, 2016 at 11:15:13AM -0400, David Miller wrote: > From: Stephen Rothwell > > After merging the net-next tree, today's linux-next build (arm > > allmodconfig) failed like thisi (this has actually been failing for a > > few days, now): > > ERROR: "__bad_udelay" [drivers/net/ethernet/

Re: linux-next: build failure after merge of the sound-asoc tree

2016-04-22 Thread Mark Brown
On Fri, Apr 22, 2016 at 10:40:11AM +0200, Philipp Zabel wrote: > 8< > From: Philipp Zabel > Subject: [PATCH] fixup! ASoC: hdmi-codec: Add ELD control Please also use subject lines that match the style for the subsystem. signature.asc Description: PGP signature

Re: [PATCH 2/3] ASoC: simple-card: Add support jack detection via codec

2016-04-22 Thread Mark Brown
On Fri, Apr 22, 2016 at 09:17:46AM +0800, Xing Zheng wrote: > Hi Mark, the other question here, how do we make sense to use the > simple-card to call the "snd_soc_dai_set_pll" if the codec (like da7219) > requires do this? What we should do there is move the CODEC clocking to be represented using

Re: [PATCH v4 2/2] KVM: move vcpu id checking to archs

2016-04-22 Thread Wei Yang
Hi, Greg One confusion. There are 5 kvm_arch_vcpu_create() while in this patch you changed 2 of them. Some particular reason? On Thu, Apr 21, 2016 at 04:20:53PM +0200, Greg Kurz wrote: >Commit 338c7dbadd26 ("KVM: Improve create VCPU parameter (CVE-2013-4587)") >introduced a check to prevent pote

Re: [PATCH v4 2/2] KVM: move vcpu id checking to archs

2016-04-22 Thread Greg Kurz
Hi Radim ! On Thu, 21 Apr 2016 19:36:11 +0200 Radim Krčmář wrote: > 2016-04-21 18:45+0200, Greg Kurz: > > On Thu, 21 Apr 2016 18:00:19 +0200 > > Radim Krčmář wrote: > >> 2016-04-21 16:20+0200, Greg Kurz: > >> > Commit 338c7dbadd26 ("KVM: Improve create VCPU parameter > >> > (CVE-2013-4587)

Re: [PATCH v4 2/2] KVM: move vcpu id checking to archs

2016-04-22 Thread Greg Kurz
On Fri, 22 Apr 2016 17:21:03 +0800 Wei Yang wrote: > Hi, Greg > Hi Wei ! > One confusion. > > There are 5 kvm_arch_vcpu_create() while in this patch you changed 2 of them. > Some particular reason? > Yes and the reason is given in the changelog: - ARM and s390 already have such a check - Po

  1   2   3   4   5   6   7   8   9   >