Re: [PATCH 2/2] mfd: Add Spreadtrum SC27xx series PMICs driver

2017-10-13 Thread Baolin Wang
On 13 October 2017 at 18:13, Lee Jones wrote: > On Fri, 13 Oct 2017, Baolin Wang wrote: >> On 13 October 2017 at 17:26, Lee Jones wrote: >> > On Wed, 11 Oct 2017, Baolin Wang wrote: >> > >> >> This patch adds support for Spreadtrum SC27xx series PMIC MFD core, and It >> >> provides communication

Re: [PATCH v3 16/22] firmware: arm_scmi: add arm_mhu specific mailbox interface

2017-10-13 Thread Sudeep Holla
Hi Bjorn, Thanks for taking a look at this. Much appreciated. On 12/10/17 22:03, Bjorn Andersson wrote: > On Fri, Oct 6, 2017 at 6:51 AM, Sudeep Holla wrote: >> >> >> On 06/10/17 14:47, Jassi Brar wrote: >>> On Fri, Oct 6, 2017 at 7:02 PM, Sudeep Holla wrote: > [..] Again that's not the p

Re: [RESEND PATCH 2/2] arm64: dts: rockchip: Enable edp disaplay on kevin

2017-10-13 Thread Emil Renner Berthing
On 13 October 2017 at 15:25, Heiko Stuebner wrote: > Am Freitag, 13. Oktober 2017, 18:41:38 CEST schrieb Jeffy Chen: >> Add edp panel and enable related nodes on kevin. >> >> Signed-off-by: Jeffy Chen > > does this actually work with mainline kernel sources? > > Sean Paul did look at making the e

Re: RFC(v2): Audit Kernel Container IDs

2017-10-13 Thread Alan Cox
On Thu, 12 Oct 2017 10:14:00 -0400 Richard Guy Briggs wrote: > Containers are a userspace concept. The kernel knows nothing of them. > > The Linux audit system needs a way to be able to track the container > provenance of events and actions. Audit needs the kernel's help to do > this. > > Sin

Re: [PATCH] virtio_balloon: fix deadlock on OOM

2017-10-13 Thread Michal Hocko
On Fri 13-10-17 16:21:22, Michael S. Tsirkin wrote: > fill_balloon doing memory allocations under balloon_lock > can cause a deadlock when leak_balloon is called from > virtballoon_oom_notify and tries to take same lock. > > To fix, split page allocation and enqueue and do allocations outside the

Crash in bm_evict_inode() during shutdown.

2017-10-13 Thread Stanislaw Gruszka
On 4.14-rc4 updated today, I have OOPS on bm_evict_inode(). It happens every time during shutdown of the system. Seems e = inode->i_private is NULL and e->flags crashes. Picture with the OOPS call trace is here: http://people.redhat.com/sgruszka/DSC_0733.JPG Thanks Stanislaw

Re: [PATCH v2 1/3] dt-bindings: nvmem: add description for UniPhier eFuse

2017-10-13 Thread Rob Herring
On Fri, Oct 06, 2017 at 02:02:58PM +0900, Keiji Hayashibara wrote: > Add uniphier-efuse dt-bindings documentation. > > Signed-off-by: Keiji Hayashibara > --- > .../devicetree/bindings/nvmem/uniphier-efuse.txt | 49 > ++ > 1 file changed, 49 insertions(+) > create mode 100

Re: [PATCH v2 5/9] usb: xhci-mtk: remove dummy wakeup debounce clocks

2017-10-13 Thread Matthias Brugger
On 10/13/2017 10:26 AM, Chunfeng Yun wrote: The wakeup debounce clocks for each ports in fact are not needed, so remove them. Signed-off-by: Chunfeng Yun --- Reviewed-by: Matthias Brugger drivers/usb/host/xhci-mtk.c | 33 - drivers/usb/host/xhci-mtk.h

Re: [PATCH 1/2] hwmon: (jc42) optionally try to disable the SMBUS timeout

2017-10-13 Thread Guenter Roeck
On 10/13/2017 02:27 AM, Peter Rosin wrote: With a nxp,se97 chip on an atmel sama5d31 board, the I2C adapter driver is not always capable of avoiding the 25-35 ms timeout as specified by the SMBUS protocol. This may cause silent corruption of the last bit of any transfer, e.g. a one is read instea

Re: [PATCH][next] platform/x86: intel_cht_int33fe: make a couple of local functions static

2017-10-13 Thread Hans de Goede
Hi, On 12-10-17 22:36, Andy Shevchenko wrote: +Cc: Hans On Wed, Oct 11, 2017 at 12:30 PM, Colin King wrote: From: Colin Ian King The functions cht_int33fe_check_for_max17047 and cht_int33fe_find_max17047 are local to the source and do not need to be in global scope, so make them static. Cl

Re: [lkp-robot] [x86/kconfig] 81d3871900: BUG:unable_to_handle_kernel

2017-10-13 Thread Andrey Ryabinin
On 10/13/2017 07:45 AM, Josh Poimboeuf wrote: > On Thu, Oct 12, 2017 at 12:05:04PM -0500, Christopher Lameter wrote: >> On Wed, 11 Oct 2017, Josh Poimboeuf wrote: >> >>> I failed to add the slab maintainers to CC on the last attempt. Trying >>> again. >> >> >> Hmmm... Yea. SLOB is rarely used and

Re: [PATCH 4.4 23/31] drm/bridge: adv7511: Use work_struct to defer hotplug handing to out of irq context

