Re: [PATCH 00/11 v3] Cleanup IOMMU passthrough setting (and disable IOMMU Passthrough when SME is active)

2019-08-23 Thread Joerg Roedel
On Mon, Aug 19, 2019 at 03:22:45PM +0200, Joerg Roedel wrote: > Joerg Roedel (11): > iommu: Remember when default domain type was set on kernel command line > iommu: Add helpers to set/get default domain type > iommu: Use Functions to set default domain type in > iommu_set_def_domain_type()

[PATCH 2/2] fbdev: fbmem: allow overriding the number of bootup logos

2019-08-23 Thread Peter Rosin
Probably most useful if you only want one logo regardless of how many CPU cores you have. Signed-off-by: Peter Rosin --- Documentation/fb/fbcon.rst | 5 + drivers/video/fbdev/core/fbcon.c | 7 +++ drivers/video/fbdev/core/fbmem.c | 5 - include/linux/fb.h | 1 + 4

[PATCH 0/2] Add possibility to specify the number of displayed logos

2019-08-23 Thread Peter Rosin
Hi! The first patch fixes the fact that there are two items numbered "4" in the list of fbcon options. This bug is a teenager... The second patch extends that list with a new option that allows the user to display any number of logos (that fits on the screen). I need it to limit the display to on

[PATCH 1/2] fbdev: fix numbering of fbcon options

2019-08-23 Thread Peter Rosin
Three shall be the number thou shalt count, and the number of the counting shall be three. Four shalt thou not count... One! Two! Five! Fixes: efb985f6b265 ("[PATCH] fbcon: Console Rotation - Add framebuffer console documentation") Signed-off-by: Peter Rosin --- Documentation/fb/fbcon.rst | 8

Re: [PATCH v3 04/10] KVM: Implement kvm_put_guest()

2019-08-23 Thread Steven Price
On 22/08/2019 17:24, Sean Christopherson wrote: > On Thu, Aug 22, 2019 at 04:46:10PM +0100, Steven Price wrote: >> On 22/08/2019 16:28, Sean Christopherson wrote: >>> On Wed, Aug 21, 2019 at 04:36:50PM +0100, Steven Price wrote: kvm_put_guest() is analogous to put_user() - it writes a single v

Re: [PATCH v3 10/10] arm64: Retrieve stolen time as paravirtualized guest

2019-08-23 Thread Zenghui Yu
Hi Steven, On 2019/8/21 23:36, Steven Price wrote: Enable paravirtualization features when running under a hypervisor supporting the PV_TIME_ST hypercall. For each (v)CPU, we ask the hypervisor for the location of a shared page which the hypervisor will use to report stolen time to us. We set p

Re: [PATCH v3 05/10] KVM: arm64: Support stolen time reporting via shared structure

2019-08-23 Thread Zenghui Yu
Hi Steven, Only one comment, at the bottom. On 2019/8/21 23:36, Steven Price wrote: Implement the service call for configuring a shared structure between a VCPU and the hypervisor in which the hypervisor can write the time stolen from the VCPU's execution time by other tasks on the host. The h

[PATCH v2 0/1] counter: cros_ec: Add sync sensor driver

2019-08-23 Thread Fabien Lahoudere
Some chromebook EC provides a counter to get all vsync coming from the back camera. This series introduces a patch coming from chromebook kernel 4.4 designed as an IIO counter. As IIO counter will be deprecated in favor of counter, I rebase the original patch and support the new counter API. The s

[PATCH v2 1/1] counter: cros_ec: Add synchronization sensor

2019-08-23 Thread Fabien Lahoudere
From: Gwendal Grignou EC returns a counter when there is an event on camera vsync. This patch comes from chromeos kernel 4.4 Signed-off-by: Gwendal Grignou Signed-off-by: Fabien Lahoudere CROS EC sync sensor was originally designed as an IIO device. Now that the counter subsystem will replace

Re: [PATCH v3 05/10] KVM: arm64: Support stolen time reporting via shared structure

2019-08-23 Thread Steven Price
On 23/08/2019 13:07, Zenghui Yu wrote: > Hi Steven, > > Only one comment, at the bottom. > > On 2019/8/21 23:36, Steven Price wrote: >> Implement the service call for configuring a shared structure between a >> VCPU and the hypervisor in which the hypervisor can write the time >> stolen from the

Re: [PATCH v8 11/27] x86/mm: Introduce _PAGE_DIRTY_SW

2019-08-23 Thread Peter Zijlstra
On Tue, Aug 13, 2019 at 01:52:09PM -0700, Yu-cheng Yu wrote: > +static inline pte_t pte_move_flags(pte_t pte, pteval_t from, pteval_t to) > +{ > + if (pte_flags(pte) & from) > + pte = pte_set_flags(pte_clear_flags(pte, from), to); > + return pte; > +} Aside of the whole condit

