[PATCH v4 08/11] media: uvcvideo: Set unique vdev name based in type

2021-03-15 Thread Ricardo Ribalda
All the entities must have a unique name. We can have a descriptive and unique name by appending the function and the entity->id. This is even resilent to multi chain devices. Fixes v4l2-compliance: Media Controller ioctls: fail: v4l2-test-media.cpp(205): v2_entity_names_set.find(

[PATCH v4 05/11] media: uvcvideo: refactor __uvc_ctrl_add_mapping

2021-03-15 Thread Ricardo Ribalda
Pass the chain instead of the device. We want to keed the reference to the chain that controls belong to. We need to delay the initialization of the controls after the chains have been initialized. This is a cleanup needed for the next patches. Reviewed-by: Laurent Pinchart Signed-off-by: Ricar

[PATCH v4 09/11] media: uvcvideo: Increase the size of UVC_METADATA_BUF_SIZE

2021-03-15 Thread Ricardo Ribalda
Hans has discovered that in his test device, for the H264 format bytesused goes up to about 570, for YUYV it will actually go up to a bit over 5000 bytes, and for MJPG up to about 2706 bytes. Credit-to: Hans Verkuil Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvcvideo.h | 2 +- 1 f

[PATCH v4 11/11] uvc: use vb2 ioctl and fop helpers

2021-03-15 Thread Ricardo Ribalda
From: Hans Verkuil When uvc was written the vb2 ioctl and file operation helpers didn't exist. This patch switches uvc over to those helpers, which removes a lot of boilerplate code and simplifies VIDIOC_G/S_PRIORITY handling and allows us to drop the 'privileges' scheme, since that's now handl

[PATCH v4 06/11] media: uvcvideo: Add support for V4L2_CTRL_TYPE_CTRL_CLASS

2021-03-15 Thread Ricardo Ribalda
Create all the class controls for the device defined controls. Fixes v4l2-compliance: Control ioctls (Input 0): fail: v4l2-test-controls.cpp(216): missing control class for class 0098 fail: v4l2-test-controls.cpp(216): missing control tclass for class 009a

[PATCH v4 10/11] media: uvcvideo: Return -EACCES to inactive controls

2021-03-15 Thread Ricardo Ribalda
If a control is inactive return -EACCES to let the userspace know that the value will not be applied automatically when the control is active again. Signed-off-by: Ricardo Ribalda Suggested-by: Hans Verkuil --- drivers/media/usb/uvc/uvc_ctrl.c | 17 - 1 file changed, 16 insertio

[PATCH v4 07/11] media: uvcvideo: Use dev->name for querycap()

2021-03-15 Thread Ricardo Ribalda
Use the device name for the card name instead of cap->card. Suggested-by: Laurent Pinchart Signed-off-by: Ricardo Ribalda --- drivers/media/usb/uvc/uvc_v4l2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/usb/uvc/uvc_v4l2.c b/drivers/media/usb/uvc/uvc_v4l2.

[PATCH v6 0/8] Add Support for MediaTek PMIC MT6359

2021-03-15 Thread Hsin-Hsiung Wang
This patchset includes refactoring interrupt and adding support to MT6359 PMIC. MT6359 is the primary PMIC for MT6779 and probably other SOCs. The series[1] sent by Wen will continue to upstream in this patchset afterwards. [1] https://patchwork.kernel.org/project/linux-mediatek/list/?series=30657

[PATCH v6 3/8] dt-bindings: mfd: Add compatible for the MediaTek MT6359 PMIC

2021-03-15 Thread Hsin-Hsiung Wang
This adds compatible for the MediaTek MT6359 PMIC. Signed-off-by: Hsin-Hsiung Wang Acked-by: Rob Herring --- changes since v5: - no change. --- Documentation/devicetree/bindings/mfd/mt6397.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mfd/mt6397.txt

[PATCH v6 7/8] regulator: mt6359: Add support for MT6359P regulator

2021-03-15 Thread Hsin-Hsiung Wang
The MT6359P is a eco version for MT6359 regulator. We add support based on MT6359 regulator driver. Signed-off-by: Hsin-Hsiung Wang --- changes since v5: - no change. --- drivers/regulator/mt6359-regulator.c | 379 - include/linux/mfd/mt6359p/registers.h | 249

[PATCH v6 2/8] rtc: mt6397: refine RTC_TC_MTH

2021-03-15 Thread Hsin-Hsiung Wang
This patch adds RTC_TC_MTH_MASK to support new chips. Signed-off-by: Yuchen Huang Signed-off-by: Hsin-Hsiung Wang Acked-by: Alexandre Belloni --- changes since v5: - no change. --- drivers/rtc/rtc-mt6397.c | 2 +- include/linux/mfd/mt6397/rtc.h | 1 + 2 files changed, 2 insertions(+), 1

[PATCH v6 1/8] mfd: mt6358: refine interrupt code

2021-03-15 Thread Hsin-Hsiung Wang
This patch refines the interrupt related code to support new chips. Signed-off-by: Hsin-Hsiung Wang Acked-for-MFD-by: Lee Jones --- changes since v5: - no change. --- drivers/mfd/mt6358-irq.c| 65 +++-- include/linux/mfd/mt6358/core.h | 8 ++-- 2 files chang

[PATCH v6 5/8] mfd: Add support for the MediaTek MT6359 PMIC

2021-03-15 Thread Hsin-Hsiung Wang
This adds support for the MediaTek MT6359 PMIC. This is a multifunction device with the following sub modules: - Codec - Interrupt - Regulator - RTC It is interfaced to the host controller using SPI interface by a proprietary hardware called PMIC wrapper or pwrap. MT6359 MFD is a child device of

[PATCH v6 8/8] arm64: dts: mt6359: add PMIC MT6359 related nodes

2021-03-15 Thread Hsin-Hsiung Wang
From: Wen Su add PMIC MT6359 related nodes which is for MT6779 platform Signed-off-by: Wen Su Signed-off-by: Hsin-Hsiung Wang --- changes since v5: - update file date. --- arch/arm64/boot/dts/mediatek/mt6359.dtsi| 298 arch/arm64/boot/dts/mediatek/mt8192-evb.dts | 1

[PATCH v6 4/8] dt-bindings: regulator: Add document for MT6359 regulator

2021-03-15 Thread Hsin-Hsiung Wang
add dt-binding document for MediaTek MT6359 PMIC Signed-off-by: Hsin-Hsiung Wang --- changes since v5: - no change. --- .../bindings/regulator/mt6359-regulator.yaml | 169 ++ 1 file changed, 169 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mt635

Re: [PATCH] [PATCH] mm, slub: enable slub_debug static key when creating cache with explicit debug flags

2021-03-15 Thread Vlastimil Babka
On 3/15/21 6:32 PM, Paul E. McKenney wrote: > On Mon, Mar 15, 2021 at 06:28:42PM +0100, Vlastimil Babka wrote: >> On 3/15/21 6:16 PM, David Rientjes wrote: >> > On Mon, 15 Mar 2021, Vlastimil Babka wrote: >> > >> >> Commit ca0cab65ea2b ("mm, slub: introduce static key for slub_debug()") >> >> intr

[PATCH v6 6/8] regulator: mt6359: Add support for MT6359 regulator

2021-03-15 Thread Hsin-Hsiung Wang
From: Wen Su The MT6359 is a regulator found on boards based on MediaTek MT6779 and probably other SoCs. It is a so called pmic and connects as a slave to SoC using SPI, wrapped inside the pmic-wrapper. Signed-off-by: Wen Su Signed-off-by: Hsin-Hsiung Wang --- changes since v5: - update the fi

Re: [PATCH v26 5/5] remoteproc: Add initial zynqmp R5 remoteproc driver

2021-03-15 Thread Mathieu Poirier
On Thu, Mar 11, 2021 at 11:49:13PM +, Ben Levinsky wrote: > Hi Mathieu > > -Original Message- > From: Mathieu Poirier > Date: Tuesday, March 9, 2021 at 8:53 AM > To: Ben Levinsky > Cc: "devicet...@vger.kernel.org" , > "linux-remotep...@vger.kernel.org" , > "linux-kernel@vger.kerne

Re: [PATCH v2 11/27] perf parse-events: Support hardware events inside PMU

2021-03-15 Thread Jiri Olsa
On Mon, Mar 15, 2021 at 10:28:12AM +0800, Jin, Yao wrote: > Hi Jiri, > > On 3/13/2021 3:15 AM, Jiri Olsa wrote: > > On Thu, Mar 11, 2021 at 03:07:26PM +0800, Jin Yao wrote: > > > On hybrid platform, some hardware events are only available > > > on a specific pmu. For example, 'L1-dcache-load-misse

[PATCH] arm64: dts: qcom: sc7180: Fix sc7180-qmp-usb3-dp-phy reg sizes

2021-03-15 Thread Douglas Anderson
As per Dmitry Baryshkov [1]: a) The 2nd "reg" should be 0x3c because "Offset 0x38 is USB3_DP_COM_REVISION_ID3 (not used by the current driver though)." b) The 3rd "reg" "is a serdes region and qmp_v3_dp_serdes_tbl contains registers 0x148 and 0x154." I think because the 3rd "reg" is a serdes