2017-10-13 Thread Ben Hutchings
On Tue, 2017-09-12 at 09:56 -0700, Greg Kroah-Hartman wrote: > 4.4-stable review patch.  If anyone has any objections, please let me > know. > > -- > > From: John Stultz > > commit 518cb7057a59b9441336d2e88a396d52b6ab0cce upstream. > > I was recently seeing issues with EDID pro

Re: [PATCH v2 6/9] usb: xhci-mtk: add optional mcu and dma bus clocks

2017-10-13 Thread Matthias Brugger
On 10/13/2017 10:26 AM, Chunfeng Yun wrote: There are mcu_bus and dma_bus clocks needed to be controlled by driver on some SoCs, so add them as optional ones Signed-off-by: Chunfeng Yun --- Reviewed-by: Matthias Brugger drivers/usb/host/xhci-mtk.c | 79 +++

Re: drivers/staging/rtlwifi/base.c:920:7-9: WARNING: possible condition with no effect (if == else)

2017-10-13 Thread Julia Lawall
It seems that the then and else branches of the conditions on lines 920 and 932 are the same. julia On Fri, 13 Oct 2017, kbuild test robot wrote: > CC: kbuild-...@01.org > CC: linux-kernel@vger.kernel.org > TO: Larry Finger > CC: "Greg Kroah-Hartman" > > tree: https://git.kernel.org/pub/scm/

Re: [RFC PATCH v9 for 4.15 01/14] Restartable sequences system call

