[PATCH 3/3] arm64: dts: zynqmp: Wire up the DisplayPort subsystem

2021-01-21 Thread Michal Simek
From: Laurent Pinchart Enable the dpsub device and wire it up to the PS-GTR PHY lanes routed to the DisplayPort connector. Signed-off-by: Laurent Pinchart Signed-off-by: Michal Simek --- Wire all the boards --- .../boot/dts/xilinx/zynqmp-zcu100-revC.dts| 31 +++

[PATCH 2/3] arm64: dts: zynqmp: Add DisplayPort subsystem

2021-01-21 Thread Michal Simek
Add a DT node for the DisplayPort subsystem, a hard IP present in the Zynq Ultrascale+ MPSoC. Signed-off-by: Laurent Pinchart Signed-off-by: Michal Simek --- Change node position and label. --- .../arm64/boot/dts/xilinx/zynqmp-clk-ccf.dtsi | 6 + arch/arm64/boot/dts/xilinx/zynqmp.dtsi

[PATCH v16 10/11] arch, mm: wire up memfd_secret system call where relevant

2021-01-21 Thread Mike Rapoport
From: Mike Rapoport Wire up memfd_secret system call on architectures that define ARCH_HAS_SET_DIRECT_MAP, namely arm64, risc-v and x86. Signed-off-by: Mike Rapoport Acked-by: Palmer Dabbelt Acked-by: Arnd Bergmann Cc: Alexander Viro Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Catalin

[PATCH 0/3] arm64: dts: zynqmp: Enable and Wire DP

2021-01-21 Thread Michal Simek
Hi, I am updating DT patches which were there part of DP v11 series sent by Laurent in past [1]. Patches have been removed in v12 [2]. The series is rebased on the top of [3] which wired si5341 clock chip. [1] http://lore.kernel.org/r/20200318153728.25843-1-laurent.pinch...@ideasonboard.com [2]

Fatal signal handling within uaccess faults

2021-01-21 Thread Mark Rutland
Hi all, Arch maintainers, if you are Cc'd I believe your architecture has a user-triggerable livelock; please see below for details. Apologies in advance if I am mistaken! I believe the following architectures ARE affected: alpha, hexagon, ia64, m68k, microblaze, mips, nios2, openrisc,

[PATCH v16 11/11] secretmem: test: add basic selftest for memfd_secret(2)

2021-01-21 Thread Mike Rapoport
From: Mike Rapoport The test verifies that file descriptor created with memfd_secret does not allow read/write operations, that secret memory mappings respect RLIMIT_MEMLOCK and that remote accesses with process_vm_read() and ptrace() to the secret memory fail. Signed-off-by: Mike Rapoport Cc:

[PATCH v16 08/11] secretmem: add memcg accounting

2021-01-21 Thread Mike Rapoport
From: Mike Rapoport Account memory consumed by secretmem to memcg. The accounting is updated when the memory is actually allocated and freed. Signed-off-by: Mike Rapoport Acked-by: Roman Gushchin Reviewed-by: Shakeel Butt Cc: Alexander Viro Cc: Andy Lutomirski Cc: Arnd Bergmann Cc:

[PATCH v16 07/11] secretmem: use PMD-size pages to amortize direct map fragmentation

2021-01-21 Thread Mike Rapoport
From: Mike Rapoport Removing a PAGE_SIZE page from the direct map every time such page is allocated for a secret memory mapping will cause severe fragmentation of the direct map. This fragmentation can be reduced by using PMD-size pages as a pool for small pages for secret memory mappings. Add

[PATCH v16 02/11] mmap: make mlock_future_check() global

2021-01-21 Thread Mike Rapoport
From: Mike Rapoport It will be used by the upcoming secret memory implementation. Signed-off-by: Mike Rapoport Cc: Alexander Viro Cc: Andy Lutomirski Cc: Arnd Bergmann Cc: Borislav Petkov Cc: Catalin Marinas Cc: Christopher Lameter Cc: Dan Williams Cc: Dave Hansen Cc: David Hildenbrand

Re: [PATCH net v2] udp: ipv4: manipulate network header of NATed UDP GRO fraglist

2021-01-21 Thread Steffen Klassert
On Wed, Jan 20, 2021 at 03:55:42PM +0900, Dongseok Yi wrote: > On 2021-01-18 22:27, Steffen Klassert wrote: > > On Fri, Jan 15, 2021 at 10:20:35PM +0900, Dongseok Yi wrote: > > > UDP/IP header of UDP GROed frag_skbs are not updated even after NAT > > > forwarding. Only the header of head_skb from

[PATCH v16 01/11] mm: add definition of PMD_PAGE_ORDER

2021-01-21 Thread Mike Rapoport
From: Mike Rapoport The definition of PMD_PAGE_ORDER denoting the number of base pages in the second-level leaf page is already used by DAX and maybe handy in other cases as well. Several architectures already have definition of PMD_ORDER as the size of second level page table, so to avoid

[ANNOUNCE] The Linux Test Project has been released for JANUARY 2021

2021-01-21 Thread Cyril Hrubis
ub.com/linux-test-project/ltp/releases/tag/20210121 The project pages as well as GIT repository are hosted on GitHub: https://github.com/linux-test-project/ltp http://linux-test-project.github.io/ If you ever wondered how to write a LTP testcase, don't miss our developer documentation at:

Re: [PATCH 3/3] rtc: remove ste ab3100 driver