Re: [PATCH 1/2] ASoC: simple-card-utils: Do not handle device clock

2021-03-15 Thread Michael Walle
Am 2021-03-15 18:31, schrieb Sameer Pujar: This reverts commit 1e30f642cf29 ("ASoC: simple-card-utils: Fix device module clock"). The original patch ended up breaking following platform, which depends on set_sysclk() to configure internal PLL on wm8904 codec and expects simple-card-utils to not

Re: [PATCH v2] eeprom/optoe: driver to read/write SFP/QSFP/CMIS EEPROMS

2021-03-15 Thread Jakub Kicinski
On Sat, 13 Mar 2021 13:35:56 -0800 Don Bollinger wrote: > > away parts of the bottom end and replace it with a different KAPI, and > > nobody will notice? In fact, this is probably how it was designed. Anybody > > Actually everyone who touches this code would notice, each implementation > would

[PATCH v2] arm64: tegra: Move clocks from RT5658 endpoint to device node

2021-03-15 Thread Sameer Pujar
An endpoint is not a device and it is recommended to use clocks property in device node. RT5658 Codec binding already specifies the usage of clocks property. Thus move the clocks from endpoint to device node. Fixes: 5b4f6323096a ("arm64: tegra: Audio graph sound card for Jetson AGX Xavier") Sugge

Re: [PATCH] seq_file: Unconditionally use vmalloc for buffer