2017-10-13 Thread Florian Weimer
On 10/13/2017 03:40 PM, Mathieu Desnoyers wrote: The proposed ABI does not require to store any function pointer. For a given rseq_finish() critical section, pointers to specific instructions (within a function) are emitted at link-time into a struct rseq_cs: struct rseq_cs { RSEQ_FIELD

Re: [PATCH v2 9/9] dt-bindings: usb: mtk-xhci: remove dummy clocks and add optional ones

2017-10-13 Thread Matthias Brugger
On 10/13/2017 10:26 AM, Chunfeng Yun wrote: Remove dummy clocks for usb wakeup and add optional ones for MCU_BUS_CK and DMA_BUS_CK. Signed-off-by: Chunfeng Yun Acked-by: Rob Herring --- Reviewed-by: .../devicetree/bindings/usb/mediatek,mtk-xhci.txt | 18 -- 1 file

Re: [RFC PATCH for 4.15 09/14] Provide cpu_opv system call

2017-10-13 Thread Alan Cox
> A maximum limit of 16 operations per cpu_opv syscall invocation is > enforced, so user-space cannot generate a too long preempt-off critical > section. Except that all the operations could be going to mmapped I/O space and if I pick the right targets could take quite a long time to complete. It

[PATCH] tracing, mei: Remove unused trace event mei_pci_cfg_write

2017-10-13 Thread Steven Rostedt
From: Steven Rostedt (VMware) Commit a96c548291 ("mei: trace pci configuration space io") added the trace event mei_pci_cfg_write but never used it. As trace events that are defined take up space for data structures and functions created for them, it is a waste of memory to have one defined but n

RE: [PATCH net-next 5/5] net: dsa: split dsa_port's netdev member

2017-10-13 Thread David Laight
From: Florian Fainelli > Sent: 13 October 2017 00:05 ... > How about using: > > union { > struct net_device *master; > struct net_device *slave; > } netdev; ... You can remove the 'netdev' all the compilers support unnamed unions. David

Re: [PATCH 4.13 0/2] 4.13.7-stable review

2017-10-13 Thread Shuah Khan
On 10/12/2017 06:09 PM, John Stultz wrote: > On Thu, Oct 12, 2017 at 4:45 PM, Shuah Khan wrote: >> On 10/12/2017 03:26 PM, Greg Kroah-Hartman wrote: >>> This is the start of the stable review cycle for the 4.13.7 release. >>> There are 2 patches in this series, all will be posted as a response >>>

Re: [PATCH] kmemcheck: correctly remove kmemcheck call from dma_map_sg_attrs

2017-10-13 Thread Levin, Alexander (Sasha Levin)
On Fri, Oct 13, 2017 at 09:11:21AM +0200, Michal Hocko wrote: >On Thu 12-10-17 19:22:05, Sasha Levin wrote: >> We have missed removing some code as part of removing the kmemcheck >> hooks. >> >> Unfourtenatly this got missed during my review, and the code was >> still building. >> >> Reported-by: M

Re: [PATCH] virtio_balloon: fix deadlock on OOM

2017-10-13 Thread Tetsuo Handa
Michael S. Tsirkin wrote: > This is a replacement for > [PATCH] virtio: avoid possible OOM lockup at virtballoon_oom_notify() > but unlike that patch it actually deflates on oom even in presence of > lock contention. But Wei Wang is proposing VIRTIO_BALLOON_F_SG which will try to allocate me

tracing, dma-buf: Remove unused trace event dma_fence_annotate_wait_on

2017-10-13 Thread Steven Rostedt
From: Steven Rostedt (VMware) Commit e941759c74 ("fence: dma-buf cross-device synchronization") added trace event fence_annotate_wait_on, but never used it. It was renamed to dma_fence_annotate_wait_on by commit f54d186700 ("dma-buf: Rename struct fence to dma_fence") but still not used. As defin

Restriction on setting debug registers (HW breakpoint) at kernel space

2017-10-13 Thread Probir Roy
Hi, I am patching the perf tool of linux to set HW breakpoints at kernel space. I found that there is an interface for user-space (modify_user_hw_breakpoint) but no interface for system wide breakpoint modification. Older version of linux had this support by K. Prasad. I was wondering why linux re

Re: [PATCH v4 4/7] soc: mediatek: pwrap: update pwrap_init without slave programming

2017-10-13 Thread Matthias Brugger
On 10/13/2017 11:41 AM, Sean Wang wrote: On Tue, 2017-10-10 at 20:00 +0200, Matthias Brugger wrote: On 09/21/2017 10:26 AM, sean.w...@mediatek.com wrote: From: Sean Wang pwrap initialization is highly associated with the base SoC, so update here for allowing pwrap_init without slave progra

Re: [PATCH v5 11/16] perf report: properly handle branch count in match_chain

2017-10-13 Thread Arnaldo Carvalho de Melo
Em Fri, Oct 13, 2017 at 10:39:03AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Mon, Oct 09, 2017 at 10:33:05PM +0200, Milian Wolff escreveu: > > Some of the code paths I introduced before returned too early > > without running the code to handle a node's branch count. > > By refactoring match_ch

[PATCH 0/4] event synthesization multithreading for perf record

2017-10-13 Thread kan . liang
From: Kan Liang The event synthesization multithreading is introduced in ("perf top optimization") https://lkml.org/lkml/2017/9/29/269 But it was not enabled for perf record. Because the process function process_synthesized_event was not multithreading friendly. The patch series temporarily stor

[PATCH 4/4] perf record: add option to set the number of thread for event synthesize

2017-10-13 Thread kan . liang
From: Kan Liang Using UINT_MAX to indicate the default thread#, which is the number of online CPU. Signed-off-by: Kan Liang --- tools/perf/Documentation/perf-record.txt | 4 tools/perf/builtin-record.c | 13 +++-- 2 files changed, 15 insertions(+), 2 deletions(-) di

Re: [lkp-robot] [ipv6] 2b760fcf5c: WARNING:suspicious_RCU_usage

2017-10-13 Thread Eric Dumazet
On Thu, Oct 12, 2017 at 10:09 PM, Wei Wang wrote: > > This warning should be fixed by later commit 66f5d6ce53e6 ("ipv6: > replace rwlock with rcu and spinlock in fib6_table"). > But by this commit, rcu is not yet used in ip6_pol_route(). (Sorry > that I missed this earlier.) Not sure what to do he

[PATCH 3/4] perf record: event synthesization multithreading support

2017-10-13 Thread kan . liang
From: Kan Liang The process function process_synthesized_event writes the process result to perf.data, which is not multithreading friendly. Realloc buffer for each thread to temporarily keep the processing result. Write them to the perf.data at the end of event synthesization. The new method do

Re: [PATCH v11 7/9] arm64/kasan: add and use kasan_map_populate()

2017-10-13 Thread Pavel Tatashin
Hi Will, I have a couple concerns about your patch: One of the reasons (and actually, the main reason) why I preferred to keep vmemmap_populate() instead of implementing kasan's own variant, which btw can be done in common code similarly to vmemmap_populate_basepages() is that vmemmap_populate()

[PATCH 2/4] perf tools: pass thread info in event synthesization

2017-10-13 Thread kan . liang
From: Kan Liang Pass the thread idx to process function, which is used by the following patch. Signed-off-by: Kan Liang --- tools/perf/builtin-record.c | 4 +- tools/perf/tests/dwarf-unwind.c | 3 +- tools/perf/util/event.c | 98 ++--- tools/pe

[PATCH 1/4] perf tools: pass thread info to process function

2017-10-13 Thread kan . liang
From: Kan Liang For multithreading, the process function needs to know the thread related information. E.g. saving the process result to the buffer or file which belongs to specific thread. Add struct thread_info parameter for process function. Currently, it only includes thread index. perf_eve

Re: [PATCH v3 16/22] firmware: arm_scmi: add arm_mhu specific mailbox interface

2017-10-13 Thread Jassi Brar
On Fri, Oct 13, 2017 at 7:12 PM, Sudeep Holla wrote: > > Hi Bjorn, > > Thanks for taking a look at this. Much appreciated. > > On 12/10/17 22:03, Bjorn Andersson wrote: >> On Fri, Oct 6, 2017 at 6:51 AM, Sudeep Holla wrote: >>> >>> >>> On 06/10/17 14:47, Jassi Brar wrote: On Fri, Oct 6, 2017

[PATCH] venus: reimplement decoder stop command

2017-10-13 Thread Stanimir Varbanov
This addresses the wrong behavior of decoder stop command by rewriting it. These new implementation enqueue an empty buffer on the decoder input buffer queue to signal end-of-stream. The client should stop queuing buffers on the V4L2 Output queue and continue queuing/dequeuing buffers on Capture qu

Re: [PATCH v8 9/9] sparc64: Add support for ADI (Application Data Integrity)

2017-10-13 Thread Khalid Aziz
On 10/12/2017 02:27 PM, Anthony Yznaga wrote: On Oct 12, 2017, at 7:44 AM, Khalid Aziz wrote: On 10/06/2017 04:12 PM, Anthony Yznaga wrote: On Sep 25, 2017, at 9:49 AM, Khalid Aziz wrote: This patch extends mprotect to enable ADI (TSTATE.mcde), enable/disable MCD (Memory Corruption Detect

Re: [PATCH 2/3] arm64: cpuinfo: add human readable CPU names to /proc/cpuinfo

2017-10-13 Thread Timur Tabi
On Tue, Sep 26, 2017 at 5:23 PM, Al Stone wrote: > In the interest of making things easier for humans to use, add a > "CPU name" line to /proc/cpuinfo for each CPU that uses plain old > words instead of hex values. For example, instead of printing only > CPU implementer 0x43 and CPU part 0x0A1, p

Re: [PATCH v7 10/15] platform/x86: dell-smbios: add filtering capability for requests

2017-10-13 Thread Alan Cox
> Within Linux the security model is that items accessible through this > interface > are only accessible by root. "root" has not been a security concept in the Linux kernel since about 2.0. If you are relying on file permissions then at best you are using CAP_SYS_DAC which is too weak for this.

[PATCH 0/2] tracing, thermal: Hide trace events when not in use

2017-10-13 Thread Steven Rostedt
As trace events when defined create data structures and functions to process them, defining trace events when not using them is a waste of memory. The trace events thermal_power_devfreq_get_power and thermal_power_devfreq_limit are only used when CONFIG_DEVFREQ_THERMAL is set. Make those events on

[PATCH 1/2] tracing, thermal: Hide devfreq trace events when not in use

2017-10-13 Thread Steven Rostedt
From: Steven Rostedt (VMware) As trace events when defined create data structures and functions to process them, defining trace events when not using them is a waste of memory. The trace events thermal_power_devfreq_get_power and thermal_power_devfreq_limit are only used when CONFIG_DEVFREQ_THER

Re: [PATCH v2 03/10] KVM: arm/arm64: vgic-its: Improve error reporting on device table save

2017-10-13 Thread Auger Eric
Hi, On 13/10/2017 15:16, Christoffer Dall wrote: > On Wed, Sep 27, 2017 at 03:28:33PM +0200, Eric Auger wrote: >> At the moment the device table save() returns -EINVAL if >> vgic_its_check_id() fails to return the gpa of the entry >> associated to the device/collection id. Let vgic_its_check_id()

[PATCH] [v2] tracing: mark trace_test_buffer as __maybe_unused

2017-10-13 Thread Arnd Bergmann
After trace_selftest_startup_sched_switch is removed, trace_test_buffer() is only used sometimes, leading to this warning: kernel/trace/trace_selftest.c:62:12: error: 'trace_test_buffer' defined but not used [-Werror=unused-function] There is no simple #ifdef condition that captures well whether

[PATCH 2/2] tracing, thermal: Hide cpu cooling trace events when not in use

2017-10-13 Thread Steven Rostedt
From: Steven Rostedt (VMware) As trace events when defined create data structures and functions to process them, defining trace events when not using them is a waste of memory. The trace events thermal_power_cpu_get_power and thermal_power_cpu_limit are only used when CONFIG_CPU_THERMAL is set.

Re: [PATCH 1/3] printk: Fix kdb_trap_printk placement

2017-10-13 Thread Petr Mladek
On Thu 2017-10-12 11:11:00, Joe Perches wrote: > On Thu, 2017-10-12 at 14:08 +0200, Greg Kroah-Hartman wrote: > > On Thu, Oct 12, 2017 at 01:52:29PM +0200, Greg Kroah-Hartman wrote: > > > On Thu, Oct 12, 2017 at 01:34:39PM +0200, Peter Zijlstra wrote: > > > > On Thu, Oct 12, 2017 at 12:03:04PM +020

Re: [PATCH v3 1/7] ACPI/PPTT: Add Processor Properties Topology Table parsing

2017-10-13 Thread tn
Hi Jeremy, On 12.10.2017 21:48, Jeremy Linton wrote: ACPI 6.2 adds a new table, which describes how processing units are related to each other in tree like fashion. Caches are also sprinkled throughout the tree and describe the properties of the caches in relation to other caches and processing

[PATCH RFC 00/10] Intel EPT-Based Sub-page Write Protection Support.

2017-10-13 Thread Zhang Yi
From: Zhang Yi Z Hi All, Here is a patch-series which adding EPT-Based Sub-page Write Protection Support. You can get It's software developer manuals from: https://software.intel.com/sites/default/files/managed/c5/15/architecture-instruction-set-extensions-programming-reference.pdf In Chapter

Re: [PATCH] tracing: Remove unused clock events

2017-10-13 Thread Steven Rostedt
On Fri, 13 Oct 2017 09:20:44 +0200 Jean Pihet wrote: > Hi Steven, > > On Thu, Oct 12, 2017 at 6:44 PM, Steven Rostedt wrote: > > > > [ Resending again, including linux...@vger.kernel.org this time ] > > > > From: Steven Rostedt (VMware) > > > > Commit 74704ac6 ("tracing, perf: Add more power r

Re: [RFC PATCH v9 for 4.15 01/14] Restartable sequences system call

2017-10-13 Thread Mathieu Desnoyers
- On Oct 13, 2017, at 9:56 AM, Florian Weimer fwei...@redhat.com wrote: > On 10/13/2017 03:40 PM, Mathieu Desnoyers wrote: >> The proposed ABI does not require to store any function pointer. For a given >> rseq_finish() critical section, pointers to specific instructions (within a >> function)

[PATCH RFC 01/10] KVM: VMX: Added EPT Subpage Protection Documentation.

2017-10-13 Thread Zhang Yi
From: Zhang Yi Z Signed-off-by: Zhang Yi Z Signed-off-by: He Chen --- Documentation/virtual/kvm/spp_design_kvm.txt | 272 +++ 1 file changed, 272 insertions(+) create mode 100644 Documentation/virtual/kvm/spp_design_kvm.txt diff --git a/Documentation/virtual/kvm/spp_d

RE: [PATCH net-next 5/5] net: dsa: split dsa_port's netdev member

2017-10-13 Thread Vivien Didelot
Hi David, David Laight writes: > From: Florian Fainelli >> Sent: 13 October 2017 00:05 > ... >> How about using: >> >> union { >> struct net_device *master; >> struct net_device *slave; >> } netdev; > ... > > You can remove the 'netdev' all the compilers supp

[PATCH RFC 02/10] x86/cpufeature: Add intel Sub-Page Protection to CPU features

2017-10-13 Thread Zhang Yi
From: Zhang Yi Z Adds reporting SPP capability from VMX Procbased MSR, according to the definition of hardware spec, bit 32 is the control of the SPP capability. Defined X86_FEATURE_SPP under intel X86 VT-x CPU features. Defined the X86_VMX_FEATURE_PROC_CTLS2_SPP in intel VMX MSR indicated feat

Re: [PATCH 1/2] hwmon: (jc42) optionally try to disable the SMBUS timeout

2017-10-13 Thread Peter Rosin
On 2017-10-13 15:50, Guenter Roeck wrote: > On 10/13/2017 02:27 AM, Peter Rosin wrote: >> With a nxp,se97 chip on an atmel sama5d31 board, the I2C adapter driver >> is not always capable of avoiding the 25-35 ms timeout as specified by >> the SMBUS protocol. This may cause silent corruption of the

[PATCH RFC 03/10] KVM: VMX: Added VMX SPP feature flags and VM-Execution Controls.

2017-10-13 Thread Zhang Yi
From: Zhang Yi Z Add new secondary processor-based VM-execution control bit which defined as "sub-page write permission", same as VMX Procbased MSR, bit 23 is the enable bit of SPP. Also we introduced a enable_ept_spp parameter to control the SPP is ON/OFF, Set the default is OFF as we are on th

Re: [PATCH 0/3] arm64: cpuinfo: make /proc/cpuinfo more human-readable

2017-10-13 Thread Mark Rutland
Hi Timur, On Fri, Oct 13, 2017 at 08:39:09AM -0500, Timur Tabi wrote: > On Wed, Sep 27, 2017 at 5:34 AM, Mark Rutland wrote: > > On Tue, Sep 26, 2017 at 04:23:21PM -0600, Al Stone wrote: > >> As ARMv8 servers get deployed, I keep getting the same set of questions > >> from end-users of those syst

[PATCH RFC 04/10] KVM: VMX: Introduce the SPPTP and SPP page table.

2017-10-13 Thread Zhang Yi
From: Zhang Yi Z SPPT has 4-level paging structure that is similar to EPT except L1E. The sub-page permission table is referenced via a 64-bit control field called Sub-Page Permission Table Pointer (SPPTP) which contains a 4K-aligned physical address. the index and encoding for this VMCS field i

[PATCH RFC 06/10] KVM: VMX: Added handle of SPP write protection fault.

2017-10-13 Thread Zhang Yi
From: Zhang Yi Z A control bit in EPT leaf paging-structure entries is defined as “Sub-Page Permission” (SPP bit). The bit position is 61 While hardware walking the SPP page table, If the sub-page region write permission bit is set, the write is allowed, else the write is disallowed and results

[PATCH RFC 05/10] KVM: VMX: Introduce SPP-Induced vm exit and it's handle.

2017-10-13 Thread Zhang Yi
From: Zhang Yi Z Accesses using guest-physical addresses may cause SPP-induced VM exits due to an SPPT misconfiguration or an SPPT miss. The basic VM exit reason code reported for SPP-induced VM exits is 66. An SPPT misconfiguration VM exit occurs when, in the course of translating a guest-physi

[PATCH RFC 07/10] KVM: VMX: Introduce ioctls to set/get Sub-Page Write Protection.

2017-10-13 Thread Zhang Yi
From: Zhang Yi Z We introduced 2 ioctls to let user application to set/get subpage write protection bitmap per gfn, each gfn corresponds to a bitmap. The user application, qemu, or some other security control daemon. will set the protection bitmap via this ioctl. the API defined as: struct kvm

[PATCH RFC 08/10] KVM: VMX: Update the EPT leaf entry indicated with the SPP enable bit.

2017-10-13 Thread Zhang Yi
From: Zhang Yi Z If the sub-page write permission VM-execution control is set, treatment of write accesses to guest-physical accesses depends on the state of the accumulated write-access bit (position 1) and sub-page permission bit (position 61) in the EPT leaf paging-structure. Software will up

Re: [PATCH] tracing, memcg, vmscan: Hide trace events when not in use

2017-10-13 Thread Steven Rostedt
On Fri, 13 Oct 2017 08:38:26 +0200 Michal Hocko wrote: > I do not understand the ftrace machinery Not many do :-/ > and I have to admit I was under > impression that nothing really gets defined if the code using them > doesn't exist but if this is not the case then this patch makes sense to >

[PATCH RFC 09/10] KVM: VMX: Added setup spp page structure.

2017-10-13 Thread Zhang Yi
From: Zhang Yi Z The hardware uses the guest-physical address and bits 11:7 of the address accessed to lookup the SPPT to fetch a write permission bit for the 128 byte wide sub-page region being accessed within the 4K guest-physical page. If the sub-page region write permission bit is set, the wr

[PATCH] scsi: scsi_transport_fc: make a field of fc_internal structure const

2017-10-13 Thread Bhumika Goyal
The 'f' field of the fc_internal structure do not modify the fields of the fc_function_template structure it points to. And there are no other pointers initialized with this field 'f'. So, the field 'f' is never modified and therefore make it const. Signed-off-by: Bhumika Goyal --- drivers/scsi/

[PATCH RFC 10/10] KVM: VMX: implement setup SPP page structure in spp miss.

2017-10-13 Thread Zhang Yi
From: Zhang Yi Z We also should setup SPP page structure while we catch a SPP miss, some case, such as hotplug vcpu, should update the SPP page table in SPP miss handler. Signed-off-by: Zhang Yi Z --- arch/x86/include/asm/kvm_host.h | 2 ++ arch/x86/kvm/mmu.c | 12 a

Re: [PATCH] arm64: KVM: set right LR register value for 32 bit guest when inject abort

2017-10-13 Thread gengdongjiu
Hi Marc, Thank you very much for your time to review it. > On 12/10/17 17:44, Dongjiu Geng wrote: > > When a exception is trapped to EL2, hardware uses ELR_ELx to hold the > > current fault instruction address. If KVM wants to inject a abort to > > 32 bit guest, it needs to set the LR registe

Re: [PATCH v4] drm/i915: Replace *_reference/unreference() or *_ref/unref with _get/put()

2017-10-13 Thread Harsha Sharma
On Mon, Oct 9, 2017 at 5:36 PM, Harsha Sharma wrote: > Replace instances of drm_framebuffer_reference/unreference() with > *_get/put() suffixes and drm_dev_unref with *_put() suffix > because get/put is shorter and consistent with the > kernel use of *_get/put suffixes. > Done with following cocci

Re: [GIT PULL 00/58] LightNVM updates for 4.15

2017-10-13 Thread Jens Axboe
On Fri, Oct 13 2017, Matias Bjørling wrote: > Hi Jens, > > A couple of patches for 4.15. > > Javier has improved garbage collection, statistics, memory pool usage, > and added support for single LUN configurations. He also made a lot of > bug fixes and cleanup patches. > > Rakesh have been fixin

Re: [PATCH v2 07/10] KVM: arm/arm64: vgic-its: new helper functions to free the caches

2017-10-13 Thread Auger Eric
Hi Christoffer, On 13/10/2017 15:35, Christoffer Dall wrote: > On Wed, Sep 27, 2017 at 03:28:37PM +0200, Eric Auger wrote: >> From: wanghaibin >> >> We create 2 new functions that frees the device and > >two free > >> collection lists. this is currently called by v

Re: [PATCH 3/4] perf record: event synthesization multithreading support

2017-10-13 Thread Arnaldo Carvalho de Melo
Em Fri, Oct 13, 2017 at 07:09:26AM -0700, kan.li...@intel.com escreveu: > From: Kan Liang > > The process function process_synthesized_event writes the process > result to perf.data, which is not multithreading friendly. > > Realloc buffer for each thread to temporarily keep the processing > res

[PATCH 1/4] iommu/amd: Finish TLB flush in amd_iommu_unmap()

2017-10-13 Thread Joerg Roedel
From: Joerg Roedel The function only sends the flush command to the IOMMU(s), but does not wait for its completion when it returns. Fix that. Fixes: 601367d76bd1 ('x86/amd-iommu: Remove iommu_flush_domain function') Cc: sta...@vger.kernel.org # >= 2.6.33 Signed-off-by: Joerg Roedel --- drivers

[PATCH 3/4] vfio/type1: Make use of iommu_unmap_fast()

2017-10-13 Thread Joerg Roedel
From: Joerg Roedel Switch from using iommu_unmap to iommu_unmap_fast() and add the necessary calls the the IOTLB invalidation routines. Signed-off-by: Joerg Roedel --- drivers/vfio/vfio_iommu_type1.c | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/

[PATCH 2/4] iommu/amd: Implement IOMMU-API TLB flush interface

2017-10-13 Thread Joerg Roedel
From: Joerg Roedel Make use of the new IOTLB flush-interface in the IOMMU-API. We don't implement the iotlb_range_add() call-back for now, as this will put too many pressure on the command buffer. Instead, we do a full TLB flush in the iotlb_sync() call-back. Signed-off-by: Joerg Roedel --- dr

[PATCH 0/4] iommu/amd, vfio: Reduce IOTLB Flushm Rate

2017-10-13 Thread Joerg Roedel
Hi, these patches implement the new IOTLB flush interface in the AMD IOMMU driver. But for it to take effect, changes in VFIO are also necessary, because VFIO unpins the pages after every successful iommu_unmap() call. This requires an IOTLB flush, so that we don't save flushes. So I implemented

[PATCH 4/4] vfio/type1: Gather TLB-syncs and pages to unpin

2017-10-13 Thread Joerg Roedel
From: Joerg Roedel After every unmap VFIO unpins the pages that where mapped by the IOMMU. This requires an IOTLB flush after every unmap and puts a high load on the IOMMU hardware and the device TLBs. Gather up to 32 ranges to flush and unpin and do the IOTLB flush once for all these ranges. Th

[PATCH] admin-guide: fix reference to Documentation/admin-guide/oops-tracing.rst

2017-10-13 Thread Luis Henriques
oops-tracing.rst was merged into bug-hunting.rst with commit f226e460875d. However, a few references to the old document were left behind. This patch fixes them. Fixes: f226e460875d ("admin-guide: merge oops-tracing with bug-hunting") Signed-off-by: Luis Henriques --- Please note that there are

Re: [PATCH v11 7/9] arm64/kasan: add and use kasan_map_populate()

2017-10-13 Thread Will Deacon
Hi Pavel, On Fri, Oct 13, 2017 at 10:10:09AM -0400, Pavel Tatashin wrote: > I have a couple concerns about your patch: > > One of the reasons (and actually, the main reason) why I preferred to > keep vmemmap_populate() instead of implementing kasan's own variant, > which btw can be done in common

Re: [PATCH V7 4/6] blk-mq: introduce .get_budget and .put_budget in blk_mq_ops

2017-10-13 Thread Jens Axboe
On 10/12/2017 06:19 PM, Ming Lei wrote: > On Thu, Oct 12, 2017 at 12:46:24PM -0600, Jens Axboe wrote: >> On 10/12/2017 12:37 PM, Ming Lei wrote: >>> For SCSI devices, there is often per-request-queue depth, which need >>> to be respected before queuing one request. >>> >>> The current blk-mq always

[PATCH v2 perf] tools: Update rbtree files

2017-10-13 Thread David Ahern
Update rbtree files to 4.14. Changes made after copy: - update guards in header files - remove rcu references - kept rb_erase_init in rbtree.h Signed-off-by: David Ahern --- v2 - kept rb_erase_init after the update tools/include/linux/rbtree.h | 47 - tools/include/linux/rbt

Re: [PATCH v3 16/22] firmware: arm_scmi: add arm_mhu specific mailbox interface

2017-10-13 Thread Sudeep Holla
On 13/10/17 15:12, Jassi Brar wrote: > On Fri, Oct 13, 2017 at 7:12 PM, Sudeep Holla wrote: >> >> Hi Bjorn, >> >> Thanks for taking a look at this. Much appreciated. >> >> On 12/10/17 22:03, Bjorn Andersson wrote: >>> On Fri, Oct 6, 2017 at 6:51 AM, Sudeep Holla wrote: On 06/10/1

Re: Crash in bm_evict_inode() during shutdown.

2017-10-13 Thread Oleg Nesterov
On 10/13, Stanislaw Gruszka wrote: > > On 4.14-rc4 updated today, I have OOPS on bm_evict_inode(). It happens > every time during shutdown of the system. > > Seems e = inode->i_private is NULL and e->flags crashes. Yes, sorry, my fault. Fixed by the patch from Eryu, already in -mm tree. Oleg. bi

Re: [RFC PATCH for 4.15 09/14] Provide cpu_opv system call

2017-10-13 Thread Mathieu Desnoyers
- On Oct 13, 2017, at 9:57 AM, One Thousand Gnomes gno...@lxorguk.ukuu.org.uk wrote: >> A maximum limit of 16 operations per cpu_opv syscall invocation is >> enforced, so user-space cannot generate a too long preempt-off critical >> section. > > Except that all the operations could be going

[PATCH v2 3/5] dpaa_eth: change device used

2017-10-13 Thread Madalin Bucur
Change device used for DMA mapping to the MAC device that is an of_device, with proper DMA ops. Using this device for the netdevice should also address the issue with DSA scenarios that need the netdevice to be backed by an of_device. Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freesca

Re: [PATCH v4 0/9] Mediatek MT2712 clock and scpsys support

2017-10-13 Thread Matthias Brugger
On 10/13/2017 12:45 AM, Stephen Boyd wrote: On 09/19, Weiyi Lu wrote: This series is based on v4.14-rc1 and composed of clock control (PATCH 1-4) and scpsys control (PATCH 5-9) What's the merge plan? Can I apply the clk ones to clk tree and ignore the rest? Yes, please do so. I'll take sc

[PATCH v2 2/5] dpaa_eth: move of_phy_connect() to the eth driver

2017-10-13 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 48 +++-- drivers/net/ethernet/freescale/fman/mac.c | 97 ++ drivers/net/ethernet/freescale/fman/mac.h | 5 +- 3 files changed, 66 insertions(+), 84 deletions(-) diff --gi

[PATCH v2 4/5] dpaa_eth: cleanup dpaa_eth_probe() error paths

2017-10-13 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 53 ++ 1 file changed, 20 insertions(+), 33 deletions(-) diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c index 823aa65..c6b97a1

[PATCH v2 5/5] fsl/fman: add dpaa in module names

2017-10-13 Thread Madalin Bucur
Signed-off-by: Madalin Bucur --- drivers/net/ethernet/freescale/fman/Makefile | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/freescale/fman/Makefile b/drivers/net/ethernet/freescale/fman/Makefile index 2c38119..4ae524a 100644 --- a/drivers/n

Re: [Outreachy kernel] Re: [PATCH v4] drm/i915: Replace *_reference/unreference() or *_ref/unref with _get/put()

2017-10-13 Thread Daniel Vetter
On Fri, Oct 13, 2017 at 08:03:59PM +0530, Harsha Sharma wrote: > On Mon, Oct 9, 2017 at 5:36 PM, Harsha Sharma > wrote: > > Replace instances of drm_framebuffer_reference/unreference() with > > *_get/put() suffixes and drm_dev_unref with *_put() suffix > > because get/put is shorter and consistent

[PATCH v2 1/5] fsl/fman: remove of_node

2017-10-13 Thread Madalin Bucur
The FMan MAC driver allocates a platform device for the Ethernet driver to probe on. Setting pdev->dev.of_node with the MAC node triggers the MAC driver probing of the new platform device. While this fails quickly and does not affect the functionality of the drivers, it is incorrect and must be rem

[PATCH v2 0/5] adapt DPAA drivers for DSA

2017-10-13 Thread Madalin Bucur
Junote Cai reported that he was not able to get a DSA setup involving the DPAA/FMAN driver to work and narrowed it down to of_find_net_device_by_node() call in DSA setup. The initial attempt to fix this by adding of_node to the platform device results in a second, failed, probing of the FMan MAC dr

Re: [Part2 PATCH v5.1 12.8/31] crypto: ccp: Implement SEV_PEK_CERT_IMPORT ioctl command

2017-10-13 Thread Borislav Petkov
On Fri, Oct 06, 2017 at 08:06:06PM -0500, Brijesh Singh wrote: > The SEV_PEK_CERT_IMPORT command can be used to import the signed PEK > certificate. The command is defined in SEV spec section 5.8. > > Cc: Paolo Bonzini > Cc: "Radim Krčmář" > Cc: Borislav Petkov > Cc: Herbert Xu > Cc: Gary Hook

Re: [PATCH v11 7/9] arm64/kasan: add and use kasan_map_populate()

2017-10-13 Thread Mark Rutland
Hi, On Fri, Oct 13, 2017 at 03:43:19PM +0100, Will Deacon wrote: > On Fri, Oct 13, 2017 at 10:10:09AM -0400, Pavel Tatashin wrote: > > I am getting the following panic during boot: > > > > [0.012637] pid_max: default: 32768 minimum: 301 > > [0.016037] Security Framework initialized > > [

Re: [PATCH perf] tools: Update rbtree files

2017-10-13 Thread Arnaldo Carvalho de Melo
Em Thu, Oct 12, 2017 at 01:52:11PM -0600, David Ahern escreveu: > hi Arnaldo: > > On 9/29/17 2:26 PM, David Ahern wrote: > > Update rbtree files to 4.14. > > Haven't seen this one in your perf/core branch. You added the existing > version, so assuming an update goes through you as well. Ok, I'll

Re: [PATCH 1/3] ARM: mediatek: Cocci spatch "of_table"

2017-10-13 Thread Matthias Brugger
On 09/21/2017 08:24 AM, Thomas Meyer wrote: Make sure (of/i2c/platform)_device_id tables are NULL terminated. Found by coccinelle spatch "misc/of_table.cocci" Signed-off-by: Thomas Meyer --- Applied to v4.14-next/soc Thanks! diff -u -p a/arch/arm/mach-mediatek/platsmp.c b/arch/arm/mach-

Re: [Outreachy kernel] Re: [PATCH v4] drm/i915: Replace *_reference/unreference() or *_ref/unref with _get/put()

2017-10-13 Thread Daniel Vetter
On Fri, Oct 13, 2017 at 04:51:38PM +0200, Daniel Vetter wrote: > On Fri, Oct 13, 2017 at 08:03:59PM +0530, Harsha Sharma wrote: > > On Mon, Oct 9, 2017 at 5:36 PM, Harsha Sharma > > wrote: > > > Replace instances of drm_framebuffer_reference/unreference() with > > > *_get/put() suffixes and drm_de

Re: [GIT PULL 02/58] lightnvm: prevent bd removal if busy

2017-10-13 Thread Christoph Hellwig
On Fri, Oct 13, 2017 at 02:45:51PM +0200, Matias Bjørling wrote: > From: Rakesh Pandit > > When a virtual block device is formatted and mounted after creating > with "nvme lnvm create... -t pblk", a removal from "nvm lnvm remove" > would result in this: > > 446416.309757] bdi-block not registere

RE: [PATCH 3/4] perf record: event synthesization multithreading support

2017-10-13 Thread Liang, Kan
> Em Fri, Oct 13, 2017 at 07:09:26AM -0700, kan.li...@intel.com escreveu: > > From: Kan Liang > > > > The process function process_synthesized_event writes the process > > result to perf.data, which is not multithreading friendly. > > > > Realloc buffer for each thread to temporarily keep the proc

Re: [PATCH v6 1/2] pid: Replace pid bitmap implementation with IDR API

2017-10-13 Thread Oleg Nesterov
On 10/12, Andrew Morton wrote: > > On Wed, 11 Oct 2017 20:54:32 -0400 Rik van Riel wrote: > > > Documenting the locking on all the existing code, plus the > > new code, seems a little out of scope of an Outreachy > > internship... > > I'm not referring to all the existing code! Just this new > pi

Re: KGDB/KDB treats WARN*() as Oops on x86 since 4.12

2017-10-13 Thread Daniel Thompson
On 09/10/17 13:24, Ilya Dryomov wrote: Hi Jason, Starting with 4.12, WARN*() is implemented with ud0, generating an Invalid Opcode exception. KGDB/KDB gets entered as if it were an Oops, making KGDB/KDB rather hard to use, particularly on testing kernels. Alexander posted a fix a while back, b

Re: [PATCH v3 07/11] perf, tools, list: Add metric groups to perf list

2017-10-13 Thread Arnaldo Carvalho de Melo
Em Thu, Aug 31, 2017 at 12:40:32PM -0700, Andi Kleen escreveu: > From: Andi Kleen > > Add code to perf list to print metric groups, and metrics > that don't have an event name. The metricgroup code collects > the eventgroups and events into a rblist, and then prints > them according to the config

[PATCH] scsi: scsi_transport_fc: make the function argument as const

2017-10-13 Thread Bhumika Goyal
This is a followup patch for: https://lkml.org/lkml/2017/10/13/476 Make the function argument of fc_attach_transport as const as it is only stored in the const field 'f' (made const in the patch in the link) of a fc_internal structure. Signed-off-by: Bhumika Goyal --- This change allows some fc_

Re: Sluggish AT91 I2C driver causes SMBus timeouts

2017-10-13 Thread Peter Rosin
On 2017-10-13 15:29, Alan Cox wrote: > On Thu, 12 Oct 2017 13:35:17 +0200 > Peter Rosin wrote: > >> Hi! >> >> I have encountered an "interesting" bug. It silently corrupts data >> and is generally nasty... >> >> On an I2C bus, driven by the at91 driver and DMA (an Atmel >> sama5d31 chip), I have

<    1   2   3   4   5   6   7   8   9   10   >