2021-01-21 Thread Linus Walleij
On Wed, Jan 20, 2021 at 4:42 PM Arnd Bergmann wrote: > From: Arnd Bergmann > > The ST-Ericsson U300 platform is getting removed, so this driver is no > longer needed. > > Cc: Linus Walleij > Signed-off-by: Arnd Bergmann Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH iproute2-next] devlink: add support for HARD_DROP trap action

2021-01-21 Thread Ido Schimmel
On Thu, Jan 21, 2021 at 01:29:54PM +0200, Oleksandr Mazur wrote: > Add support for new HARD_DROP action, which is used for > trap hard drop statistics retrival. It's used whenever > device is unable to report trapped packet to the devlink > subsystem, and thus device could only state how many >

Re: [PATCH v4 0/5] arm64: ARMv8.5-A: MTE: Add async mode support

2021-01-21 Thread Andrey Konovalov
On Thu, Jan 21, 2021 at 12:31 PM Vincenzo Frascino wrote: > > Hi Andrey, > > On 1/19/21 6:09 PM, Andrey Konovalov wrote: > > Hi Vincenzo, > > > > This change has multiple conflicts with the KASAN testing patches that > > are currently in the mm tree. If Andrew decides to send all of them > >

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

2021-01-21 Thread Sia Jee Heng
The below patch series are to support AxiDMA running on Intel KeemBay SoC. The base driver is dw-axi-dmac. This driver only support DMA memory copy transfers. Code refactoring is needed so that additional features can be supported. The features added in this patch series are: - Replacing Linked

Re: [PATCH 2/3] rtc: remove ste coh901 driver

2021-01-21 Thread Linus Walleij
On Wed, Jan 20, 2021 at 4:42 PM Arnd Bergmann wrote: > From: Arnd Bergmann > > The ST-Ericsson U300 platform is getting removed, so this driver is no > longer needed. > > Cc: Linus Walleij > Signed-off-by: Arnd Bergmann Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH] regulator: remove ab3100 driver

2021-01-21 Thread Linus Walleij
On Wed, Jan 20, 2021 at 4:13 PM Arnd Bergmann wrote: > From: Arnd Bergmann > > The ST-Ericsson U300 platform is getting removed, so this driver is no > longer needed. > > Cc: Linus Walleij > Signed-off-by: Arnd Bergmann Reviewed-by: Linus Walleij Yours, Linus Walleij

Re: [PATCH net-next] net: core: devlink: add new trap action HARD_DROP

2021-01-21 Thread Ido Schimmel
On Thu, Jan 21, 2021 at 01:29:37PM +0200, Oleksandr Mazur wrote: > Add new trap action HARD_DROP, which can be used by the > drivers to register traps, where it's impossible to get > packet reported to the devlink subsystem by the device > driver, because it's impossible to retrieve dropped packet

Re: [PATCH 1/2 v2] dma-iommu: use static-key to minimize the impact in the fast-path

2021-01-21 Thread lijiang
Hi, Christoph Thanks for the comment. 在 2021年01月19日 23:26, Christoph Hellwig 写道: > On Tue, Jan 19, 2021 at 07:16:15PM +0800, Lianbo Jiang wrote: >> +static DEFINE_STATIC_KEY_FALSE(__deferred_attach); > Why the strange underscores? Wouldn't iommu_deferred_attach_enabled The variable is defined

Re: [PATCH] mfd: remove ab3100 driver

2021-01-21 Thread Linus Walleij
On Wed, Jan 20, 2021 at 3:26 PM Arnd Bergmann wrote: > From: Arnd Bergmann > > The ST-Ericsson U300 platform is getting removed, so this driver is no > longer needed. > > Cc: Linus Walleij > Signed-off-by: Arnd Bergmann Reviewed-by: Linus Walleij Yours, Linus Walleij

[PATCH v11 16/16] dmaengine: dw-axi-dmac: Virtually split the linked-list

2021-01-21 Thread Sia Jee Heng
AxiDMA driver exposed the dma_set_max_seg_size() to the DMAENGINE. It shall helps the DMA clients to create size-optimized linked-list for the controller. However, there are certain situations where DMA client might not be abled to benefit from the dma_get_max_seg_size() if the segment size can't

[Patch v2 2/3] arm64: dtsi: ls1028a: Update flexcan properties

2021-01-21 Thread Kuldeep Singh
LS1028A supports two flexcan controllers similar to LX2160A. There's already a compatible entry defined i.e "fsl,lx2160ar1-flexcan" which can be further reused for LS1028A. Please note, "fsl,ls1028ar1-flexcan" compatible entry doesn't exists and can be safely removed. LS1028A has a single

Re: [PATCH 2/3] i2c: remove u300 bus driver

2021-01-21 Thread Linus Walleij
On Wed, Jan 20, 2021 at 2:28 PM Arnd Bergmann wrote: > From: Arnd Bergmann > > The ST-Ericsson U300 platform is getting removed, so this driver is no > longer needed. > > Cc: Linus Walleij > Signed-off-by: Arnd Bergmann Reviewed-by: Linus Walleij There is a theoretical possibility that

Re: [PATCH] pinctrl: ingenic: Improve JZ4760 support

