[PATCH 11/14] ARM: dts: stm32: define SCMI resources on stm32mp15

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez Platform stm32mp15 relies on SCMI resources (clocks and reset domains). This change adds SCMI resources description in the platform device tree. SCMI resources uses a mailbox based on some shared memory and a SMC mailbox notification. SCMI0 exposes clocks and reset contro

[PATCH 12/14] ARM: dts: stm32: move clocks/resets to SCMI resources for stm32mp15

2021-01-22 Thread gabriel.fernandez
From: Gabriel Fernandez This change reflects board hardware configuration where RCC security features are configured for RCC[TZEN]=1 and RCC[MCKPROT]=0, that is RCC TrustZone is hardened and RCC MCKPROT is disabled. Clock and reset controllers that relate to SoC secure resources are moved from a

Re: [PATCH v9 00/16] dmaengine: dw-axi-dmac: support Intel KeemBay AxiDMA

2021-01-22 Thread Eugeniy Paltsev
Hi Sia Jee Heng, resending tags as they weren't delivered to 'dmaeng...@vger.kernel.org' list: Reviewed-by: Eugeniy Paltsev I've runtime tested this series on HSDK SoC/board, so Tested-by: Eugeniy Paltsev ---  Eugeniy Paltsev From: Sia Jee Heng Sent: Tuesday, January 5, 2021 03:42 To: vk..

Re: Fail to boot qemu xlnx-zcu102 due to lot of drivers not probing

2021-01-22 Thread Edgar E. Iglesias
On Fri, Jan 22, 2021 at 10:52:18AM +0100, Michal Simek wrote: > Hi, > > On 1/22/21 10:24 AM, Corentin Labbe wrote: > > Hello > > > > With at least qemu 5.1.0 (and later), the xlnx-zcu102 machine boot lead to > > a panic due to missing console. > > qemu-system-aarch64 -kernel Image -nographic -ma

[PATCH v3 2/2] vfio/iommu_type1: Fix some sanity checks in detach group

2021-01-22 Thread Keqian Zhu
vfio_sanity_check_pfn_list() is used to check whether pfn_list and notifier are empty when remove the external domain, so it makes a wrong assumption that only external domain will use the pinning interface. Now we apply the pfn_list check when a vfio_dma is removed and apply the notifier check wh

Re: [PATCH] mmc: sdhci-of-aspeed: Fix kunit-related build error

