Re: [PATCH v5 29/36] KVM: arm64: Use page-table to track page ownership

2021-03-15 Thread Will Deacon
On Mon, Mar 15, 2021 at 04:53:18PM +, Quentin Perret wrote: > On Monday 15 Mar 2021 at 16:36:19 (+), Will Deacon wrote: > > On Mon, Mar 15, 2021 at 02:35:29PM +, Quentin Perret wrote: > > > As the host stage 2 will be identity mapped, all the .hyp memory regions > > > and/or memory

RE: [PATCH v1 1/1] mmc: sdhci-acpi: Add support for NVIDIA BlueField-3 SoC

2021-03-15 Thread Liming Sun
Thanks Adrian. Yes, I did consider adding this ACPI support into sdhci-of-dwcmshc.c, but not sure which one is the preferred way. Is this (sdhci-of-dwcmshc.c) what you recommend? I'll post the revised changes in patch v2. > -Original Message- > From: Adrian Hunter > Sent: Monday, March

Re: [PATCH] platform/x86: pmc_atom: use callback for all dmi quirk entries

2021-03-15 Thread Henning Schild
Am Mon, 15 Mar 2021 17:31:49 +0100 schrieb Hans de Goede : > Hi, > > On 3/15/21 3:58 PM, Henning Schild wrote: > > Introduce a global variable to remember the matching entry for later > > printing. Also having a callback allows to stop matching after the > > first hit. > > > > Signed-off-by:

Re: [PATCH] dt-bindings: media: Convert video-mux to DT schema

2021-03-15 Thread Rob Herring
On Fri, Mar 12, 2021 at 2:48 PM Laurent Pinchart wrote: > > Hi Rob, > > On Fri, Mar 12, 2021 at 08:33:06AM -0700, Rob Herring wrote: > > On Fri, Mar 12, 2021 at 3:06 AM Laurent Pinchart wrote: > > > On Fri, Mar 12, 2021 at 09:29:04AM +0200, Sakari Ailus wrote: > > > > On Fri, Mar 12, 2021 at

Re: [PATCH v7 5/5] certs: Allow root user to append signed hashes to the blacklist keyring

2021-03-15 Thread Eric Snowberg
> On Mar 12, 2021, at 10:12 AM, Mickaël Salaün wrote: > > From: Mickaël Salaün > > Add a kernel option SYSTEM_BLACKLIST_AUTH_UPDATE to enable the root user > to dynamically add new keys to the blacklist keyring. This enables to > invalidate new certificates, either from being loaded in a

[PATCH v1 1/1] gpio: mockup: Adjust documentation to the code

2021-03-15 Thread Andy Shevchenko
First of all one of the parameter missed 'mockup' in its name, Second, the semantics of the integer pairs depends on the sign of the base (the first value in the pair). Update documentation to reflect the real code behaviour. Fixes: 2fd1abe99e5f ("Documentation: gpio: add documentation for

Re: [PATCH] rpadlpar: fix potential drc_name corruption in store functions

2021-03-15 Thread Tyrel Datwyler
On 3/14/21 7:52 PM, Michael Ellerman wrote: > Tyrel Datwyler writes: >> On 3/13/21 1:17 AM, Michal Suchánek wrote: >>> On Wed, Mar 10, 2021 at 04:30:21PM -0600, Tyrel Datwyler wrote: Both add_slot_store() and remove_slot_store() try to fix up the drc_name copied from the store buffer by

[PATCH v2 1/4] ALSA: hda/cirrus: Add error handling into CS8409 I2C functions

2021-03-15 Thread Vitaly Rodionov
From: Stefan Binding Also removing 2 redundant cs8409_i2c_read() calls, as we already did read them in a code above. Tested on DELL Inspiron-3505, DELL Inspiron-3501, DELL Inspiron-3500 Signed-off-by: Stefan Binding Signed-off-by: Vitaly Rodionov Changes in v1: - No changes Changes in v2:

[PATCH] mm/page_alloc: try oom if reclaim is unable to make forward progress

2021-03-15 Thread Aaron Tomlin
In the situation where direct reclaim is required to make progress for compaction but no_progress_loops is already over the limit of MAX_RECLAIM_RETRIES consider invoking the oom killer. Signed-off-by: Aaron Tomlin --- mm/page_alloc.c | 22 ++ 1 file changed, 18

[PATCH v2 3/4] ALSA: hda/cirrus: Fix CS42L42 Headset Mic volume control name

2021-03-15 Thread Vitaly Rodionov
From: Stefan Binding Existing name "Headset Mic Volume Control" causes multiple Microphone entries to appear in UI. Using name "Mic Volume Control" ensures only a single Microphone entry exists when the Headset is connected. Tested on DELL Inspiron-3505, DELL Inspiron-3501, DELL Inspiron-3500

Re: [PATCH] sound: soc: codecs: Remove unnecessary THIS_MODULE

2021-03-15 Thread Mark Brown
On Sat, 13 Mar 2021 16:23:02 +0800, Wang Qing wrote: > As THIS_MODULE has been set in module_platform_driver(), so remove it. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] sound: soc: codecs: Remove unnecessary THIS_MODULE commit:

[PATCH v2 2/4] ALSA: hda/cirrus: Cleanup patch_cirrus.c code.

2021-03-15 Thread Vitaly Rodionov
From: Stefan Binding Minor changes, clean up code, remove unnecessary initialization of variables, reduced number of warnings from ./scripts/checkpatch.pl from 19 to 0 Tested on DELL Inspiron-3505, DELL Inspiron-3501, DELL Inspiron-3500 Signed-off-by: Stefan Binding Signed-off-by: Vitaly

[PATCH v2 4/4] ALSA: hda/cirrus: Make CS8409 driver more generic by using fixups.