Re: [PATCH v2] Ext4 documentation fixes.

2019-08-23 Thread Theodore Y. Ts'o
On Fri, Aug 23, 2019 at 04:56:42AM +, Ayush Ranjan wrote: > Hey Ted! > Thanks for reviewing! The comment in > fs/ext4/ext4.h:ext4_group_desc:bg_checksum > says that the crc16 checksum formula should be crc16(sb_uuid+group+desc). I > think group over here denotes group number. > > Briefly look

Re: [PATCH v3 10/10] arm64: Retrieve stolen time as paravirtualized guest

2019-08-23 Thread Steven Price
On 23/08/2019 12:45, Zenghui Yu wrote: > Hi Steven, > > On 2019/8/21 23:36, Steven Price wrote: >> Enable paravirtualization features when running under a hypervisor >> supporting the PV_TIME_ST hypercall. >> >> For each (v)CPU, we ask the hypervisor for the location of a shared >> page which the

Re: [PATCH v2 1/3] kprobes/x86: use instruction_pointer and instruction_pointer_set

2019-08-23 Thread Masami Hiramatsu
Hi Jisheng, On Wed, 21 Aug 2019 02:09:10 + Jisheng Zhang wrote: > > > In v2, actually, the arm64 version's kprobe_ftrace_handler() is the same > > > as x86's, the only difference is comment, e.g > > > > > > /* Kprobe handler expects regs->ip = ip + 1 as breakpoint hit */ > > > > > > while in

Re: [PATCH v5] arm64: implement KPROBES_ON_FTRACE

2019-08-23 Thread Masami Hiramatsu
Hi Jisheng, On Thu, 22 Aug 2019 11:25:00 + Jisheng Zhang wrote: > KPROBES_ON_FTRACE avoids much of the overhead with regular kprobes as it > eliminates the need for a trap, as well as the need to emulate or > single-step instructions. > > Tested on berlin arm64 platform. > > ~ # mount -t d

Re: [PATCH v8 1/5] mm: untag user pointers in mmap/munmap/mremap/brk

2019-08-23 Thread Will Deacon
On Thu, Aug 22, 2019 at 04:41:25PM -0700, Andrew Morton wrote: > On Mon, 19 Aug 2019 17:28:51 +0100 Will Deacon wrote: > > > On Thu, Aug 15, 2019 at 04:43:59PM +0100, Catalin Marinas wrote: > > > There isn't a good reason to differentiate between the user address > > > space layout modification s

Re: [PATCH v14 01/18] kunit: test: add KUnit test runner core

2019-08-23 Thread shuah
Hi Brendan, On 8/20/19 5:20 PM, Brendan Higgins wrote: Add core facilities for defining unit tests; this provides a common way to define test cases, functions that execute code which is under test and determine whether the code under test behaves as expected; this also provides a way to group to

Re: [PATCH v14 09/18] kunit: test: add support for test abort

2019-08-23 Thread shuah
Hi Brendan, On 8/20/19 5:20 PM, Brendan Higgins wrote: Add support for aborting/bailing out of test cases, which is needed for implementing assertions. An assertion is like an expectation, but bails out of the test case early if the assertion is not met. The idea with assertions is that you use

Re: [PATCH v9 3/3] arm64: Relax Documentation/arm64/tagged-pointers.rst

2019-08-23 Thread Catalin Marinas
On Thu, Aug 22, 2019 at 05:37:23PM +0100, Dave P Martin wrote: > On Thu, Aug 22, 2019 at 04:55:32PM +0100, Catalin Marinas wrote: > > On Wed, Aug 21, 2019 at 07:46:51PM +0100, Dave P Martin wrote: > > > On Wed, Aug 21, 2019 at 06:33:53PM +0100, Will Deacon wrote: > > > > On Wed, Aug 21, 2019 at 05:

Re: [PATCH v9 3/3] arm64: Relax Documentation/arm64/tagged-pointers.rst

2019-08-23 Thread Dave Martin
On Fri, Aug 23, 2019 at 05:19:13PM +0100, Catalin Marinas wrote: > On Thu, Aug 22, 2019 at 05:37:23PM +0100, Dave P Martin wrote: > > On Thu, Aug 22, 2019 at 04:55:32PM +0100, Catalin Marinas wrote: > > > On Wed, Aug 21, 2019 at 07:46:51PM +0100, Dave P Martin wrote: [...] > > > > sigaltstack() i

[PATCH v10 0/1] arm64 tagged address ABI