2021-01-22 Thread Ulf Hansson
On Fri, 22 Jan 2021 at 04:23, Andrew Jeffery wrote: > > Randy found that with the following Kconfig settings we have duplicate > definitions (e.g. __inittest()) in sdhci-of-aspeed due to competing > module_init()/module_exit() calls from kunit and driver the itself. > > ``` > CONFIG_MMC_SDHCI_OF_A

[PATCH v3 0/2] vfio/iommu_type1: some fixes

2021-01-22 Thread Keqian Zhu
v3: - Populate bitmap unconditionally. - Sanity check notifier when remove all domains. v2: - Address suggestions from Alex. - Remove unnecessary patches. Keqian Zhu (2): vfio/iommu_type1: Populate full dirty when detach non-pinned group vfio/iommu_type1: Fix some sanity checks in detac

[PATCH v3 1/2] vfio/iommu_type1: Populate full dirty when detach non-pinned group

2021-01-22 Thread Keqian Zhu
If a group with non-pinned-page dirty scope is detached with dirty logging enabled, we should fully populate the dirty bitmaps at the time it's removed since we don't know the extent of its previous DMA, nor will the group be present to trigger the full bitmap when the user retrieves the dirty bitm

[PATCH v8 00/18] HSM driver for ACRN hypervisor

2021-01-22 Thread shuo . a . liu
From: Shuo Liu ACRN is a Type 1 reference hypervisor stack, running directly on the bare-metal hardware, and is suitable for a variety of IoT and embedded device solutions. ACRN implements a hybrid VMM architecture, using a privileged Service VM. The Service VM manages the system resources (CPU,

[PATCH 1/2] MIPS: jazz: always allow little-endian builds

2021-01-22 Thread Arnd Bergmann
From: Arnd Bergmann The kernel test robot keeps reporting the same bug when it shows up in new files after random unrelated patches: In file included from arch/mips/include/uapi/asm/byteorder.h:13, from arch/mips/include/asm/bitops.h:20, from include/linux/bitop

[PATCH v8 11/18] virt: acrn: Introduce interfaces for PCI device passthrough

2021-01-22 Thread shuo . a . liu
From: Shuo Liu PCI device passthrough enables an OS in a virtual machine to directly access a PCI device in the host. It promises almost the native performance, which is required in performance-critical scenarios of ACRN. HSM provides the following ioctls: - Assign - ACRN_IOCTL_ASSIGN_PCIDEV

[PATCH 2/2] MIPS: make kgdb depend on FPU support

2021-01-22 Thread Arnd Bergmann
From: Arnd Bergmann kgdb fails to build when the FPU support is disabled: arch/mips/kernel/kgdb.c: In function 'dbg_set_reg': arch/mips/kernel/kgdb.c:147:35: error: 'struct thread_struct' has no member named 'fpu' 147 |memcpy((void *)¤t->thread.fpu.fcr31, mem, |

[PATCH v8 17/18] virt: acrn: Introduce an interface for Service VM to control vCPU

2021-01-22 Thread shuo . a . liu
From: Shuo Liu ACRN supports partition mode to achieve real-time requirements. In partition mode, a CPU core can be dedicated to a vCPU of User VM. The local APIC of the dedicated CPU core can be passthrough to the User VM. The Service VM controls the assignment of the CPU cores. Introduce an in

[PATCH v8 09/18] virt: acrn: Introduce I/O request management

2021-01-22 Thread shuo . a . liu
From: Shuo Liu An I/O request of a User VM, which is constructed by the hypervisor, is distributed by the ACRN Hypervisor Service Module to an I/O client corresponding to the address range of the I/O request. For each User VM, there is a shared 4-KByte memory region used for I/O requests communi

[PATCH v8 13/18] virt: acrn: Introduce interfaces to query C-states and P-states allowed by hypervisor

2021-01-22 Thread shuo . a . liu
From: Shuo Liu The C-states and P-states data are used to support CPU power management. The hypervisor controls C-states and P-states for a User VM. ACRN userspace need to query the data from the hypervisor to build ACPI tables for a User VM. HSM provides ioctls for ACRN userspace to query C-st

[PATCH v8 10/18] virt: acrn: Introduce PCI configuration space PIO accesses combiner

2021-01-22 Thread shuo . a . liu
From: Shuo Liu A User VM can access its virtual PCI configuration spaces via port IO approach, which has two following steps: 1) writes address into port 0xCF8 2) put/get data in/from port 0xCFC To distribute a complete PCI configuration space access one time, HSM need to combine such two acce

[PATCH v8 16/18] virt: acrn: Introduce irqfd

2021-01-22 Thread shuo . a . liu
From: Shuo Liu irqfd is a mechanism to inject a specific interrupt to a User VM using a decoupled eventfd mechanism. Vhost is a kernel-level virtio server which uses eventfd for interrupt injection. To support vhost on ACRN, irqfd is introduced in HSM. HSM provides ioctls to associate a virtual

[PATCH v8 15/18] virt: acrn: Introduce ioeventfd

2021-01-22 Thread shuo . a . liu
From: Shuo Liu ioeventfd is a mechanism to register PIO/MMIO regions to trigger an eventfd signal when written to by a User VM. ACRN userspace can register any arbitrary I/O address with a corresponding eventfd and then pass the eventfd to a specific end-point of interest for handling. Vhost is

[PATCH v8 01/18] docs: acrn: Introduce ACRN

2021-01-22 Thread shuo . a . liu
From: Shuo Liu Add documentation on the following aspects of ACRN: 1) A brief introduction on the architecture of ACRN. 2) I/O request handling in ACRN. 3) CPUID functions of ACRN. To learn more about ACRN, please go to ACRN project website https://projectacrn.org, or the documentation pa

[PATCH v8 14/18] virt: acrn: Introduce I/O ranges operation interfaces

2021-01-22 Thread shuo . a . liu
From: Shuo Liu An I/O request of a User VM, which is constructed by hypervisor, is distributed by the ACRN Hypervisor Service Module to an I/O client corresponding to the address range of the I/O request. I/O client maintains a list of address ranges. Introduce acrn_ioreq_range_{add,del}() to ma

[PATCH v8 18/18] sample/acrn: Introduce a sample of HSM ioctl interface usage

2021-01-22 Thread shuo . a . liu
From: Shuo Liu Launch a simple guest (with several instructions as payload) on ACRN with demonstration ioctl usage. Signed-off-by: Shuo Liu --- samples/acrn/Makefile| 12 samples/acrn/guest.ld| 9 +++ samples/acrn/payload.ld | 9 +++ samples/acrn/vm-sample.c | 136 ++

Re: [PATCH v2 03/12] ASoC: arizona-jack: Fix some issues when HPDET IRQ fires after the jack has been unplugged

2021-01-22 Thread Charles Keepax
On Sun, Jan 17, 2021 at 05:05:46PM +0100, Hans de Goede wrote: > When the jack is partially inserted and then removed again it may be > removed while the hpdet code is running. In this case the following > may happen: > > 1. The "JACKDET rise" or ""JACKDET fall" IRQ triggers > 2. arizona_jackdet r

Re: [PATCHv2] lockdep: report broken irq restoration

2021-01-22 Thread Mark Rutland
Hi all, Any thoughts on this? I'd like to get this in soon if we could as it'll help to flush out any remaining issues that are liable to get in the way of planned rework for arm64 and x86. Thomas, are you happy to pick this? Thanks, Mark. On Mon, Jan 11, 2021 at 03:37:07PM +, Mark Rutland

Re: [PATCH RESEND V11 0/7] fuse: Add support for passthrough read/write

2021-01-22 Thread Alessio Balsini
On Tue, Jan 19, 2021 at 12:34:23PM +, Alessio Balsini wrote: > On Tue, Jan 19, 2021 at 07:06:54PM +0800, Rokudo Yan wrote: > > on Mon, Jan 18, 2021 at 5:27 PM Alessio Balsini wrote: > > > > > > This is the 11th version of the series, rebased on top of v5.11-rc4. > > > Please find the changelog

[PATCH v8 12/18] virt: acrn: Introduce interrupt injection interfaces

2021-01-22 Thread shuo . a . liu
From: Shuo Liu ACRN userspace need to inject virtual interrupts into a User VM in devices emulation. HSM needs provide interfaces to do so. Introduce following interrupt injection interfaces: ioctl ACRN_IOCTL_SET_IRQLINE: Pass data from userspace to the hypervisor, and inform the hypervisor

[PATCH v3] kdb: Make memory allocations more robust

2021-01-22 Thread Sumit Garg
Currently kdb uses in_interrupt() to determine whether its library code has been called from the kgdb trap handler or from a saner calling context such as driver init. This approach is broken because in_interrupt() alone isn't able to determine kgdb trap handler entry from normal task context. This

Re: [Linux-stm32] [PATCH] iio: adc: stm32-adc: enable timestamping for non-DMA usage

2021-01-22 Thread Ahmad Fatoum
Hi, On 22.01.21 11:23, Fabrice Gasnier wrote: > On 1/21/21 7:02 PM, Ahmad Fatoum wrote: >> For non-DMA usage, we have an easy way to associate a timestamp with a >> sample: iio_pollfunc_store_time stores a timestamp in the primary >> trigger IRQ handler and stm32_adc_trigger_handler runs in the IR

[PATCH resend] ext: EXT4_KUNIT_TESTS should depend on EXT4_FS instead of selecting it

2021-01-22 Thread Geert Uytterhoeven
EXT4_KUNIT_TESTS selects EXT4_FS, thus enabling an optional feature the user may not want to enable. Fix this by making the test depend on EXT4_FS instead. Fixes: 1cbeab1b242d16fd ("ext4: add kunit test for decoding extended timestamps") Signed-off-by: Geert Uytterhoeven --- Discussion after pr

[PATCH v8 04/18] x86/acrn: Introduce hypercall interfaces

2021-01-22 Thread shuo . a . liu
From: Shuo Liu The Service VM communicates with the hypervisor via conventional hypercalls. VMCALL instruction is used to make the hypercalls. ACRN hypercall ABI: * Hypercall number is in R8 register. * Up to 2 parameters are in RDI and RSI registers. * Return value is in RAX register. In

Re: [PATCH v6] drm/bridge: add it6505 driver

2021-01-22 Thread Andrzej Hajda
Hi Allen, Sorry for long delay. W dniu 08.12.2020 o 11:58, allen pisze: > This adds support for the iTE IT6505. > This device can convert DPI signal to DP output. > > From: Allen Chen > Signed-off-by: Jitao Shi > Signed-off-by: Pi-Hsun Shih > Signed-off-by: Yilun Lin > Signed-off-by: Hermes W

[PATCH v8 07/18] virt: acrn: Introduce an ioctl to set vCPU registers state

2021-01-22 Thread shuo . a . liu
From: Shuo Liu A virtual CPU of User VM has different context due to the different registers state. ACRN userspace needs to set the virtual CPU registers state (e.g. giving a initial registers state to a virtual BSP of a User VM). HSM provides an ioctl ACRN_IOCTL_SET_VCPU_REGS to do the virtual

[PATCH v8 06/18] virt: acrn: Introduce VM management interfaces

2021-01-22 Thread shuo . a . liu
From: Shuo Liu The VM management interfaces expose several VM operations to ACRN userspace via ioctls. For example, creating VM, starting VM, destroying VM and so on. The ACRN Hypervisor needs to exchange data with the ACRN userspace during the VM operations. HSM provides VM operation ioctls to

[PATCH v8 05/18] virt: acrn: Introduce ACRN HSM basic driver

2021-01-22 Thread shuo . a . liu
From: Shuo Liu ACRN Hypervisor Service Module (HSM) is a kernel module in Service VM which communicates with ACRN userspace through ioctls and talks to ACRN Hypervisor through hypercalls. Add a basic HSM driver which allows Service VM userspace to communicate with ACRN. The following patches wil

Re: [PATCH v2 06/12] ASoC: arizona-jack: Move jack-detect variables to struct arizona_priv

2021-01-22 Thread Charles Keepax
On Sun, Jan 17, 2021 at 05:05:49PM +0100, Hans de Goede wrote: > Move all the jack-detect variables from struct arizona_extcon_info to > struct arizona_priv. > > This is part of a patch series converting the arizona extcon driver into > a helper library for letting the arizona codec-drivers direct

[PATCH v8 08/18] virt: acrn: Introduce EPT mapping management

2021-01-22 Thread shuo . a . liu
From: Shuo Liu The HSM provides hypervisor services to the ACRN userspace. While launching a User VM, ACRN userspace needs to allocate memory and request the ACRN Hypervisor to set up the EPT mapping for the VM. A mapping cache is introduced for accelerating the translation between the Service V

[PATCH] floppy: reintroduce O_NDELAY fix

2021-01-22 Thread Jiri Kosina
From: Jiri Kosina This issue was originally fixed in 09954bad4 ("floppy: refactor open() flags handling"). The fix as a side-effect, however, introduce issue for open(O_ACCMODE) that is being used for ioctl-only open. I wrote a fix for that, but instead of it being merged, full revert of 0995

[PATCH for device-mapper/for-next] dm integrity: follow ReST formatting

2021-01-22 Thread Lukas Bulwahn
Commit 61b8b2a834bf ("dm integrity: introduce the "fix_hmac" argument") adds some new part to dm-integrity.rst, but this causes make htmldocs warn: dm-integrity.rst:192: WARNING: Unexpected indentation. dm-integrity.rst:193: WARNING: Block quote ends without a blank line; \ unexpected unin

[PATCH] KVM: x86/mmu: improve robustness of some functions

2021-01-22 Thread Stephen Zhang
If the name of this function changes, you can easily forget to modify the code in the corresponding place. In fact, such errors already exist in spte_write_protect and spte_clear_dirty. Signed-off-by: Stephen Zhang --- arch/x86/kvm/mmu/mmu.c | 16 1 file changed, 8 insertions(+

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

2021-01-22 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 v4: no changes --- drivers/mfd/mt6358-irq.c| 65 +++-- include/linux/mfd/mt6358/core.h | 8 ++-- 2 files changed

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

2021-01-22 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 v4: - add the regulators_node support. --- drivers/regulator/mt6359-regulator.c | 379 - include/linux/mfd/mt6359p/regis

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

2021-01-22 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 v4: no changes --- drivers/rtc/rtc-mt6397.c | 2 +- include/linux/mfd/mt6397/rtc.h | 1 + 2 files changed, 2 insertions(+), 1 de

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

2021-01-22 Thread Hsin-Hsiung Wang
This adds compatible for the MediaTek MT6359 PMIC. Signed-off-by: Hsin-Hsiung Wang --- changes since v4: - remove unused compatible name. --- Documentation/devicetree/bindings/mfd/mt6397.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/mfd/mt6397.txt b/D

Re: [PATCH net-next 2/2] udp: allow forwarding of plain (non-fraglisted) UDP GRO packets

2021-01-22 Thread Alexander Lobakin
From: Willem de Bruijn Date: Thu, 21 Jan 2021 21:47:47 -0500 > On Mon, Jan 18, 2021 at 2:33 PM Alexander Lobakin wrote: > > > > Commit 9fd1ff5d2ac7 ("udp: Support UDP fraglist GRO/GSO.") actually > > not only added a support for fraglisted UDP GRO, but also tweaked > > some logics the way that n

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

2021-01-22 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 v4: - add pmic MT6359 support in the MT8192 evb dts. --- arch/arm64/boot/dts/mediatek/mt6359.dtsi| 298 arch/arm64/boot/dts/

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

2021-01-22 Thread Hsin-Hsiung Wang
add dt-binding document for MediaTek MT6359 PMIC Signed-off-by: Hsin-Hsiung Wang --- changes since v4: fix yamllint errors in dt-binding document. --- .../bindings/regulator/mt6359-regulator.yaml | 169 ++ 1 file changed, 169 insertions(+) create mode 100644 Documentation/devi

Re: [PATCH v5 6/6] kasan: Forbid kunit tests when async mode is enabled

2021-01-22 Thread Vincenzo Frascino
On 1/21/21 5:40 PM, Andrey Konovalov wrote: >> diff --git a/lib/test_kasan.c b/lib/test_kasan.c >> index 7285dcf9fcc1..1306f707b4fe 100644 >> --- a/lib/test_kasan.c >> +++ b/lib/test_kasan.c >> @@ -52,6 +52,11 @@ static int kasan_test_init(struct kunit *test) >> return -1; >>

Re: [PATCH v5 2/6] kasan: Add KASAN mode kernel parameter

2021-01-22 Thread Vincenzo Frascino
On 1/21/21 5:34 PM, Andrey Konovalov wrote: >> +- ``kasan.mode=sync`` or ``=async`` controls whether KASAN is configured in >> + synchronous or asynchronous mode of execution (default: ``sync``). >> + ``synchronous mode``: an exception is triggered if a tag check fault >> occurs. > Synchronou

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

2021-01-22 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 v4: - add enable ti

Re: [PATCH] net: macb: ignore tx_clk if MII is used

2021-01-22 Thread Michael Walle
Am 2021-01-22 10:10, schrieb claudiu.bez...@microchip.com: On 21.01.2021 11:41, Michael Walle wrote: EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe Hi Claudiu, Am 2021-01-21 10:19, schrieb claudiu.bez...@microchip.com: On 20.01.2021 21:43, Michael

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

2021-01-22 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 v5 5/8] mfd: Add support for the MediaTek MT6359 PMIC

2021-01-22 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

Re: [PATCH v5 4/6] arm64: mte: Enable async tag check fault

2021-01-22 Thread Vincenzo Frascino
On 1/21/21 5:38 PM, Andrey Konovalov wrote: >> + if (unlikely(tfsr_el1 & SYS_TFSR_EL1_TF1)) { >> + /* >> +* Note: isb() is not required after this direct write >> +* because there is no indirect read subsequent to it >> +* (per

Re: [PATCH] ASoC: qcom: Fix number of HDMI RDMA channels on sc7180

2021-01-22 Thread Srinivasa Rao Mandadapu
Hi Mark and Boyd, Thanks for your time on this issue. In my opinion, It 's better not to apply this patch. I will post patch with changing size in sc7180.dtsi file. On 1/22/2021 1:09 AM, Mark Brown wrote: On Fri, 15 Jan 2021 12:33:29 -0800, Stephen Boyd wrote: Suspending/resuming with an HD

[PATCH v3 2/2] counter: add GPIO based pulse counters

2021-01-22 Thread Oleksij Rempel
Add simple GPIO base pulse counter. This device is used to measure rotation speed of some agricultural devices, so no high frequency on the counter pin is expected. The maximal measurement frequency depends on the CPU and system load. On the idle iMX6S I was able to measure up to 20kHz without cou

[PATCH v2 0/2] add support for GPIO based counter

2021-01-22 Thread Oleksij Rempel
changes v3: - convert counter to atomic_t changes v2: - add commas - avoid possible unhandled interrupts in the enable path - do not use of_ specific gpio functions Add support for GPIO based pulse counter. For now it can only count pulses. With counter char device support, we will be able to att

Re: [RFC PATCH v3 13/16] cxl/mem: Create concept of enabled commands

2021-01-22 Thread Jonathan Cameron
On Thu, 21 Jan 2021 10:40:41 -0800 Ben Widawsky wrote: > On 21-01-14 17:25:31, Jonathan Cameron wrote: > > On Mon, 11 Jan 2021 14:51:18 -0800 > > Ben Widawsky wrote: > > > > > CXL devices must implement the Device Command Interface (described in > > > 8.2.9 of the CXL 2.0 spec). While the dri

[PATCH] drivers: spi: spi-au1550: quoted string break

2021-01-22 Thread corentin
Signed-off-by: corentin --- drivers/spi/spi-au1550.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/spi/spi-au1550.c b/drivers/spi/spi-au1550.c index dfb7196f4caf..cbb6604ba8f7 100644 --- a/drivers/spi/spi-au1550.c +++ b/drivers/spi/spi-au1550.c @@ -447,8

Re: [PATCH v2 08/12] ASoC: arizona-jack: convert into a helper library for codec drivers

2021-01-22 Thread Charles Keepax
On Thu, Jan 21, 2021 at 05:55:00PM +0100, Hans de Goede wrote: > Hi, > > On 1/19/21 10:51 AM, Richard Fitzgerald wrote: > > On 18/01/2021 17:24, Andy Shevchenko wrote: > >> On Sun, Jan 17, 2021 at 6:06 PM Hans de Goede wrote: > >>> > >>> Convert the arizona extcon driver into a helper library for

[PATCH v3 1/2] dt-bindings: counter: add gpio-pulse-counter binding

2021-01-22 Thread Oleksij Rempel
Add binding for GPIO based pulse counter node Signed-off-by: Oleksij Rempel --- .../bindings/counter/gpio-pulse-counter.yaml | 39 +++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/counter/gpio-pulse-counter.yaml diff --git a/Documentat

Re: [PATCH v7] pgo: add clang's Profile Guided Optimization infrastructure

2021-01-22 Thread Sedat Dilek
On Fri, Jan 22, 2021 at 11:12 AM 'Bill Wendling' via Clang Built Linux wrote: > > From: Sami Tolvanen > > Enable the use of clang's Profile-Guided Optimization[1]. To generate a > profile, the kernel is instrumented with PGO counters, a representative > workload is run, and the raw profile data i

Re: [PATCH] uacce: Add uacce_ctrl misc device

2021-01-22 Thread Zhou Wang
On 2021/1/21 17:44, Greg Kroah-Hartman wrote: > On Thu, Jan 21, 2021 at 05:09:14PM +0800, Zhou Wang wrote: >> When IO page fault happens, DMA performance will be affected. Pin user page >> can avoid IO page fault, this patch introduces a new char device named >> /dev/uacce_ctrl to help to maintain

[PATCH v2] iio: adc: stm32-adc: enable timestamping for non-DMA usage

2021-01-22 Thread Ahmad Fatoum
For non-DMA usage, we have an easy way to associate a timestamp with a sample: iio_pollfunc_store_time stores a timestamp in the primary trigger IRQ handler and stm32_adc_trigger_handler runs in the IRQ thread to push out the buffer along with the timestamp. For this to work, the driver needs to r

Re: [PATCH 1/3] kvfree_rcu: Allocate a page for a single argument

2021-01-22 Thread Sebastian Andrzej Siewior
On 2021-01-21 13:38:34 [+0100], Uladzislau Rezki wrote: > __get_free_page() returns "unsigned long" whereas a bnode is a pointer > to kvfree_rcu_bulk_data struct, without a casting the compiler will > emit a warning. Yes, learned about it, sorry. > >> You think that a CPU migration is a bad thing

Re: [PATCH v1] trace: Fix race in trace_open and buffer resize call

2021-01-22 Thread Gaurav Kohli
On 1/22/2021 4:29 PM, Greg KH wrote: On Thu, Jan 21, 2021 at 03:37:32PM -0500, Steven Rostedt wrote: On Thu, 21 Jan 2021 23:15:22 +0300 Denis Efremov wrote: On 1/21/21 10:09 PM, Steven Rostedt wrote: On Thu, 21 Jan 2021 17:30:40 +0300 Denis Efremov wrote: Hi, This patch (CVE-2020-2

Re: [PATCH] uacce: Add uacce_ctrl misc device

2021-01-22 Thread Greg Kroah-Hartman
On Fri, Jan 22, 2021 at 07:33:40PM +0800, Zhou Wang wrote: > >> +struct uacce_pin_address { > >> + unsigned long addr; > >> + unsigned long size; > > > > These are not valid ioctl structure members for crossing the user/kernel > > boundry. Please make them work properly (i.e. use __u64 and frie

Re: [PATCH v4] ovl: fix dentry leak in ovl_get_redirect

2021-01-22 Thread Miklos Szeredi
On Fri, Jan 22, 2021 at 6:59 AM Joseph Qi wrote: > > Hi Miklos, > > Any comments on this patch? Queued for 5.11. Thanks. Miklos

Re: [PATCH] net: macb: ignore tx_clk if MII is used

2021-01-22 Thread Claudiu.Beznea
On 22.01.2021 13:20, Michael Walle wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > Am 2021-01-22 10:10, schrieb claudiu.bez...@microchip.com: >> On 21.01.2021 11:41, Michael Walle wrote: >>> EXTERNAL EMAIL: Do not click links or open atta

Re: [PATCH 1/3] kvfree_rcu: Allocate a page for a single argument

2021-01-22 Thread Sebastian Andrzej Siewior
On 2021-01-20 13:54:03 [-0800], Paul E. McKenney wrote: > > > +// Record ptr in a page managed by krcp, with the pre-krc_this_cpu_lock() > > > +// state specified by flags. If can_alloc is true, the caller must > > > +// be schedulable and not be holding any locks or mutexes that might be > > > +/

Re: rcu-torture: Internal error: Oops: 96000006

2021-01-22 Thread Vincenzo Frascino
On 1/22/21 10:02 AM, Mark Rutland wrote: > On Thu, Jan 21, 2021 at 01:43:14PM -0800, Paul E. McKenney wrote: >> On Thu, Jan 21, 2021 at 09:31:10PM +, Will Deacon wrote: >>> On Thu, Jan 21, 2021 at 10:55:21AM -0800, Paul E. McKenney wrote: On Thu, Jan 21, 2021 at 10:37:21PM +0530, Naresh

[PATCH v1] platform/x86: intel_mid_thermal: Remove driver for deprecated platform

2021-01-22 Thread Andy Shevchenko
Intel Moorestown and Medfield are quite old Intel Atom based 32-bit platforms, which were in limited use in some Android phones, tablets and consumer electronics more than eight years ago. There are no bugs or problems ever reported outside from Intel for breaking any of that platforms for years.

RE: 5.11-rc4+git: Shortest NUMA path spans too many nodes

2021-01-22 Thread Valentin Schneider
On 22/01/21 11:09, Song Bao Hua (Barry Song) wrote: >> -Original Message- >> From: Dietmar Eggemann [mailto:dietmar.eggem...@arm.com] >> > For example, every cpu with the below numa_distance can have >> > "groups don't span domain->span": >> > node 0 1 2 3 >> > 0: 10 12 20 22

Re: [RFC PATCH v3 10/16] cxl/mem: Add send command

2021-01-22 Thread Jonathan Cameron
On Thu, 21 Jan 2021 10:15:46 -0800 Ben Widawsky wrote: > On 21-01-14 17:10:38, Jonathan Cameron wrote: > > On Mon, 11 Jan 2021 14:51:14 -0800 > > Ben Widawsky wrote: > > > > > The send command allows userspace to issue mailbox commands directly to > > > the hardware. The driver will verify ba

Re: [PATCH v3 06/21] x86/fpu/xstate: Calculate and remember dynamic xstate buffer sizes

2021-01-22 Thread Borislav Petkov
On Wed, Dec 23, 2020 at 07:57:02AM -0800, Chang S. Bae wrote: > The xstate buffer is currently in-line with static size. To accommodatea "in-line" doesn't fit in this context, especially since "inline" is a keyword with another meaning. Please replace it with a better formulation in this patch. >

[PATCH] MIPS: vpe: Remove vpe_getcwd

2021-01-22 Thread Thomas Bogendoerfer
I couldn't find any user of the dubious vpe_getcwd so far. So remove it and get rid of another set_fs(KERNEL_DS). Signed-off-by: Thomas Bogendoerfer --- arch/mips/include/asm/vpe.h | 3 --- arch/mips/kernel/vpe.c | 33 - 2 files changed, 36 deletions(-) dif

Re: [PATCH V6 4/6] kbuild: Add support to build overlays (%.dtbo)

2021-01-22 Thread Masahiro Yamada
On Fri, Jan 22, 2021 at 7:51 PM Viresh Kumar wrote: > > Add support for building DT overlays (%.dtbo). The overlay's source file > will have the usual extension, i.e. .dts, though the blob will have > .dtbo extension to distinguish it from normal blobs. > > Signed-off-by: Viresh Kumar > --- Acke

[PATCH v1] misc: pti: Remove driver for deprecated platform

2021-01-22 Thread Andy Shevchenko
Intel Moorestown and Medfield are quite old Intel Atom based 32-bit platforms, which were in limited use in some Android phones, tablets and consumer electronics more than eight years ago. There are no bugs or problems ever reported outside from Intel for breaking any of that platforms for years.

Re: [PATCH v6 1/4] dt-bindings: media: imx258: add bindings for IMX258 sensor

2021-01-22 Thread Sakari Ailus
Hi Krysztof, On Wed, Nov 18, 2020 at 09:27:12PM +0100, Krzysztof Kozlowski wrote: > Add bindings for the IMX258 camera sensor. The bindings, just like the > driver, are quite limited, e.g. do not support regulator supplies. > > Signed-off-by: Krzysztof Kozlowski > Reviewed-by: Rob Herring > >

Re: [PATCH bpf-next v3 3/3] xsk: build skb by page

2021-01-22 Thread Alexander Lobakin
From: Eric Dumazet Date: Thu, 21 Jan 2021 16:41:33 +0100 > On 1/21/21 2:47 PM, Xuan Zhuo wrote: > > This patch is used to construct skb based on page to save memory copy > > overhead. > > > > This function is implemented based on IFF_TX_SKB_NO_LINEAR. Only the > > network card priv_flags support

Re: [PATCH v1] misc: pti: Remove driver for deprecated platform

2021-01-22 Thread Greg Kroah-Hartman
On Fri, Jan 22, 2021 at 01:43:58PM +0200, Andy Shevchenko wrote: > Intel Moorestown and Medfield are quite old Intel Atom based > 32-bit platforms, which were in limited use in some Android phones, > tablets and consumer electronics more than eight years ago. > > There are no bugs or problems ever

Re: [RFC PATCH net 1/2] net: introduce CAN specific pointer in the struct net_device

2021-01-22 Thread Marc Kleine-Budde
On Fri, Jan 15, 2021 at 04:07:23PM -0800, Jakub Kicinski wrote: > On Fri, 15 Jan 2021 15:30:35 +0100 Oleksij Rempel wrote: > > Since 20dd3850bcf8 ("can: Speed up CAN frame receiption by using > > ml_priv") the CAN framework uses per device specific data in the AF_CAN > > protocol. For this purpose

Re: [RFC PATCH v4 0/2] Some optimization for stage-2 translation

2021-01-22 Thread Marc Zyngier
Hi Yanan, On 2021-01-22 10:13, Yanan Wang wrote: Hi, Will, Marc, Is there any further comment on the v3 series I post previously? None, I was planning to queue them for 5.12 over the weekend. If they are not fine to you, then I think maybe we should just turn back to the original solution in

[PATCH v2] mmc: sdhci-of-aspeed: Fix kunit-related build error

2021-01-22 Thread Andrew Jeffery
Randy found that with the following Kconfig settings we have duplicate definitions (e.g. __inittest()) in sdhci-of-aspeed due to competing module_init()/module_exit() calls from kunit and driver the itself. ``` CONFIG_MMC_SDHCI_OF_ASPEED=m CONFIG_MMC_SDHCI_OF_ASPEED_TEST=y ``` Conditionally open-

Re: [PATCH v2 1/2] dt-bindings: drm/bridge: anx7625: add DPI flag and swing setting

2021-01-22 Thread Xin Ji
On Wed, Jan 20, 2021 at 04:57:56PM +0800, Nicolas Boichat wrote: > On Tue, Jan 12, 2021 at 4:59 PM Xin Ji wrote: > > > > Hi Rob Herring, thanks for the comments. > > > > On Mon, Jan 11, 2021 at 04:14:35PM -0600, Rob Herring wrote: > > > On Thu, Dec 31, 2020 at 10:21:12AM +0800, Xin Ji wrote: > > >

Re: [PATCH v3 2/2] counter: add GPIO based pulse counters

2021-01-22 Thread Ahmad Fatoum
Hello, On 22.01.21 12:24, Oleksij Rempel wrote: > Add simple GPIO base pulse counter. This device is used to measure > rotation speed of some agricultural devices, so no high frequency on the > counter pin is expected. > > The maximal measurement frequency depends on the CPU and system load. On >

RE: 5.11-rc4+git: Shortest NUMA path spans too many nodes

2021-01-22 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Dietmar Eggemann [mailto:dietmar.eggem...@arm.com] > Sent: Friday, January 22, 2021 11:05 PM > To: Song Bao Hua (Barry Song) ; Valentin Schneider > ; Meelis Roos ; LKML > > Cc: Peter Zijlstra ; Vincent Guittot > ; Mel Gorman > Subject: Re: 5.11-rc4+git: Shor

[PATCH] arm64: kprobes: Fix Uexpected kernel BRK exception at EL1

2021-01-22 Thread Qais Yousef
I was hitting the below panic continuously when attaching kprobes to scheduler functions [ 159.045212] Unexpected kernel BRK exception at EL1 [ 159.053753] Internal error: BRK handler: f206 [#1] PREEMPT SMP [ 159.059954] Modules linked in: [ 159.063025] CPU:

[PATCH v8 02/18] x86/acrn: Introduce acrn_{setup, remove}_intr_handler()

2021-01-22 Thread shuo . a . liu
From: Shuo Liu The ACRN Hypervisor builds an I/O request when a trapped I/O access happens in User VM. Then, ACRN Hypervisor issues an upcall by sending a notification interrupt to the Service VM. HSM in the Service VM needs to hook the notification interrupt to handle I/O requests. Notification

[PATCH v8 03/18] x86/acrn: Introduce acrn_cpuid_base() and hypervisor feature bits

2021-01-22 Thread shuo . a . liu
From: Yin Fengwei ACRN Hypervisor reports hypervisor features via CPUID leaf 0x4001 which is similar to KVM. A VM can check if it's the privileged VM using the feature bits. The Service VM is the only privileged VM by design. Signed-off-by: Yin Fengwei Signed-off-by: Shuo Liu Reviewed-by:

Re: [PATCH v6 0/2] Documentation: livepatch: Document reliable stacktrace and minor cleanup

2021-01-22 Thread Jiri Kosina
On Thu, 21 Jan 2021, Jonathan Corbet wrote: > > This series adds a document, mainly written by Mark Rutland, which > > makes explicit the requirements for implementing reliable stacktrace > > in order to aid architectures adding this feature. It also updates > > the other livepatching document

Re: [PATCH v1] trace: Fix race in trace_open and buffer resize call

2021-01-22 Thread Greg KH
On Thu, Jan 21, 2021 at 03:37:32PM -0500, Steven Rostedt wrote: > On Thu, 21 Jan 2021 23:15:22 +0300 > Denis Efremov wrote: > > > On 1/21/21 10:09 PM, Steven Rostedt wrote: > > > On Thu, 21 Jan 2021 17:30:40 +0300 > > > Denis Efremov wrote: > > > > > >> Hi, > > >> > > >> This patch (CVE-2020-

Re: [PATCH -next] hid/hid-sensor-custom: convert comma to semicolon

2021-01-22 Thread Jiri Kosina
On Wed, 20 Jan 2021, Jonathan Cameron wrote: > > > > Replace a comma between expression statements by a semicolon. > > > > > > > > Signed-off-by: Zheng Yongjun > > > Acked-by: Srinivas Pandruvada > > Applied to the togreg branch of iio.git and pushed out as testing for > > the autobuilder

Re: [PATCH bpf-next v3 3/3] xsk: build skb by page

2021-01-22 Thread Alexander Lobakin
From: Alexander Lobakin Date: Fri, 22 Jan 2021 11:47:45 + > From: Eric Dumazet > Date: Thu, 21 Jan 2021 16:41:33 +0100 > > > On 1/21/21 2:47 PM, Xuan Zhuo wrote: > > > This patch is used to construct skb based on page to save memory copy > > > overhead. > > > > > > This function is impleme

[PATCH V6 2/6] scripts: dtc: Build fdtoverlay tool

2021-01-22 Thread Viresh Kumar
We will start building overlays for platforms soon in the kernel and would need fdtoverlay going forward. Lets start building it. The fdtoverlay program applies (or merges) one or more overlay dtb blobs to a base dtb blob. The kernel build system would later use fdtoverlay to generate the overlaid

Re: [PATCH RESEND] pinctrl: mediatek: Fix trigger type setting follow for unexpected interrupt

2021-01-22 Thread Nicolas Boichat
On Fri, Jan 22, 2021 at 10:44 AM mtk15103 wrote: > > On Thu, 2021-01-21 at 20:13 +0800, Nicolas Boichat wrote: > > On Thu, Jan 21, 2021 at 8:09 PM mtk15103 wrote: > > > > > > On Thu, 2021-01-21 at 16:55 +0800, Nicolas Boichat wrote: > > > > On Thu, Jan 21, 2021 at 3:52 PM Hailong Fan > > > > wr

Re: bisected regression in v5.11-rc1 snd-usb-audio

2021-01-22 Thread Takashi Iwai
On Fri, 22 Jan 2021 11:03:48 +0100, Jamie Heilman wrote: > > Takashi Iwai wrote: > > You seem hitting a firmware bug, and it doesn't look like the only > > case. Interestingly, the backport of 5.11 USB-audio stuff on 5.3 > > kernel on openSUSE Leap 15.2 caused a similar bug on Steinberg device, >

Re: [PATCH v3 05/21] x86/fpu/xstate: Add a new variable to indicate dynamic user states

2021-01-22 Thread Borislav Petkov
On Tue, Jan 19, 2021 at 06:57:26PM +, Bae, Chang Seok wrote: > This series attempts to save the AMX state in the context switch buffer only What is the context switch buffer? I think you mean simply the xstate per-task buffer which is switched on context switches... > when needed -- so it is

Re: [PATCH v1] misc: pti: Remove driver for deprecated platform

2021-01-22 Thread Arnd Bergmann
On Fri, Jan 22, 2021 at 12:43 PM Andy Shevchenko wrote: > > Intel Moorestown and Medfield are quite old Intel Atom based > 32-bit platforms, which were in limited use in some Android phones, > tablets and consumer electronics more than eight years ago. > > There are no bugs or problems ever report

Re: [PATCH v5 4/6] arm64: mte: Enable async tag check fault

2021-01-22 Thread Catalin Marinas
On Thu, Jan 21, 2021 at 04:39:41PM +, Vincenzo Frascino wrote: > MTE provides a mode that asynchronously updates the TFSR_EL1 register > when a tag check exception is detected. > > To take advantage of this mode the kernel has to verify the status of > the register at: > 1. Context switching

Re: [PATCH v5 6/6] kasan: Forbid kunit tests when async mode is enabled

2021-01-22 Thread Catalin Marinas
On Thu, Jan 21, 2021 at 06:40:35PM +0100, Andrey Konovalov wrote: > On Thu, Jan 21, 2021 at 5:40 PM Vincenzo Frascino > wrote: > > > > Architectures supported by KASAN_HW_TAGS can provide a sync or async > > mode of execution. KASAN KUNIT tests can be executed only when sync > > mode is enabled. >

Re: [PATCH] drm/panfrost: Add governor data with pre-defined thresholds

2021-01-22 Thread Lukasz Luba
On 1/22/21 10:24 AM, Steven Price wrote: On 22/01/2021 10:00, Lukasz Luba wrote: On 1/22/21 8:21 AM, Steven Price wrote: On 21/01/2021 17:04, Lukasz Luba wrote: The simple_ondemand devfreq governor uses two thresholds to decide about the frequency change: upthreshold, downdifferential. T

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