2021-01-21 Thread Linus Walleij
On Wed, Jan 20, 2021 at 12:07 PM Paul Cercueil wrote: > - Add otg function and otg-vbus group. > > - Add lcd-8bit, lcd-16bit, lcd-18bit, lcd-generic and lcd-special > groups. Change the lcd-24bit group so that it only selects the pins > that aren't in the lcd-18bit and lcd-generic groups

Re: [PATCH 2/5] pinctrl: remove zte zx driver

2021-01-21 Thread Linus Walleij
On Wed, Jan 20, 2021 at 2:20 PM Arnd Bergmann wrote: > From: Arnd Bergmann > > The zte zx platform is getting removed, so this driver is no > longer needed. > > Cc: Jun Nie > Cc: Shawn Guo > Signed-off-by: Arnd Bergmann Patch applied. Yours, Linus Walleij

Re: [PATCH 4/5] pinctrl: remove coh901 driver

2021-01-21 Thread Linus Walleij
On Wed, Jan 20, 2021 at 2:21 PM Arnd Bergmann wrote: > From: Arnd Bergmann > > The ST-Ericsson U300 platform is getting removed, so this driver is no > longer needed. > > Cc: Linus Walleij > Signed-off-by: Arnd Bergmann Patch applied. Yours, Linus Walleij

Re: [PATCH 5/5] pinctrl: remove ste u300 driver

2021-01-21 Thread Linus Walleij
On Wed, Jan 20, 2021 at 2:21 PM Arnd Bergmann wrote: > From: Arnd Bergmann > > The ST-Ericsson U300 platform is getting removed, so this driver is no > longer needed. > > Cc: Linus Walleij > Signed-off-by: Arnd Bergmann Patch applied. Yours, Linus Walleij

[PATCH] gpio: mockup: tweak the Kconfig help text

2021-01-21 Thread Bartosz Golaszewski
From: Bartosz Golaszewski gpio-mockup doesn't require SYSFS to be selected so drop that bit from the Kconfig text. Signed-off-by: Bartosz Golaszewski --- drivers/gpio/Kconfig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig

RE: [PATCH net v2] udp: ipv4: manipulate network header of NATed UDP GRO fraglist

2021-01-21 Thread Dongseok Yi
On 2021-01-20 15:56, Dongseok Yi wrote: > On 2021-01-18 22:27, Steffen Klassert wrote: > > On Fri, Jan 15, 2021 at 10:20:35PM +0900, Dongseok Yi wrote: > > > UDP/IP header of UDP GROed frag_skbs are not updated even after NAT > > > forwarding. Only the header of head_skb from ip_finish_output_gso

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

2021-01-21 Thread Nicolas Boichat
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 > > wrote: > > > > > > When flipping the polarity will be generated interrupt under certain > > > circumstances, but GPIO external signal

Re: [PATCH] uacce: Add uacce_ctrl misc device

2021-01-21 Thread Greg Kroah-Hartman
On Thu, Jan 21, 2021 at 11:52:57AM +, Song Bao Hua (Barry Song) wrote: > > > > -Original Message- > > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] > > Sent: Friday, January 22, 2021 12:19 AM > > To: Song Bao Hua (Barry Song) > > Cc: Wangzhou (B) ; Zhangfei Gao > > ;

[Patch v2 3/3] arm64: dts: ls1028a: Enable flexcan support for LS1028A-RDB/QDS

2021-01-21 Thread Kuldeep Singh
LS1028A-RDB/QDS provides support for flexcan. Add the properties. Signed-off-by: Kuldeep Singh --- arch/arm64/boot/dts/freescale/fsl-ls1028a-qds.dts | 8 arch/arm64/boot/dts/freescale/fsl-ls1028a-rdb.dts | 16 2 files changed, 24 insertions(+) diff --git

Re: [PATCH] PM / clk: make PM clock layer compatible with clocks that must sleep

2021-01-21 Thread Geert Uytterhoeven
re': > drivers/base/power/clock_ops.c:170: undefined reference to > `clk_is_enabled_when_prepared' > > Reported-by: Naresh Kamboju > > This build error was noticed on arm architecture on linux next 20210121 tag. > Following builds failed. > - arm (omap1_defconfig) with clang-1

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

2021-01-21 Thread mtk15103
On Thu, 2021-01-21 at 16:55 +0800, Nicolas Boichat wrote: > On Thu, Jan 21, 2021 at 3:52 PM Hailong Fan wrote: > > > > When flipping the polarity will be generated interrupt under certain > > circumstances, but GPIO external signal has not changed. > > Then, mask the interrupt before polarity

Re: [PATCH] soundwire: debugfs: use controller id instead of link_id

2021-01-21 Thread Srinivas Kandagatla
On 19/01/2021 19:09, Pierre-Louis Bossart wrote: currently we have /sys/kernel/debug/soundwire/master-* Are you suggesting that we have something like this: /sys/kernel/debug/soundwire/xyz-controller/master- ?? Yes this is what I was thinking about. Vinod/Pierre, One Question here,

Re: [PATCH] PM / clk: make PM clock layer compatible with clocks that must sleep