2019-08-23 Thread Catalin Marinas
Hi, Minor update to the arm64 tagged address ABI documentation since v9, posted here: http://lkml.kernel.org/r/20190821164730.47450-1-catalin.mari...@arm.com The mmap/mremap/... patch (1/3) has been queued in the -mm tree and removed from this series. The tagged-address-abi.rst patch (2/3) has b

[PATCH v10 1/1] arm64: Relax Documentation/arm64/tagged-pointers.rst

2019-08-23 Thread Catalin Marinas
From: Vincenzo Frascino On AArch64 the TCR_EL1.TBI0 bit is set by default, allowing userspace (EL0) to perform memory accesses through 64-bit pointers with a non-zero top byte. However, such pointers were not allowed at the user-kernel syscall ABI boundary. With the Tagged Address ABI patchset,

Re: [PATCH v14 01/18] kunit: test: add KUnit test runner core

2019-08-23 Thread Brendan Higgins
On Fri, Aug 23, 2019 at 8:33 AM shuah wrote: > > Hi Brendan, > > On 8/20/19 5:20 PM, Brendan Higgins wrote: > > Add core facilities for defining unit tests; this provides a common way > > to define test cases, functions that execute code which is under test > > and determine whether the code under

Re: [PATCH v14 09/18] kunit: test: add support for test abort

2019-08-23 Thread Brendan Higgins
On Fri, Aug 23, 2019 at 8:36 AM shuah wrote: > > Hi Brendan, > > On 8/20/19 5:20 PM, Brendan Higgins wrote: > > Add support for aborting/bailing out of test cases, which is needed for > > implementing assertions. > > > > An assertion is like an expectation, but bails out of the test case > > early

Re: [PATCH v14 01/18] kunit: test: add KUnit test runner core

2019-08-23 Thread shuah
On 8/23/19 10:48 AM, Brendan Higgins wrote: On Fri, Aug 23, 2019 at 8:33 AM shuah wrote: Hi Brendan, On 8/20/19 5:20 PM, Brendan Higgins wrote: Add core facilities for defining unit tests; this provides a common way to define test cases, functions that execute code which is under test and de

Re: [PATCH v14 09/18] kunit: test: add support for test abort

2019-08-23 Thread shuah
On 8/23/19 10:56 AM, Brendan Higgins wrote: On Fri, Aug 23, 2019 at 8:36 AM shuah wrote: Hi Brendan, On 8/20/19 5:20 PM, Brendan Higgins wrote: Add support for aborting/bailing out of test cases, which is needed for implementing assertions. An assertion is like an expectation, but bails out

Re: [PATCH v14 01/18] kunit: test: add KUnit test runner core

2019-08-23 Thread Brendan Higgins
On Fri, Aug 23, 2019 at 10:05 AM shuah wrote: > > On 8/23/19 10:48 AM, Brendan Higgins wrote: > > On Fri, Aug 23, 2019 at 8:33 AM shuah wrote: > >> > >> Hi Brendan, > >> > >> On 8/20/19 5:20 PM, Brendan Higgins wrote: > >>> Add core facilities for defining unit tests; this provides a common way >

Re: [PATCH v14 09/18] kunit: test: add support for test abort

2019-08-23 Thread Brendan Higgins
On Fri, Aug 23, 2019 at 10:07 AM shuah wrote: > > On 8/23/19 10:56 AM, Brendan Higgins wrote: > > On Fri, Aug 23, 2019 at 8:36 AM shuah wrote: > >> > >> Hi Brendan, > >> > >> On 8/20/19 5:20 PM, Brendan Higgins wrote: > >>> Add support for aborting/bailing out of test cases, which is needed for >

Re: [PATCH v14 01/18] kunit: test: add KUnit test runner core

2019-08-23 Thread shuah
On 8/23/19 11:27 AM, Brendan Higgins wrote: On Fri, Aug 23, 2019 at 10:05 AM shuah wrote: On 8/23/19 10:48 AM, Brendan Higgins wrote: On Fri, Aug 23, 2019 at 8:33 AM shuah wrote: Hi Brendan, On 8/20/19 5:20 PM, Brendan Higgins wrote: Add core facilities for defining unit tests; this prov

Re: [PATCH v14 01/18] kunit: test: add KUnit test runner core

2019-08-23 Thread Brendan Higgins
On Fri, Aug 23, 2019 at 10:34 AM shuah wrote: > > On 8/23/19 11:27 AM, Brendan Higgins wrote: > > On Fri, Aug 23, 2019 at 10:05 AM shuah wrote: > >> > >> On 8/23/19 10:48 AM, Brendan Higgins wrote: > >>> On Fri, Aug 23, 2019 at 8:33 AM shuah wrote: > > Hi Brendan, > > On 8/20