2021-03-15 Thread Vitaly Rodionov
From: Stefan Binding CS8409/CS42L42 Driver currently does most of the platform specific setup inside the main body of the code, however, this setup can be moved into fixup functions, to make the driver more generic. Making the driver more generic, allows the driver to use the

Re: [PATCH] regulator: bd9576: Fix return from bd957x_probe()

2021-03-15 Thread Mark Brown
On Fri, 12 Mar 2021 10:42:52 +0300, Dan Carpenter wrote: > The probe() function returns an uninitialized variable in the success > path. There is no need for the "err" variable at all, just delete it. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next

[PATCH v2 0/4] ALSA: hda/cirrus: Make CS8409 driver more generic by using fixups

2021-03-15 Thread Vitaly Rodionov
This series of patches will address comments by Pierre-Louis Bossart, cleans up patch_cirrus.c source, reducing checkpatch.pl warnings from 19 to 0, fixing an issue reported by Canonical: BugLink: https://bugs.launchpad.net/bugs/1918378, and makes the CS8409 patch more generic by using fixups.

Re: [PATCH v7 1/5] tools/certs: Add print-cert-tbs-hash.sh

2021-03-15 Thread Eric Snowberg
> On Mar 12, 2021, at 10:12 AM, Mickaël Salaün wrote: > > From: Mickaël Salaün > > Add a new helper print-cert-tbs-hash.sh to generate a TBSCertificate > hash from a given certificate. This is useful to generate a blacklist > key description used to forbid loading a specific certificate in

Re: [PATCH 0/3] regulator: bd9571mwv: Miscellaneous fixes and improvements

2021-03-15 Thread Mark Brown
On Fri, 12 Mar 2021 14:02:39 +0100, Geert Uytterhoeven wrote: > *** BLURB HERE *** > > Geert Uytterhoeven (3): > regulator: bd9571mwv: Fix AVS and DVFS voltage range > regulator: bd9571mwv: Fix regulator name printed on registration > failure > regulator: bd9571mwv: Convert device

[RFC PATCH v2 7/8] arm64: Detect kretprobed functions in stack trace

2021-03-15 Thread madvenka
From: "Madhavan T. Venkataraman" When a kretprobe is active for a function, the function's return address in its stack frame is modified to point to the kretprobe trampoline. When the function returns, the frame is popped and control is transferred to the trampoline. The trampoline eventually

[RFC PATCH v2 8/8] arm64: Implement arch_stack_walk_reliable()

2021-03-15 Thread madvenka
From: "Madhavan T. Venkataraman" unwind_frame() already sets the reliable flag in the stack frame during a stack walk to indicate whether the stack trace is reliable or not. Implement arch_stack_walk_reliable() like arch_stack_walk() but abort the stack walk as soon as the reliable flag is set

[RFC PATCH v2 6/8] arm64: Check the return PC of every stack frame

2021-03-15 Thread madvenka
From: "Madhavan T. Venkataraman" If a function encountered in a stack trace is not a valid kernel text address, the stack trace is considered unreliable. Mark the stack trace as not reliable. Signed-off-by: Madhavan T. Venkataraman --- arch/arm64/kernel/stacktrace.c | 10 ++ 1 file

[RFC PATCH v2 4/8] arm64: Detect an EL1 exception frame and mark a stack trace unreliable

2021-03-15 Thread madvenka
From: "Madhavan T. Venkataraman" EL1 exceptions can happen on any instruction including instructions in the frame pointer prolog or epilog. Depending on where exactly they happen, they could render the stack trace unreliable. If an EL1 exception frame is found on the stack, mark the stack trace

[RFC PATCH v2 3/8] arm64: Terminate the stack trace at TASK_FRAME and EL0_FRAME

2021-03-15 Thread madvenka
From: "Madhavan T. Venkataraman" Implement the following checks in the unwinder to detect the terminating frame reliably: - The frame must end in task_pt_regs(task)->stackframe. - The frame type must be either TASK_FRAME or EL0_FRAME. Signed-off-by: Madhavan T. Venkataraman

[RFC PATCH v2 2/8] arm64: Implement frame types

2021-03-15 Thread madvenka
From: "Madhavan T. Venkataraman" Apart from the task pt_regs, pt_regs is also created on the stack for other other cases: - EL1 exception. A pt_regs is created on the stack to save register state. In addition, pt_regs->stackframe is set up for the interrupted kernel

[RFC PATCH v2 5/8] arm64: Detect an FTRACE frame and mark a stack trace unreliable

2021-03-15 Thread madvenka
From: "Madhavan T. Venkataraman" When CONFIG_DYNAMIC_FTRACE_WITH_REGS is enabled and tracing is activated for a function, the ftrace infrastructure is called for the function at the very beginning. Ftrace creates two frames: - One for the traced function - One for the caller of

[RFC PATCH v2 0/8] arm64: Implement reliable stack trace

2021-03-15 Thread madvenka
From: "Madhavan T. Venkataraman" I have made an attempt to implement reliable stack trace for arm64 so it can be used for livepatch. Below is the list of changes. I have documented my understanding of the issues and solutions below as well as in the patch descriptions and the code. Please let me

[RFC PATCH v2 1/8] arm64: Implement stack trace termination record

2021-03-15 Thread madvenka
From: "Madhavan T. Venkataraman" The unwinder needs to be able to reliably tell when it has reached the end of a stack trace. One way to do this is to have the last stack frame at a fixed offset from the base of the task stack. When the unwinder reaches that offset, it knows it is done. Kernel

Re: Re: [BUG] net/ppp: A use after free in ppp_unregister_channe

