Re: [PATCH v11 13/26] s390: vfio-ap: zeroize the AP queues

2018-09-26 Thread Christian Borntraeger
On 09/26/2018 03:38 PM, Cornelia Huck wrote: > On Tue, 25 Sep 2018 19:16:28 -0400 > Tony Krowiak wrote: > >> From: Tony Krowiak >> >> Let's call PAPQ(ZAPQ) to zeroize a queue for each queue configured >> for a mediated matrix device when it is released. >> >> Zeroizing a queue resets the queu

[PATCH 2/3] x86/intel_rdt: CBM overlap should also check for overlap with CDP peer

2018-09-26 Thread Reinette Chatre
The CBM overlap test is used to manage the allocations of RDT resources where overlap is possible between resource groups. When a resource group is in exclusive mode then there should be no overlap between resource groups. The current overlap test only considers overlap between the same resources,

[PATCH 1/3] x86/intel_rdt: Introduce utility to obtain CDP peer

2018-09-26 Thread Reinette Chatre
Introduce a utility that, when provided with a RDT resource and an instance of this RDT resource (a RDT domain), would return pointers to the RDT resource and RDT domain that share the same hardware. This is specific to the CDP resources that share the same hardware. For example, if a pointer to t

Re: [PATCH 0/3] Kbuild: Some fixdep tweaks

2018-09-26 Thread Rasmus Villemoes
On 15 August 2018 at 16:27, Rasmus Villemoes wrote: > These patches eliminate two (albeit tiny and shortlived) processes > from the cmd_and_fixdep rule, i.e. from every TU being > compiled. Whether the diffstat below is worth it I'll leave to Kbuild > maintainers to decide. Ping.

Re: [PATCH v1 1/5] dt-binding: rtci-pcf8523: add quartz_load property

2018-09-26 Thread Alexandre Belloni
On 26/09/2018 10:47:08-0500, Rob Herring wrote: > > > +Optional property: > > > +- nxp,quartz_load_12.5pF: The capacitive load on the quartz is 12.5 pF, > > > + which differ from the default value of 7 pF > > > + > > > > The boolean properties usually don't work well for RTCs because people > > u

Re: [PATCH v2] compiler.h: give up __compiletime_assert_fallback()

2018-09-26 Thread Kees Cook
On Wed, Sep 26, 2018 at 11:42 AM, Greg KH wrote: > I'm not digging up a compiler.h patch from a web site and adding it to > the tree this late in the release cycle. Especially given that it > hasn't had any testing anywhere... Good point about it not living in -next. Who should be carrying thes

Re: [PATCH v2] compiler.h: give up __compiletime_assert_fallback()

2018-09-26 Thread Greg KH
On Wed, Sep 26, 2018 at 11:26:46AM -0700, Kees Cook wrote: > On Wed, Sep 26, 2018 at 11:03 AM, Nick Desaulniers > wrote: > > On Wed, Sep 26, 2018 at 11:00 AM Matthias Kaehlcke > > wrote: > >> > >> On Fri, Aug 31, 2018 at 09:46:02AM -0700, Nick Desaulniers wrote: > >> > On Tue, Aug 28, 2018 at 4:

Re: [PATCH] staging: rtl8723bs: Mark ACPI table declaration as maybe unused

2018-09-26 Thread Greg KH
On Wed, Sep 26, 2018 at 11:28:46AM -0700, Nick Desaulniers wrote: > On Wed, Sep 26, 2018 at 10:55 AM Nick Desaulniers > wrote: > > > > On Wed, Sep 26, 2018 at 12:41 AM Nathan Chancellor > > wrote: > > > > > > On Wed, Sep 26, 2018 at 09:13:59AM +0200, Greg Kroah-Hartman wrote: > > > > On Wed, Sep

Re: [PATCH V4 3/4] spi: spi-geni-qcom: Add SPI driver support for GENI based QUP

