[v5 PATCH 0/5] Rockchip Type-C and DisplayPort driver

2016-07-12 Thread Chris Zhong
Hi all This series patch is for rockchip Type-C phy and DisplayPort controller driver. The USB Type-C PHY is designed to support the USB3 and DP applications. The PHY basically has two main components: USB3 and DisplyPort. USB3 operates in SuperSpeed mode and the DP can operate at RBR, HBR and H

Re: [PATCH v5 24/44] iommu: intel: dma-mapping: Use unsigned long for dma_attrs

2016-07-12 Thread Joerg Roedel
On Thu, Jun 30, 2016 at 10:25:51AM +0200, Krzysztof Kozlowski wrote: > Split out subsystem specific changes for easier reviews. This will be > squashed with main commit. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/iommu/intel-iommu.c | 12 ++-- > 1 file changed, 6 insertions(+

Re: [PATCH 1/5] workqueue: wq_pool_mutex protects the attrs-installation

2016-07-12 Thread Tejun Heo
On Mon, Jul 11, 2016 at 04:50:44PM -0400, Steven Rostedt wrote: > > [ crickets ] Oops, sorry about that. Looking at it now. -- tejun

Re: [PATCH] media: s5p-mfc Fix misspelled error message and checkpatch errors

2016-07-12 Thread Javier Martinez Canillas
Hello Shuah, On 07/12/2016 11:07 AM, Shuah Khan wrote: > On 07/12/2016 09:03 AM, Javier Martinez Canillas wrote: >> Hello Shuah, >> >> On 07/11/2016 06:39 PM, Shuah Khan wrote: >>> Fix misspelled error message and existing checkpatch errors in the >>> error message conditional. >>> >>> WARNING: su

Re: [PATCH v5 17/44] iommu: dma-mapping: Use unsigned long for dma_attrs

2016-07-12 Thread Joerg Roedel
On Thu, Jun 30, 2016 at 10:25:44AM +0200, Krzysztof Kozlowski wrote: > Split out subsystem specific changes for easier reviews. This will be > squashed with main commit. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/iommu/amd_iommu.c | 12 ++-- > drivers/iommu/dma-iommu.c | 6 +

[v5 PATCH 2/5] Documentation: bindings: add dt doc for Rockchip USB Type-C PHY

2016-07-12 Thread Chris Zhong
This patch adds a binding that describes the Rockchip USB Type-C PHY for rk3399 Signed-off-by: Chris Zhong Reviewed-by: Tomasz Figa Reviewed-by: Kever Yang Acked-by: Rob Herring --- Changes in v5: None Changes in v4: - add a #phy-cells node Changes in v3: - use compatible: rockchip,rk3399-t

[PATCH v2 1/4] f2fs: fix to avoid reading out encrypted data in page cache

2016-07-12 Thread Chao Yu
From: Chao Yu For encrypted inode, if user overwrites data of the inode, f2fs will read encrypted data into page cache, and then do the decryption. However reader can race with overwriter, and it will see encrypted data which has not been decrypted by overwriter yet. Fix it by moving decrypting

Re: [patch 54/66] hwtracing: coresight-etm3x: Convert to hotplug state machine

2016-07-12 Thread Mathieu Poirier
On 11 July 2016 at 06:29, Anna-Maria Gleixner wrote: > From: Richard Cochran > > This driver has an asymmetry of ONLINE code without any corresponding tear > down code. Otherwise, this is a straightforward conversion. > > Signed-off-by: Richard Cochran > Reviewed-by: Sebastian Andrzej Siewior >

Re: [PATCH 1/5] workqueue: wq_pool_mutex protects the attrs-installation

2016-07-12 Thread Tejun Heo
On Tue, Jul 12, 2016 at 11:09:47AM -0400, Tejun Heo wrote: > On Mon, Jul 11, 2016 at 04:50:44PM -0400, Steven Rostedt wrote: > > > > [ crickets ] > > Oops, sorry about that. Looking at it now. Hmmm... Looking at the thread, I already responded to the question regarding sched-RCU usage in the qu

Re: [PATCH 44/93] clocksource/drivers/time-armada-370-xp: Convert init function to return error

2016-07-12 Thread Thomas Gleixner
On Tue, 12 Jul 2016, Anna-Maria Gleixner wrote: > On Thu, 7 Jul 2016, Daniel Lezcano wrote: > > + res = armada_370_xp_timer_setup(this_cpu_ptr(armada_370_xp_evt)); > > + if (!res) { > > I think the "!" is a mistake, because armada_370_xp_timer_setup() > returns zero. See delta patch fixing thi

Re: [patch 55/66] hwtracing: coresight-etm4x: Convert to hotplug state machine

2016-07-12 Thread Mathieu Poirier
On 11 July 2016 at 06:29, Anna-Maria Gleixner wrote: > From: Sebastian Andrzej Siewior > > This driver has an asymmetry of ONLINE code without any corresponding tear > down code. Otherwise, this is a straightforward conversion. > > Signed-off-by: Sebastian Andrzej Siewior > Cc: Mathieu Poirier

Re: [PATCH v9 6/7] arm64: add support for ACPI Low Power Idle(LPI)

2016-07-12 Thread Catalin Marinas
On Fri, Jul 08, 2016 at 06:07:57PM +0100, Sudeep Holla wrote: > This patch adds appropriate callbacks to support ACPI Low Power Idle > (LPI) on ARM64. > > Cc: Catalin Marinas > Cc: Will Deacon > Cc: Mark Rutland > Cc: "Rafael J. Wysocki" > Acked-by: Lorenzo Pieralisi > Signed-off-by: Sudeep H

Re: [PATCH v9 3/7] arm64: cpuidle: drop __init section marker to arm_cpuidle_init

2016-07-12 Thread Catalin Marinas
On Fri, Jul 08, 2016 at 06:07:54PM +0100, Sudeep Holla wrote: > Commit ea389daa7fd9 ("arm64: cpuidle: add __init section marker to > arm_cpuidle_init") added the __init annotation to arm_cpuidle_init > as it was not needed after booting which was correct at that time. > > However with the introduc

Re: [PATCH 1/5] workqueue: wq_pool_mutex protects the attrs-installation

2016-07-12 Thread Steven Rostedt
On Tue, 12 Jul 2016 11:20:18 -0400 Tejun Heo wrote: > On Tue, Jul 12, 2016 at 11:09:47AM -0400, Tejun Heo wrote: > > On Mon, Jul 11, 2016 at 04:50:44PM -0400, Steven Rostedt wrote: > > > > > > [ crickets ] > > > > Oops, sorry about that. Looking at it now. > > Hmmm... Looking at the thr

Re: [PATCH] cdrom: support read sub-channel command in LBA format

2016-07-12 Thread Jens Axboe
On 07/10/2016 11:49 PM, Veeraiyan Chidambaram (RBEI/ECF32) wrote: Hello Jens, In CDROM Linux driver code, "Read Sub channel" format is hard coded with CDROM_MSF format only in the function cdrom_read_subchannel() and mmc_ioctl_cdrom_subchannel() in cdrom.c. Hence, irrespective of "Read Sub chan

Re: [PATCH] sched/fair: Fix the misuse of cfs_rq in sync_throttle()

2016-07-12 Thread Peter Zijlstra
On Sat, Jul 09, 2016 at 03:54:22PM +0800, Xunlei Pang wrote: > +++ b/kernel/sched/fair.c > @@ -4269,7 +4269,7 @@ static void sync_throttle(struct task_group *tg, int > cpu) > pcfs_rq = tg->parent->cfs_rq[cpu]; > > cfs_rq->throttle_count = pcfs_rq->throttle_count; > - pcfs_rq->thr

Re: [PATCH -next] nvme-rdma: fix the return value of nvme_rdma_reinit_request()

2016-07-12 Thread Jens Axboe
On 07/12/2016 04:06 AM, weiyj...@163.com wrote: From: Wei Yongjun PTR_ERR should be applied before its argument is reassigned, otherwise the return value will be set to 0, not error code. Applied, thanks. -- Jens Axboe

Re: [PATCH v3 3/4] drm/bridge: analogix_dp: add the PSR function support

2016-07-12 Thread Sean Paul
On Thu, Jul 7, 2016 at 7:26 PM, Yakir Yang wrote: > Sean, > > Thanks for your review. > > > On 07/02/2016 03:46 AM, Sean Paul wrote: >> >> On Fri, Jul 1, 2016 at 5:19 AM, Yakir Yang wrote: >>> >>> The full name of PSR is Panel Self Refresh, panel device could refresh >>> itself with the hardware

[PATCH] PCI: hv: Fix interrupt cleanup path

2016-07-12 Thread Cathy Avery
SR-IOV disabled from the host causes a memory leak. pci-hyperv usually first receives a PCI_EJECT notification and then proceeds to delete the hpdev list entry in hv_eject_device_work(). Later in hv_msi_free() since the device is no longer on the device list hpdev is NULL and hv_msi_free returns wi

Re: linux-next: manual merge of the xen-tip tree with the pm tree

2016-07-12 Thread Stefano Stabellini
On Tue, 12 Jul 2016, Rafael J. Wysocki wrote: > On Tuesday, July 12, 2016 02:09:26 PM Stephen Rothwell wrote: > > Hi all, > > > > Today's linux-next merge of the xen-tip tree got a conflict in: > > > > drivers/acpi/scan.c > > > > between commit: > > > > 68bdb6773289 ("ACPI: add support for

Re: [PATCH 16/20 v2] iommu/amd: Optimize map_sg and unmap_sg

2016-07-12 Thread Robin Murphy
On 12/07/16 14:30, Joerg Roedel wrote: > On Tue, Jul 12, 2016 at 12:33:43PM +0100, Robin Murphy wrote: >>> + for_each_sg(sglist, s, nelems, i) >>> + npages += iommu_num_pages(sg_phys(s), s->length, PAGE_SIZE); >> >> This fails to account for the segment boundary mask[1]. Given a typical

[PATCH 1/1] net: nps_enet: Fix PCS reset

2016-07-12 Thread Elad Kanfi
From: Noam Camus During commit b54b8c2d6e3c ("net: ezchip: adapt driver to little endian architecture") adapting to little endian architecture, zeroing of controller was left out. Signed-off-by: Elad Kanfi --- drivers/net/ethernet/ezchip/nps_enet.c |1 + 1 files changed, 1 insertions(+)

Re: [PATCH 44/93] clocksource/drivers/time-armada-370-xp: Convert init function to return error

2016-07-12 Thread Anna-Maria Gleixner
On Tue, 12 Jul 2016, Anna-Maria Gleixner wrote: > On Thu, 7 Jul 2016, Daniel Lezcano wrote: > > > The init functions do not return any error. They behave as the following: > > > > - panic, thus leading to a kernel crash while another timer may work and > >make the system boot up correc

Re: [PATCH -next] nvmet: fix return value check in nvmet_subsys_alloc()

2016-07-12 Thread Jens Axboe
On 07/06/2016 05:02 AM, weiyj...@163.com wrote: From: Wei Yongjun In case of error, the function kstrndup() returns NULL pointer not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Added for 4.8, thanks. -- Jens Axboe

Re: Minor PKRU bug?

2016-07-12 Thread Dave Hansen
On 07/09/2016 02:27 PM, Andy Lutomirski wrote: > is_prefetch in arch/x86/mm/fault.c can be called on a user address > that's not readable due to PKRU. This could break it. You might need > to add a get_user_exec or similar. Thanks for the heads-up. I think I'll just need a version that does som

Re: [PATCH 1/1] arm64/hugetlb: clear PG_dcache_clean if the page is dirty when munmap

2016-07-12 Thread Catalin Marinas
On Mon, Jul 11, 2016 at 08:43:32PM +0800, Leizhen (ThunderTown) wrote: > On 2016/7/9 0:13, Catalin Marinas wrote: > > On Fri, Jul 08, 2016 at 11:24:26PM +0800, Leizhen (ThunderTown) wrote: > >> On 2016/7/8 21:54, Catalin Marinas wrote: > >>> 8< > >>> diff --git a/arch/ar

Re: bug in memcg oom-killer results in a hung syscall in another process in the same cgroup

2016-07-12 Thread Shayan Pooya
>> With strace, when running 500 concurrent mem-hog tasks on the same >> kernel, 33 of them failed with: >> >> strace: ../sysdeps/nptl/fork.c:136: __libc_fork: Assertion >> `THREAD_GETMEM (self, tid) != ppid' failed. >> >> Which is: https://sourceware.org/bugzilla/show_bug.cgi?id=15392 >> And discu

Re: [PATCH 6/9] x86, pkeys: add pkey set/get syscalls

2016-07-12 Thread Dave Hansen
On 07/12/2016 12:13 AM, Ingo Molnar wrote: >> > Remember, PKRU is just a *bitmap*. The only place keys are stored is in >> > the >> > page tables. > A pkey is an index *and* a protection mask. So by representing it as a > bitmask we > lose per thread information. This is what I meant by 'incom

Re: [PATCH] nvme-loop: add configfs dependency

2016-07-12 Thread Jens Axboe
On 07/11/2016 01:29 PM, Arnd Bergmann wrote: On Sunday, July 10, 2016 2:14:17 PM CEST Christoph Hellwig wrote: On Thu, Jul 07, 2016 at 08:35:17AM -0600, Jens Axboe wrote: Thanks Arnd, applied. Actually I think we should replace the select with the depends. In fact I though I had done that a

Re: [PATCH v2 08/10] ARM: dts: nuc900: Add nuc970 dts files

2016-07-12 Thread Afzal Mohammed
Hi, On Sun, Jul 10, 2016 at 03:42:20PM +0800, Wan Zongshun wrote: > This patch is to add dts support for nuc970 platform. cpu ! in soc ? lost in fab ? ;) Regards afzal

Re: [PATCH] nvme-loop: add configfs dependency

2016-07-12 Thread Jens Axboe
On 07/10/2016 05:14 AM, Christoph Hellwig wrote: On Thu, Jul 07, 2016 at 08:35:17AM -0600, Jens Axboe wrote: Thanks Arnd, applied. Actually I think we should replace the select with the depends. In fact I though I had done that a while ago, but I must have messed it up. Btw - do you plan to

Re: [PATCH 28/54] MAINTAINERS: Add file patterns for media device tree bindings

2016-07-12 Thread Geert Uytterhoeven
Hi Mauro, On Sun, Jul 10, 2016 at 5:27 PM, Mauro Carvalho Chehab wrote: > Em Sun, 22 May 2016 11:06:05 +0200 > Geert Uytterhoeven escreveu: > >> Submitters of device tree binding documentation may forget to CC >> the subsystem maintainer if this is missing. > > I'm assuming that this patch will

[tip:timers/core] clocksource/drivers/time-armada-370-xp: Fix return value check

2016-07-12 Thread tip-bot for Anna-Maria Gleixner
Commit-ID: 1d661bf5327a2c059ec967f850e89362e637f4e6 Gitweb: http://git.kernel.org/tip/1d661bf5327a2c059ec967f850e89362e637f4e6 Author: Anna-Maria Gleixner AuthorDate: Tue, 12 Jul 2016 16:40:09 +0200 Committer: Thomas Gleixner CommitDate: Tue, 12 Jul 2016 17:33:22 +0200 clocksource/driv

Re: [PATCH] media: s5p-mfc Fix misspelled error message and checkpatch errors

2016-07-12 Thread Joe Perches
On Tue, 2016-07-12 at 08:42 -0600, Shuah Khan wrote: > On 07/12/2016 08:06 AM, Joe Perches wrote: > > On Mon, 2016-07-11 at 16:39 -0600, Shuah Khan wrote: > > > Fix misspelled error message and existing checkpatch errors in the > > > error message conditional. > > [] > > > diff --git a/drivers/medi

Re: [PATCH] drm/i915: Fix legacy gamma lut updates in Linux 4.7-rc6

2016-07-12 Thread Mario Kleiner
On 07/12/2016 05:02 PM, Lionel Landwerlin wrote: On 12/07/16 13:11, Mario Kleiner wrote: On 07/12/2016 12:50 PM, Lionel Landwerlin wrote: Hi Mario, Hi Lionel, There was a couple of patch to fix this issue : https://patchwork.freedesktop.org/series/5467/ https://patchwork.freedesktop.org/s

Re: PCIe MSI address is not written at pci_enable_msi_range call

2016-07-12 Thread Marc Zyngier
On 11/07/16 10:33, Bharat Kumar Gogada wrote: > Hi Marc, > > Thanks for the reply. > > From PCIe Spec: > MSI Enable Bit: > If 1 and the MSI-X Enable bit in the MSI-X Message > Control register (see Section 6.8.2.3) is 0, the > function is permitted to use MSI to request service > and is prohibite

Re: [PATCH v12 0/3] printk: Make printk() completely async

2016-07-12 Thread Petr Mladek
On Mon 2016-07-11 12:25:11, Viresh Kumar wrote: > On Fri, May 13, 2016 at 6:18 AM, Sergey Senozhatsky > wrote: > > Hello, > > > > no code changes, just refreshing the series so it'll be easier to > > pick up. added Reviwed-by-s and corrected a typo spotted by Petr. > > > > This patch permits to ch

Re: bug in memcg oom-killer results in a hung syscall in another process in the same cgroup

2016-07-12 Thread Konstantin Khlebnikov
On 12.07.2016 18:35, Shayan Pooya wrote: With strace, when running 500 concurrent mem-hog tasks on the same kernel, 33 of them failed with: strace: ../sysdeps/nptl/fork.c:136: __libc_fork: Assertion `THREAD_GETMEM (self, tid) != ppid' failed. Which is: https://sourceware.org/bugzilla/show_bug.c

Re: [RFC PATCH 2/2] perf: Filter events based on perf-namespace

2016-07-12 Thread Aravinda Prasad
On Tuesday 12 July 2016 07:57 PM, Peter Zijlstra wrote: > On Tue, Jul 12, 2016 at 08:55:17AM -0500, Eric W. Biederman wrote: > >> I completely misread the description of this, or I would have something >> earlier. For some reason I thought he was talking about the perf >> controller. >> >> As I

[tip:irq/core] genirq: Machine-parsable version of /proc/interrupts

2016-07-12 Thread Craig Gallek
From: Craig Gallek Add struct kobject to struct irq_desc to allow for easy export to sysfs. This allows for much simpler userspace-parsing of the information contained in struct irq_desc. Note that sysfs is not available at the time of early irq initialization. These interrupts are accounted fo

Re: [PATCH] media: s5p-mfc Fix misspelled error message and checkpatch errors

2016-07-12 Thread Shuah Khan
On 07/12/2016 09:51 AM, Joe Perches wrote: > On Tue, 2016-07-12 at 08:42 -0600, Shuah Khan wrote: >> On 07/12/2016 08:06 AM, Joe Perches wrote: >>> On Mon, 2016-07-11 at 16:39 -0600, Shuah Khan wrote: Fix misspelled error message and existing checkpatch errors in the error message conditi

RE: [PATCH] PCI: hv: Fix interrupt cleanup path

2016-07-12 Thread Jake Oshins
> -Original Message- > From: Cathy Avery [mailto:cav...@redhat.com] > Sent: Tuesday, July 12, 2016 8:31 AM > To: KY Srinivasan ; Haiyang Zhang > ; Jake Oshins ; > bhelg...@google.com > Cc: vkuzn...@redhat.com; de...@linuxdriverproject.org; linux- > p...@vger.kernel.org; linux-kernel@vger.ke

Re: [PATCH v3 2/4] drm/rockchip: add an common abstracted PSR driver

2016-07-12 Thread Daniel Vetter
On Wed, Jul 13, 2016 at 12:10:13AM +0900, Tomasz Figa wrote: > On Tue, Jul 12, 2016 at 9:38 PM, Daniel Vetter wrote: > > On Fri, Jul 01, 2016 at 02:00:00PM -0400, Sean Paul wrote: > >> On Fri, Jul 1, 2016 at 5:19 AM, Yakir Yang wrote: > >> > The PSR driver have exported four symbols for specific

[PATCH] prctl: remove one-shot limitation for changing exe link

2016-07-12 Thread Stanislav Kinsburskiy
This limitation came with the reason to remove "another way for malicious code to obscure a compromised program and masquerade as a benign process" by allowing "security-concious program can use this prctl once during its early initialization to ensure the prctl cannot later be abused for this purp

[PATCH] prctl: remove one-shot limitation for changing exe link

2016-07-12 Thread Stanislav Kinsburskiy
This limitation came with the reason to remove "another way for malicious code to obscure a compromised program and masquerade as a benign process" by allowing "security-concious program can use this prctl once during its early initialization to ensure the prctl cannot later be abused for this purp

RE: vmcore not getting created on linux-4.7

2016-07-12 Thread Steve Wise
> > >> Also what's the content of your /etc/kdump.conf file? > > >> > > > > > > #raw /dev/sda5 > > > #ext4 /dev/sda3 > > > #ext4 LABEL=/boot > > > #ext4 UUID=03138356-5e61-4ab3-b58e-27507ac41937 > > > #net my.server.com:/export/tmp > > > #net u...@my.server.com > > > path /var/crash > > > #ext4 /de

Re: [PATCH] media: s5p-mfc Fix misspelled error message and checkpatch errors

2016-07-12 Thread Joe Perches
On Tue, 2016-07-12 at 10:08 -0600, Shuah Khan wrote: > On 07/12/2016 09:51 AM, Joe Perches wrote: > > On Tue, 2016-07-12 at 08:42 -0600, Shuah Khan wrote: > > > On 07/12/2016 08:06 AM, Joe Perches wrote: > > > > On Mon, 2016-07-11 at 16:39 -0600, Shuah Khan wrote: > > > > > > > > > > Fix misspelle

Re: [RFC PATCH 2/2] perf: Filter events based on perf-namespace

2016-07-12 Thread Aravinda Prasad
On Tuesday 12 July 2016 06:34 PM, Peter Zijlstra wrote: > On Tue, Jul 12, 2016 at 03:41:42PM +0300, Nikolay Borisov wrote: > >> Namespaces and cgroups are completely orthogonal to one another. > > Then how do you specify what your new 'root' is? Surely you must first > create a cgroup and then

[PATCH 1/2] driver-core: Add externally callable function to trigger deferred probes

2016-07-12 Thread Lee Jones
Deferred probes are currently only re-executed if new drivers are successfully registered and probed. Drivers which defer their probes based on things like missing firmware located on rootfs will sometimes only be re-probed if kernel modules are found. Unfortunately, this is fragile and can not b

[PATCH 2/2] init/main: Trigger re-execution of deferred deferred probe()s

2016-07-12 Thread Lee Jones
Some devices require files from rootfs. Ensure they are given a chance to re-probe() now that the rootfs is mounted. Tested-by: Peter Griffin Signed-off-by: Lee Jones --- init/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/init/main.c b/init/main.c index 4c17fda..0b905a1 100644 ---

Re: [PATCH 03/13] RTC: ds1307: Add DS1341 specific power-saving options

2016-07-12 Thread Andrey Smirnov
On Tue, Jun 21, 2016 at 7:34 PM, Andrey Smirnov wrote: > On Tue, Jun 21, 2016 at 2:07 PM, Alexandre Belloni > wrote: >> On 21/06/2016 at 15:49:04 -0500, Rob Herring wrote : >>> So wouldn't you want to set one mode while running and the lower power >>> mode while suspended? I'm trying to understan

[PATCH 0/2] core: Ensure drivers are given a chance to re-probe() late-on

2016-07-12 Thread Lee Jones
If a driver's resources are not available at probe() time, it is common practice to defer probe (return -EPROBE_DEFER) until a time where the required dependencies have been satisfied. However, if a driver's resources are not provided by other drivers probe()ing e.g. in a case where a driver is wa

RE: [PATCH 1/2] crypto: vmx - Adding asm subroutines for XTS

2016-07-12 Thread David Laight
From: Paulo Flabiano Smorigo > Sent: 11 July 2016 20:08 > > This patch add XTS subroutines using VMX-crypto driver. > > It gives a boost of 20 times using XTS. > > These code has been adopted from OpenSSL project in collaboration > with the original author (Andy Polyakov ). Yep, typical openssl

Re: [RFC 0/3] extend kexec_file_load system call

2016-07-12 Thread Thiago Jung Bauermann
Hi Eric, I'm trying to understand your concerns leading to your nack. I hope you don't mind expanding your thoughts on them a bit. Am Dienstag, 12 Juli 2016, 08:25:48 schrieb Eric W. Biederman: > AKASHI Takahiro writes: > > Device tree blob must be passed to a second kernel on DTB-capable > > a

Re: [PATCH v12 0/3] printk: Make printk() completely async

2016-07-12 Thread Petr Mladek
On Wed 2016-06-29 14:08:35, Sergey Senozhatsky wrote: > Hello, > > the patch to fix the async KERN_CONT printk regression I mentioned > several days ago in another thread. > > as a separate patch for now, to ease the review. will squash with 0001. > > == 8< == > > >From

Re: [PATCH v2 6/6] clk: mvebu: Add the peripheral clock driver for Armada 3700

2016-07-12 Thread Gregory CLEMENT
Hi Michael, On ven., juil. 08 2016, Michael Turquette wrote: > Quoting Gregory CLEMENT (2016-07-07 15:37:51) >> +#include >> +#include > > Same question as my previous email. Is clk.h necessary? Is this driver > also a clk consumer? I think I can remove it indeed. > >> +static int armada_3

Re: [PATCH 6/9] x86, pkeys: add pkey set/get syscalls

2016-07-12 Thread Andy Lutomirski
On Jul 11, 2016 8:48 AM, "Dave Hansen" wrote: > > On 07/11/2016 07:45 AM, Andy Lutomirski wrote: > > On Mon, Jul 11, 2016 at 7:34 AM, Dave Hansen wrote: > >> Should we instead just recommend to userspace that they lock down access > >> to keys by default in all threads as a best practice? > > > >

RE: [lkp] [drm/i915/vlv] ff6eee6113: WARNING: CPU: 0 PID: 194 at drivers/gpu/drm/i915/intel_uncore.c:803 __unclaimed_reg_debug+0x6d/0x80 [i915]

2016-07-12 Thread Ding, ChiX
Hi there I have been assigned to aother project and no longer work on this anymore. Thanks, Chi -Original Message- From: lkp-requ...@eclists.intel.com [mailto:lkp-requ...@eclists.intel.com] On Behalf Of Ye, Xiaolong Sent: Tuesday, July 12, 2016 4:12 AM To: Maarten Lankhorst Cc: Wu, Fengg

Re: [patch 10/15] sched/migration: Move calc_load_migrate() into CPU_DYING

2016-07-12 Thread Thomas Gleixner
Anton, On Tue, 12 Jul 2016, Anton Blanchard wrote: > > It really does not matter when we fold the load for the outgoing cpu. > > It's almost dead anyway, so there is no harm if we fail to fold the > > few microseconds which are required for going fully away. > > We are seeing the load average sho

Re: [PATCH] mm: migrate: Use bool instead of int for the return value of PageMovable

2016-07-12 Thread Chen Gang
On 7/12/16 15:15, Vlastimil Babka wrote: > On 07/11/2016 09:47 PM, Chen Gang wrote: >> >> >> In our case, the 2 output size are same, but under x86_64, the insns are >> different. After uses bool, it uses push/pop instead of branch, for me, >> it should be a little better for catching. > > You me

Re: [PATCH] prctl: remove one-shot limitation for changing exe link

2016-07-12 Thread Oleg Nesterov
On 07/12, Stanislav Kinsburskiy wrote: > > --- a/kernel/sys.c > +++ b/kernel/sys.c > @@ -1696,16 +1696,6 @@ static int prctl_set_mm_exe_file(struct mm_struct *mm, > unsigned int fd) > fput(exe_file); > } > > - /* > - * The symlink can be changed only once, just to di

Re: [perf/x86] 8de4a00661: WARNING: CPU: 0 PID: 1 at kernel/locking/mutex-debug.c:80 debug_mutex_unlock+0x20c/0x2b3

2016-07-12 Thread Thomas Gleixner
On Wed, 13 Jul 2016, kernel test robot wrote: > [1.863354] WARNING: CPU: 0 PID: 1 at kernel/locking/mutex-debug.c:80 > debug_mutex_unlock+0x20c/0x2b3 > [1.877193] DEBUG_LOCKS_WARN_ON(lock->owner != current) > > [1.979431] [] mutex_unlock+0x9/0xb > [1.979431] [] mutex_unlock+0x9/

Re: [PATCH v12 0/3] printk: Make printk() completely async

2016-07-12 Thread Sergey Senozhatsky
On (07/12/16 17:59), Petr Mladek wrote: [..] > > [ 12.874909] sched: RT throttling activated for rt_rq ffc0ac13fcd0 > > (cpu 0) > > [ 12.874909] potential CPU hogs: > > [ 12.874909] printk (292) > > > > On my system, the excessive printing happens during suspend/resume and this > > hap

[PATCH RT 01/14] kvm, rt: change async pagefault code locking for PREEMPT_RT

2016-07-12 Thread Steven Rostedt
3.14.72-rt76-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Rik van Riel The async pagefault wake code can run from the idle task in exception context, so everything here needs to be made non-preemptible. Conversion to a simple wait queue an

[PATCH RT 05/14] ARM: imx: always use TWD on IMX6Q

2016-07-12 Thread Steven Rostedt
3.14.72-rt76-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior There is no reason to limit the TWD to be used on SMP kernels only if the hardware has it available. On Wandboard i.MX6SOLO, running PREEMPT-RT and cyclicte

Re: [PATCH] include: mman: Use bool instead of int for the return value of arch_validate_prot

2016-07-12 Thread Chen Gang
On 7/12/16 12:20, Michael Ellerman wrote: > Chen Gang writes: > >> On 7/11/16 07:47, Dave Hansen wrote: >>> On 07/09/2016 09:29 AM, cheng...@emindsoft.com.cn wrote: -static inline int arch_validate_prot(unsigned long prot) +static inline bool arch_validate_prot(unsigned long prot)

Re: [PATCH] prctl: remove one-shot limitation for changing exe link

2016-07-12 Thread Cyrill Gorcunov
On Tue, Jul 12, 2016 at 07:30:29PM +0400, Stanislav Kinsburskiy wrote: > This limitation came with the reason to remove "another > way for malicious code to obscure a compromised program and > masquerade as a benign process" by allowing "security-concious program can use > this prctl once during it

[PATCH RT 12/14] trace: correct off by one while recording the trace-event

2016-07-12 Thread Steven Rostedt
3.14.72-rt76-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior Trace events like raw_syscalls show always a preempt code of one. The reason is that on PREEMPT kernels rcu_read_lock_sched_notrace() increases the preempti

Re: [PATCH] mm: migrate: Use bool instead of int for the return value of PageMovable

2016-07-12 Thread Chen Gang
On 7/12/16 15:48, Michal Hocko wrote: > On Tue 12-07-16 03:47:42, Chen Gang wrote: > [...] >> In our case, the 2 output size are same, but under x86_64, the insns are >> different. After uses bool, it uses push/pop instead of branch, for me, >> it should be a little better for catching. > > The

[PATCH RT 02/14] mm/zsmalloc: Use get/put_cpu_light in zs_map_object()/zs_unmap_object()

2016-07-12 Thread Steven Rostedt
3.14.72-rt76-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Mike Galbraith Otherwise, we get a ___might_sleep() splat. Signed-off-by: Mike Galbraith Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Steven Rostedt --- mm/zsmalloc.c

[PATCH RT 07/11] locallock: add local_lock_on()

2016-07-12 Thread Steven Rostedt
3.12.61-rt82-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Steven Rostedt --- include/linux/locallock.h | 6 ++ 1 file changed, 6 insertions(+) diff --

Re: [PATCHv3 1/1] drm/imx: convey the pixelclk-active and de-active flags from DT to the ipu-di driver

2016-07-12 Thread Philipp Zabel
Am Dienstag, den 12.07.2016, 16:39 +0200 schrieb Thierry Reding: > On Wed, May 25, 2016 at 03:18:16PM +0200, Lothar Waßmann wrote: > > The 'de-active' and 'pixelclk-active' DT properties are evaluated > > by of_parse_display_timing() called from of_get_drm_display_mode(), > > but later lost in the

[PATCH RT 06/14] perf/x86/intel/rapl: Make PMU lock raw

2016-07-12 Thread Steven Rostedt
3.14.72-rt76-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Thomas Gleixner Upstream commit: a208749c6426 ("perf/x86/intel/rapl: Make PMU lock raw") This lock is taken in hard interrupt context even on Preempt-RT. Make it raw so RT does not

Re: [PATCHv3 1/1] drm/imx: convey the pixelclk-active and de-active flags from DT to the ipu-di driver

2016-07-12 Thread Philipp Zabel
Hi Lothar, Am Dienstag, den 12.07.2016, 13:54 +0200 schrieb Lothar Waßmann: > Hi, > > On Wed, 25 May 2016 15:18:16 +0200 Lothar Waßmann wrote: > > The 'de-active' and 'pixelclk-active' DT properties are evaluated > > by of_parse_display_timing() called from of_get_drm_display_mode(), > > but lat

[PATCH RT 01/11] kvm, rt: change async pagefault code locking for PREEMPT_RT

2016-07-12 Thread Steven Rostedt
3.12.61-rt82-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Rik van Riel The async pagefault wake code can run from the idle task in exception context, so everything here needs to be made non-preemptible. Conversion to a simple wait queue an

[PATCH RT 02/11] net: dev: always take qdiscs busylock in __dev_xmit_skb()

2016-07-12 Thread Steven Rostedt
3.12.61-rt82-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior The root-lock is dropped before dev_hard_start_xmit() is invoked and after setting the __QDISC___STATE_RUNNING bit. If this task is now pushed away by a tas

[PATCH RT 06/11] arm: lazy preempt: correct resched condition

2016-07-12 Thread Steven Rostedt
3.12.61-rt82-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior If we get out of preempt_schedule_irq() then we check for NEED_RESCHED and call the former function again if set because the preemption counter has be zero

[PATCH RT 00/11] Linux 3.12.61-rt82-rc1

2016-07-12 Thread Steven Rostedt
Dear RT Folks, This is the RT stable review cycle of patch 3.12.61-rt82-rc1. Please scream at me if I messed something up. Please test the patches too. The -rc release will be uploaded to kernel.org and will be deleted when the final release is out. This is just a review release (or release can

[PATCH RT 03/11] list_bl: fixup bogus lockdep warning

2016-07-12 Thread Steven Rostedt
3.12.61-rt82-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Josh Cartwright At first glance, the use of 'static inline' seems appropriate for INIT_HLIST_BL_HEAD(). However, when a 'static inline' function invocation is inlined by gcc, all ca

[PATCH RT 04/11] ARM: imx: always use TWD on IMX6Q

2016-07-12 Thread Steven Rostedt
3.12.61-rt82-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior There is no reason to limit the TWD to be used on SMP kernels only if the hardware has it available. On Wandboard i.MX6SOLO, running PREEMPT-RT and cyclicte

[PATCH RT 05/11] kernel/printk: Dont try to print from IRQ/NMI region

2016-07-12 Thread Steven Rostedt
3.12.61-rt82-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior On -RT we try to acquire sleeping locks which might lead to warnings from lockdep or a warn_on() from spin_try_lock() (which is a rtmutex on RT). We don't p

[PATCH RT 09/11] trace: correct off by one while recording the trace-event

2016-07-12 Thread Steven Rostedt
3.12.61-rt82-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior Trace events like raw_syscalls show always a preempt code of one. The reason is that on PREEMPT kernels rcu_read_lock_sched_notrace() increases the preempti

[PATCH RT 11/11] Linux 3.12.61-rt82-rc1

2016-07-12 Thread Steven Rostedt
3.12.61-rt82-rc1 stable review patch. If anyone has any objections, please let me know. -- From: "Steven Rostedt (Red Hat)" --- localversion-rt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localversion-rt b/localversion-rt index 8269ec129c0c..ef83083bad25

Re: bug in memcg oom-killer results in a hung syscall in another process in the same cgroup

2016-07-12 Thread Oleg Nesterov
On 07/12, Konstantin Khlebnikov wrote: > > --- a/kernel/sched/core.c > +++ b/kernel/sched/core.c > @@ -2808,8 +2808,9 @@ asmlinkage __visible void schedule_tail(struct > task_struct *prev) > balance_callback(rq); > preempt_enable(); > > - if (current->set_child_tid) > -

[PATCH RT 10/11] x86: Fix an RT MCE crash

2016-07-12 Thread Steven Rostedt
3.12.61-rt82-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Corey Minyard On some x86 systems an MCE interrupt would come in before the kernel was ready for it. Looking at the latest RT code, it has similar (but not quite the same) code, exc

Re: [PATCHv3 1/1] drm/imx: convey the pixelclk-active and de-active flags from DT to the ipu-di driver

2016-07-12 Thread Philipp Zabel
Am Dienstag, den 12.07.2016, 14:43 +0200 schrieb Daniel Vetter: > On Tue, Jul 12, 2016 at 01:54:28PM +0200, Lothar Waßmann wrote: > > Hi, > > > > On Wed, 25 May 2016 15:18:16 +0200 Lothar Waßmann wrote: > > > The 'de-active' and 'pixelclk-active' DT properties are evaluated > > > by of_parse_displ

[PATCH RT 08/11] mm: perform lru_add_drain_all() remotely

2016-07-12 Thread Steven Rostedt
3.12.61-rt82-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Luiz Capitulino lru_add_drain_all() works by scheduling lru_add_drain_cpu() to run on all CPUs that have non-empty LRU pagevecs and then waiting for the scheduled work to complete. H

[PATCH RT 08/14] kernel/printk: Dont try to print from IRQ/NMI region

2016-07-12 Thread Steven Rostedt
3.14.72-rt76-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior On -RT we try to acquire sleeping locks which might lead to warnings from lockdep or a warn_on() from spin_try_lock() (which is a rtmutex on RT). We don't p

[PATCH RT 10/14] locallock: add local_lock_on()

2016-07-12 Thread Steven Rostedt
3.14.72-rt76-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Steven Rostedt --- include/linux/locallock.h | 6 ++ 1 file changed, 6 insertions(+) diff --

[PATCH RT 07/14] sched,preempt: Fix preempt_count manipulations

2016-07-12 Thread Steven Rostedt
3.14.72-rt76-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Peter Zijlstra Vikram reported that his ARM64 compiler managed to 'optimize' away the preempt_count manipulations in code like: preempt_enable_no_resched(); put_user

[PATCH RT 14/14] Linux 3.14.72-rt76-rc1

2016-07-12 Thread Steven Rostedt
3.14.72-rt76-rc1 stable review patch. If anyone has any objections, please let me know. -- From: "Steven Rostedt (Red Hat)" --- localversion-rt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/localversion-rt b/localversion-rt index 54e7da6f49fb..bd9bb72f6b5c

[PATCH RT 04/14] list_bl: fixup bogus lockdep warning

2016-07-12 Thread Steven Rostedt
3.14.72-rt76-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Josh Cartwright At first glance, the use of 'static inline' seems appropriate for INIT_HLIST_BL_HEAD(). However, when a 'static inline' function invocation is inlined by gcc, all ca

[PATCH RT 03/14] net: dev: always take qdiscs busylock in __dev_xmit_skb()

2016-07-12 Thread Steven Rostedt
3.14.72-rt76-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior The root-lock is dropped before dev_hard_start_xmit() is invoked and after setting the __QDISC___STATE_RUNNING bit. If this task is now pushed away by a tas

[PATCH RT 00/14] Linux 3.14.72-rt76-rc1

2016-07-12 Thread Steven Rostedt
Dear RT Folks, This is the RT stable review cycle of patch 3.14.72-rt76-rc1. Please scream at me if I messed something up. Please test the patches too. The -rc release will be uploaded to kernel.org and will be deleted when the final release is out. This is just a review release (or release can

[PATCH RT 13/14] x86: Fix an RT MCE crash

2016-07-12 Thread Steven Rostedt
3.14.72-rt76-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Corey Minyard On some x86 systems an MCE interrupt would come in before the kernel was ready for it. Looking at the latest RT code, it has similar (but not quite the same) code, exc

[PATCH RT 09/14] arm: lazy preempt: correct resched condition

2016-07-12 Thread Steven Rostedt
3.14.72-rt76-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior If we get out of preempt_schedule_irq() then we check for NEED_RESCHED and call the former function again if set because the preemption counter has be zero

[PATCH RT 11/14] mm: perform lru_add_drain_all() remotely

2016-07-12 Thread Steven Rostedt
3.14.72-rt76-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Luiz Capitulino lru_add_drain_all() works by scheduling lru_add_drain_cpu() to run on all CPUs that have non-empty LRU pagevecs and then waiting for the scheduled work to complete. H

[PATCH RT 1/8] kvm, rt: change async pagefault code locking for PREEMPT_RT

2016-07-12 Thread Steven Rostedt
3.10.102-rt113-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Rik van Riel The async pagefault wake code can run from the idle task in exception context, so everything here needs to be made non-preemptible. Conversion to a simple wait queue

[PATCH RT 2/8] net: dev: always take qdiscs busylock in __dev_xmit_skb()

2016-07-12 Thread Steven Rostedt
3.10.102-rt113-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior The root-lock is dropped before dev_hard_start_xmit() is invoked and after setting the __QDISC___STATE_RUNNING bit. If this task is now pushed away by a t

[PATCH RT 6/8] trace: correct off by one while recording the trace-event

2016-07-12 Thread Steven Rostedt
3.10.102-rt113-rc1 stable review patch. If anyone has any objections, please let me know. -- From: Sebastian Andrzej Siewior Trace events like raw_syscalls show always a preempt code of one. The reason is that on PREEMPT kernels rcu_read_lock_sched_notrace() increases the preemp

<    2   3   4   5   6   7   8   9   10   >