2021-03-15 Thread Tom Parkin
On Mon, Mar 15, 2021 at 13:18:24 +0100, Guillaume Nault wrote: > On Fri, Mar 12, 2021 at 10:47:53PM +0800, lyl2...@mail.ustc.edu.cn wrote: > > > > > > > > > -原始邮件- > > > 发件人: "Tom Parkin" > > > 发送时间: 2021-03-12 18:12:58 (星期五) > > > 收件人: lyl2...@mail.ustc.edu.cn > > > 抄送:

[PATCH v4 4/5] ASoC: dt-bindings: wsa881x: add bindings for port mapping

2021-03-15 Thread Srinivas Kandagatla
WSA881x SoundWire device ports are statically assigned to master ports at design time. So add bindings required to specify these mappings! Signed-off-by: Srinivas Kandagatla --- .../devicetree/bindings/sound/qcom,wsa881x.yaml | 9 + 1 file changed, 9 insertions(+) diff --git

[PATCH v4 3/5] soundwire: qcom: add static port map support

2021-03-15 Thread Srinivas Kandagatla
SoundWire device ports are statically mapped to Controller ports during design. Add support to read these from SoundWire devices. This controller uses static port map info to setup bandwidth parameters for those ports. A generic port allocation is not possible in this cases! Signed-off-by:

[PATCH v4 5/5] ASoC: codecs: wsa881x: add static port map support

2021-03-15 Thread Srinivas Kandagatla
Two instances of WSA881x(Speaker Right, Speaker Left) ports are statically mapped to master ports. Allow the driver to parse those mappings from device tree. Signed-off-by: Srinivas Kandagatla --- sound/soc/codecs/wsa881x.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH v4 2/5] soundwire: qcom: update port map allocation bit mask

2021-03-15 Thread Srinivas Kandagatla
currently the internal bitmask used for allocating ports starts with offset 0. This is bit confusing as data port numbers on Qualcomm controller are valid from 1 to 14. So adjust this bit mask accordingly, this will also help while adding static port map support. Signed-off-by: Srinivas

[PATCH v4 1/5] soundwire: add static port mapping support

2021-03-15 Thread Srinivas Kandagatla
Some of the SoundWire device ports are statically mapped to Controller ports during design, however there is no way to expose this information to the controller. Controllers like Qualcomm ones use this info to setup static bandwidth parameters for those ports. A generic port allocation is not

[PATCH v4 0/5] soundwire: add static port map support

2021-03-15 Thread Srinivas Kandagatla
In some cases, SoundWire device ports are statically mapped to Controller ports during design, however there is no way to expose this information to the controller. Controllers like Qualcomm ones use this info to setup static bandwidth parameters for those ports. A generic port allocation is not

Re: [PATCH v5 14/36] KVM: arm64: Provide __flush_dcache_area at EL2

2021-03-15 Thread Quentin Perret
On Monday 15 Mar 2021 at 16:33:23 (+), Will Deacon wrote: > On Mon, Mar 15, 2021 at 02:35:14PM +, Quentin Perret wrote: > > We will need to do cache maintenance at EL2 soon, so compile a copy of > > __flush_dcache_area at EL2, and provide a copy of arm64_ftr_reg_ctrel0 > > as it is needed

Re: [syzbot] BUG: unable to handle kernel access to user memory in schedule_tail

2021-03-15 Thread Ben Dooks
On 13/03/2021 07:20, Dmitry Vyukov wrote: On Fri, Mar 12, 2021 at 9:12 PM Ben Dooks wrote: Still no luck for the moment, can't reproduce it locally, my test is maybe not that good (I created threads all day long in order to trigger the put_user of schedule_tail). It may of course depend on

Re: [PATCH v2] hwmon: corsair-psu: add support for critical values

2021-03-15 Thread Wilken Gottwalt
On Mon, 15 Mar 2021 08:53:25 -0700 Guenter Roeck wrote: > On 3/15/21 8:02 AM, Wilken Gottwalt wrote: > > Adds support for reading the critical values of the temperature sensors > > and the rail sensors (voltage and current) once and caches them. Updates > > the naming of the constants following

Re: [PATCH v5 29/36] KVM: arm64: Use page-table to track page ownership

2021-03-15 Thread Quentin Perret
On Monday 15 Mar 2021 at 16:36:19 (+), Will Deacon wrote: > On Mon, Mar 15, 2021 at 02:35:29PM +, Quentin Perret wrote: > > As the host stage 2 will be identity mapped, all the .hyp memory regions > > and/or memory pages donated to protected guestis will have to marked > > invalid in the

[PATCH v2] perf: build reproducibility improvements

2021-03-15 Thread Denys Zagorui
This patch helps to make perf build more reproducible It seems there is some need to have an ability to invoke perf from build directory without installation (84cfac7f05e1: perf tools: Set and pass DOCDIR to builtin-report.c) DOCDIR contains an absolute path to kernel source directory. In such

Re: [tip: x86/core] x86/insn: Add an insn_decode() API

2021-03-15 Thread Peter Zijlstra
On Mon, Mar 15, 2021 at 03:47:48PM -, tip-bot2 for Borislav Petkov wrote: > x86/insn: Add an insn_decode() API Seeing as how I'm a lazy sod, does we want something like so? --- a/arch/x86/include/asm/insn.h +++ b/arch/x86/include/asm/insn.h @@ -150,6 +150,8 @@ enum insn_mode { extern int

Re: [PATCH v3 2/2] rockchip: rk3399: Add support for FriendlyARM NanoPi R4S

2021-03-15 Thread Heiko Stübner
Am Montag, 15. März 2021, 17:38:37 CET schrieb Geert Uytterhoeven: > Hi Robin, > > On Mon, Mar 15, 2021 at 5:32 PM Robin Murphy wrote: > > On 2021-03-13 13:22, CN_SZTL wrote: > > > Robin Murphy 于2021年3月13日周六 下午7:55写道: > > >> > > >> On 2021-03-13 03:25, Tianling Shen wrote: > > >>> +