Re: [PATCH net-next 03/10] net: sched: refactor block offloads counter usage

2019-08-23 Thread Jakub Kicinski
On Fri, 23 Aug 2019 10:39:50 +, Vlad Buslov wrote: > >> +/* Destroy filter and decrement block offload counter, if filter was > >> previously > >> + * offloaded. > >> + */ > >> + > > > > hm.. is this gap between comment and function it pertains to > > intentional? > > Majority of function

Re: [PATCH v14 01/18] kunit: test: add KUnit test runner core

2019-08-23 Thread shuah
On 8/23/19 11:54 AM, Brendan Higgins wrote: On Fri, Aug 23, 2019 at 10:34 AM shuah wrote: On 8/23/19 11:27 AM, Brendan Higgins wrote: On Fri, Aug 23, 2019 at 10:05 AM shuah wrote: On 8/23/19 10:48 AM, Brendan Higgins wrote: On Fri, Aug 23, 2019 at 8:33 AM shuah wrote: Hi Brendan, On 8

[PATCH v3 0/7] Add initial support for S32V234-EVB

2019-08-23 Thread Stefan-gabriel Mirea
Hello, NXP's S32V234[1] ("Treerunner") vision microprocessors are targeted for high-performance, computationally intensive vision and sensor fusion applications that require automotive safety levels. They include leading edge Camera Vision modules like APEX-2, ISP and GPU. The S32V234-EVB and S32V

[PATCH v3 1/7] dt-bindings: arm: fsl: Add the S32V234-EVB board

2019-08-23 Thread Stefan-gabriel Mirea
From: Eddy Petrișor Add entry for the NXP S32V234 Customer Evaluation Board to the board/SoC bindings. Signed-off-by: Eddy Petrișor Signed-off-by: Stefan-Gabriel Mirea Reviewed-by: Rob Herring --- Documentation/devicetree/bindings/arm/fsl.yaml | 6 ++ 1 file changed, 6 insertions(+) dif

[PATCH v3 7/7] arm64: defconfig: Enable configs for S32V234

2019-08-23 Thread Stefan-gabriel Mirea
From: Mihaela Martinas Enable support for the S32V234 SoC, including the previously added UART driver. Signed-off-by: Mihaela Martinas Signed-off-by: Adrian.Nitu Signed-off-by: Stoica Cosmin-Stefan Signed-off-by: Stefan-Gabriel Mirea --- arch/arm64/configs/defconfig | 3 +++ 1 file changed,

[PATCH v3 2/7] arm64: Introduce config for S32

2019-08-23 Thread Stefan-gabriel Mirea
From: Mihaela Martinas Add configuration option for the NXP S32 platform family in Kconfig.platforms. For starters, the only SoC supported will be Treerunner (S32V234), with a single execution target: the S32V234-EVB (rev 29288) board. Signed-off-by: Mihaela Martinas Signed-off-by: Stoica Cosmi

[PATCH v3 5/7] arm64: dts: fsl: Add device tree for S32V234-EVB

2019-08-23 Thread Stefan-gabriel Mirea
From: Stoica Cosmin-Stefan Add initial version of device tree for S32V234-EVB, including nodes for the 4 Cortex-A53 cores, AIPS bus with UART modules, ARM architected timer and Generic Interrupt Controller (GIC). Keep SoC level separate from board level to let future boards with this SoC share c

[PATCH v3 6/7] dt-bindings: serial: Document Freescale LINFlexD UART

2019-08-23 Thread Stefan-gabriel Mirea
From: Stoica Cosmin-Stefan Add documentation for the serial communication interface module (LINFlexD), found in two instances on S32V234. Signed-off-by: Stoica Cosmin-Stefan Signed-off-by: Larisa Grigore Signed-off-by: Stefan-Gabriel Mirea --- .../bindings/serial/fsl,s32-linflexuart.txt |

[PATCH v3 4/7] serial: fsl_linflexuart: Be consistent with the name

2019-08-23 Thread Stefan-gabriel Mirea
For consistency reasons, spell the controller name as "LINFlexD" in comments and documentation. Signed-off-by: Stefan-Gabriel Mirea --- Documentation/admin-guide/kernel-parameters.txt | 2 +- drivers/tty/serial/Kconfig | 8 drivers/tty/serial/fsl_linflexuart.c

[PATCH v3 3/7] serial: fsl_linflexuart: Update compatible string

2019-08-23 Thread Stefan-gabriel Mirea
The "fsl,s32-linflexuart" compatible string is too generic. Make it SoC specific. Signed-off-by: Stefan-Gabriel Mirea --- drivers/tty/serial/fsl_linflexuart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/fsl_linflexuart.c b/drivers/tty/serial/fsl_li