2018-09-26 Thread dkota
On 2018-09-26 01:24, Doug Anderson wrote: Hi, On Tue, Sep 25, 2018 at 12:36 PM wrote: >> + unsigned int cur_speed_hz; > > unsigned long for Hz? The clk framework uses that type. cur_speed_hz stores the speed value requested as part of transfer (not the resultant or rounded off frequency

Re: [PATCH] platform/x86: intel-wmi-thunderbolt: Add dynamic debugging

2018-09-26 Thread Mika Westerberg
On Wed, Sep 26, 2018 at 11:10:58AM -0500, Mario Limonciello wrote: > Some users have been reporting issues with thunderbolt being turned off > before fully initialized. This is suspected to be caused by userspace > turning off the Thunderbolt controller using intel-wmi-thunderbolt > prematurely. >

[PATCH memory-model 1/5] tools/memory-model: Add litmus-test naming scheme

2018-09-26 Thread Paul E. McKenney
From: "Paul E. McKenney" This commit documents the scheme used to generate the names for the litmus tests. Signed-off-by: Paul E. McKenney [ paulmck: Apply feedback from Andrea Parri and Will Deacon. ] Acked-by: Will Deacon --- tools/memory-model/litmus-tests/README | 104

[PATCH memory-model 2/5] tools/memory-model: Add extra ordering for locks and remove it for ordinary release/acquire

2018-09-26 Thread Paul E. McKenney
From: Alan Stern More than one kernel developer has expressed the opinion that the LKMM should enforce ordering of writes by locking. In other words, given the following code: WRITE_ONCE(x, 1); spin_unlock(&s): spin_lock(&s); WRITE_ONCE(y, 1); the stores to x an

[PATCH memory-model 4/5] tools/memory-model: Add more LKMM limitations

2018-09-26 Thread Paul E. McKenney
From: "Paul E. McKenney" This commit adds more detail about compiler optimizations and not-yet-modeled Linux-kernel APIs. Signed-off-by: Paul E. McKenney Reviewed-by: Andrea Parri --- tools/memory-model/README | 39 +++ 1 file changed, 39 insertions(+) dif

[PATCH memory-model 3/5] tools/memory-model: Fix a README typo

2018-09-26 Thread Paul E. McKenney
From: SeongJae Park This commit fixes a duplicate-"the" typo in README. Signed-off-by: SeongJae Park Signed-off-by: Paul E. McKenney Acked-by: Alan Stern --- tools/memory-model/Documentation/recipes.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/memory-model/Do

[PATCH memory-model 5/5] doc: Replace smp_cond_acquire() with smp_cond_load_acquire()

2018-09-26 Thread Paul E. McKenney
From: Andrea Parri Amend commit 1f03e8d2919270 ("locking/barriers: Replace smp_cond_acquire() with smp_cond_load_acquire()") by updating the documentation accordingly. Also remove some obsolete information related to the implementation. Signed-off-by: Andrea Parri Cc: Alan Stern Cc: Will Deaco

Re: [PATCH] staging: rtl8723bs: Mark ACPI table declaration as maybe unused

2018-09-26 Thread Nick Desaulniers
On Wed, Sep 26, 2018 at 10:55 AM Nick Desaulniers wrote: > > On Wed, Sep 26, 2018 at 12:41 AM Nathan Chancellor > wrote: > > > > On Wed, Sep 26, 2018 at 09:13:59AM +0200, Greg Kroah-Hartman wrote: > > > On Wed, Sep 26, 2018 at 12:02:09AM -0700, Nathan Chancellor wrote: > > > > Clang emits the fol

[PATCH memory-model 0/5] Updates to the formal memory model

2018-09-26 Thread Paul E. McKenney
Hello, Ingo! This series contains updates to the Linux kernel's formal memory model in tools/memory-model, along with corresponding changes in documentation and Linux-kernel code. These patches are ready for inclusion into -tip. 1. Document litmus-test naming scheme. 2. Add extra orde

Re: [PATCH v2] compiler.h: give up __compiletime_assert_fallback()

2018-09-26 Thread Kees Cook
On Wed, Sep 26, 2018 at 11:03 AM, Nick Desaulniers wrote: > On Wed, Sep 26, 2018 at 11:00 AM Matthias Kaehlcke wrote: >> >> On Fri, Aug 31, 2018 at 09:46:02AM -0700, Nick Desaulniers wrote: >> > On Tue, Aug 28, 2018 at 4:00 PM Nick Desaulniers >> > wrote: >> > > >> > > On Mon, Aug 27, 2018 at 1:

RE: [PATCH v12 0/6] drivers: Introduce firmware driver for ZynqMP core

2018-09-26 Thread Jolly Shah
Hi Olof, > -Original Message- > From: Olof Johansson [mailto:o...@lixom.net] > Sent: Sunday, September 23, 2018 6:13 AM > To: Jolly Shah > Cc: Michal Simek ; a...@kernel.org; Rajan Vaja > ; linux-arm-ker...@lists.infradead.org; linux- > ker...@vger.kernel.org > Subject: Re: [PATCH v12 0/6

Re: Leaking Path in XFS's ioctl interface(missing LSM check)

2018-09-26 Thread Alan Cox
On Wed, 26 Sep 2018 11:33:29 +1000 Dave Chinner wrote: > On Tue, Sep 25, 2018 at 08:51:50PM -0400, TongZhang wrote: > > Hi, > > > > I'm bringing up this issue again to let of LSM developers know the > > situation, and would like to know your thoughts. > > Several weeks ago I sent an email to th

Re: [PATCH] Raise maximum number of memory controllers

2018-09-26 Thread Russ Anderson
On Wed, Sep 26, 2018 at 11:10:35AM -0700, Luck, Tony wrote: > On Wed, Sep 26, 2018 at 06:17:49PM +0200, Borislav Petkov wrote: > > On Wed, Sep 26, 2018 at 01:03:40PM -0300, Mauro Carvalho Chehab wrote: > > > I guess this is/was needed to create things like this: > > > > > > lrwxrwxrwx 1 root roo

[GIT PULL rcu/next] RCU commits for 4.20/5.0

2018-09-26 Thread Paul E. McKenney
Hello, Ingo, This pull request contains the following changes: 1. Documentation updates, including some good-eye catches from Joel Fernandes. http://lkml.kernel.org/r/20180829211637.ga20...@linux.vnet.ibm.com 2. SRCU updates, most notably changes enabling call_srcu() t

[PATCH v3 2/4] firmware: xilinx: Add zynqmp IOCTL API for device control

2018-09-26 Thread Jolly Shah
From: Rajan Vaja Add ZynqMP firmware IOCTL API to control and configure devices like PLLs, SD, Gem, etc. Signed-off-by: Rajan Vaja Signed-off-by: Jolly Shah --- drivers/firmware/xilinx/zynqmp.c | 43 include/linux/firmware/xlnx-zynqmp.h | 4 +++- 2 fi

[PATCH v3 4/4] drivers: clk: Add ZynqMP clock driver

2018-09-26 Thread Jolly Shah
From: Jolly Shah This patch adds CCF compliant clock driver for ZynqMP. Clock driver queries supported clock information from firmware and regiters pll and output clocks with CCF. Signed-off-by: Rajan Vaja Signed-off-by: Tejas Patel Signed-off-by: Shubhrajyoti Datta Signed-off-by: Jolly Shah

[PATCH v3 3/4] dt-bindings: clock: Add bindings for ZynqMP clock driver

2018-09-26 Thread Jolly Shah
From: Rajan Vaja Add documentation to describe Xilinx ZynqMP clock driver bindings. Signed-off-by: Rajan Vaja Signed-off-by: Jolly Shah Reviewed-by: Rob Herring Reviewed-by: Stephen Boyd --- .../firmware/xilinx/xlnx,zynqmp-firmware.txt | 53 ++ include/dt-bindings/clock/xlnx,

[PATCH v3 0/4] drivers: clk: Add ZynqMP clock driver support

2018-09-26 Thread Jolly Shah
This patchset adds CCF compliant clock driver for ZynqMP.Clock driver queries supported clock information from firmware and regiters pll and output clocks with CCF. This patch series is earlier reveiwed as part of FW patchset (https://patchwork.kernel.org/cover/10555405/). FW driver from that

[PATCH v3 1/4] Documentation: xilinx: Add documentation for eemi APIs

2018-09-26 Thread Jolly Shah
From: Rajan Vaja Add documentation for embedded energy management interface (EEMI) APIs. It includes information about eemi ops and how to use them. It also includes API information and supported IOCTL IDs which can be used for device and control configuration. Signed-off-by: Rajan Vaja Signed-

Re: [PATCH v14 09/19] x86/mm: x86/sgx: Signal SEGV_SGXERR for #PFs w/ PF_SGX

2018-09-26 Thread Andy Lutomirski
> On Sep 26, 2018, at 10:35 AM, Sean Christopherson > wrote: > >> On Tue, Sep 25, 2018 at 03:53:48PM -0700, Andy Lutomirski wrote: >> Minor nit: >> >> On Tue, Sep 25, 2018 at 6:12 AM Jarkko Sakkinen >> wrote: >>> >>> From: Sean Christopherson >>> >> >>> by (c) as the kernel doesn't reall

Re: POSIX violation by writeback error

2018-09-26 Thread Alan Cox
> And I think that's fine. The only way we can make any guarantees is > if we do what Alan suggested, which is to imply that a read on a dirty > page *block* until the the page is successfully written back. This > would destroy performance. In almost all cases you don't care so you wouldn't use

Re: [PATCH] Raise maximum number of memory controllers

2018-09-26 Thread Luck, Tony
On Wed, Sep 26, 2018 at 06:17:49PM +0200, Borislav Petkov wrote: > On Wed, Sep 26, 2018 at 01:03:40PM -0300, Mauro Carvalho Chehab wrote: > > I guess this is/was needed to create things like this: > > > > lrwxrwxrwx 1 root root 0 set 26 05:24 /sys/bus/edac/devices/mc -> > > ../../../devices/s

[v2 PATCH 1/2 -mm] mm: mremap: dwongrade mmap_sem to read when shrinking

2018-09-26 Thread Yang Shi
Other than munmap, mremap might be used to shrink memory mapping too. So, it may hold write mmap_sem for long time when shrinking large mapping, as what commit ("mm: mmap: zap pages with read mmap_sem in munmap") described. The mremap() will not manipulate vmas anymore after __do_munmap() call for

[v2 PATCH 2/2 -mm] mm: brk: dwongrade mmap_sem to read when shrinking

2018-09-26 Thread Yang Shi
brk might be used to shinrk memory mapping too other than munmap(). So, it may hold write mmap_sem for long time when shrinking large mapping, as what commit ("mm: mmap: zap pages with read mmap_sem in munmap") described. The brk() will not manipulate vmas anymore after __do_munmap() call for the

Re: [PATCH 05/18] asm-generic/tlb: Provide generic tlb_flush

2018-09-26 Thread Peter Zijlstra
On Wed, Sep 26, 2018 at 03:11:41PM +0200, Peter Zijlstra wrote: > On Wed, Sep 26, 2018 at 01:53:35PM +0100, Will Deacon wrote: > > > +static inline void tlb_start_vma(struct mmu_gather *tlb, struct > > > vm_area_struct *vma) > > > +{ > > > + if (tlb->fullmm) > > > + return; > > > + > > >

XBox One S controller, Bluetooth support (was Re: hid: microsoft: Add rumble support for Xbox One S controller)

2018-09-26 Thread Bastien Nocera
(Resend to the correct Bluetooth list, sorry for the dupes) On Wed, 2018-09-26 at 15:45 +0200, Bastien Nocera wrote: > Hey Florian, > > On Wed, 2018-09-26 at 14:51 +0200, Dollinger Florian wrote: > > From: Florian Dollinger > > > > Hi there! Why do you re-engineer the wheel? :) There is already

[PATCH v3 2/2] soc: qcom: cmd-db: Stop memcpy()ing in cmd_db_read_aux_data()

2018-09-26 Thread Stephen Boyd
Let's change the function signature to return the pointer to memory or an error pointer on failure, and take an argument that lets us return the size of the aux data read. This way we can remove the cmd_db_read_aux_data_len() API entirely and also get rid of the memcpy operation from cmd_db to the

Re: [PATCH v2, RESEND 0/3] tpm: retrieve digest size of unknown algorithms from TPM

2018-09-26 Thread Mimi Zohar
On Wed, 2018-09-26 at 10:40 -0400, Mimi Zohar wrote: > On Mon, 2018-09-17 at 11:38 +0200, Roberto Sassu wrote: > > Resending to maintainer with correct mailing lists in CC. > > > > The TPM driver currently relies on the crypto subsystem to determine the > > digest size of supported TPM algorithms.

[PATCH v3 1/2] soc: qcom: cmd-db: Remove memcpy()ing from cmd_db_get_header()

2018-09-26 Thread Stephen Boyd
The cmd_db_get_header() function is a static local function that doesn't need to copy anything from one place to another. Instead, it can just point into the region by returning pointers to what we're looking for. If we do that, we should mark what we're returning as const so that code can't modify

Re: [PATCH v2] compiler.h: give up __compiletime_assert_fallback()

2018-09-26 Thread Nick Desaulniers
On Wed, Sep 26, 2018 at 11:00 AM Matthias Kaehlcke wrote: > > On Fri, Aug 31, 2018 at 09:46:02AM -0700, Nick Desaulniers wrote: > > On Tue, Aug 28, 2018 at 4:00 PM Nick Desaulniers > > wrote: > > > > > > On Mon, Aug 27, 2018 at 1:42 PM Daniel Santos > > > wrote: > > > > > > > > Hello Nick, > >

[PATCH v3 0/2] qcom: remove memcpy()ing from cmd-db driver

2018-09-26 Thread Stephen Boyd
A couple patches for the cmd-db code to not do any more copying of memory. Instead, we'll just hand out pointers to things inside cmd-db. Changes from v2: * Consolidated GPU code some more per Jordan's suggestion Changes from v1: * Fixed patch#2 for GPU wreckage Cc: Mahesh Sivasubramanian Cc

Re: AW: hid: microsoft: Add rumble support for Xbox One S controller

2018-09-26 Thread Bastien Nocera
On Wed, 2018-09-26 at 17:15 +0200, dollinger.flor...@gmx.de wrote: > Hey Bastien, > > > Probably because he didn't know about it, and how would he? > > Hum, it's the first hit when you search for something like 'xbox one > s driver linux' since half an year or longer 😊 Sure it is, but: - it's no

Re: [PATCH v2] compiler.h: give up __compiletime_assert_fallback()

2018-09-26 Thread Matthias Kaehlcke
On Fri, Aug 31, 2018 at 09:46:02AM -0700, Nick Desaulniers wrote: > On Tue, Aug 28, 2018 at 4:00 PM Nick Desaulniers > wrote: > > > > On Mon, Aug 27, 2018 at 1:42 PM Daniel Santos > > wrote: > > > > > > Hello Nick, > > > > > > On 08/27/2018 03:09 PM, Nick Desaulniers wrote: > > > >>> Let's give

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-09-26 Thread Dmitry Safonov
2018-09-26 18:36 GMT+01:00 Eric W. Biederman : > The advantage of timekeeping_update per time namespace is that it allows > different lengths of seconds per time namespace. Which allows testing > ntp and the kernel in interesting ways while still having a working > production configuration on the

Re: [PATCH v8 02/10] Makefile: Prepare for using macros for inline asm

2018-09-26 Thread Nadav Amit
at 1:58 AM, Rasmus Villemoes wrote: > On 2018-09-18 23:28, Nadav Amit wrote: > >> diff --git a/arch/x86/Makefile b/arch/x86/Makefile >> index 8f6e7eb8ae9f..944fa3bc9376 100644 >> --- a/arch/x86/Makefile >> +++ b/arch/x86/Makefile >> @@ -214,8 +214,8 @@ ifdef CONFIG_X86_64 >> KBUILD_LDFLAGS += $(

Re: [PATCH] staging: rtl8723bs: Mark ACPI table declaration as maybe unused

2018-09-26 Thread Nick Desaulniers
On Wed, Sep 26, 2018 at 12:41 AM Nathan Chancellor wrote: > > On Wed, Sep 26, 2018 at 09:13:59AM +0200, Greg Kroah-Hartman wrote: > > On Wed, Sep 26, 2018 at 12:02:09AM -0700, Nathan Chancellor wrote: > > > Clang emits the following warning: > > > > > > drivers/staging/rtl8723bs/os_dep/sdio_intf.c

Re: [RFC][PATCH 3/3] locking/qspinlock: Optimize for x86

2018-09-26 Thread Peter Zijlstra
On Wed, Sep 26, 2018 at 12:30:36PM -0400, Waiman Long wrote: > On 09/26/2018 07:01 AM, Peter Zijlstra wrote: > > On x86 we cannot do fetch_or with a single instruction and end up > > using a cmpxchg loop, this reduces determinism. Replace the fetch_or > > with a very tricky composite xchg8 + load.

Re: [PATCH] i2c: mux: remove duplicated i2c_algorithm

2018-09-26 Thread kbuild test robot
Hi Luca, Thank you for the patch! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR on v4.19-rc5 next-20180926] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux

Re: [RFC][PATCH 0/3] locking/qspinlock: Improve determinism for x86

2018-09-26 Thread Peter Zijlstra
On Wed, Sep 26, 2018 at 12:20:09PM -0400, Waiman Long wrote: > On 09/26/2018 07:01 AM, Peter Zijlstra wrote: > > Back when Will did his qspinlock determinism patches, we were left with one > > cmpxchg loop on x86 due to the use of atomic_fetch_or(). Will proposed a > > nifty > > trick: > > > > h

Re: [PATCH v4 14/16] sched/core: uclamp: request CAP_SYS_ADMIN by default

2018-09-26 Thread Patrick Bellasi
Hi Peter, On 21-Sep 11:13, Peter Zijlstra wrote: > On Mon, Sep 17, 2018 at 01:27:23PM +0100, Patrick Bellasi wrote: [...] While going back to one of our previous conversation, I noted these comments: > > Thus, the capacity of little CPUs, or the exact capacity of an OPP, is > > something we don

Re: [RFC PATCH] platform/x86: asus-wmi: Simplify the keyboard brightness updating process

2018-09-26 Thread Andy Shevchenko
On Mon, Sep 10, 2018 at 11:57 AM Jian-Hong Pan wrote: > > 2018-08-16 16:41 GMT+08:00 Jian-Hong Pan : > > The original asus-wmi queues a work which calls the ACPI/WMI methods to > > update the keyboard LED brightness. Similar drivers - acer-wmi, > > dell-wmi-led just call the ACPI/WMI methods dire

Re: [PATCH 3/4] platform/x86: intel_pmc_core: Decode Snoop / Non Snoop LTR

2018-09-26 Thread Andy Shevchenko
On Wed, Sep 26, 2018 at 5:19 PM Bhardwaj, Rajneesh wrote: > On 26-Sep-18 7:23 PM, Andy Shevchenko wrote: > > On Mon, Sep 3, 2018 at 9:05 PM Rajneesh Bhardwaj > > wrote: > >> +static void get_ltr_scale(u32 *val) > > What's wrong to return converted value? Actually the name should > > reflect what

Re: [PATCH] Raise maximum number of memory controllers

2018-09-26 Thread Mauro Carvalho Chehab
Em Wed, 26 Sep 2018 18:17:49 +0200 Borislav Petkov escreveu: > On Wed, Sep 26, 2018 at 01:03:40PM -0300, Mauro Carvalho Chehab wrote: > > I guess this is/was needed to create things like this: > > > > lrwxrwxrwx 1 root root 0 set 26 05:24 /sys/bus/edac/devices/mc -> > > ../../../devices/sys

Re: [REVIEW][PATCH 00/15] signal/arm64: siginfo cleanups

2018-09-26 Thread Catalin Marinas
Hi Eric, On Mon, Sep 24, 2018 at 11:07:05AM +0200, Eric W. Biederman wrote: > This is the continuation of my work to sort out signaling of exceptions > with siginfo. The old signal sending functions by taking a siginfo > argument resulted in their callers having to deal with the fiddly nature > o

Re: [RFC 00/20] ns: Introduce Time Namespace

2018-09-26 Thread Eric W. Biederman
Andrey Vagin writes: > On Tue, Sep 25, 2018 at 12:02:32AM +0200, Eric W. Biederman wrote: >> Andrey Vagin writes: >> >> > On Fri, Sep 21, 2018 at 02:27:29PM +0200, Eric W. Biederman wrote: >> >> Dmitry Safonov writes: >> >> >> >> > Discussions around time virtualization are there for a long t

Re: [PATCH v14 09/19] x86/mm: x86/sgx: Signal SEGV_SGXERR for #PFs w/ PF_SGX

2018-09-26 Thread Sean Christopherson
On Tue, Sep 25, 2018 at 03:53:48PM -0700, Andy Lutomirski wrote: > Minor nit: > > On Tue, Sep 25, 2018 at 6:12 AM Jarkko Sakkinen > wrote: > > > > From: Sean Christopherson > > > > > by (c) as the kernel doesn't really have any other reasonable option, > > e.g. we could kill the task or panic,

Re: [PATCH v2 7/9] x86/kvm/nVMX: introduce source data cache for kvm_init_shadow_ept_mmu()

2018-09-26 Thread Vitaly Kuznetsov
Sean Christopherson writes: > On Tue, Sep 25, 2018 at 07:58:42PM +0200, Vitaly Kuznetsov wrote: >> MMU re-initialization is expensive, in particular, >> update_permission_bitmask() and update_pkru_bitmask() are. >> >> Cache the data used to setup shadow EPT MMU and avoid full re-init when >> it

Re: [PATCH v4] ARM: dts: dra7: Fix up unaligned access setting for PCIe EP

2018-09-26 Thread Tony Lindgren
* Vignesh R [180924 22:25]: > Bit positions of PCIE_SS1_AXI2OCP_LEGACY_MODE_ENABLE and > PCIE_SS1_AXI2OCP_LEGACY_MODE_ENABLE in CTRL_CORE_SMA_SW_7 are > incorrectly documented in the TRM. In fact, the bit positions are > swapped. Update the DT bindings for PCIe EP to reflect the same. > > Fixes:

Re: [RFC 61/60] cosched: Accumulated fixes and improvements

2018-09-26 Thread Nishanth Aravamudan
On 13.09.2018 [21:19:38 +0200], Jan H. Schönherr wrote: > Here is an "extra" patch containing bug fixes and warning removals, > that I have accumulated up to this point. > > It goes on top of the other 60 patches. (When it is time for v2, > these fixes will be integrated into the appropriate patch

Re: [Patch v2 3/4] x86/speculation: Extend per process STIBP to AMD cpus.

2018-09-26 Thread Tim Chen
On 09/25/2018 05:43 PM, Tim Chen wrote: > From: Thomas Lendacky > > We extend the app to app spectre v2 mitigation using STIBP > to the AMD cpus. We need to take care of special > cases for AMD cpu's update of SPEC_CTRL MSR to avoid double > writing of MSRs from update to SSBD and STIBP. Tom, if

Re: [PATCH v2 6/9] x86/kvm/mmu: make space for source data caching in struct kvm_mmu

2018-09-26 Thread Vitaly Kuznetsov
Sean Christopherson writes: > On Tue, Sep 25, 2018 at 07:58:41PM +0200, Vitaly Kuznetsov wrote: >> In preparation to MMU reconfiguration avoidance we need a space to >> cache source data. As this partially intersects with kvm_mmu_page_role, >> create 64bit sized union kvm_mmu_role holding both ba

Re: [PATCH v2 4/9] x86/kvm/mmu: introduce guest_mmu

2018-09-26 Thread Vitaly Kuznetsov
Sean Christopherson writes: > On Tue, Sep 25, 2018 at 07:58:39PM +0200, Vitaly Kuznetsov wrote: >> When EPT is used for nested guest we need to re-init MMU as shadow >> EPT MMU (nested_ept_init_mmu_context() does that). When we return back >> from L2 to L1 kvm_mmu_reset_context() in nested_vmx_lo

Re: [PATCH 4/4] platform/x86: intel_telemetry: report debugfs failure

2018-09-26 Thread Andy Shevchenko
On Wed, Sep 26, 2018 at 5:24 PM Bhardwaj, Rajneesh wrote: > On 26-Sep-18 7:26 PM, Andy Shevchenko wrote: > > On Mon, Sep 3, 2018 at 9:05 PM Rajneesh Bhardwaj > > wrote: > >> not be obtained and result in a invalid telemetry_plt_config. > > What is telemetry_plt_config? > > Internal data structur

Re: [PATCH v2 2/9] x86/kvm/mmu.c: set get_pdptr hook in kvm_init_shadow_ept_mmu()

2018-09-26 Thread Vitaly Kuznetsov
Sean Christopherson writes: > On Tue, Sep 25, 2018 at 07:58:37PM +0200, Vitaly Kuznetsov wrote: >> kvm_init_shadow_ept_mmu() doesn't set get_pdptr() hook and is this >> not a problem just because MMU context is already initialized and this >> hook points to kvm_pdptr_read(). As we're intended to

Re: [PATCH 1/4] platform/x86: intel_pmc_core: Show Latency Tolerance info

2018-09-26 Thread Andy Shevchenko
On Wed, Sep 26, 2018 at 5:15 PM Bhardwaj, Rajneesh wrote: > On 26-Sep-18 7:18 PM, Andy Shevchenko wrote: > > On Mon, Sep 3, 2018 at 9:06 PM Rajneesh Bhardwaj > > wrote: > >> + {"IP 16 : LTR_SCC", SPT_PMC_LTR_SCC}, > >> + {"IP 17 : LTR_ISH", SPT

Re: [PATCH v3.1 1/2] device property: Add device_get_bd_address() and fwnode_get_bd_address()

2018-09-26 Thread Andy Shevchenko
On Wed, Sep 26, 2018 at 2:37 PM Heikki Krogerus wrote: > > On Tue, Sep 25, 2018 at 12:10:13PM -0700, Matthias Kaehlcke wrote: > Let's not fill property.c with framework specific helper functions any > more! > > Those functions are completely bluetooth specific, so they do not > belong here. The f

Re: [PATCH] gpio: omap: switch to use irq_chip pm runtime

2018-09-26 Thread Tony Lindgren
* Grygorii Strashko [180925 19:19]: > The PM runtime management can be delegated from OMAP GPIO driver to the IRQ > chip core, since commit be45beb2df69 ("genirq: Add runtime power management > support for IRQ chips") introduces runtime power management support for IRQ > chips. > > Hence, drop cu

Re: [PATCH] rpmsg: core: add support to power domains for devices

2018-09-26 Thread Bjorn Andersson
On Wed 26 Sep 06:06 PDT 2018, Srinivas Kandagatla wrote: > On 26/09/18 13:48, Arnaud Pouliquen wrote: > > Sorry something was wrong in my fw used yesterday for testing...so > > forget my previous status. > > > > I re-tested it and I have the same issue (-ENODEV) with rpmsg device > > probed on ns

Re: [PATCH] platform/x86: intel-wmi-thunderbolt: Add dynamic debugging

2018-09-26 Thread Andy Shevchenko
On Wed, Sep 26, 2018 at 8:03 PM wrote: > > > > > On Wed, Sep 26, 2018 at 7:11 PM Mario Limonciello > > wrote: > > > > > > Some users have been reporting issues with thunderbolt being turned off > > > before fully initialized. This is suspected to be caused by userspace > > > turning off the Thun

Re: [PATCH 0/4] IB: decrease large contigous allocation

2018-09-26 Thread Jason Gunthorpe
On Wed, Sep 26, 2018 at 06:48:09PM +0300, Jan Dakinevich wrote: > On Tue, 18 Sep 2018 08:46:23 -0600 > Jason Gunthorpe wrote: > > > On Tue, Sep 18, 2018 at 04:03:42PM +0300, Jan Dakinevich wrote: > > > The size of mlx4_ib_device became too large to be allocated as > > > whole contigous block of m

Re: [PATCH 2/2] arm64: dts: allwinner: Olimex A64-OLinuXino: fix ethernet

2018-09-26 Thread Maxime Ripard
On Wed, Sep 26, 2018 at 12:14:15PM -0300, Rodrigo Exterckötter Tjäder wrote: > On Wed, Sep 26, 2018 at 6:46 AM Maxime Ripard > wrote: > > There's no need to be so specific though :) > > > > Something like that would work: > > > > arm64: dts: allwinner: a64-olinuxino: set the PHY TX delay > > > >

RE: [PATCH] platform/x86: intel-wmi-thunderbolt: Add dynamic debugging

2018-09-26 Thread Mario.Limonciello
> > On Wed, Sep 26, 2018 at 7:11 PM Mario Limonciello > wrote: > > > > Some users have been reporting issues with thunderbolt being turned off > > before fully initialized. This is suspected to be caused by userspace > > turning off the Thunderbolt controller using intel-wmi-thunderbolt > > prem

[PATCH v6 7/7] KVM: x86: hyperv: implement PV IPI send hypercalls

2018-09-26 Thread Vitaly Kuznetsov
Using hypercall for sending IPIs is faster because this allows to specify any number of vCPUs (even > 64 with sparse CPU set), the whole procedure will take only one VMEXIT. Current Hyper-V TLFS (v5.0b) claims that HvCallSendSyntheticClusterIpi hypercall can't be 'fast' (passing parameters through

[PATCH v6 6/7] KVM: x86: hyperv: optimize kvm_hv_flush_tlb() for vp_index == vcpu_idx case

2018-09-26 Thread Vitaly Kuznetsov
VP inedx almost always matches VCPU and when it does it's faster to walk the sparse set instead of all vcpus. Signed-off-by: Vitaly Kuznetsov --- arch/x86/kvm/hyperv.c | 96 +++ 1 file changed, 52 insertions(+), 44 deletions(-) diff --git a/arch/x86/kvm/h

[PATCH v6 5/7] KVM: x86: hyperv: valid_bank_mask should be 'u64'

2018-09-26 Thread Vitaly Kuznetsov
This probably doesn't matter much (KVM_MAX_VCPUS is much lower nowadays) but valid_bank_mask is really u64 and not unsigned long. Signed-off-by: Vitaly Kuznetsov --- arch/x86/kvm/hyperv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/kvm/hyperv.c b/arch/x86/kv

[PATCH v6 4/7] KVM: x86: hyperv: keep track of mismatched VP indexes

2018-09-26 Thread Vitaly Kuznetsov
In most common cases VP index of a vcpu matches its vcpu index. Userspace is, however, free to set any mapping it wishes and we need to account for that when we need to find a vCPU with a particular VP index. To keep search algorithms optimal in both cases introduce 'num_mismatched_vp_indexes' coun

[PATCH v6 3/7] KVM: x86: hyperv: consistently use 'hv_vcpu' for 'struct kvm_vcpu_hv' variables

2018-09-26 Thread Vitaly Kuznetsov
Rename 'hv' to 'hv_vcpu' in kvm_hv_set_msr/kvm_hv_get_msr(); 'hv' is 'reserved' for 'struct kvm_hv' variables across the file. Signed-off-by: Vitaly Kuznetsov --- arch/x86/kvm/hyperv.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/x86/kvm/hyperv.c b/

[PATCH v6 1/7] KVM: x86: hyperv: enforce vp_index < KVM_MAX_VCPUS

2018-09-26 Thread Vitaly Kuznetsov
Hyper-V TLFS (5.0b) states: > Virtual processors are identified by using an index (VP index). The > maximum number of virtual processors per partition supported by the > current implementation of the hypervisor can be obtained through CPUID > leaf 0x4005. A virtual processor index must be less

[PATCH v6 2/7] KVM: x86: hyperv: optimize 'all cpus' case in kvm_hv_flush_tlb()

2018-09-26 Thread Vitaly Kuznetsov
We can use 'NULL' to represent 'all cpus' case in kvm_make_vcpus_request_mask() and avoid building vCPU mask with all vCPUs. Suggested-by: Radim Krčmář Signed-off-by: Vitaly Kuznetsov Reviewed-by: Roman Kagan --- arch/x86/kvm/hyperv.c | 42 +++--- virt/kvm/k

[PATCH v6 0/7] KVM: x86: hyperv: PV IPI support for Windows guests

2018-09-26 Thread Vitaly Kuznetsov
Changes since v5: - New 'hybrid' approach to VP indexes: introduce 'num_mismatched_vp_indexes' and use it for optimization in both PV IPI and TLB flush [Paolo Bonzini, Roman Kagan]. - Rebase, KVM_CAP_HYPERV_SEND_IPI is now '160'. - Patches 3-5 are new in this version. - Drop "x86/hyper-v: renam

Re: [PATCH] platform/x86: intel-wmi-thunderbolt: Add dynamic debugging

2018-09-26 Thread Andy Shevchenko
On Wed, Sep 26, 2018 at 7:11 PM Mario Limonciello wrote: > > Some users have been reporting issues with thunderbolt being turned off > before fully initialized. This is suspected to be caused by userspace > turning off the Thunderbolt controller using intel-wmi-thunderbolt > prematurely. > > Det

Re: [PATCH 0/4] IB: decrease large contigous allocation

2018-09-26 Thread Leon Romanovsky
On Wed, Sep 26, 2018 at 06:43:42PM +0300, Jan Dakinevich wrote: > On Wed, 19 Sep 2018 00:23:51 +0300 > Leon Romanovsky wrote: > > > On Tue, Sep 18, 2018 at 08:46:23AM -0600, Jason Gunthorpe wrote: > > > On Tue, Sep 18, 2018 at 04:03:42PM +0300, Jan Dakinevich wrote: > > > > The size of mlx4_ib_dev

[PATCH v1 20/28] platform/x86: intel-rst: Convert to use SPDX identifier

2018-09-26 Thread Andy Shevchenko
Reduce size of duplicated comments by switching to use SPDX identifier. No functional change. While here, throw away some extra blank lines. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/intel-rst.c | 20 +--- 1 file changed, 1 insertion(+), 19 deletions(-) diff --gi

Re: [PATCH v3 2/2] remoteproc: qcom: Rename Hexagon v5 modem driver

2018-09-26 Thread Niklas Cassel
On Mon, Sep 24, 2018 at 04:45:26PM -0700, Bjorn Andersson wrote: > The qcom_q6v5_pil implements support for the self-authenticating modem > subsystem. With the introduction of other q6v5 based non-TZ based > remoteproc driver the current name is cause for confusion, so rename it > to be more specif

Re: [PATCH v3 1/2] remoteproc: qcom: Rename Hexagon v5 PAS driver

2018-09-26 Thread Niklas Cassel
On Mon, Sep 24, 2018 at 04:45:25PM -0700, Bjorn Andersson wrote: > The Hexagon v5 ADSP driver is used for more than only the ADSP and > there's an upcoming non-PAS ADSP PIL for SDM845, so rename the driver to > qcom_q6v5_pas in order to better suite this. > > Cc: Rohit kumar > Signed-off-by: Bjor

[PATCH v1 05/28] platform/x86: intel_int0002_vgpio: Convert to use SPDX identifier

2018-09-26 Thread Andy Shevchenko
Reduce size of duplicated comments by switching to use SPDX identifier. No functional change. While here, correct MODULE_LICENSE() string to be aligned with license text. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/intel_int0002_vgpio.c | 7 ++- 1 file changed, 2 insertions(+),

Re: [PATCH 0/5] Update and move Dell drivers dell_rbu and dcdbas

2018-09-26 Thread Andy Shevchenko
On Wed, Sep 26, 2018 at 5:50 PM wrote: > > > On Tue, Sep 25, 2018 at 10:34 PM Stuart Hayes > > wrote: > > > > > > From: Stuart Hayes > > > > > > The dell_rbu and dcdbas drivers need some changes, and should be moved to > > > drivers/platform/x86. Additionally, dell_rbu needs a maintainer, and t

[PATCH v1 07/28] platform/x86: intel_menlow: Sort headers alphabetically

2018-09-26 Thread Andy Shevchenko
Sort headers alphabetically for better maintenance. No functional change. While here, remove unneeded linux/init.h inclusion. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/intel_menlow.c | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/platform/x86/i

Re: [PATCH net-next v6 07/23] zinc: ChaCha20 ARM and ARM64 implementations

2018-09-26 Thread Ard Biesheuvel
On Wed, 26 Sep 2018 at 17:41, Jason A. Donenfeld wrote: > > On Wed, Sep 26, 2018 at 4:02 PM Ard Biesheuvel > wrote: > > I don't think it makes sense to keep > > it simple now and add the complexity later (and the same concern > > applies to async support btw). > > Ugh, no. I don't want to add nee

[PATCH v1 28/28] platform/x86: intel-wmi-thunderbolt: Convert to use SPDX identifier

2018-09-26 Thread Andy Shevchenko
Reduce size of duplicated comments by switching to use SPDX identifier. No functional change. While here, correct MODULE_LICENSE() string to be aligned with license text. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/intel-wmi-thunderbolt.c | 12 ++-- 1 file changed, 2 insert

[PATCH v1 08/28] platform/x86: intel_menlow: Convert to use SPDX identifier

2018-09-26 Thread Andy Shevchenko
Reduce size of duplicated comments by switching to use SPDX identifier. No functional change. While here, correct MODULE_LICENSE() string to be aligned with license text. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/intel_menlow.c | 21 +++-- 1 file changed, 3 insert

[PATCH v1 10/28] platform/x86: intel_mid_powerbtn: Convert to use SPDX identifier

2018-09-26 Thread Andy Shevchenko
Reduce size of duplicated comments by switching to use SPDX identifier. No functional change. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/intel_mid_powerbtn.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/platform/x86/intel_mid_powerbtn.c b/d

[PATCH v1 01/28] platform/x86: intel_bxtwc_tmu: Convert to use SPDX identifier

2018-09-26 Thread Andy Shevchenko
Reduce size of duplicated comments by switching to use SPDX identifier. No functional change. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/intel_bxtwc_tmu.c | 13 ++--- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/platform/x86/intel_bxtwc_tmu.c b/dr

[PATCH v1 04/28] platform/x86: intel-hid: Convert to use SPDX identifier

2018-09-26 Thread Andy Shevchenko
Reduce size of duplicated comments by switching to use SPDX identifier. No functional change. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/intel-hid.c | 12 +--- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/platform/x86/intel-hid.c b/drivers/platform/

[PATCH v1 09/28] platform/x86: intel_mid_powerbtn: Remove unnecessary init.h inclusion

2018-09-26 Thread Andy Shevchenko
No need to include linux/init.h when linux/module.h is. No functional change intended. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/intel_mid_powerbtn.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/platform/x86/intel_mid_powerbtn.c b/drivers/platform/x86/intel_mid_powe

[PATCH v1 21/28] platform/x86: intel_scu_ipc: Sort headers alphabetically

2018-09-26 Thread Andy Shevchenko
Sort headers alphabetically for better maintenance. No functional change. While here, remove unneeded linux/init.h inclusion. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/intel_scu_ipc.c | 8 +--- drivers/platform/x86/intel_scu_ipcutil.c | 12 ++-- 2 files changed,

[PATCH v1 22/28] platform/x86: intel_scu_ipc: Convert to use SPDX identifier

2018-09-26 Thread Andy Shevchenko
Reduce size of duplicated comments by switching to use SPDX identifier. No functional change. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/intel_scu_ipc.c | 8 ++-- drivers/platform/x86/intel_scu_ipcutil.c | 12 2 files changed, 6 insertions(+), 14 deletions(-)

[PATCH v1 25/28] platform/x86: intel_telemetry: Convert to use SPDX identifier

2018-09-26 Thread Andy Shevchenko
Reduce size of duplicated comments by switching to use SPDX identifier. No functional change. While here, correct MODULE_LICENSE() string to be aligned with license text. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/intel_telemetry_core.c| 12 ++-- drivers/platform/x86/i

[PATCH v1 17/28] platform/x86: intel_punit_ipc: Sort headers alphabetically

2018-09-26 Thread Andy Shevchenko
Sort headers alphabetically for better maintenance. No functional change. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/intel_punit_ipc.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/platform/x86/intel_punit_ipc.c b/drivers/platform/x86/intel_pun

[PATCH v1 15/28] platform/x86: intel_pmc: Sort headers alphabetically

2018-09-26 Thread Andy Shevchenko
Sort headers alphabetically for better maintenance. No functional change. While here, remove unneeded linux/init.h inclusion. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/intel_pmc_ipc.c | 23 +++ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/dr

[PATCH v1 06/28] platform/x86: intel-ips: Convert to use SPDX identifier

2018-09-26 Thread Andy Shevchenko
Reduce size of duplicated comments by switching to use SPDX identifier. No functional change. While here, correct MODULE_LICENSE() string to be aligned with license text. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/intel_ips.c | 15 ++- drivers/platform/x86/intel_ips.h

[PATCH v1 11/28] platform/x86: intel_mid_thermal: Sort headers alphabetically

2018-09-26 Thread Andy Shevchenko
Sort headers alphabetically for better maintenance. No functional change. While here, remove unneeded linux/init.h inclusion. Signed-off-by: Andy Shevchenko --- drivers/platform/x86/intel_mid_thermal.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/platfor

<    1   2   3   4   5   6   7   8   9   >