Re: [PATCH v6 1/2] RISC-V: Don't print SBI version for all detected extensions

2021-03-15 Thread Atish Patra
On Mon, Mar 15, 2021 at 4:07 AM Anup Patel wrote: > > The sbi_init() already prints SBI version before detecting > various SBI extensions so we don't need to print SBI version > for all detected SBI extensions. > > Signed-off-by: Anup Patel > --- > arch/riscv/kernel/sbi.c | 6 +++--- > 1 file

Re: [PATCH v4 06/14] vringh: add vringh_kiov_length() helper

2021-03-15 Thread Laurent Vivier
On 15/03/2021 17:34, Stefano Garzarella wrote: > This new helper returns the total number of bytes covered by > a vringh_kiov. > > Suggested-by: Jason Wang > Acked-by: Jason Wang > Signed-off-by: Stefano Garzarella > --- > include/linux/vringh.h | 11 +++ > 1 file changed, 11

Re: [PATCH net-next 0/3] net: ipa: QMI fixes

2021-03-15 Thread Alex Elder
On 3/15/21 11:38 AM, Manivannan Sadhasivam wrote: Hi Alex, On Mon, Mar 15, 2021 at 10:21:09AM -0500, Alex Elder wrote: Mani Sadhasivam discovered some errors in the definitions of some QMI messages used for IPA. This series addresses those errors, and extends the definition of one message

Re: [PATCH v1 1/1] gpiolib: Read "gpio-line-names" from a firmware node

2021-03-15 Thread Bartosz Golaszewski
On Mon, Mar 15, 2021 at 3:34 PM Andy Shevchenko wrote: > > On Mon, Mar 15, 2021 at 03:04:37PM +0100, Bartosz Golaszewski wrote: > > On Mon, Mar 15, 2021 at 1:50 PM Andy Shevchenko > > wrote: > > > > > > On Mon, Mar 15, 2021 at 12:16:26PM +0200, Andy Shevchenko wrote: > > > > On Mon, Mar 15, 2021

Re: [PATCH v2 3/3] kbuild: dwarf: use AS_VERSION instead of test_dwarf5_support.sh

2021-03-15 Thread Nick Desaulniers
On Mon, Mar 15, 2021 at 9:13 AM Masahiro Yamada wrote: > > The test code in scripts/test_dwarf5_support.sh is somewhat difficult > to understand, but after all, we want to check binutils >= 2.35.2 > > From the former discussion, the requirement for generating DWARF v5 from > C code is as follows:

Re: [PATCH] perf: build reproducibility improvements

2021-03-15 Thread Denys Zagorui -X (dzagorui - GLOBALLOGIC INC at Cisco)
> Makefile.config:1026: No openjdk development package found, please install > JDK package, e.g. openjdk-8-jdk, java-1.8.0-openjdk-devel > cp: '/home/jolsa/kernel/linux-perf/tools/perf/Documentation/tips.txt' and > 'Documentation/tips.txt' are the same file > BISONutil/parse-events-bison.c

RE: [RFC][PATCH] x86/alternatives: Optimize optimize_nops()

2021-03-15 Thread David Laight
From: Peter Zijlstra > Sent: 15 March 2021 15:45 > > Currently optimize_nops() scans to see if the alternative starts with > NOPs. However, the emit pattern is: > > 141:\oldinstr > 142:.skip (len-(142b-141b)), 0x90 > > That is, when oldinstr is short, we pad the tail with

Re: [PATCH v4 1/3] KVM: nVMX: Sync L2 guest CET states between L1/L2

2021-03-15 Thread Sean Christopherson
On Mon, Mar 15, 2021, Yang Weijiang wrote: > These fields are rarely updated by L1 QEMU/KVM, sync them when L1 is trying to > read/write them and after they're changed. If CET guest entry-load bit is not > set by L1 guest, migrate them to L2 manaully. > > Opportunistically remove one blank line

Re: [PATCH 2/5] mm/page_alloc: Add a bulk page allocator

2021-03-15 Thread Jesper Dangaard Brouer
On Mon, 15 Mar 2021 10:42:05 + Mel Gorman wrote: > On Sun, Mar 14, 2021 at 03:22:02PM +, Chuck Lever III wrote: > > >> Anyway, I'm not arguing against a bulk allocator, nor even saying this > > >> is a bad interface. It just maybe could be better. > > >> > > > > > > I think it puts

Re: [PATCH v2 1/2] Makefile: Remove '--gcc-toolchain' flag

2021-03-15 Thread Sedat Dilek
On Mon, Mar 15, 2021 at 5:22 PM Masahiro Yamada wrote: > > On Wed, Mar 10, 2021 at 5:59 AM Nathan Chancellor wrote: > > > > This flag was originally added to allow clang to find the GNU cross > > tools in commit 785f11aa595b ("kbuild: Add better clang cross build > > support"). This flag was not

Re: [PATCH 2/3] drm/bridge: ti-sn65dsi86: Move code in prep for EDID read fix