2021-03-15 Thread Kees Cook
On Mon, Mar 15, 2021 at 09:34:18AM +0100, Michal Hocko wrote: > On Fri 12-03-21 12:55:58, Kees Cook wrote: > > The sysfs interface to seq_file continues to be rather fragile, as seen > > with some recent exploits[1]. Move the seq_file buffer to the vmap area > > (while retaining the accounting flag

Re: [PATCH 01/13] arm64: dts: qcom: sc7180: Update dts for DP phy inside QMP phy

2021-03-15 Thread Doug Anderson
Hi, On Sat, Mar 13, 2021 at 4:28 PM Dmitry Baryshkov wrote: > > > usb_1_qmpphy: phy-wrapper@88e9000 { > > - compatible = "qcom,sc7180-qmp-usb3-phy"; > > + compatible = "qcom,sc7180-qmp-usb3-dp-phy"; > > reg = <0 0x088e900

Re: [PATCH v2 0/3] Don't use RCU for x_tables synchronization

2021-03-15 Thread Pablo Neira Ayuso
On Mon, Mar 08, 2021 at 02:24:10PM +1300, Mark Tomlinson wrote: > The patches to change to using RCU synchronization in x_tables cause > updating tables to be slowed down by an order of magnitude. This has > been tried before, see https://lore.kernel.org/patchwork/patch/151796/ > and ultimately was

[PATCH v2] seq_file: Unconditionally use vmalloc for buffer

2021-03-15 Thread Kees Cook
The sysfs interface to seq_file continues to be rather fragile, as seen with some recent exploits[1]. Move the seq_file buffer to the vmap area (while retaining the accounting flag), since it has guard pages that will catch and stop linear overflows. This seems justified given that seq_file already

[PATCH 2/2] KVM: nSVM: improve SYSENTER emulation on AMD

2021-03-15 Thread Maxim Levitsky
Currently to support Intel->AMD migration, if CPU vendor is GenuineIntel, we emulate full 64 value for MSR_IA32_SYSENTER_EIP/MSR_IA32_SYSENTER_ESP msrs, and we also emulate sysenter/sysexit instruction in long mode. (Emulator does still refuse to emulate sysenter in 64 bit mode, on the ground that

[PATCH 1/2] KVM: x86: add guest_cpuid_is_intel

2021-03-15 Thread Maxim Levitsky
This is similar to existing 'guest_cpuid_is_amd_or_hygon' Signed-off-by: Maxim Levitsky --- arch/x86/kvm/cpuid.h | 8 1 file changed, 8 insertions(+) diff --git a/arch/x86/kvm/cpuid.h b/arch/x86/kvm/cpuid.h index 2a0c5064497f3..ded84d244f19f 100644 --- a/arch/x86/kvm/cpuid.h +++ b/arch

Re: [PATCH V11 3/5] kbuild: Allow .dtso format for overlay source files

2021-03-15 Thread Masahiro Yamada
On Mon, Mar 15, 2021 at 3:40 PM Viresh Kumar wrote: > > On 14-03-21, 20:16, Frank Rowand wrote: > > On 3/12/21 11:11 PM, Frank Rowand wrote: > > > On 3/12/21 1:13 AM, Viresh Kumar wrote: > > >> On 12-03-21, 01:09, Frank Rowand wrote: > > >>> I suggested having the .dtso files include the .dts file

Re: [PATCH v4] mm/vmalloc: randomize vmalloc() allocations

2021-03-15 Thread Uladzislau Rezki
On Mon, Mar 15, 2021 at 09:16:26AM -0700, Kees Cook wrote: > On Mon, Mar 15, 2021 at 01:24:10PM +0100, Uladzislau Rezki wrote: > > On Mon, Mar 15, 2021 at 11:04:42AM +0200, Topi Miettinen wrote: > > > What's the problem with that? It seems to me that nothing relies on > > > specific > > > addresse

[PATCH 0/2] KVM: x86: nSVM: fixes for SYSENTER emulation

2021-03-15 Thread Maxim Levitsky
This is a result of deep rabbit hole dive in regard to why currently the nested migration of 32 bit guests is totally broken on AMD. It turns out that due to slight differences between the original AMD64 implementation and the Intel's remake, SYSENTER instruction behaves a bit differently on Intel

Re: [PATCH v3] dt-bindings: arm: Convert nuvoton,npcm750 binding to YAML

2021-03-15 Thread Jonathan Neuschäfer
On Mon, Mar 15, 2021 at 10:23:38AM -0600, Rob Herring wrote: > On Sat, Mar 13, 2021 at 06:53:20PM +0100, Jonathan Neuschäfer wrote: > > The general trend is to have devicetree bindings in YAML format, to > > allow automatic validation of bindings and devicetrees. > > > > Convert the NPCM SoC famil

Re: [PATCH 2/2] KVM: nSVM: improve SYSENTER emulation on AMD

2021-03-15 Thread Paolo Bonzini
On 15/03/21 18:43, Maxim Levitsky wrote: + if (!guest_cpuid_is_intel(vcpu)) { + /* +* If hardware supports Virtual VMLOAD VMSAVE then enable it +* in VMCB and clear intercepts to avoid #VMEXIT. +*/ + if (vls) { +

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

2021-03-15 Thread Pierre-Louis Bossart
On 3/15/21 11:56 AM, Srinivas Kandagatla wrote: 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

[PATCH] Fix use-after-free in io_wqe_inc_running() due to wq already being free'd

2021-03-15 Thread Jordy Zomer
My syzkaller instance reported a use-after-free bug in io_wqe_inc_running. I tried fixing this by checking if wq isn't NULL in io_wqe_worker. If it does; return an -EFAULT. This because create_io_worker() will clean-up the worker if there's an error. If you want I could send you the syzkaller rep

Re: [GIT pull] locking/urgent for v5.12-rc3

2021-03-15 Thread Peter Zijlstra
On Mon, Mar 15, 2021 at 12:03:21PM -0500, Josh Poimboeuf wrote: > On Mon, Mar 15, 2021 at 01:08:27PM +0100, Peter Zijlstra wrote: > > On Mon, Mar 15, 2021 at 12:26:12PM +0100, Peter Zijlstra wrote: > > > Ooooh, modules don't have this. They still have regular > > > .static_call_sites sections, and

Re: [PATCH] [PATCH] mm, slub: enable slub_debug static key when creating cache with explicit debug flags

2021-03-15 Thread Paul E. McKenney
On Mon, Mar 15, 2021 at 06:36:34PM +0100, Vlastimil Babka wrote: > On 3/15/21 6:32 PM, Paul E. McKenney wrote: > > On Mon, Mar 15, 2021 at 06:28:42PM +0100, Vlastimil Babka wrote: > >> On 3/15/21 6:16 PM, David Rientjes wrote: > >> > On Mon, 15 Mar 2021, Vlastimil Babka wrote: > >> > > >> >> Commi

[tip: x86/cpu] objtool/x86: Use asm/nops.h

2021-03-15 Thread tip-bot2 for Peter Zijlstra
The following commit has been merged into the x86/cpu branch of tip: Commit-ID: 301cddc21a157a3072d789a3097857202e550a24 Gitweb: https://git.kernel.org/tip/301cddc21a157a3072d789a3097857202e550a24 Author:Peter Zijlstra AuthorDate:Fri, 12 Mar 2021 12:32:55 +01:00 Committer:

[tip: x86/cpu] x86: Remove dynamic NOP selection

2021-03-15 Thread tip-bot2 for Peter Zijlstra
The following commit has been merged into the x86/cpu branch of tip: Commit-ID: a89dfde3dc3c2dbf56910af75e2d8b11ec5308f6 Gitweb: https://git.kernel.org/tip/a89dfde3dc3c2dbf56910af75e2d8b11ec5308f6 Author:Peter Zijlstra AuthorDate:Fri, 12 Mar 2021 12:32:54 +01:00 Committer:

Re: [PATCH v1 00/14] Multigenerational LRU

2021-03-15 Thread Dave Hansen
On 3/12/21 11:57 PM, Yu Zhao wrote: > Background > == > DRAM is a major factor in total cost of ownership, and improving > memory overcommit brings a high return on investment. Over the past > decade of research and experimentation in memory overcommit, we > observed a distinct trend across

AW: [RFC v3 04/17] arch_prctl.2: SYNOPSIS: Remove unused includes

2021-03-15 Thread Walter Harms
I have learned the other way around: #include Is a general system header to use that may include the asm/prctrl.h what should never be included by userspace programms. jm2c, re, wh Von: Alejandro Colomar Gesendet: Samstag, 13. März 2021 20:25:14 An: mtk.

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 6:00 PM, Henning Schild wrote: > 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 matchi

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

2021-03-15 Thread Guenter Roeck
On 3/15/21 9:55 AM, Wilken Gottwalt wrote: > 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. U

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

2021-03-15 Thread Mickaël Salaün
On 15/03/2021 17:59, Eric Snowberg wrote: > >> 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 n

[PATCH v6 0/6] Optionally randomize kernel stack offset each syscall

2021-03-15 Thread Kees Cook
v6: - rearrange jump_label and init_on_* changes (akpm) - add slab init_on_* static branches (andreyknvl) v5: https://lore.kernel.org/lkml/20210309214301.678739-1-keesc...@chromium.org/ v4: https://lore.kernel.org/lkml/20200622193146.2985288-1-keesc...@chromium.org/ v3: https://lore.kernel.org/lkml

[PATCH v6 1/6] jump_label: Provide CONFIG-driven build state defaults

2021-03-15 Thread Kees Cook
As shown in jump_label.h[1], choosing the initial state of static branches changes the assembly layout. If the condition is expected to be likely it's inline, and if unlikely it is out of line via a jump. A few places in the kernel use (or could be using) a CONFIG to choose the default state, which

[PATCH v6 2/6] init_on_alloc: Optimize static branches

2021-03-15 Thread Kees Cook
The state of CONFIG_INIT_ON_ALLOC_DEFAULT_ON (and ...ON_FREE...) did not change the assembly ordering of the static branches: they were always out of line. Use the new jump_label macros to check the CONFIG settings to default to the "expected" state, which slightly optimizes the resulting assembly

[PATCH v6 3/6] stack: Optionally randomize kernel stack offset each syscall

2021-03-15 Thread Kees Cook
This provides the ability for architectures to enable kernel stack base address offset randomization. This feature is controlled by the boot param "randomize_kstack_offset=on/off", with its default value set by CONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT. This feature is based on the original idea from

Re: [PATCH v4] mm/vmalloc: randomize vmalloc() allocations

2021-03-15 Thread Uladzislau Rezki
On Mon, Mar 15, 2021 at 06:23:37PM +0200, Topi Miettinen wrote: > On 15.3.2021 17.35, Uladzislau Rezki wrote: > > > On 14.3.2021 19.23, Uladzislau Rezki wrote: > > > > Also, using vmaloc test driver i can trigger a kernel BUG: > > > > > > > > > > > > [ 24.627577] kernel BUG at mm/vmalloc.c:1272

[PATCH v6 4/6] x86/entry: Enable random_kstack_offset support

2021-03-15 Thread Kees Cook
Allow for a randomized stack offset on a per-syscall basis, with roughly 5-6 bits of entropy, depending on compiler and word size. Since the method of offsetting uses macros, this cannot live in the common entry code (the stack offset needs to be retained for the life of the syscall, which means it

[PATCH v6 6/6] lkdtm: Add REPORT_STACK for checking stack offsets

2021-03-15 Thread Kees Cook
For validating the stack offset behavior, report the offset from a given process's first seen stack address. A quick way to measure the entropy: for i in $(seq 1 1000); do echo "REPORT_STACK" >/sys/kernel/debug/provoke-crash/DIRECT done offsets=$(dmesg | grep 'Stack offset' | cut -d: -f3 |

Re: [PATCH] Fix use-after-free in io_wqe_inc_running() due to wq already being free'd

2021-03-15 Thread Pavel Begunkov
On 15/03/2021 17:44, Jordy Zomer wrote: > My syzkaller instance reported a use-after-free bug in io_wqe_inc_running. > I tried fixing this by checking if wq isn't NULL in io_wqe_worker. > If it does; return an -EFAULT. This because create_io_worker() will clean-up > the worker if there's an error.

[PATCH v6 5/6] arm64: entry: Enable random_kstack_offset support

2021-03-15 Thread Kees Cook
Allow for a randomized stack offset on a per-syscall basis, with roughly 5 bits of entropy. (And include AAPCS rationale AAPCS thanks to Mark Rutland.) In order to avoid unconditional stack canaries on syscall entry (due to the use of alloca()), also disable stack protector to avoid triggering nee

RE: [PATCH v11 00/13] SMMUv3 Nested Stage Setup (VFIO part)

2021-03-15 Thread Krishna Reddy
Tested-by: Krishna Reddy > 1) pass the guest stage 1 configuration > 3) invalidate stage 1 related caches Validated Nested SMMUv3 translations for NVMe PCIe device from Guest VM along with patch series "v13 SMMUv3 Nested Stage Setup (IOMMU part)" and QEMU patch series "vSMMUv3/pSMMUv3 2 stage

RE: [PATCH v13 00/15] SMMUv3 Nested Stage Setup (IOMMU part)

2021-03-15 Thread Krishna Reddy
Tested-by: Krishna Reddy > 1) pass the guest stage 1 configuration Validated Nested SMMUv3 translations for NVMe PCIe device from Guest VM along with patch series "v11 SMMUv3 Nested Stage Setup (VFIO part)" and QEMU patch series "vSMMUv3/pSMMUv3 2 stage VFIO integration" from v5.2.0-2stage-rfc

Re: [PATCH 0/2] Do not handle MCLK device clock in simple-card-utils

2021-03-15 Thread Mark Brown
On Mon, Mar 15, 2021 at 11:01:30PM +0530, Sameer Pujar wrote: > With commit 1e30f642cf29 ("ASoC: simple-card-utils: Fix device module clock") > simple-card-utils can control MCLK clock for rate updates or enable/disable. > But this is breaking some platforms where it is expected that codec drivers

Re: [PATCH 1/1] ACPI: fix acpi table use after free

2021-03-15 Thread Rafael J. Wysocki
On Mon, Mar 15, 2021 at 5:19 PM Rafael J. Wysocki wrote: > > On Sun, Mar 14, 2021 at 8:00 PM Mike Rapoport wrote: > > > > On Thu, Mar 11, 2021 at 04:36:31PM +0100, Rafael J. Wysocki wrote: > > > On Wed, Mar 10, 2021 at 8:47 PM David Hildenbrand > > > wrote: > > > > > > > > > > There is some car

Re: [PATCH] Fix use-after-free in io_wqe_inc_running() due to wq already being free'd

2021-03-15 Thread Jordy Zomer
Thank you for your response Pavel! this is the report: Syzkaller hit 'KASAN: use-after-free Write in io_wqe_inc_running' bug. == BUG: KASAN: use-after-free in io_wqe_inc_running+0x82/0xb0 Write of si

Re: [PATCH] ARM: dts: turris-omnia: fix hardware buffer management

2021-03-15 Thread Klaus Kudielka
On 17.02.21 16:30, Rui Salvaterra wrote: Hardware buffer management has never worked on the Turris Omnia, as the required MBus window hadn't been reserved. Fix thusly. Fixes: 018b88eee1a2 ("ARM: dts: turris-omnia: enable HW buffer management") Signed-off-by: Rui Salvaterra Tested-by: Klaus K

RE: [PATCH v2] eeprom/optoe: driver to read/write SFP/QSFP/CMIS EEPROMS

2021-03-15 Thread Don Bollinger
On Mon, 15 Mar 2021 10:40 -0800 Jakub Kicinski wrote: > On Sat, 13 Mar 2021 13:35:56 -0800 Don Bollinger wrote: > > > away parts of the bottom end and replace it with a different KAPI, > > > and nobody will notice? In fact, this is probably how it was > > > designed. Anybody > > > > Actually everyo

Re: [PATCH 0/2] x86: Remove ideal_nops[]

2021-03-15 Thread Peter Zijlstra
On Mon, Mar 15, 2021 at 06:04:41PM +0100, Sedat Dilek wrote: > make V=1 -j4 LLVM=1 LLVM_IAS=1 So for giggles I checked, neither GCC nor LLVM seem to emit prefix NOPs when building with -march=sandybridge, they always use MOPL. Furthermore, the kernel explicitly sets: -falign-jumps=1 -falign-loop

[PATCH] tty: serial: samsung_tty: remove spinlock flags in interrupt handlers

2021-03-15 Thread Krzysztof Kozlowski
Since interrupt handler is called with disabled local interrupts, there is no need to use the spinlock primitives disabling interrupts as well. Suggested-by: Andy Shevchenko Signed-off-by: Krzysztof Kozlowski --- drivers/tty/serial/samsung_tty.c | 15 ++- 1 file changed, 6 insertion

Re: [PATCH] RISC-V: Fix out-of-bounds accesses in init_resources()

2021-03-15 Thread Atish Patra
On Fri, Mar 12, 2021 at 7:46 AM Geert Uytterhoeven wrote: > > init_resources() allocates an array of resources, based on the current > total number of memory regions and reserved memory regions. However, > allocating this array using memblock_alloc() might increase the number > of reserved memory

Re: [PATCH v2 1/2] gcov: fix clang-11+ support

2021-03-15 Thread Nathan Chancellor
On Fri, Mar 12, 2021 at 02:41:31PM -0800, Nick Desaulniers wrote: > LLVM changed the expected function signatures for llvm_gcda_start_file() > and llvm_gcda_emit_function() in the clang-11 release. Users of clang-11 > or newer may have noticed their kernels failing to boot due to a panic > when ena

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

2021-03-15 Thread Geert Uytterhoeven
Hi Heiko, On Mon, Mar 15, 2021 at 5:52 PM Heiko Stübner wrote: > Am Montag, 15. März 2021, 17:38:37 CET schrieb Geert Uytterhoeven: > > 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

Re: [PATCH v2 2/2] gcov: clang: drop support for clang-10 and older

2021-03-15 Thread Nathan Chancellor
On Fri, Mar 12, 2021 at 02:41:32PM -0800, Nick Desaulniers wrote: > LLVM changed the expected function signatures for llvm_gcda_start_file() > and llvm_gcda_emit_function() in the clang-11 release. Drop the older > implementations and require folks to upgrade their compiler if they're > interested

Re: [PATCH] tty: serial: samsung_tty: remove spinlock flags in interrupt handlers

2021-03-15 Thread Andy Shevchenko
On Mon, Mar 15, 2021 at 8:12 PM Krzysztof Kozlowski wrote: > > Since interrupt handler is called with disabled local interrupts, there > is no need to use the spinlock primitives disabling interrupts as well. Thanks! Reviewed-by: Andy Shevchenko > Suggested-by: Andy Shevchenko > Signed-off-by:

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

2021-03-15 Thread Andy Shevchenko
On Mon, Mar 15, 2021 at 5:05 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 pin-contro

Re: [PATCH 2/2] KVM: nSVM: improve SYSENTER emulation on AMD

2021-03-15 Thread Maxim Levitsky
On Mon, 2021-03-15 at 18:56 +0100, Paolo Bonzini wrote: > On 15/03/21 18:43, Maxim Levitsky wrote: > > + if (!guest_cpuid_is_intel(vcpu)) { > > + /* > > +* If hardware supports Virtual VMLOAD VMSAVE then enable it > > +* in VMCB and clear intercepts to avoid #VME

Re: [PATCH][next] drm/amd/pm: Fix spelling mistake "disble" -> "disable"

2021-03-15 Thread Alex Deucher
Applied. Thanks! Alex On Fri, Mar 12, 2021 at 5:08 AM Colin King wrote: > > From: Colin Ian King > > There is a spelling mistake in an assert message. Fix it. > > Signed-off-by: Colin Ian King > --- > drivers/gpu/drm/amd/pm/powerplay/hwmgr/smu7_hwmgr.c | 2 +- > 1 file changed, 1 insertion(+

Re: [PATCH] Net: gtp: Fixed missing blank line after declaration

2021-03-15 Thread Jakub Kicinski
On Sat, 13 Mar 2021 22:21:28 +0530 Chinmayi Shetty wrote: > Signed-off-by: Chinmayi Shetty > --- > drivers/net/gtp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/gtp.c b/drivers/net/gtp.c > index efe5247d8c42..79998f4394e5 100644 > --- a/drivers/net/gtp.c

Re: [PATCH] drm/amd/display: remove redundant initialization of variable result

2021-03-15 Thread Alex Deucher
Applied. Thanks! Alex On Thu, Mar 11, 2021 at 11:34 AM Colin King wrote: > > From: Colin Ian King > > The variable result is being initialized with a value that is > never read and it is being updated later with a new value. The > initialization is redundant and can be removed. > > Addresses-

Re: [PATCH net] wireless/nl80211: fix wdev_id may be used uninitialized

2021-03-15 Thread Jarod Wilson
On Fri, Mar 12, 2021 at 4:04 PM Kalle Valo wrote: > > Jarod Wilson writes: > > > Build currently fails with -Werror=maybe-uninitialized set: > > > > net/wireless/nl80211.c: In function '__cfg80211_wdev_from_attrs': > > net/wireless/nl80211.c:124:44: error: 'wdev_id' may be used > > uninitialized

Re: [PATCH 04/38] dt-bindings: power: supply: bq25890: Convert to DT schema format

2021-03-15 Thread Rob Herring
On Fri, Mar 12, 2021 at 8:44 AM Sebastian Reichel wrote: > > Convert the binding to DT schema format. > > Signed-off-by: Sebastian Reichel > --- > .../bindings/power/supply/bq25890.txt | 60 - > .../bindings/power/supply/bq25890.yaml| 125 ++ > 2 files ch

Re: [PATCH 0/2] x86: Remove ideal_nops[]

2021-03-15 Thread Sedat Dilek
On Mon, Mar 15, 2021 at 7:10 PM Peter Zijlstra wrote: > > On Mon, Mar 15, 2021 at 06:04:41PM +0100, Sedat Dilek wrote: > > > make V=1 -j4 LLVM=1 LLVM_IAS=1 > > So for giggles I checked, neither GCC nor LLVM seem to emit prefix NOPs > when building with -march=sandybridge, they always use MOPL. > >

Re: [PATCH] perf-stat: introduce bperf, share hardware PMCs with BPF

2021-03-15 Thread Song Liu
> On Mar 15, 2021, at 7:09 AM, Jiri Olsa wrote: > > On Mon, Mar 15, 2021 at 07:51:11AM +, Song Liu wrote: > > SNIP [...] >> >> It is mostly to cover corner cases, like something else used the same >> name. > > about that.. we just take the object fd assuming it's map, > should we te

Re: [PATCH 08/38] dt-bindings: power: supply: bq24735: Convert to DT schema format

2021-03-15 Thread Rob Herring
On Fri, Mar 12, 2021 at 8:44 AM Sebastian Reichel wrote: > > Convert the binding to DT schema format. > > Signed-off-by: Sebastian Reichel > --- > .../bindings/power/supply/bq24735.yaml| 88 +++ > .../bindings/power/supply/ti,bq24735.txt | 39 > 2 files chan

Re: [PATCH v3] docs: usbip: Fix major fields and descriptions in protocol

2021-03-15 Thread Randy Dunlap
Hi, Some comments inline. On 3/15/21 1:40 AM, Hongren Zheng (Zenithal) wrote: > The old document for usbip protocol is misleading and hard to read: > * Some fields in header are incorrect > * Explanation of some fields are unclear or even wrong > * Padding of header (namely all headers have

Re: [PATCH V2] drm: amd: pm: Mundane typo fixes in the file amdgpu_pm.c

2021-03-15 Thread Alex Deucher
On Sun, Mar 14, 2021 at 11:22 PM Bhaskar Chowdhury wrote: > > > s/"an minimum"/"a minimum"/ > s/"an maxmum"/"a maximum"/ > > Signed-off-by: Bhaskar Chowdhury Applied. Thanks! Alex > --- > Changes from V1: > Randy's suggestion to adjust the subject line text > And missed out a spell too,w

[PATCH v2 0/4] Fix RCU warnings in TDP MMU

2021-03-15 Thread Ben Gardon
The Linux Test Robot found a few RCU warnings in the TDP MMU: https://www.spinics.net/lists/kernel/msg3845500.html https://www.spinics.net/lists/kernel/msg3845521.html Fix these warnings and cleanup a hack in tdp_mmu_iter_cond_resched. Tested by compiling as suggested in the test robot report and

[PATCH v2 1/4] KVM: x86/mmu: Fix RCU usage in handle_removed_tdp_mmu_page

2021-03-15 Thread Ben Gardon
The pt passed into handle_removed_tdp_mmu_page does not need RCU protection, as it is not at any risk of being freed by another thread at that point. However, the implicit cast from tdp_sptep_t to u64 * dropped the __rcu annotation without a proper rcu_derefrence. Fix this by passing the pt as a td

Re: [PATCH] drm/amd/display: Remove unnecessary conversion to bool

2021-03-15 Thread Alex Deucher
Applied. Thanks! Alex On Mon, Mar 15, 2021 at 4:22 AM Jiapeng Chong wrote: > > Fix the following coccicheck warnings: > > ./drivers/gpu/drm/amd/display/dc/dcn30/dcn30_mpc.c:358:69-74: WARNING: > conversion to bool not needed here. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong >

[PATCH v2 4/4] KVM: x86/mmu: Store the address space ID in the TDP iterator

2021-03-15 Thread Ben Gardon
Store the address space ID in the TDP iterator so that it can be retrieved without having to bounce through the root shadow page. This streamlines the code and fixes a Sparse warning about not properly using rcu_dereference() when grabbing the ID from the root on the fly. Reported-by: kernel test

[PATCH v2 3/4] KVM: x86/mmu: Factor out tdp_iter_return_to_root

2021-03-15 Thread Ben Gardon
In tdp_mmu_iter_cond_resched there is a call to tdp_iter_start which causes the iterator to continue its walk over the paging structure from the root. This is needed after a yield as paging structure could have been freed in the interim. The tdp_iter_start call is not very clear and something of a

[PATCH v2 2/4] KVM: x86/mmu: Fix RCU usage when atomically zapping SPTEs

2021-03-15 Thread Ben Gardon
Fix a missing rcu_dereference in tdp_mmu_zap_spte_atomic. Reported-by: kernel test robot Signed-off-by: Ben Gardon --- arch/x86/kvm/mmu/tdp_mmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/mmu/tdp_mmu.c b/arch/x86/kvm/mmu/tdp_mmu.c index db2936cca4bf..946da

Re: [PATCH 11/38] dt-bindings: power: supply: sbs-manager: Convert to DT schema format

2021-03-15 Thread Rob Herring
On Fri, Mar 12, 2021 at 8:45 AM Sebastian Reichel wrote: > > Convert the binding to DT schema format. > > Signed-off-by: Sebastian Reichel > --- > .../bindings/power/supply/sbs,sbs-manager.txt | 66 --- > .../power/supply/sbs,sbs-manager.yaml | 111 ++ > 2 files

Re: [PATCH v2] PCI: Run platform power transition on initial D0 entry

2021-03-15 Thread Maximilian Luz
On 3/15/21 4:34 PM, Rafael J. Wysocki wrote: On Sun, Mar 14, 2021 at 1:06 AM Maximilian Luz wrote: On some devices and platforms, the initial platform (e.g. ACPI) power state is not in sync with the power state of the PCI device. This seems like it is, for all intents and purposes, an issue w

Re: [PATCH] perf-stat: introduce bperf, share hardware PMCs with BPF

2021-03-15 Thread Song Liu
> On Mar 15, 2021, at 8:34 AM, Andi Kleen wrote: > >> I still think that there is value in taking those measurements after we >> enable the counters, as, for instance, for interval mode we want >> measurements with the counters enabled, whatever happens before the >> counters are enabled is ju

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

2021-03-15 Thread kernel test robot
Hi Vitaly, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on sound/for-next] [also build test WARNING on next-20210315] [cannot apply to v5.12-rc3] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to

Re: [PATCH] dt-bindings: spi: Convert Freescale DSPI to json schema

2021-03-15 Thread Pratyush Yadav
+Cc mtd list Hi, On 15/03/21 05:45PM, Kuldeep Singh wrote: > Convert the Freescale DSPI binding to DT schema format using json-schema. > > Signed-off-by: Kuldeep Singh > --- > Hi Rob, > This patch is checked with following commands with no warnings observed. > make distclean; make allmodconfig;

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

2021-03-15 Thread Wolfram Sang
On Mon, Mar 15, 2021 at 05:09:03PM +0100, Mark Jonas wrote: > 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

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

2021-03-15 Thread Raphael Norwitz
On Mon, Mar 15, 2021 at 10:29:50AM -0600, Alex Williamson wrote: > 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 > > >

Re: [PATCH 4/5] arm64: dts: allwinner: Add sun4i MMIO timer nodes

2021-03-15 Thread Jernej Škrabec
Hi! Dne ponedeljek, 15. marec 2021 ob 05:32:49 CET je Samuel Holland napisal(a): > For a CPU to enter an idle state, there must be some timer which can > trigger an IRQ to wake it back up. The local ARM architectural timer is > not sufficient, because that timer stops when the CPU is powered down.

Re: [PATCH 16/38] dt-bindings: power: supply: tps65217: Convert to DT schema format

2021-03-15 Thread Rob Herring
On Fri, Mar 12, 2021 at 8:44 AM Sebastian Reichel wrote: > > Convert the binding to DT schema format. > > Signed-off-by: Sebastian Reichel > --- > .../power/supply/tps65217-charger.yaml| 43 +++ > .../power/supply/tps65217_charger.txt | 17 > 2 files chan

Re: [Patch v3 1/2] cgroup: sev: Add misc cgroup controller

2021-03-15 Thread Michal Koutný
On Fri, Mar 12, 2021 at 11:07:14AM -0800, Vipin Sharma wrote: > We should be fine without atomic64_t because we are using unsigned > long and not 64 bit explicitly. This will work on both 32 and 64 bit > machines. I see. > But I will add READ_ONCE and WRITE_ONCE because of potential chances of >

[PATCHv2 0/4] Enable various hardware blocks on SC7280 SoC

2021-03-15 Thread Sai Prakash Ranjan
This series enables various hardware blocks such as LLCC, IPCC, AOSS QMP and Coresight on SC7280 SoC. Changes in v2: * Rename qmp to power-controller (Stephen) * Drop the ipcc mailbox dt-binding from this series and send it separately * Collect review tags Sai Prakash Ranjan (4): arm64: dts:

[PATCHv2 2/4] arm64: dts: qcom: sc7280: Add IPCC for SC7280 SoC

2021-03-15 Thread Sai Prakash Ranjan
Add the IPCC DT node which is used to send and receive IPC signals with remoteprocs for SC7280 SoC. Cc: Manivannan Sadhasivam Cc: Jassi Brar Signed-off-by: Sai Prakash Ranjan Reviewed-by: Manivannan Sadhasivam Reviewed-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 10 ++

[PATCHv2 1/4] arm64: dts: qcom: sc7280: Add device tree node for LLCC

2021-03-15 Thread Sai Prakash Ranjan
Add a DT node for Last level cache (aka. system cache) controller which provides control over the last level cache present on SC7280 SoC. Signed-off-by: Sai Prakash Ranjan Reviewed-by: Stephen Boyd --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCHv2 4/4] arm64: dts: qcom: sc7280: Add Coresight support

2021-03-15 Thread Sai Prakash Ranjan
Add coresight components found on SC7280 SoC. Cc: Mathieu Poirier Cc: Suzuki K Poulose Cc: Mike Leach Cc: Leo Yan Signed-off-by: Sai Prakash Ranjan --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 489 +++ 1 file changed, 489 insertions(+) diff --git a/arch/arm64/boot/dts/

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