Re: [PATCH v3 00/14] Clock improvement for video playback

2016-09-14 Thread Patrice Chotard
On 09/14/2016 08:36 PM, Stephen Boyd wrote: > On 08/29, gabriel.fernan...@st.com wrote: >> From: Gabriel Fernandez >> >> v3: >> - Rebase to v4.8-rc1 >> - Tipo fix in st,clkgen-pll.txt >> - Add Ack of Peter for the series >> - Add missed patch: "ARM: DT: STiH4xx: Simplify clock binding of

[PATCH v2 0/3] mm, dax: export dax capabilities and mapping size info to userspace

2016-09-14 Thread Dan Williams
In the debate about how to support persistent memory applications that want to use hardware-platform memory-media persistence rules/cpu-instructions rather than filesystem data intergrity system calls [1], one of the consistent requests is to move these applications to use a device file rather than

[PATCH v2 3/3] mm, mincore2(): retrieve tlb-size attributes of an address range

2016-09-14 Thread Dan Williams
There are cases, particularly for testing and validating a configuration to know the hardware mapping geometry of the pages in a given process address range. Consider filesystem-dax where a configuration needs to take care to align partitions and block allocations before huge page mappings might b

[PATCH v2 1/3] mm, dax: add VM_SYNC flag for device-dax VMAs

2016-09-14 Thread Dan Williams
Introduce a new vma flag to indicate the property of device-dax VMAs that, while file-backed, do not require notification to a filesystem agent to sync metadata after a fault. In particular this enables persistent memory applications to know if they can commit transactions to media via cpu instruc

[PATCH v2 2/3] mm, dax: add VM_DAX flag for DAX VMAs

2016-09-14 Thread Dan Williams
The DAX property, page cache bypass, of a VMA is only detectable via the vma_is_dax() helper to check the S_DAX inode flag. However, this is only available internal to the kernel and is a property that userspace applications would like to interrogate. Yes, this new VM_DAX flag is only available o

linux-next: Tree for Sep 15

2016-09-14 Thread Stephen Rothwell
Hi all, Changes since 20160914: The kbuild tree still had its build warnings for PowerPC, for which I applied a supplied patch. It also gained a build failure for which I applied a patch. The amlogic tree gained a conflict against the pinctrl tree. The pm tree lost its build failure. Non

Re: [PATCH] KVM: VMX: Enable MSR-BASED TPR shadow even if w/o APICv