2021-03-15 Thread Laurent Pinchart
Hi Doug, On Mon, Mar 15, 2021 at 09:31:41AM -0700, Doug Anderson wrote: > On Sat, Mar 13, 2021 at 1:13 PM Laurent Pinchart wrote: > > On Thu, Mar 04, 2021 at 03:52:00PM -0800, Douglas Anderson wrote: > > > This patch is _only_ code motion to prepare for the patch > > > ("drm/bridge: ti-sn65dsi86:

Re: [PATCH] remoteproc: qcom: wcnss: Fix race with iris probe

2021-03-15 Thread Mathieu Poirier
On Thu, Mar 11, 2021 at 04:22:51PM -0800, Bjorn Andersson wrote: > The remoteproc driver is split between the responsibilities of getting > the SoC-internal ARM core up and running and the external RF (aka > "Iris") part configured. > > In order to satisfy the regulator framework's need of a

RE: [PATCH] powerpc/vdso32: Add missing _restgpr_31_x to fix build failure

2021-03-15 Thread David Laight
From: Rasmus Villemoes > Sent: 15 March 2021 16:24 > > On 12/03/2021 03.29, Segher Boessenkool wrote: > > Hi! > > > > On Tue, Mar 09, 2021 at 06:19:30AM +, Christophe Leroy wrote: > >> With some defconfig including CONFIG_CC_OPTIMIZE_FOR_SIZE, > >> (for instance mvme5100_defconfig and

Re: [PATCH v3 2/2] rockchip: rk3399: Add support for FriendlyARM NanoPi R4S

2021-03-15 Thread Geert Uytterhoeven
Hi Robin, On Mon, Mar 15, 2021 at 5:32 PM Robin Murphy wrote: > On 2021-03-13 13:22, CN_SZTL wrote: > > Robin Murphy 于2021年3月13日周六 下午7:55写道: > >> > >> On 2021-03-13 03:25, Tianling Shen wrote: > >>> + gpio-leds { > >>> + compatible = "gpio-leds"; > >>> + pinctrl-0 =

Re: [PATCH net-next 0/3] net: ipa: QMI fixes

2021-03-15 Thread Manivannan Sadhasivam
Hi Alex, On Mon, Mar 15, 2021 at 10:21:09AM -0500, Alex Elder wrote: > Mani Sadhasivam discovered some errors in the definitions of some > QMI messages used for IPA. This series addresses those errors, > and extends the definition of one message type to include some > newly-defined fields. >

Re: [PATCH v5 02/11] configfs: use (1UL << bit) for internal flags

2021-03-15 Thread Andy Shevchenko
On Mon, Mar 15, 2021 at 5:33 PM David Laight wrote: > From: Bartosz Golaszewski > > Sent: 15 March 2021 09:14 > > > > From: Bartosz Golaszewski > > > > For better readability and maintenance: use the (1UL << bit) for flag > > definitions. > > If the values ever get printed in hex the hex

[PATCH v4 14/14] vdpa_sim_blk: add support for vdpa management tool

2021-03-15 Thread Stefano Garzarella
Enable the user to create vDPA block simulator devices using the vdpa management tool: # Show vDPA supported devices $ vdpa mgmtdev show vdpasim_blk: supported_classes block # Create a vDPA block device named as 'blk0' from the management # device vdpasim: $ vdpa

[PATCH v4 13/14] vdpa_sim_blk: handle VIRTIO_BLK_T_GET_ID

2021-03-15 Thread Stefano Garzarella
Handle VIRTIO_BLK_T_GET_ID request, always answering the "vdpa_blk_sim" string. Acked-by: Jason Wang Reviewed-by: Stefan Hajnoczi Signed-off-by: Stefano Garzarella --- v2: - made 'vdpasim_blk_id' static [Jason] --- drivers/vdpa/vdpa_sim/vdpa_sim_blk.c | 15 +++ 1 file changed, 15

[PATCH v4 12/14] vdpa_sim_blk: implement ramdisk behaviour

2021-03-15 Thread Stefano Garzarella
The previous implementation wrote only the status of each request. This patch implements a more accurate block device simulator, providing a ramdisk-like behavior and adding input validation. Acked-by: Jason Wang Reviewed-by: Stefan Hajnoczi Signed-off-by: Stefano Garzarella --- v2: - used %zd

[PATCH v4 11/14] vdpa: add vdpa simulator for block device

2021-03-15 Thread Stefano Garzarella
From: Max Gurtovoy This will allow running vDPA for virtio block protocol. It's a preliminary implementation with a simple request handling: for each request, only the status (last byte) is set. It's always set to VIRTIO_BLK_S_OK. Also input validation is missing and will be added in the next

[PATCH v4 09/14] vhost/vdpa: use get_config_size callback in vhost_vdpa_config_validate()

2021-03-15 Thread Stefano Garzarella
Let's use the new 'get_config_size()' callback available instead of using the 'virtio_id' to get the size of the device config space. Signed-off-by: Stefano Garzarella --- drivers/vhost/vdpa.c | 9 ++--- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/vhost/vdpa.c

[PATCH v4 10/14] vhost/vdpa: Remove the restriction that only supports virtio-net devices

2021-03-15 Thread Stefano Garzarella
From: Xie Yongji Since the config checks are done by the vDPA drivers, we can remove the virtio-net restriction and we should be able to support all kinds of virtio devices. is not needed anymore, but we need to include to avoid compilation failures. Signed-off-by: Xie Yongji Signed-off-by:

Re: [PATCH v5 29/36] KVM: arm64: Use page-table to track page ownership

2021-03-15 Thread Will Deacon
On Mon, Mar 15, 2021 at 02:35:29PM +, Quentin Perret wrote: > As the host stage 2 will be identity mapped, all the .hyp memory regions > and/or memory pages donated to protected guestis will have to marked > invalid in the host stage 2 page-table. At the same time, the hypervisor > will need a

[PATCH v4 08/14] vdpa: add get_config_size callback in vdpa_config_ops

2021-03-15 Thread Stefano Garzarella
This new callback is used to get the size of the configuration space of vDPA devices. Signed-off-by: Stefano Garzarella --- include/linux/vdpa.h | 4 drivers/vdpa/ifcvf/ifcvf_main.c | 6 ++ drivers/vdpa/mlx5/net/mlx5_vnet.c | 6 ++ drivers/vdpa/vdpa_sim/vdpa_sim.c |

[PATCH v4 06/14] vringh: add vringh_kiov_length() helper

2021-03-15 Thread Stefano Garzarella
This new helper returns the total number of bytes covered by a vringh_kiov. Suggested-by: Jason Wang Acked-by: Jason Wang Signed-off-by: Stefano Garzarella --- include/linux/vringh.h | 11 +++ 1 file changed, 11 insertions(+) diff --git a/include/linux/vringh.h

[PATCH v4 07/14] vdpa_sim: cleanup kiovs in vdpasim_free()

2021-03-15 Thread Stefano Garzarella
vringh_getdesc_iotlb() allocates memory to store the kvec, that is freed with vringh_kiov_cleanup(). vringh_getdesc_iotlb() is able to reuse a kvec previously allocated, so in order to avoid to allocate the kvec for each request, we are not calling vringh_kiov_cleanup() when we finished to handle

[PATCH v4 05/14] vringh: implement vringh_kiov_advance()

2021-03-15 Thread Stefano Garzarella
In some cases, it may be useful to provide a way to skip a number of bytes in a vringh_kiov. Let's implement vringh_kiov_advance() for this purpose, reusing the code from vringh_iov_xfer(). We replace that code calling the new vringh_kiov_advance(). Acked-by: Jason Wang Signed-off-by: Stefano

[PATCH v4 03/14] vringh: reset kiov 'consumed' field in __vringh_iov()

2021-03-15 Thread Stefano Garzarella
__vringh_iov() overwrites the contents of riov and wiov, in fact it resets the 'i' and 'used' fields, but also the 'consumed' field should be reset to avoid an inconsistent state. Acked-by: Jason Wang Signed-off-by: Stefano Garzarella --- drivers/vhost/vringh.c | 4 ++-- 1 file changed, 2

[PATCH v4 04/14] vringh: explain more about cleaning riov and wiov

2021-03-15 Thread Stefano Garzarella
riov and wiov can be reused with subsequent calls of vringh_getdesc_*(). Let's add a paragraph in the documentation of these functions to better explain when riov and wiov need to be cleaned up. Acked-by: Jason Wang Signed-off-by: Stefano Garzarella --- drivers/vhost/vringh.c | 15

[PATCH v4 02/14] vringh: add 'iotlb_lock' to synchronize iotlb accesses

2021-03-15 Thread Stefano Garzarella
Usually iotlb accesses are synchronized with a spinlock. Let's request it as a new parameter in vringh_set_iotlb() and hold it when we navigate the iotlb in iotlb_translate() to avoid race conditions with any new additions/deletions of ranges from the ioltb. Acked-by: Jason Wang Signed-off-by:

Re: [PATCH v4 3/3] x86/sgx: Add a basic NUMA allocation scheme to sgx_alloc_epc_page()

2021-03-15 Thread Dave Hansen
On 3/13/21 8:01 AM, Jarkko Sakkinen wrote: > Background > == > > EPC section is covered by one or more SRAT entries that are associated with > one and only one PXM (NUMA node). The motivation behind this patch is to > provide basic elements of building allocation scheme based on this

[PATCH v4 00/14] vdpa: add vdpa simulator for block device

2021-03-15 Thread Stefano Garzarella
v4: - added support for iproute2 vdpa management tool in vdpa_sim_blk - removed get/set_config patches - 'vdpa: add return value to get_config/set_config callbacks' - 'vhost/vdpa: remove vhost_vdpa_config_validate()' - added get_config_size() patches - 'vdpa: add get_config_size callback in

[PATCH v4 01/14] vdpa_sim: use iova module to allocate IOVA addresses

2021-03-15 Thread Stefano Garzarella
The identical mapping used until now created issues when mapping different virtual pages with the same physical address. To solve this issue, we can use the iova module, to handle the IOVA allocation. For simplicity we use an IOVA allocator with byte granularity. We add two new functions,

[PATCH v5] mfd: da9063: Support SMBus and I2C mode

2021-03-15 Thread Mark Jonas
From: Hubert Streidl By default the PMIC DA9063 2-wire interface is SMBus compliant. This means the PMIC will automatically reset the interface when the clock signal ceases for more than the SMBus timeout of 35 ms. If the I2C driver / device is not capable of creating atomic I2C transactions, a

Re: [RFC PATCH v2 07/11] dma-mapping: Add flags to dma_map_ops to indicate PCI P2PDMA support

2021-03-15 Thread Logan Gunthorpe
On 2021-03-12 7:36 p.m., Ira Weiny wrote: > On Thu, Mar 11, 2021 at 04:31:37PM -0700, Logan Gunthorpe wrote: > >> +int dma_pci_p2pdma_supported(struct device *dev) >^^^ > bool? Sure. > >> +{ >> +const struct dma_map_ops *ops = get_dma_ops(dev); >> + >> +return !ops ||

Re: [PATCH v5 14/36] KVM: arm64: Provide __flush_dcache_area at EL2

2021-03-15 Thread Will Deacon
On Mon, Mar 15, 2021 at 02:35:14PM +, Quentin Perret wrote: > We will need to do cache maintenance at EL2 soon, so compile a copy of > __flush_dcache_area at EL2, and provide a copy of arm64_ftr_reg_ctrel0 > as it is needed by the read_ctr macro. > > Signed-off-by: Quentin Perret > --- >

[PATCH] softirq: Be more verbose on t->state BUG()

2021-03-15 Thread Eugeniu Rosca
From: Dirk Behme In case this BUG() is hit, it helps debugging a lot to get an idea what tasklet is the root cause. So, be slightly more verbose here. Signed-off-by: Dirk Behme Signed-off-by: Eugeniu Rosca --- kernel/softirq.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-)

Re: [PATCH 5.10 081/290] gpiolib: Read "gpio-line-names" from a firmware node

2021-03-15 Thread Bartosz Golaszewski
On Mon, Mar 15, 2021 at 4:01 PM Marek Vasut wrote: > > On 3/15/21 2:52 PM, gre...@linuxfoundation.org wrote: > > From: Greg Kroah-Hartman > > > > From: Andy Shevchenko > > > > commit b41ba2ec54a70908067034f139aa23d0dd2985ce upstream. > > > > On STM32MP1, the GPIO banks are subnodes of

Re: [PATCH v3 2/2] rockchip: rk3399: Add support for FriendlyARM NanoPi R4S

2021-03-15 Thread Robin Murphy
On 2021-03-13 13:22, CN_SZTL wrote: Robin Murphy 于2021年3月13日周六 下午7:55写道: On 2021-03-13 03:25, Tianling Shen wrote: This adds support for the NanoPi R4S from FriendlyArm. Rockchip RK3399 SoC 1GB DDR3 or 4GB LPDDR4 RAM Gigabit Ethernet (WAN) Gigabit Ethernet (PCIe) (LAN) USB 3.0 Port x 2

Re: [PATCH 2/3] drm/bridge: ti-sn65dsi86: Move code in prep for EDID read fix

2021-03-15 Thread Doug Anderson
Hi, On Sat, Mar 13, 2021 at 1:13 PM Laurent Pinchart wrote: > > Hi Douglas, > > Thank you for the patch. > > On Thu, Mar 04, 2021 at 03:52:00PM -0800, Douglas Anderson wrote: > > This patch is _only_ code motion to prepare for the patch > > ("drm/bridge: ti-sn65dsi86: Properly get the EDID, but

Re: [PATCH v5 32/36] KVM: arm64: Provide sanitized mmfr* registers at EL2

2021-03-15 Thread Will Deacon
On Mon, Mar 15, 2021 at 02:35:32PM +, Quentin Perret wrote: > We will need to read sanitized values of mmfr{0,1}_el1 at EL2 soon, so > add them to the list of copied variables. > > Signed-off-by: Quentin Perret > --- > arch/arm64/include/asm/kvm_cpufeature.h | 2 ++ >

Re: [PATCH] platform/x86: pmc_atom: use callback for all dmi quirk entries

2021-03-15 Thread Hans de Goede
Hi, On 3/15/21 3:58 PM, Henning Schild wrote: > Introduce a global variable to remember the matching entry for later > printing. Also having a callback allows to stop matching after the first > hit. > > Signed-off-by: Henning Schild > --- > drivers/platform/x86/pmc_atom.c | 26

Re: [PATCH v2 1/4] platform/x86: simatic-ipc: add main driver for Siemens devices

2021-03-15 Thread Henning Schild
Am Mon, 15 Mar 2021 12:31:11 +0200 schrieb Andy Shevchenko : > On Mon, Mar 15, 2021 at 12:02 PM Henning Schild > wrote: > > > > This mainly implements detection of these devices and will allow > > secondary drivers to work on such machines. > > > > The identification is DMI-based with a vendor

Re: [RFC PATCH v2 04/11] PCI/P2PDMA: Introduce pci_p2pdma_should_map_bus() and pci_p2pdma_bus_offset()

2021-03-15 Thread Logan Gunthorpe
On 2021-03-12 7:32 p.m., Ira Weiny wrote: > On Thu, Mar 11, 2021 at 04:31:34PM -0700, Logan Gunthorpe wrote: >> Introduce pci_p2pdma_should_map_bus() which is meant to be called by > ^ > pci_p2pdma_dma_map_type() ??? > > FWIW I find this name

Re: [PATCH v5 31/36] KVM: arm64: Add kvm_pgtable_stage2_find_range()

2021-03-15 Thread Will Deacon
On Mon, Mar 15, 2021 at 02:35:31PM +, Quentin Perret wrote: > Since the host stage 2 will be identity mapped, and since it will own > most of memory, it would preferable for performance to try and use large > block mappings whenever that is possible. To ease this, introduce a new > helper in

[PATCH v2 4/4] arm64: dts: renesas: eagle: Include eagle-gmsl

2021-03-15 Thread Jacopo Mondi
From: Kieran Bingham Include the eagle-gmsl.dtsi to enable GMSL camera support on the Eagle-V3M platform. Signed-off-by: Kieran Bingham Signed-off-by: Jacopo Mondi --- arch/arm64/boot/dts/renesas/r8a77970-eagle.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH v2 3/4] arm64: dts: renesas: eagle: Add GMSL .dtsi

2021-03-15 Thread Jacopo Mondi
From: Kieran Bingham Describe the FAKRA connector available on Eagle board that allows connecting GMSL camera modules such as IMI RDACM20 and RDACM21. Signed-off-by: Kieran Bingham Signed-off-by: Jacopo Mondi --- arch/arm64/boot/dts/renesas/eagle-gmsl.dtsi | 186 1 file

[PATCH v2 2/4] arm64: dts: renesas: eagle: Enable MAX9286

2021-03-15 Thread Jacopo Mondi
From: Kieran Bingham Enable the MAX9286 GMSL deserializer on the Eagle-V3M board. Connected cameras should be defined in a device-tree overlay or included after these definitions. Signed-off-by: Kieran Bingham Signed-off-by: Jacopo Mondi --- .../arm64/boot/dts/renesas/r8a77970-eagle.dts |

[PATCH v2 1/4] dt-bindings: media: max9286: Describe gpio-hog

2021-03-15 Thread Jacopo Mondi
The MAX9286 GMSL deserializer features gpio controller capabilities, as it provides 2 GPIO lines. As establishing a regulator that uses one of the GPIO lines and enabling/disabling it at run-time in the max9286 won't work due to a circular dependency on the gpio-controller/regulator creation,

[PATCH v2 0/4] arm64: dts: renesas: Enable GMSL on R8A77970 V3M Eagle

2021-03-15 Thread Jacopo Mondi
Hello, this series adds a .dtsi fragment that allow to describe and enable GMSL cameras on the V3M Eagle board. The .dtsi supports connecting the RDACM20 and RDACM21 cameras to the FAKRA connectors installed on the board. Tested on V3M Eagle with RDACM20 and RDACM21 v1->v2: - Use a pattern

Re: [PATCH 4/4] PCI/sysfs: Allow userspace to query and set device reset mechanism

2021-03-15 Thread Alex Williamson
On Mon, 15 Mar 2021 21:03:41 +0530 Amey Narkhede wrote: > On 21/03/15 05:07PM, Leon Romanovsky wrote: > > On Mon, Mar 15, 2021 at 08:34:09AM -0600, Alex Williamson wrote: > > > On Mon, 15 Mar 2021 14:52:26 +0100 > > > Pali Rohár wrote: > > > > > > > On Monday 15 March 2021 19:13:23 Amey

Re: [PATCH RFCv2] mm/madvise: introduce MADV_POPULATE_(READ|WRITE) to prefault/prealloc memory

2021-03-15 Thread David Hildenbrand
On 15.03.21 14:26, David Hildenbrand wrote: On 15.03.21 14:03, Kirill A. Shutemov wrote: On Mon, Mar 15, 2021 at 01:25:40PM +0100, David Hildenbrand wrote: On 15.03.21 13:22, Kirill A. Shutemov wrote: On Mon, Mar 08, 2021 at 05:45:20PM +0100, David Hildenbrand wrote: +

Re: [RFC PATCH v2 04/11] PCI/P2PDMA: Introduce pci_p2pdma_should_map_bus() and pci_p2pdma_bus_offset()

2021-03-15 Thread Logan Gunthorpe
On 2021-03-12 6:38 p.m., Ira Weiny wrote: > On Thu, Mar 11, 2021 at 04:31:34PM -0700, Logan Gunthorpe wrote: >> Introduce pci_p2pdma_should_map_bus() which is meant to be called by >> DMA map functions to determine how to map a given p2pdma page. >> >> pci_p2pdma_bus_offset() is also added to

Re: [PATCH v3 2/9] dt-bindings: arm: stm32: Add compatible strings for ART-PI board

2021-03-15 Thread Rob Herring
On Mon, 15 Mar 2021 17:43:49 +0800, dillon.min...@gmail.com wrote: > From: dillon min > > Art-pi based on stm32h750xbh6, with following resources: > > -8MiB QSPI flash > -16MiB SPI flash > -32MiB SDRAM > -AP6212 wifi, bt, fm > > detail information can be found at: >

Re: [PATCH v3 3/9] dt-bindings: pinctrl: stm32: Add stm32h750 pinctrl

2021-03-15 Thread Rob Herring
On Mon, 15 Mar 2021 17:43:50 +0800, dillon.min...@gmail.com wrote: > From: dillon min > > This patch intend to add pinctrl configuration support for > stm32h750 value line > > The datasheet of stm32h750 value line can be found at: > https://www.st.com/resource/en/datasheet/stm32h750ib.pdf > >

Re: [PATCH 3/3] drm/bridge: ti-sn65dsi86: Properly get the EDID, but only if refclk

2021-03-15 Thread Doug Anderson
Hi, On Sat, Mar 13, 2021 at 1:17 PM Laurent Pinchart wrote: > > Hi Doug, > > Thank you for the patch. > > On Thu, Mar 04, 2021 at 03:52:01PM -0800, Douglas Anderson wrote: > > In commit 58074b08c04a ("drm/bridge: ti-sn65dsi86: Read EDID blob over > > DDC") we attempted to make the ti-sn65dsi86

Re: [PATCH v4 1/2] dt-bindings: Add doc for FriendlyARM NanoPi R4S

2021-03-15 Thread Rob Herring
On Mon, 15 Mar 2021 16:42:40 +0800, Tianling Shen wrote: > Add devicetree binding documentation for the FriendlyARM NanoPi R4S. > > Changes in v2: > - Disable display for NanoPi R4S (reference commit: 74532de460ec) > - Light "sys" LED on NanoPi R4S (reference commit: 833821eeab91) > > Changes in

Re: [PATCH] docs: kbuild: Fix a typo in the file Kconfig.recursion-issue-02

2021-03-15 Thread Masahiro Yamada
On Sun, Mar 14, 2021 at 1:33 PM Bhaskar Chowdhury wrote: > > > s/sematics/semantics/ > > Signed-off-by: Bhaskar Chowdhury > --- Applied to linux-kbuild. Thanks. > Documentation/kbuild/Kconfig.recursion-issue-02 | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH v9 2/4] pinctrl: pinmux: Add pinmux-select debugfs file

2021-03-15 Thread Linus Walleij
On Fri, Mar 12, 2021 at 2:57 PM Enrico Weigelt, metux IT consult wrote: > On 02.03.21 06:30, Drew Fustini wrote: > > Hi folks, > > > Add "pinmux-select" to debugfs which will activate a pin function for a > > given pin group: > > > >echo "" > pinmux-select > > > > The write operation

Re: [PATCH] x86/cpu: Resort and comment Intel models

2021-03-15 Thread Borislav Petkov
On Mon, Mar 15, 2021 at 05:12:53PM +0100, Peter Zijlstra wrote: > > The INTEL_FAM6 list has become a mess again. Try and bring some sanity > back into it. > > Where previously we had one microarch per year and a number of SKUs > within that, this no longer seems to be the case. We now get

<    3   4   5   6   7   8   9   10   11   12   >