2021-01-21 Thread Naresh Kamboju
TUS_ERROR; > > > + return; > > > + } else if (clk_is_enabled_when_prepared(ce->clk)) { > > > > arm-linux-gnueabihf-ld: drivers/base/power/clock_ops.o: in function > > `pm_clk_acquire': > > drivers/base/power/clock_ops.c:170: undefined re

Re: [PATCH v2 2/7] acpi: utils: Add function to fetch dependent acpi_devices

2021-01-21 Thread Daniel Scally
On 21/01/2021 11:58, Rafael J. Wysocki wrote: > On Thu, Jan 21, 2021 at 10:47 AM Daniel Scally wrote: >> Hi Rafael >> >> On 19/01/2021 13:15, Rafael J. Wysocki wrote: >>> On Mon, Jan 18, 2021 at 9:51 PM Daniel Scally wrote: On 18/01/2021 16:14, Rafael J. Wysocki wrote: > On Mon, Jan

Re: [External] [PATCH v2 2/5] hugetlb: convert page_huge_active() HPageMigratable flag

2021-01-21 Thread Muchun Song
On Wed, Jan 20, 2021 at 9:33 AM Mike Kravetz wrote: > > Use the new hugetlb page specific flag HPageMigratable to replace the > page_huge_active interfaces. By it's name, page_huge_active implied > that a huge page was on the active list. However, that is not really > what code checking the

Re: [RFC PATCH v3 1/8] Use refcount_t for ucounts reference counting

2021-01-21 Thread Alexey Gladkov
On Tue, Jan 19, 2021 at 07:57:36PM -0600, Eric W. Biederman wrote: > Alexey Gladkov writes: > > > On Mon, Jan 18, 2021 at 12:34:29PM -0800, Linus Torvalds wrote: > >> On Mon, Jan 18, 2021 at 11:46 AM Alexey Gladkov > >> wrote: > >> > > >> > Sorry about that. I thought that this code is not

[PATCH] genirq/msi: Make sure early activation of all PCI MSIs

2021-01-21 Thread Shameer Kolothum
We currently do early activation of MSI irqs for PCI/MSI based on the MSI_FLAG_ACTIVATE_EARLY flag. Though this activates all the allocated MSIs in the case of MSI-X, it only does so for the base irq in the case of MSI. This is because, for MSI, there is only one msi_desc entry for all the 32 irqs

Re: [PATCH v3] riscv: add BUILTIN_DTB support for MMU-enabled targets

2021-01-21 Thread Anup Patel
On Thu, Jan 21, 2021 at 2:51 PM Vitaly Wool wrote: > > On Sat, Jan 16, 2021 at 12:57 AM Vitaly Wool wrote: > > > > Sometimes, especially in a production system we may not want to > > use a "smart bootloader" like u-boot to load kernel, ramdisk and > > device tree from a filesystem on eMMC, but

[PATCH 00/13] opp: Implement dev_pm_opp_set_opp()

2021-01-21 Thread Viresh Kumar
Hello, This patchset implements a new API dev_pm_opp_set_opp(), which configures the devices represented by an opp table to a particular opp. The opp core supports a wide variety of devices now, some of them can change frequency and other properties (like CPUs), while others can just change their

Re: [PATCH 1/1] spi: atmel: Put allocated master before return

2021-01-21 Thread Tudor.Ambarus
On 1/20/21 7:00 AM, Pan Bian wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > The allocated master is not released. Goto error handling label rather > than directly return. > > Fixes: 04242ca4e891 ("spi: atmel: Use SPI core DMA mapping

Re: [PATCH] uacce: Add uacce_ctrl misc device

2021-01-21 Thread Greg Kroah-Hartman
On Thu, Jan 21, 2021 at 10:18:24AM +, Song Bao Hua (Barry Song) wrote: > > > > -Original Message- > > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] > > Sent: Thursday, January 21, 2021 10:46 PM > > To: Wangzhou (B) > > Cc: Zhangfei Gao ; Arnd Bergmann ; > >

Re: [PATCH v2 2/7] acpi: utils: Add function to fetch dependent acpi_devices

2021-01-21 Thread Rafael J. Wysocki
On Thu, Jan 21, 2021 at 10:47 AM Daniel Scally wrote: > > Hi Rafael > > On 19/01/2021 13:15, Rafael J. Wysocki wrote: > > On Mon, Jan 18, 2021 at 9:51 PM Daniel Scally wrote: > >> On 18/01/2021 16:14, Rafael J. Wysocki wrote: > >>> On Mon, Jan 18, 2021 at 1:37 AM Daniel Scally wrote: > In

[PATCH 0/5] clk: at91: updates for power management and dvfs

2021-01-21 Thread Claudiu Beznea
Hi, This series addresses the power management for SAMA7G5 and also updates the master clock prescaller and master clock divider drivers to accomodate the requests at [1]. The power management part is implemented by adding save_context()/restore_context() on each clock driver (patch 1/5). Since

[PATCH 02/13] opp: No need to check clk for errors

2021-01-21 Thread Viresh Kumar
Clock is not optional for users who call into dev_pm_opp_set_rate(). Remove the unnecessary checks. While at it also drop the local variable for clk and use opp_table->clk instead. Signed-off-by: Viresh Kumar --- drivers/opp/core.c | 17 - 1 file changed, 4 insertions(+), 13

Re: [PATCH] rt2x00: reset reg earlier in rt2500usb_register_read

2021-01-21 Thread Greg KH
On Thu, Jan 21, 2021 at 06:52:46PM +0800, Dongliang Mu wrote: > In the function rt2500usb_register_read(_lock), reg is uninitialized > in some situation. Then KMSAN reports uninit-value at its first memory > access. To fix this issue, initialize reg with zero in the function >

[PATCH 04/13] opp: Split _set_opp() out of dev_pm_opp_set_rate()

2021-01-21 Thread Viresh Kumar
The _set_opp() helper will be used for devices which don't change their frequency (like power domains, etc.) later on, prepare for that by breaking the generic part out of dev_pm_opp_set_rate(). Signed-off-by: Viresh Kumar --- drivers/opp/core.c | 126

[PATCH 1/5] clk: at91: re-factor clocks suspend/resume

2021-01-21 Thread Claudiu Beznea
SAMA5D2 and SAMA7G5 have a special power saving mode (backup mode) where most of the SoC's components are powered off (including PMC). Resuming from this mode is done with the help of bootloader. Peripherals are not aware of the power saving mode thus most of them are disabling clocks in proper

[PATCH 05/13] opp: Allow _set_opp() to work for non-freq devices

2021-01-21 Thread Viresh Kumar
The _set_opp() helper will be used for devices which don't change frequency (like power domains, etc.) later on, prepare for that by not relying on frequency for making decisions here. While at it, also update the debug print to contain all relevant information. Signed-off-by: Viresh Kumar ---

RE: [PATCH] uacce: Add uacce_ctrl misc device

2021-01-21 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Greg Kroah-Hartman [mailto:gre...@linuxfoundation.org] > Sent: Friday, January 22, 2021 12:19 AM > To: Song Bao Hua (Barry Song) > Cc: Wangzhou (B) ; Zhangfei Gao > ; Arnd Bergmann ; > linux-accelerat...@lists.ozlabs.org; linux-kernel@vger.kernel.org; >

[PATCH net-next v2 2/5] net: ipa: heed napi_complete() return value

2021-01-21 Thread Alex Elder
Pay attention to the return value of napi_complete(), completing polling only if it returns true. Just use napi rather than >napi as the argument passed to napi_complete(). Signed-off-by: Alex Elder --- drivers/net/ipa/gsi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git

[PATCH net-next v2 4/5] net: ipa: repurpose gsi_irq_ieob_disable()

2021-01-21 Thread Alex Elder
Rename gsi_irq_ieob_disable() to be gsi_irq_ieob_disable_one(). Introduce a new function gsi_irq_ieob_disable() that takes a mask of events to disable rather than a single event id. This will be used in the next patch. Rename gsi_irq_ieob_enable() to be gsi_irq_ieob_enable_one() to be

[PATCH net-next v2 0/5] net: ipa: NAPI poll updates

2021-01-21 Thread Alex Elder
Version 1 of this series inadvertently dropped the "static" that limits the scope of gsi_channel_update(). Version 2 fixes this (in patch 3). While reviewing the IPA NAPI polling code in detail I found two problems. This series fixes those, and implements a few other improvements to this part

[PATCH net-next v2 5/5] net: ipa: disable IEOB interrupts before clearing

2021-01-21 Thread Alex Elder
Currently in gsi_isr_ieob(), event ring IEOB interrupts are disabled one at a time. The loop disables the IEOB interrupt for all event rings represented in the event mask. Instead, just disable them all at once. Disable them all *before* clearing the interrupt condition. This guarantees we'll

[PATCH 07/13] opp: Allow _generic_set_opp_clk_only() to work for non-freq devices

2021-01-21 Thread Viresh Kumar
In order to avoid conditional statements at the caller site, this patch updates _generic_set_opp_clk_only() to work for devices that don't change frequency (like power domains, etc.). Return 0 if the clk pointer passed to this routine is not valid. Signed-off-by: Viresh Kumar ---

Re: [RFC PATCH 00/17] objtool: add base support for arm64

2021-01-21 Thread Ard Biesheuvel
On Thu, 21 Jan 2021 at 12:23, Peter Zijlstra wrote: > > On Thu, Jan 21, 2021 at 12:08:23PM +0100, Ard Biesheuvel wrote: > > On Thu, 21 Jan 2021 at 11:26, Julien Thierry wrote: > > > > I'm not familiar with toolcahin code models, but would this approach be > > > able to validate assembly code

[PATCH net-next v2 3/5] net: ipa: have gsi_channel_update() return a value

2021-01-21 Thread Alex Elder
Have gsi_channel_update() return the first transaction in the updated completed transaction list, or NULL if no new transactions have been added. Signed-off-by: Alex Elder --- v2: Do not drop the static keyword that limits the function scope. drivers/net/ipa/gsi.c | 13 ++--- 1 file

[PATCH net-next v2 1/5] net: ipa: count actual work done in gsi_channel_poll()

2021-01-21 Thread Alex Elder
There is an off-by-one problem in gsi_channel_poll(). The count of transactions completed is incremented each time through the loop *before* determining whether there is any more work to do. As a result, if we exit the loop early the counter its value is one more than the number of transactions

[PATCH 2/5] clk: at91: pmc: execute suspend/resume only for backup mode

2021-01-21 Thread Claudiu Beznea
Before going to backup mode architecture specific PM code sets the first word in securam (and it will be cleared in a subsequent commit for the rest of power saving modes). Thus take this into account when suspending/resuming clocks. This will avoid executing unnecessary instructions when

[PATCH 06/13] opp: Allow _generic_set_opp_regulator() to work for non-freq devices

2021-01-21 Thread Viresh Kumar
The _generic_set_opp_regulator() helper will be used for devices which don't change frequency (like power domains, etc.) later on, prepare for that by not relying on frequency for making decisions here. While at it, update its parameters to pass only what is necessary. Signed-off-by: Viresh

Re: [PATCH] rt2x00: reset reg earlier in rt2500usb_register_read

2021-01-21 Thread Greg KH
On Thu, Jan 21, 2021 at 06:59:08PM +0800, 慕冬亮 wrote: > On Thu, Jan 21, 2021 at 5:49 PM Greg KH wrote: > > > > On Thu, Jan 21, 2021 at 05:20:26PM +0800, Dongliang Mu wrote: > > > In the function rt2500usb_register_read(_lock), reg is uninitialized > > > in some situation. Then KMSAN reports

[PATCH 09/13] opp: Implement dev_pm_opp_set_opp()

2021-01-21 Thread Viresh Kumar
The new helper dev_pm_opp_set_opp() can be used for configuring the devices for a particular OPP and can be used by different type of devices, even the ones which don't change frequency (like power domains). Signed-off-by: Viresh Kumar --- drivers/opp/core.c | 28

Re: [PATCH v3 05/12] opp: Add dev_pm_opp_set_voltage()

2021-01-21 Thread Viresh Kumar
On 21-01-21, 00:57, Dmitry Osipenko wrote: > 18.01.2021 22:14, Dmitry Osipenko пишет: > > Sounds like it could be a lot of code moving and some extra complexity > > will be added to the code. If nobody will ever need the universal > > dev_pm_opp_set_opp(), then it could become a wasted effort. I'd

[RFC PATCH] uacce: uacce_ctrl_open() can be static

2021-01-21 Thread kernel test robot
Reported-by: kernel test robot Signed-off-by: kernel test robot --- uacce.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/uacce/uacce.c b/drivers/misc/uacce/uacce.c index b8ac4080a7d6f76..11cbb6941a5 100644 --- a/drivers/misc/uacce/uacce.c +++

Re: [RFC PATCH 3/7] arm64: mm: use nGnRnE instead of nGnRE on Apple processors

2021-01-21 Thread Marc Zyngier
On 2021-01-21 11:27, Will Deacon wrote: On Wed, Jan 20, 2021 at 02:27:13PM +0100, Mohamed Mediouni wrote: Use nGnRnE instead of nGnRE on Apple SoCs to workaround a serious hardware quirk. On Apple processors, writes using the nGnRE device memory type get dropped in flight, getting to

[PATCH v2 2/2] Input: add MStar msg26xx touchscreen driver

2021-01-21 Thread Vincent Knecht
Add support for the msg26xx touchscreen IC from MStar. This driver reuses zinitix.c structure, while the checksum and irq handler functions are based on out-of-tree driver for Alcatel Idol 3 (4.7"). Signed-off-by: Vincent Knecht --- Changed in v2: - don't use bitfields in packet struct, to

Re: [PATCH] uacce: Add uacce_ctrl misc device

2021-01-21 Thread kernel test robot
submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Zhou-Wang/uacce-Add-uacce_ctrl-misc-device/20210121-172139 base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git

Re: [PATCH 19/29] csky: mm: abort uaccess retries upon fatal signal

2021-01-21 Thread Mark Rutland
On Thu, Jan 21, 2021 at 02:53:39PM +0800, guo...@kernel.org wrote: > From: Guo Ren > > Pick up the patch from the 'Link' made by Mark Rutland. Keep the > same with x86, arm, arm64, arc, sh, power. > > Link: >

Re: [PATCH v2] bio: limit bio max size

2021-01-21 Thread Changheun Lee
> On Thu, 2021-01-21 at 18:36 +0900, Changheun Lee wrote: > > > Please drop the "." at the end of the patch title. > > > > > > > bio size can grow up to 4GB when muli-page bvec is enabled. > > > > but sometimes it would lead to inefficient behaviors. > > > > in case of large chunk direct I/O, -

[PATCH v2 1/2] dt-bindings: input/touchscreen: add bindings for msg26xx

2021-01-21 Thread Vincent Knecht
This adds dts bindings for the mstar msg26xx touchscreen. Signed-off-by: Vincent Knecht --- Changed in v2: - changed M-Star to MStar in title line - changed reset gpio to active-low in example section --- .../input/touchscreen/mstar,msg26xx.yaml | 66 +++ 1 file changed, 66

[PATCH 13/13] opp: Remove dev_pm_opp_set_bw()

2021-01-21 Thread Viresh Kumar
All the users have migrated to dev_pm_opp_set_opp() now, get rid of the duplicate API, dev_pm_opp_set_bw(), which only performs a part of the new API. While at it, remove the unnecessary parameter to _set_opp_bw(). Signed-off-by: Viresh Kumar --- drivers/opp/core.c | 41

Re: [PATCH v2 1/3] perf vendor events: Add cache refill and DCZVA events

2021-01-21 Thread Shaokun Zhang
Hi, 在 2021/1/21 18:54, Shunsuke Nakamura 写道: > Adds L1 data cache refill prefetch, L2 data cache refill prefetch, > and DCZVA instruction events. A silly question, Does Arm define these events? I checked Arm ARM document(DDI0487Fc) that these event numbers are reserved. Or maybe I miss

Re: [RFC PATCH 3/7] arm64: mm: use nGnRnE instead of nGnRE on Apple processors

2021-01-21 Thread Arnd Bergmann
On Thu, Jan 21, 2021 at 12:32 PM Will Deacon wrote: > On Wed, Jan 20, 2021 at 02:27:13PM +0100, Mohamed Mediouni wrote: > > Use nGnRnE instead of nGnRE on Apple SoCs to workaround a serious hardware > > quirk. > > /* > > * Default MAIR_EL1. MT_NORMAL_TAGGED is initially mapped as Normal

Re: [RFC PATCH 00/17] objtool: add base support for arm64

2021-01-21 Thread Peter Zijlstra
On Thu, Jan 21, 2021 at 12:08:23PM +0100, Ard Biesheuvel wrote: > On Thu, 21 Jan 2021 at 11:26, Julien Thierry wrote: > > I'm not familiar with toolcahin code models, but would this approach be > > able to validate assembly code (either inline or in assembly files?) > > > > No, it would not.

[PATCH v1 2/2] iommu: add Unisoc iommu basic driver

2021-01-21 Thread Chunyan Zhang
From: Chunyan Zhang This patch only adds display iommu support, the driver was tested with sprd dpu and image codec processor. The iommu support for others would be added once finished tests with those devices, such as a few signal processors, including VSP(video), GSP(graphic), ISP(image), and

[PATCH v1 0/2] Add Unisoc iommu basic driver

2021-01-21 Thread Chunyan Zhang
From: Chunyan Zhang Changes since RFC v2: * Addressed Robin's comments: - Add COMPILE_TEST support; - Use DMA allocator for PTE; - Revised to avoid resource leak issue; - Added ->iotlb_sync implemented; - Moved iommu group allocation to probe; - Changed some function names to make them sprd

Re: [PATCH v5 2/9] bus: mhi: core: Allow channel to be disabled from stopped state

2021-01-21 Thread Manivannan Sadhasivam
On Fri, Jan 08, 2021 at 12:54:50PM -0800, Bhaumik Bhatt wrote: > If a channel was explicitly stopped but not reset, allow it to > move to a disabled state so that the channel context can be > cleaned up after a driver remove is issued. Since the channel > remained in stopped state, its context on

Re: [RFC PATCH 2/7] arm64: kernel: Add a WFI hook.

2021-01-21 Thread Arnd Bergmann
On Thu, Jan 21, 2021 at 12:01 PM Mohamed Mediouni wrote: > > On 21 Jan 2021, at 11:52, Arnd Bergmann wrote: > > > > On Wed, Jan 20, 2021 at 2:27 PM Mohamed Mediouni > > wrote: > >> --- a/arch/arm64/kernel/cpu_ops.c > >> +++ b/arch/arm64/kernel/cpu_ops.c > > > >> #if

[PATCH 4/5] clk: at91: clk-master: add register definition for sama7g5's master clock

2021-01-21 Thread Claudiu Beznea
Add register definitions for SAMA7G5's master clock. These would be also used by architecture specific power saving code. With this, update also clk-master.c. Signed-off-by: Claudiu Beznea --- drivers/clk/at91/clk-master.c | 51 ---

Re: [RFC PATCH 1/2] soundwire: add support for static port mapping

2021-01-21 Thread Srinivas Kandagatla
Thanks Pierre for your inputs, On 20/01/2021 22:15, Pierre-Louis Bossart wrote: On 1/20/21 12:01 PM, Srinivas Kandagatla wrote: Some of the soundwire controllers can have static functions assigned to each port, like some ports can only do PCM or PDM. This is the situation with some of the

Re: [PATCH net-next 3/5] net: ipa: have gsi_channel_update() return a value

2021-01-21 Thread Alex Elder
On 1/20/21 11:35 PM, Jakub Kicinski wrote: On Wed, 20 Jan 2021 16:03:59 -0600 Alex Elder wrote: Have gsi_channel_update() return the first transaction in the updated completed transaction list, or NULL if no new transactions have been added. Signed-off-by: Alex Elder @@ -1452,7 +1452,7 @@

"WARNING in cgroup_finalize_control" and "WARNING in cgroup_apply_control_disable" should be duplicate crash reports

2021-01-21 Thread 慕冬亮
Dear kernel developers, I found that on the syzbot dashboard, “WARNING in cgroup_finalize_control” [1] and "WARNING in cgroup_apply_control_disable" [2] should share the same root cause. The reasons for the above statement: 1) the stack trace is the same, and this title difference is due to the

[PATCH iproute2-next] devlink: add support for port params get/set

2021-01-21 Thread Oleksandr Mazur
Add implementation for the port (named) parameters getting/setting. Kernel-side already has implemented devlink port params get / set commands handling. Signed-off-by: Oleksandr Mazur --- devlink/devlink.c | 275 +- 1 file changed, 269 insertions(+),

Re: [PATCH 2/2] Input: add MStar msg26xx touchscreen driver

2021-01-21 Thread Vincent Knecht
Hi Dmitry! Le mercredi 20 janvier 2021 à 23:03 -0800, Dmitry Torokhov a écrit : > Hi Vincent, > > On Wed, Jan 20, 2021 at 07:01:08PM +0100, Vincent Knecht wrote: > > +struct packet { > > +   u8  y_high : 4; > > +   u8  x_high : 4; > > This will not work on big endian devices as

Re: [PATCH v4 0/5] arm64: ARMv8.5-A: MTE: Add async mode support

2021-01-21 Thread Vincenzo Frascino
Hi Andrey, On 1/19/21 6:09 PM, Andrey Konovalov wrote: > Hi Vincenzo, > > This change has multiple conflicts with the KASAN testing patches that > are currently in the mm tree. If Andrew decides to send all of them > during RC, then this should be good to go through arm64. Otherwise, I > guess

[PATCH V2] opp: Prepare for ->set_opp() helper to work without regulators

2021-01-21 Thread Viresh Kumar
Until now the ->set_opp() helper (i.e. special implementation for setting the OPPs for platforms) was implemented only to take care of multiple regulators case, but going forward we would need that for other use cases as well. This patch prepares for that by allocating the regulator specific part

[PATCH net-next] net: core: devlink: add new trap action HARD_DROP

2021-01-21 Thread Oleksandr Mazur
Add new trap action HARD_DROP, which can be used by the drivers to register traps, where it's impossible to get packet reported to the devlink subsystem by the device driver, because it's impossible to retrieve dropped packet from the device itself. In order to use this action, driver must also

Re: [PATCH] kasan: Add explicit preconditions to kasan_report()

2021-01-21 Thread Vincenzo Frascino
Hi Andrey, On 1/19/21 8:56 PM, Andrey Konovalov wrote: >> return (is_vmalloc_addr(addr) || virt_addr_valid(addr)); > Do we need is_vmalloc_addr()? As we don't yet have vmalloc support for > HW_TAGS. It is not necessary but it does not hurt, since we are going to add vmalloc anyway at some

[PATCH iproute2-next] devlink: add support for HARD_DROP trap action

2021-01-21 Thread Oleksandr Mazur
Add support for new HARD_DROP action, which is used for trap hard drop statistics retrival. It's used whenever device is unable to report trapped packet to the devlink subsystem, and thus device could only state how many packets have been dropped, without passing a packet to the devlink subsystem

Re: [PATCH v3 2/4] x86/mmx: Use KFPU_387 for MMX string operations

2021-01-21 Thread Krzysztof Mazur
On Wed, Jan 20, 2021 at 09:09:49PM -0800, Andy Lutomirski wrote: > The default kernel_fpu_begin() doesn't work on systems that support XMM but > haven't yet enabled CR4.OSFXSR. This causes crashes when _mmx_memcpy() is > called too early because LDMXCSR generates #UD when the aforementioned bit >

Re: [PATCH v5 1/9] bus: mhi: core: Allow sending the STOP channel command

2021-01-21 Thread Manivannan Sadhasivam
On Fri, Jan 08, 2021 at 12:54:49PM -0800, Bhaumik Bhatt wrote: > Add support to allow sending the STOP channel command. If a > client driver would like to STOP a channel and have the device > retain the channel context instead of issuing a RESET to it and > clearing the context, this would provide

Re: [PATCH] opp: Prepare for ->set_opp() helper to work without regulators

2021-01-21 Thread Viresh Kumar
On 20-01-21, 17:50, Dmitry Osipenko wrote: > If OPP API was meant to be thread-safe, then the > dev_pm_opp_unregister_set_opp_helper() should unset the > opp_table->set_opp_data under the lock since it races with > dev_pm_opp_set_regulators(). Right, I will fix that. > Secondly, functions like

Re: [PATCH] opp: Prepare for ->set_opp() helper to work without regulators

2021-01-21 Thread Viresh Kumar
On 20-01-21, 13:38, Viresh Kumar wrote: > On 19-01-21, 12:05, Viresh Kumar wrote: > > Until now the ->set_opp() helper (i.e. special implementation for > > setting the OPPs for platforms) was implemented only to take care of > > multiple regulators case, but going forward we would need that for

Re: [RFC PATCH 3/7] arm64: mm: use nGnRnE instead of nGnRE on Apple processors

2021-01-21 Thread Will Deacon
On Wed, Jan 20, 2021 at 02:27:13PM +0100, Mohamed Mediouni wrote: > Use nGnRnE instead of nGnRE on Apple SoCs to workaround a serious hardware > quirk. > > On Apple processors, writes using the nGnRE device memory type get dropped in > flight, > getting to nowhere. > > Signed-off-by: Stan

[PATCH v1 1/2] dt-bindings: iommu: add bindings for sprd iommu

2021-01-21 Thread Chunyan Zhang
From: Chunyan Zhang This patch adds bindings to support display and Image codec(jpeg) iommu instance. The iommu support for others would be added once finished tests with those devices, such as a few signal processors, including VSP(video), GSP(graphic), ISP(image), and camera CPP, etc.

Re: [PATCH] rt2x00: reset reg earlier in rt2500usb_register_read

2021-01-21 Thread 慕冬亮
On Thu, Jan 21, 2021 at 7:21 PM Greg KH wrote: > > On Thu, Jan 21, 2021 at 06:59:08PM +0800, 慕冬亮 wrote: > > > > rt2x00usb_vendor_request_buff(rt2x00dev, USB_MULTI_READ, > > > > USB_VENDOR_REQUEST_IN, offset, > > > > ,

Re: [PATCH v4] drm: Improve the output_poll_changed description

2021-01-21 Thread Daniel Vetter
On Thu, Jan 21, 2021 at 4:09 AM ZhiJie.Zhang wrote: > > From: zhangzhijie > > this callback was used by drm_kms_helper_hotplug_event() > > V2: (Thanks for Daniel's suggestions) > - remove the FIXME below.since with the drm_client > - infrastructure and the generic fbdev emulation we've > -

<    7   8   9   10   11   12   13   14   15   >