2016-09-14 Thread Wanpeng Li
2016-09-15 14:29 GMT+08:00 Paolo Bonzini : > > > On 15/09/2016 03:19, Wanpeng Li wrote: >> 2016-09-14 20:03 GMT+08:00 Radim Krčmář : >>> 2016-09-14 11:40+0200, Paolo Bonzini: On 14/09/2016 09:58, Wanpeng Li wrote: > From: Wanpeng Li > > I observed that kvmvapic(to optimize flexpri

Re: [PATCH 08/12] x86/dumpstack: Pin the target stack in save_stack_trace_tsk()

2016-09-14 Thread Ingo Molnar
* Andy Lutomirski wrote: > This will prevent a crash if the target task dies before or while > dumping its stack once we start freeing task stacks early. > > Signed-off-by: Andy Lutomirski > --- > arch/x86/kernel/stacktrace.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/arch

Re: [PATCH] KVM: VMX: Enable MSR-BASED TPR shadow even if w/o APICv

2016-09-14 Thread Paolo Bonzini
On 15/09/2016 06:08, Mika Penttilä wrote: > On 09/14/2016 10:58 AM, Wanpeng Li wrote: >> From: Wanpeng Li >> >> I observed that kvmvapic(to optimize flexpriority=N or AMD) is used >> to boost TPR access when testing kvm-unit-test/eventinj.flat tpr case >> on my haswell desktop (w/ flexpriority,

Re: [PATCH] KVM: VMX: Enable MSR-BASED TPR shadow even if w/o APICv

2016-09-14 Thread Paolo Bonzini
On 15/09/2016 03:19, Wanpeng Li wrote: > 2016-09-14 20:03 GMT+08:00 Radim Krčmář : >> 2016-09-14 11:40+0200, Paolo Bonzini: >>> On 14/09/2016 09:58, Wanpeng Li wrote: From: Wanpeng Li I observed that kvmvapic(to optimize flexpriority=N or AMD) is used to boost TPR access when

RE: [PATCH v3 1/4] tpm/tpm_crb: implement tpm crb idle state

2016-09-14 Thread Winkler, Tomas
> Subject: Re: [PATCH v3 1/4] tpm/tpm_crb: implement tpm crb idle state > > On Mon, Sep 12, 2016 at 04:04:18PM +0300, Tomas Winkler wrote: > > The register TPM_CRB_CTRL_REQ_x contains bits goIdle and cmdReady for > > SW to indicate that the device can enter or should exit the idle state. > > > > T

Re: DAX mapping detection (was: Re: [PATCH] Fix region lost in /proc/self/smaps)

2016-09-14 Thread Dave Chinner
On Wed, Sep 14, 2016 at 10:55:03PM -0700, Darrick J. Wong wrote: > On Mon, Sep 12, 2016 at 11:40:35AM +1000, Dave Chinner wrote: > > On Thu, Sep 08, 2016 at 04:56:36PM -0600, Ross Zwisler wrote: > > > On Wed, Sep 07, 2016 at 09:32:36PM -0700, Dan Williams wrote: > > > > My understanding is that it

Re: [PATCH v3 3/4] tpm/tpm_crb: open code the crb_init into acpi_add

2016-09-14 Thread Jarkko Sakkinen
On Mon, Sep 12, 2016 at 04:04:20PM +0300, Tomas Winkler wrote: > This is preparation step for implementing tpm crb > runtime pm. We need to have tpm chip allocated > and populated before we access the runtime handlers. > > Signed-off-by: Tomas Winkler Use pm_runtime_put(). Tested-by: Jarkko Sak

Re: rcu_sched self-detected stall on CPU

2016-09-14 Thread Mike Galbraith
On Wed, 2016-09-14 at 23:02 -0500, NTU wrote: > [ 26.542980] Call Trace: > [ 26.542983] [] ? 0xa7fbd7c1 > [ 26.542985] [] ? 0xa7f17d35 > [ 26.542986] [] ? 0xa796c115 > [ 26.542988] [] ? 0xa7633d86 > [ 26.542989] [] ? 0xa796c0a6 ... The stack

Re: [PATCH v3 2/4] tmp/tpm_crb: fix Intel PTT hw bug during idle state

2016-09-14 Thread Jarkko Sakkinen
On Mon, Sep 12, 2016 at 04:04:19PM +0300, Tomas Winkler wrote: > There is a HW bug in Skylake, and Broxton PCH Intel PTT device, where > most of the registers in the control area except START, REQUEST, CANCEL, > and LOC_CTRL lost retention when the device is in the idle state. Hence > we need to br

Re: [PATCH] kvm, x86: Properly check whether a pfn is an MMIO or not

2016-09-14 Thread Paolo Bonzini
On 15/09/2016 07:54, Raslan, KarimAllah wrote: > >> On Jun 22, 2016, at 3:41 PM, Paolo Bonzini wrote: >> >> >> >> On 22/06/2016 04:34, KarimAllah Ahmed wrote: >>> pfn_valid check is not sufficient because it only checks if a page has a >>> struct >>> page or not, if for example "mem=" was pass

[PATCH] x86/apic: Fix suspicious RCU usage in smp_trace_call_function_interrupt

2016-09-14 Thread Wanpeng Li
From: Wanpeng Li === [ INFO: suspicious RCU usage. ] 4.8.0-rc6+ #5 Not tainted --- ./arch/x86/include/asm/msr-trace.h:47 suspicious rcu_dereference_check() usage! other info that might help us debug this: RCU used illegally from idle CPU!

Re: [PATCH 03/12] um: Stop conflating task_struct::stack with thread_info

2016-09-14 Thread Ingo Molnar
* Andy Lutomirski wrote: > From: Linus Torvalds > > thread_info may move in the future, so use the accessors. > > Andy Lutomirski wrote this changelog message and changed > "task_thread_info(child)->cpu" to "task_cpu(child)". > > Message-Id: > > Signed-off-by: Andy Lutomirski Like the pr

Re: [PATCH v3 1/4] tpm/tpm_crb: implement tpm crb idle state

2016-09-14 Thread Jarkko Sakkinen
On Mon, Sep 12, 2016 at 04:04:18PM +0300, Tomas Winkler wrote: > The register TPM_CRB_CTRL_REQ_x contains bits goIdle and cmdReady for > SW to indicate that the device can enter or should exit the idle state. > > The legacy ACPI-start (SMI + DMA) based devices do not support these > bits and the i

Re: [PATCH 02/12] x86/entry: Get rid of pt_regs_to_thread_info()

2016-09-14 Thread Ingo Molnar
* Andy Lutomirski wrote: > From: Linus Torvalds > > It was a nice optimization while it lasted, but thread_info is moving > and this optimization will no longer work. > > Quoting Linus: > > Oh Gods, Andy. That pt_regs_to_thread_info() thing made me want > to do unspeakable acts on a

Re: [PATCH 4.7 00/59] 4.7.4-stable review

2016-09-14 Thread Greg Kroah-Hartman
On Tue, Sep 13, 2016 at 12:32:29PM -0600, Shuah Khan wrote: > On 09/12/2016 09:29 AM, Greg Kroah-Hartman wrote: > > This is the start of the stable review cycle for the 4.7.4 release. > > There are 59 patches in this series, all will be posted as a response > > to this one. If anyone has any issue

Re: [PATCH 4.4 000/192] 4.4.21-stable review

2016-09-14 Thread Greg Kroah-Hartman
On Wed, Sep 14, 2016 at 11:20:54PM +0100, Ben Hutchings wrote: > On Mon, 2016-09-12 at 18:58 +0200, Greg Kroah-Hartman wrote: > > Many thanks for the majority of these patches to Sasha Levin, who dug > > them out of Canonical's 4.4 kernel tree. I have no idea why they never > > sent them in for in

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

2016-09-14 Thread Stephen Rothwell
Hi all, After merging the dax-misc tree, today's linux-next build (powerpc ppc44x_defconfig) failed like this: arch/powerpc/kernel/built-in.o: In function `__ksymtab_clear_pages': (___ksymtab+clear_pages+0x0): undefined reference to `clear_pages' Caused by commit 9445aa1a3062 ("ppc: move expo

Re: [PATCH] DRM: i915: Fix gen8 graphics on Broadwell-U. These patches stop the random gpu hang on my XPS-13-9343, kernel version 4.8-rc5.

2016-09-14 Thread Greg KH
On Thu, Sep 15, 2016 at 11:12:08AM +0800, bobcao3 wrote: > Signed-off-by: bobcao3 > --- > drivers/gpu/drm/i915/i915_gem_gtt.c | 6 > drivers/gpu/drm/i915/i915_gem_stolen.c | 61 > - > drivers/gpu/drm/i915/i915_reg.h | 6 > drivers/gpu/drm/

Re: 转发: [PATCH] usb: serial: update CH34x driver in drivers/usb/serial

2016-09-14 Thread Greg KH
On Thu, Sep 15, 2016 at 12:03:48AM +0100, Aidan Thornton wrote: > On 24 Jun 2016 16:10, "Greg KH" wrote: > > > > On Fri, Jun 24, 2016 at 01:42:24PM +0800, WCH Tech Group wrote: > > >       There are several reasons why we decided to revoke the old one after > > > communicating with the author of >

Re: DAX mapping detection (was: Re: [PATCH] Fix region lost in /proc/self/smaps)

2016-09-14 Thread Darrick J. Wong
On Mon, Sep 12, 2016 at 11:40:35AM +1000, Dave Chinner wrote: > On Thu, Sep 08, 2016 at 04:56:36PM -0600, Ross Zwisler wrote: > > On Wed, Sep 07, 2016 at 09:32:36PM -0700, Dan Williams wrote: > > > My understanding is that it is looking for the VM_MIXEDMAP flag which > > > is already ambiguous for

Re: [PATCH] kvm, x86: Properly check whether a pfn is an MMIO or not

2016-09-14 Thread Raslan, KarimAllah
> On Jun 22, 2016, at 3:41 PM, Paolo Bonzini wrote: > > > > On 22/06/2016 04:34, KarimAllah Ahmed wrote: >> pfn_valid check is not sufficient because it only checks if a page has a >> struct >> page or not, if for example "mem=" was passed to the kernel some valid pages >> won't have a struct

Re: perf: perf_fuzzer lockup in perf_cgroup_attach

2016-09-14 Thread Stephane Eranian
On Wed, Sep 14, 2016 at 7:43 PM, Vince Weaver wrote: > > so the skylake that was fuzzing finally is mostly locked up. > > Really hard to tell what's going, especially as KASLR made looking up the > addresses a big pain. > I would think there is a way to disable KASLR for this kind of testing! Whi

Re: [PATCH V2 2/3] net-next: dsa: add Qualcomm tag RX/TX handler

2016-09-14 Thread Florian Fainelli
On 09/14/2016 03:39 AM, John Crispin wrote: > Add support for the 2-bytes Qualcomm tag that gigabit switches such as > the QCA8337/N might insert when receiving packets, or that we need > to insert while targeting specific switch ports. The tag is inserted > directly behind the ethernet header. >

Re: [PATCH v4 22/22] phy: Add support for Qualcomm's USB HS phy

2016-09-14 Thread Peter Chen
On Wed, Sep 14, 2016 at 10:42:50AM -0700, Stephen Boyd wrote: > > > > > > Hmm.. maybe the confusion is in which registers we should be able to > > > access? Are we talking about the ULPI viewport MMIO register space or > > > the ULPI registers that we access through the viewport? I have a > > > hw

Re: [PATCH] clk: Add USB3 PHY reset lines

2016-09-14 Thread Vivek Gautam
On Thu, Sep 15, 2016 at 10:15 AM, wrote: > From: Vivek Gautam a stale "--from " flag in my command added this line. Will take care of it from next time. > > Adding missing reset lines for USB 3.0 PHY. > > Signed-off-by: Vivek Gautam > --- [snip] -- Qualcomm Innovation Center, Inc. is a mem

RE: [PATCH 1/6] PCI: xilinx: Keep both legacy and MSI interrupt references.

2016-09-14 Thread Bharat Kumar Gogada
On Wed, Sep 14, 2016 at 03:32:44PM +, Bharat Kumar Gogada wrote: > On Thu, Sep 01, 2016 at 03:44:41PM +0530, Bharat Kumar Gogada wrote: > > When built with MSI support the legacy domain reference is being > > overwritten with MSI. > > Instead creating two separate domains for MSI and legacy in

Re: [RFC v3 18/22] cgroup,landlock: Add CGRP_NO_NEW_PRIVS to handle unprivileged hooks

2016-09-14 Thread Alexei Starovoitov
On Wed, Sep 14, 2016 at 09:38:16PM -0700, Andy Lutomirski wrote: > On Wed, Sep 14, 2016 at 9:31 PM, Alexei Starovoitov > wrote: > > On Wed, Sep 14, 2016 at 09:08:57PM -0700, Andy Lutomirski wrote: > >> On Wed, Sep 14, 2016 at 9:00 PM, Alexei Starovoitov > >> wrote: > >> > On Wed, Sep 14, 2016 at

[PATCH] clk: Add USB3 PHY reset lines

2016-09-14 Thread vivek . gautam
From: Vivek Gautam Adding missing reset lines for USB 3.0 PHY. Signed-off-by: Vivek Gautam --- - Build tested on clk-next branch. - Tested with my wip branch for usbphy that is available @[1]. [1]https://github.com/vivekgautam1/linux/tree/linaro/integration-linux-qcomlt-usbphy-wip drivers

Re: [RFC v3 18/22] cgroup,landlock: Add CGRP_NO_NEW_PRIVS to handle unprivileged hooks

2016-09-14 Thread Andy Lutomirski
On Wed, Sep 14, 2016 at 9:31 PM, Alexei Starovoitov wrote: > On Wed, Sep 14, 2016 at 09:08:57PM -0700, Andy Lutomirski wrote: >> On Wed, Sep 14, 2016 at 9:00 PM, Alexei Starovoitov >> wrote: >> > On Wed, Sep 14, 2016 at 07:27:08PM -0700, Andy Lutomirski wrote: >> >> >> > >> >> >> > This RFC handl

Re: [PATCH v4] arm64: Improve kprobes test for atomic sequence

2016-09-14 Thread Masami Hiramatsu
On Mon, 12 Sep 2016 21:07:40 -0400 David Long wrote: > > After the patch the function reads as follows: > > > enum kprobe_insn __kprobes > > arm_kprobe_decode_insn(kprobe_opcode_t *addr, struct arch_specific_insn > > *asi) > > { > > enum kprobe_insn decoded; > > kprobe_opcode_t insn = l

Re: [RFC v3 18/22] cgroup,landlock: Add CGRP_NO_NEW_PRIVS to handle unprivileged hooks

2016-09-14 Thread Alexei Starovoitov
On Wed, Sep 14, 2016 at 09:08:57PM -0700, Andy Lutomirski wrote: > On Wed, Sep 14, 2016 at 9:00 PM, Alexei Starovoitov > wrote: > > On Wed, Sep 14, 2016 at 07:27:08PM -0700, Andy Lutomirski wrote: > >> >> > > >> >> > This RFC handle both cgroup and seccomp approaches in a similar way. I > >> >> >

Re: [PATCH] KVM: VMX: Enable MSR-BASED TPR shadow even if w/o APICv

2016-09-14 Thread Wanpeng Li
2016-09-15 12:08 GMT+08:00 Mika Penttilä : > On 09/14/2016 10:58 AM, Wanpeng Li wrote: >> From: Wanpeng Li >> >> I observed that kvmvapic(to optimize flexpriority=N or AMD) is used >> to boost TPR access when testing kvm-unit-test/eventinj.flat tpr case >> on my haswell desktop (w/ flexpriority, w

Re: [PATCH] KVM: VMX: Enable MSR-BASED TPR shadow even if w/o APICv

2016-09-14 Thread Mika Penttilä
On 09/14/2016 10:58 AM, Wanpeng Li wrote: > From: Wanpeng Li > > I observed that kvmvapic(to optimize flexpriority=N or AMD) is used > to boost TPR access when testing kvm-unit-test/eventinj.flat tpr case > on my haswell desktop (w/ flexpriority, w/o APICv). Commit (8d14695f9542 > x86, apicv: a

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-14 Thread Ian Kent
On Wed, 2016-09-14 at 21:08 -0500, Eric W. Biederman wrote: > Ian Kent writes: > > > On Wed, 2016-09-14 at 12:28 -0500, Eric W. Biederman wrote: > > > Ian Kent writes: > > > > > > > If an automount mount is clone(2)ed into a file system that is > > > > propagation private, when it later expires

Re: [RFC v3 18/22] cgroup,landlock: Add CGRP_NO_NEW_PRIVS to handle unprivileged hooks

2016-09-14 Thread Andy Lutomirski
On Wed, Sep 14, 2016 at 9:00 PM, Alexei Starovoitov wrote: > On Wed, Sep 14, 2016 at 07:27:08PM -0700, Andy Lutomirski wrote: >> >> > >> >> > This RFC handle both cgroup and seccomp approaches in a similar way. I >> >> > don't see why building on top of cgroup v2 is a problem. Is there >> >> > sec

[PATCH] rtc/rtc-cmos: Initialize hpet timer before irq is registered

2016-09-14 Thread Pratyush Anand
We have observed on few x86 machines with rtc-cmos device that hpet_rtc_interrupt() is called just after irq registration and before cmos_do_probe() could call hpet_rtc_timer_init(). So, neither hpet_default_delta nor hpet_t1_cmp is initialized by the time interrupt is raised in the given situatio

rcu_sched self-detected stall on CPU

2016-09-14 Thread NTU
Hello, I've been testing out KASAN and experimenting with some other new config settings related to security and kernel hardening, I ran into a problem though and I've attached a snippet of my kernel log of the stack trace as well as my kernel config. Also intermittently (every few seconds just ab

Re: [RFC v3 18/22] cgroup,landlock: Add CGRP_NO_NEW_PRIVS to handle unprivileged hooks

2016-09-14 Thread Alexei Starovoitov
On Wed, Sep 14, 2016 at 07:27:08PM -0700, Andy Lutomirski wrote: > >> > > >> > This RFC handle both cgroup and seccomp approaches in a similar way. I > >> > don't see why building on top of cgroup v2 is a problem. Is there > >> > security issues with delegation? > >> > >> What I mean is: cgroup v2

RE: [PATCH] dmaengine: dmatest: Restore "memcpy" as default mode

2016-09-14 Thread Appana Durga Kedareswara Rao
> -Original Message- > From: Eugeniy Paltsev [mailto:eugeniy.palt...@synopsys.com] > Sent: Wednesday, September 14, 2016 11:11 PM > To: dmaeng...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org; Appana Durga Kedareswara Rao > ; vinod.k...@intel.com; dan.j.willi...@intel.com; > andriy.s

Re: DAX mapping detection (was: Re: [PATCH] Fix region lost in /proc/self/smaps)

2016-09-14 Thread Nicholas Piggin
On Thu, 15 Sep 2016 12:31:33 +1000 Dave Chinner wrote: > On Wed, Sep 14, 2016 at 08:19:36PM +1000, Nicholas Piggin wrote: > > On Wed, 14 Sep 2016 17:39:02 +1000 > > Dave Chinner wrote: > > > Ok, looking back over your example, you seem to be suggesting a new > > > page fault behaviour is requi

RE: [PATCH for-next 10/20] IB/hns: Modify the init of iboe lock

2016-09-14 Thread Salil Mehta
> -Original Message- > From: Leon Romanovsky [mailto:l...@kernel.org] > Sent: Wednesday, September 14, 2016 6:05 AM > To: Salil Mehta > Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen); > xuwei (O); mehta.salil@gmail.com; linux-r...@vger.kernel.org; > linux-kerne

[PATCH v3) posix-timers: make it configurable

2016-09-14 Thread Nicolas Pitre
Many embedded systems typically don't need them. This removes about 22KB from the kernel binary size on ARM when configured out. Corresponding syscalls are routed to a stub logging the attempt to use those syscalls which should be enough of a clue if they were disabled without proper consideratio

linux-next: build warning after merge of the lightnvm tree

2016-09-14 Thread Stephen Rothwell
Hi Matias, After merging the lightnvm tree, today's linux-next build (x86_64 allmodconfig) produced this warning: drivers/lightnvm/sysfs.c: In function 'nvm_sysfs_register_dev': drivers/lightnvm/sysfs.c:184:2: warning: ignoring return value of 'device_add', declared with attribute warn_unused_re

RE: [PATCH for-next 13/20] IB/hns: Add check for some NULL pointer scenes

2016-09-14 Thread Salil Mehta
> -Original Message- > From: linux-rdma-ow...@vger.kernel.org [mailto:linux-rdma- > ow...@vger.kernel.org] On Behalf Of Leon Romanovsky > Sent: Tuesday, September 13, 2016 8:00 AM > To: Salil Mehta > Cc: dledf...@redhat.com; Huwei (Xavier); oulijun; Zhuangyuzeng (Yisen); > xuwei (O); meht

[PATCH -next] mailbox: platform_mhu: Remove redundant dev_err call in platform_mhu_probe()

2016-09-14 Thread Wei Yongjun
From: Wei Yongjun There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun --- drivers/mailbox/platform_mhu.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mailbox/pla

[PATCH -next] nbd: fix return value check

2016-09-14 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function blk_mq_alloc_request() or blk_mq_init_queue() returns ERR_PTR() not NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: fd8383fd88a2 ("nbd: convert to blkmq") Signed-off-by: Wei Yongjun --- drivers/block/nbd.c

[PATCH -next] drm/sun4i: backend: remove redundant dev_err call in sun4i_backend_bind()

2016-09-14 Thread Wei Yongjun
From: Wei Yongjun There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Signed-off-by: Wei Yongjun --- drivers/gpu/drm/sun4i/sun4i_backend.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/

Re: [PATCH 0/5] Make /sys/class/net per net namespace objects belong to container

2016-09-14 Thread Dmitry Torokhov
On Mon, Aug 29, 2016 at 5:38 AM, Eric W. Biederman wrote: > David Miller writes: > >> From: Dmitry Torokhov >> Date: Tue, 16 Aug 2016 15:33:10 -0700 >> >>> There are objects in /sys hierarchy (/sys/class/net/) that logically belong >>> to a namespace/container. Unfortunately all sysfs objects st

[PATCH] DRM: i915: Fix gen8 graphics on Broadwell-U. These patches stop the random gpu hang on my XPS-13-9343, kernel version 4.8-rc5.

2016-09-14 Thread bobcao3
Signed-off-by: bobcao3 --- drivers/gpu/drm/i915/i915_gem_gtt.c | 6 drivers/gpu/drm/i915/i915_gem_stolen.c | 61 - drivers/gpu/drm/i915/i915_reg.h | 6 drivers/gpu/drm/i915/intel_ringbuffer.c | 19 +- 4 files changed, 59 insertions(

Re: [PATCH] cpufreq: CPPC: Avoid overflow when calculating desired_perf

2016-09-14 Thread Hoan Tran
Hi Rafael, On Wed, Sep 14, 2016 at 5:50 PM, Rafael J. Wysocki wrote: > On Wednesday, September 14, 2016 04:08:28 PM Hoan Tran wrote: >> This patch fixes overflow issue when calculating the desired_perf. >> >> Signed-off-by: Hoan Tran >> --- >> drivers/cpufreq/cppc_cpufreq.c | 3 ++- >> 1 file c

perf: perf_fuzzer lockup in perf_cgroup_attach

2016-09-14 Thread Vince Weaver
so the skylake that was fuzzing finally is mostly locked up. Really hard to tell what's going, especially as KASLR made looking up the addresses a big pain. The best I can tell things are getting wedged somehow in perf_cgroup_switch() while interrupts are disabled. Interrupts are never getti

Re: DAX mapping detection (was: Re: [PATCH] Fix region lost in /proc/self/smaps)

2016-09-14 Thread Dave Chinner
On Wed, Sep 14, 2016 at 08:19:36PM +1000, Nicholas Piggin wrote: > On Wed, 14 Sep 2016 17:39:02 +1000 > Dave Chinner wrote: > > Ok, looking back over your example, you seem to be suggesting a new > > page fault behaviour is required from filesystems that has not been > > described or explained, an

[PATCH -next] staging: fsl-mc: remove .owner field for driver

2016-09-14 Thread Wei Yongjun
From: Wei Yongjun Remove .owner field if calls are used which set it automatically. Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci Signed-off-by: Wei Yongjun --- drivers/staging/fsl-mc/bus/fsl-mc-allocator.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/

Re: [RFC v3 18/22] cgroup,landlock: Add CGRP_NO_NEW_PRIVS to handle unprivileged hooks

2016-09-14 Thread Andy Lutomirski
On Wed, Sep 14, 2016 at 7:19 PM, Alexei Starovoitov wrote: > On Wed, Sep 14, 2016 at 06:25:07PM -0700, Andy Lutomirski wrote: >> On Wed, Sep 14, 2016 at 3:11 PM, Mickaël Salaün wrote: >> > >> > On 14/09/2016 20:27, Andy Lutomirski wrote: >> >> On Wed, Sep 14, 2016 at 12:24 AM, Mickaël Salaün wro

[PATCH -next] staging: fsl-mc: use list_del_init instead of list_del/INIT_LIST_HEAD

2016-09-14 Thread Wei Yongjun
From: Wei Yongjun Using list_del_init() instead of list_del() + INIT_LIST_HEAD(). Signed-off-by: Wei Yongjun --- drivers/staging/fsl-mc/bus/fsl-mc-allocator.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/fsl-mc-allocator.c b/drivers/stag

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-14 Thread Eric W. Biederman
Ian Kent writes: > On Wed, 2016-09-14 at 12:28 -0500, Eric W. Biederman wrote: >> Ian Kent writes: >> >> > If an automount mount is clone(2)ed into a file system that is >> > propagation private, when it later expires in the originating >> > namespace subsequent calls to autofs ->d_automount()

Re: [PATCH v2 2/3] x86 Test and expose CPUID faulting capabilities in /proc/cpuinfo

2016-09-14 Thread Kyle Huey
On Wed, Sep 14, 2016 at 6:17 PM, Andy Lutomirski wrote: > On Wed, Sep 14, 2016 at 3:03 PM, Kyle Huey wrote: >> On Wed, Sep 14, 2016 at 2:35 PM, Dave Hansen >> wrote: >>> On 09/14/2016 02:01 PM, Kyle Huey wrote: > >>> Is any of this useful to optimize away at compile-time? We have config >>> opt

[PATCH -next] staging: android: ion: Fix return value check in hi6220_ion_probe()

2016-09-14 Thread Wei Yongjun
From: Wei Yongjun In case of error, the function ion_device_create() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Signed-off-by: Wei Yongjun --- drivers/staging/android/ion/hisilicon/hi6220_ion.c | 4 ++-- 1 file changed, 2

Re: [RFC v3 18/22] cgroup,landlock: Add CGRP_NO_NEW_PRIVS to handle unprivileged hooks

2016-09-14 Thread Alexei Starovoitov
On Wed, Sep 14, 2016 at 06:25:07PM -0700, Andy Lutomirski wrote: > On Wed, Sep 14, 2016 at 3:11 PM, Mickaël Salaün wrote: > > > > On 14/09/2016 20:27, Andy Lutomirski wrote: > >> On Wed, Sep 14, 2016 at 12:24 AM, Mickaël Salaün wrote: > >>> Add a new flag CGRP_NO_NEW_PRIVS for each cgroup. This f

Re: [PATCH v2 3/3] x86,arch_prctl Add ARCH_[GET|SET]_CPUID for controlling the CPUID instruction

2016-09-14 Thread Kyle Huey
On Wed, Sep 14, 2016 at 6:54 PM, Andy Lutomirski wrote: > On Wed, Sep 14, 2016 at 6:47 PM, Kyle Huey wrote: >> On Wed, Sep 14, 2016 at 6:29 PM, Andy Lutomirski wrote: >>> On Wed, Sep 14, 2016 at 2:01 PM, Kyle Huey wrote: > + +int set_cpuid_mode(struct task_struct *task, unsigned long

[PATCH 1/4] x86/dumpstack: simplify in_exception_stack()

2016-09-14 Thread Josh Poimboeuf
in_exception_stack() does some bad, bad things just so the unwinder can print different values for different areas of the debug exception stack. There's no need to clarify where exactly on the stack it is. Just print "#DB" and be done with it. Signed-off-by: Josh Poimboeuf --- arch/x86/kernel/

[PATCH 3/4] x86/dumpstack: support for unwinding empty irq stacks

2016-09-14 Thread Josh Poimboeuf
When an interrupt happens in entry code while running on a software irq stack, and the irq stack was empty, regs->sp will contain the stack end address (e.g., irq_stack_ptr). If the regs are passed to dump_trace(), get_stack_info() will report STACK_TYPE_UNKNOWN, causing dump_trace() to return pre

[PATCH 2/4] x86/dumpstack: add get_stack_info() interface

2016-09-14 Thread Josh Poimboeuf
valid_stack_ptr() is buggy: it assumes that all stacks are of size THREAD_SIZE, which is not true for exception stacks. So the walk_stack() callbacks will need to know the location of the beginning of the stack as well as the end. Another issue is that in general the various features of a stack (

[PATCH 0/4] x86/dumpstack: yet more stack dump improvements

2016-09-14 Thread Josh Poimboeuf
This is the last batch before the new unwinder. Josh Poimboeuf (4): x86/dumpstack: simplify in_exception_stack() x86/dumpstack: add get_stack_info() interface x86/dumpstack: support for unwinding empty irq stacks x86/dumpstack: add recursion checking for all stacks arch/x86/events/core.c

[PATCH 4/4] x86/dumpstack: add recursion checking for all stacks

2016-09-14 Thread Josh Poimboeuf
in_exception_stack() has some recursion checking which makes sure the stack trace code never traverses a given exception stack more than once. This prevents an infinite loop if corruption somehow causes a stack's "next stack" pointer to point to itself (directly or indirectly). The recursion check

Re: [PATCH v2 3/3] x86,arch_prctl Add ARCH_[GET|SET]_CPUID for controlling the CPUID instruction

2016-09-14 Thread Andy Lutomirski
On Wed, Sep 14, 2016 at 6:47 PM, Kyle Huey wrote: > On Wed, Sep 14, 2016 at 6:29 PM, Andy Lutomirski wrote: >> On Wed, Sep 14, 2016 at 2:01 PM, Kyle Huey wrote: >>> + >>> +int set_cpuid_mode(struct task_struct *task, unsigned long val) >>> +{ >>> + /* Only disable/enable_cpuid() if it is

Re: [PATCH v5 1/5] kexec_file: Include the purgatory segment in the kexec image checksum.

2016-09-14 Thread Thiago Jung Bauermann
Hello Stephen, Am Donnerstag, 15 September 2016, 11:43:08 schrieb Stephen Rothwell: > Hi Thiago, > > > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > > index 2a1f0ce7c59a..dcd1679f3005 100644 > > --- a/arch/x86/Kconfig > > +++ b/arch/x86/Kconfig > > @@ -1792,6 +1792,11 @@ config SECCOMP > >

Re: [PATCH v2 3/3] x86,arch_prctl Add ARCH_[GET|SET]_CPUID for controlling the CPUID instruction

2016-09-14 Thread Kyle Huey
On Wed, Sep 14, 2016 at 6:29 PM, Andy Lutomirski wrote: > On Wed, Sep 14, 2016 at 2:01 PM, Kyle Huey wrote: >> Intel supports faulting on the CPUID instruction in newer processors. Bit >> 31 of MSR_PLATFORM_INFO advertises support for this feature. It is >> documented in detail in Section 2.3.2 o

Re: [PATCH v4 3/4] gpu: ipu-ic: Add complete image conversion support with tiling

2016-09-14 Thread Steve Longerbeam
Hi Philipp, On 09/06/2016 02:26 AM, Philipp Zabel wrote: Hi Steve, Am Mittwoch, den 17.08.2016, 17:50 -0700 schrieb Steve Longerbeam: This patch implements complete image conversion support to ipu-ic, with tiling to support scaling to and from images up to 4096x4096. Image rotation is also su

Re: [PATCH v5 1/5] kexec_file: Include the purgatory segment in the kexec image checksum.

2016-09-14 Thread Stephen Rothwell
Hi Thiago, > diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig > index 2a1f0ce7c59a..dcd1679f3005 100644 > --- a/arch/x86/Kconfig > +++ b/arch/x86/Kconfig > @@ -1792,6 +1792,11 @@ config SECCOMP > > source kernel/Kconfig.hz > > +# x86 needs to relocate the purgatory after the checksum is calcu

Re: [git pull] uaccess fixes

2016-09-14 Thread Al Viro
On Wed, Sep 14, 2016 at 04:47:47PM +0100, Al Viro wrote: > Fixes for broken uaccess primitives - mostly lack of proper zeroing > in copy_from_user()/get_user()/__get_user(), but for several architectures > there's more (broken clear_user() on frv and strncpy_from_user() on hexagon). > All of

Re: [PATCH v2 3/3] x86,arch_prctl Add ARCH_[GET|SET]_CPUID for controlling the CPUID instruction

2016-09-14 Thread Andy Lutomirski
On Wed, Sep 14, 2016 at 2:01 PM, Kyle Huey wrote: > Intel supports faulting on the CPUID instruction in newer processors. Bit > 31 of MSR_PLATFORM_INFO advertises support for this feature. It is > documented in detail in Section 2.3.2 of > http://www.intel.com/content/dam/www/public/us/en/document

Re: [RFC v3 18/22] cgroup,landlock: Add CGRP_NO_NEW_PRIVS to handle unprivileged hooks

2016-09-14 Thread Andy Lutomirski
On Wed, Sep 14, 2016 at 3:11 PM, Mickaël Salaün wrote: > > On 14/09/2016 20:27, Andy Lutomirski wrote: >> On Wed, Sep 14, 2016 at 12:24 AM, Mickaël Salaün wrote: >>> Add a new flag CGRP_NO_NEW_PRIVS for each cgroup. This flag is initially >>> set for all cgroup except the root. The flag is clear

Re: [RFC v3 19/22] landlock: Add interrupted origin

2016-09-14 Thread Andy Lutomirski
On Wed, Sep 14, 2016 at 3:14 PM, Mickaël Salaün wrote: > > On 14/09/2016 20:29, Andy Lutomirski wrote: >> On Wed, Sep 14, 2016 at 12:24 AM, Mickaël Salaün wrote: >>> This third origin of hook call should cover all possible trigger paths >>> (e.g. page fault). Landlock eBPF programs can then take

Re: [PATCH] KVM: VMX: Enable MSR-BASED TPR shadow even if w/o APICv

2016-09-14 Thread Wanpeng Li
2016-09-14 20:03 GMT+08:00 Radim Krčmář : > 2016-09-14 11:40+0200, Paolo Bonzini: >> On 14/09/2016 09:58, Wanpeng Li wrote: >>> From: Wanpeng Li >>> >>> I observed that kvmvapic(to optimize flexpriority=N or AMD) is used >>> to boost TPR access when testing kvm-unit-test/eventinj.flat tpr case >>>

Re: [PATCH v2 2/3] x86 Test and expose CPUID faulting capabilities in /proc/cpuinfo

2016-09-14 Thread Andy Lutomirski
On Wed, Sep 14, 2016 at 3:03 PM, Kyle Huey wrote: > On Wed, Sep 14, 2016 at 2:35 PM, Dave Hansen > wrote: >> On 09/14/2016 02:01 PM, Kyle Huey wrote: >> Is any of this useful to optimize away at compile-time? We have config >> options for when we're running as a guest, and this seems like a fea

Re: [PATCH v2 1/3] syscalls,x86 Expose arch_prctl on x86-32.

2016-09-14 Thread Andy Lutomirski
On Wed, Sep 14, 2016 at 2:01 PM, Kyle Huey wrote: > Signed-off-by: Kyle Huey > --- > arch/x86/entry/syscalls/syscall_32.tbl | 1 + > arch/x86/kernel/process.c | 80 > ++ > arch/x86/kernel/process_64.c | 66 > 3

Re: [PATCH V2 3/3] net-next: dsa: add new driver for qca8xxx family

2016-09-14 Thread Andrew Lunn
On Wed, Sep 14, 2016 at 12:39:02PM +0200, John Crispin wrote: > This patch contains initial support for the QCA8337 switch. It > will detect a QCA8337 switch, if present and declared in the DT. > > Each port will be represented through a standalone net_device interface, > as for other DSA switches

Re: [RFC/RFT][PATCH v2 2/7] driver core: Functional dependencies tracking support

2016-09-14 Thread Rafael J. Wysocki
On Friday, September 09, 2016 10:25:30 AM Ulf Hansson wrote: > + Mark > > On 8 September 2016 at 23:27, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Currently, there is a problem with handling cases where functional > > dependencies between devices are involved. > > > > What I me

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-14 Thread Ian Kent
On Wed, 2016-09-14 at 12:28 -0500, Eric W. Biederman wrote: > Ian Kent writes: > > > If an automount mount is clone(2)ed into a file system that is > > propagation private, when it later expires in the originating > > namespace subsequent calls to autofs ->d_automount() for that > > dentry in the

Re: [RESEND][PATCH v2 1/3] syscalls,x86 Expose arch_prctl on x86-32.

2016-09-14 Thread Kyle Huey
On Wed, Sep 14, 2016 at 3:29 PM, Dmitry Safonov <0x7f454...@gmail.com> wrote: > 2016-09-15 1:08 GMT+03:00 Kyle Huey : >> On Wed, Sep 14, 2016 at 2:59 PM, Dmitry Safonov <0x7f454...@gmail.com> wrote: >>> 2016-09-15 0:08 GMT+03:00 Kyle Huey : Signed-off-by: Kyle Huey --- arch/x86/ent

Re: kvm-unit-test fail for split irqchip

2016-09-14 Thread Wanpeng Li
2016-09-14 17:42 GMT+08:00 Paolo Bonzini : > > > On 14/09/2016 05:57, Wanpeng Li wrote: >> 2016-09-14 4:43 GMT+08:00 Paolo Bonzini : >>> >>> >>> On 13/09/2016 21:01, Radim Krcmar wrote: kvm_handle_interrupt() does interrupt_request |= CPU_INTERRUPT_HARD which later calls

[PATCH v5 3/5] powerpc: kexec_file: Add buffer hand-over support for the next kernel

2016-09-14 Thread Thiago Jung Bauermann
The buffer hand-over mechanism allows the currently running kernel to pass data to kernel that will be kexec'd via a kexec segment. The second kernel can check whether the previous kernel sent data and retrieve it. This is the architecture-specific part. Signed-off-by: Thiago Jung Bauermann ---

[PATCH v5 5/5] IMA: Demonstration code for kexec buffer passing.

2016-09-14 Thread Thiago Jung Bauermann
This shows how kernel code can use the kexec buffer passing mechanism to pass information to the next kernel. This patch is not intended to be committed. [a...@linux-foundation.org: coding-style fixes] Signed-off-by: Thiago Jung Bauermann Signed-off-by: Andrew Morton Signed-off-by: Thiago Jung

[PATCH v5 1/5] kexec_file: Include the purgatory segment in the kexec image checksum.

2016-09-14 Thread Thiago Jung Bauermann
Currently, the purgatory segment is skipped from the kexec image checksum because it is modified to include the calculated digest. By putting the digest in a separate kexec segment, we can include the purgatory segment in the kexec image verification since it won't need to be modified anymore. Wi

[PATCH v5 4/5] kexec_file: Add mechanism to update kexec segments.

2016-09-14 Thread Thiago Jung Bauermann
kexec_update_segment allows a given segment in kexec_image to have its contents updated. This is useful if the current kernel wants to send information to the next kernel that is up-to-date at the time of reboot. Before modifying the segment the image checksum is verified, and after the segment is

[PATCH v5 0/5] kexec_file: Add buffer hand-over for the next kernel

2016-09-14 Thread Thiago Jung Bauermann
Hello, This version of the patch series fixes two issues: 1. The previous version modified struct kexec_segment, but that broke the ABI for at least 32-bit ARM. 2. The previous version didn't include the hand-over buffer in the kexec image checksum verification. Now the kexec image checks

[PATCH v5 2/5] kexec_file: Add buffer hand-over support for the next kernel

2016-09-14 Thread Thiago Jung Bauermann
The buffer hand-over mechanism allows the currently running kernel to pass data to kernel that will be kexec'd via a kexec segment. The second kernel can check whether the previous kernel sent data and retrieve it. This is the architecture-independent part of the feature. Signed-off-by: Thiago Ju

Re: [PATCH v2 0/5] AT91: sckc improvements

2016-09-14 Thread Stephen Boyd
On 09/08, Alexandre Belloni wrote: > Hi, > > This patch set improves the slow clock controller driver. > > The first patch simply moves some code around to avoid having extern > functions declared. > > The second patch adds support for the SCKC found on sama5d4 and later. > It is notably missing

Re: [PATCH] cpufreq: CPPC: Avoid overflow when calculating desired_perf

2016-09-14 Thread Rafael J. Wysocki
On Wednesday, September 14, 2016 04:08:28 PM Hoan Tran wrote: > This patch fixes overflow issue when calculating the desired_perf. > > Signed-off-by: Hoan Tran > --- > drivers/cpufreq/cppc_cpufreq.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/cpufreq/cppc_

Re: [PATCH 02/34] clk: at91: Migrate to clk_hw based registration and OF APIs

2016-09-14 Thread Stephen Boyd
On 06/07, Boris Brezillon wrote: > On Tue, 7 Jun 2016 18:36:21 +0200 > Alexandre Belloni wrote: > > > On 01/06/2016 at 16:15:01 -0700, Stephen Boyd wrote : > > > Now that we have clk_hw based provider APIs to register clks, we > > > can get rid of struct clk pointers in this driver, allowing us t

Re: [PATCH 04/34] clk: bcm2835: Migrate to clk_hw based registration and OF APIs

2016-09-14 Thread Stephen Boyd
On 06/02, Eric Anholt wrote: > Stephen Boyd writes: > > > Now that we have clk_hw based provider APIs to register clks, we > > can get rid of struct clk pointers while registering clks in > > these drivers, allowing us to move closer to a clear split of > > consumer and provider clk APIs. > > Th

Re: [PATCH 3/4] autofs - make mountpoint checks namespace aware

2016-09-14 Thread Omar Sandoval
On Thu, Sep 15, 2016 at 08:09:23AM +0800, Ian Kent wrote: > On Wed, 2016-09-14 at 12:28 -0500, Eric W. Biederman wrote: > > Ian Kent writes: > > > > > If an automount mount is clone(2)ed into a file system that is > > > propagation private, when it later expires in the originating > > > namespace

Re: [PATCH v2] clk: iproc: Make clocks visible options

2016-09-14 Thread Stephen Boyd
On 10/29, Jon Mason wrote: > Make the clocks visible options that can be selected by anyone. This > avoids the problems of: > 1) Select is a reverse dependency and is hard for people to understand > and can sometimes be a pain to track down > 2) Build coverage goes down because configs are h

  1   2   3   4   5   6   7   8   9   10   >