[PATCH 0/2] *** SUBJECT HERE ***

2021-04-16 Thread Tao Zhang
*** BLURB HERE *** Tao Zhang (2): coresight: Add support for device names dt-bindings: arm: add property for coresight component name Documentation/devicetree/bindings/arm/coresight.txt | 2 ++ drivers/hwtracing/coresight/coresight-core.c| 6 ++ 2 files changed, 8 insertions(+)

[PATCH v8 12/15] dt-bindings: arm: rockchip: add more compatible strings to pmu.yaml

2021-04-16 Thread Johan Jonker
The compatible strings below are already in use in the Rockchip dtsi files, but were somehow never added to a document, so add "rockchip,px30-pmu", "syscon", "simple-mfd" "rockchip,rk3288-pmu", "syscon", "simple-mfd" "rockchip,rk3328-pmu", "syscon", "simple-mfd" "rockchip,rk3399-pmu", "syscon",

Re: [PATCH v4 2/2] pwm: visconti: Add Toshiba Visconti SoC PWM support

2021-04-16 Thread Nobuhiro Iwamatsu
Hi, Thanks for your review. On Mon, Apr 12, 2021 at 09:02:32AM +0200, Uwe Kleine-König wrote: > On Mon, Apr 12, 2021 at 11:55:36AM +0900, Nobuhiro Iwamatsu wrote: > > Hi Uwe, > > > > Thanks for your review. > > > > On Sat, Apr 10, 2021 at 03:53:21PM +0200, Uwe Kleine-König wrote: > > > Hello,

[PATCH v8 11/15] dt-bindings: arm: rockchip: convert pmu.txt to YAML

2021-04-16 Thread Johan Jonker
Current dts files with 'pmu' nodes are manually verified. In order to automate this process pmu.txt has to be converted to yaml. Signed-off-by: Johan Jonker --- .../devicetree/bindings/arm/rockchip/pmu.txt | 16 --- .../devicetree/bindings/arm/rockchip/pmu.yaml | 49

[PATCH v8 09/15] soc: rockchip: pm-domains: Add a meaningful power domain name

2021-04-16 Thread Johan Jonker
From: Elaine Zhang Add the power domains names to the power domain info struct so we have meaningful name for every power domain. Signed-off-by: Elaine Zhang Signed-off-by: Johan Jonker --- Changed V7: Fix TAB warning Fix alignment --- drivers/soc/rockchip/pm_domains.c | 221

[PATCH v8 10/15] dt-bindings: add power-domain header for RK3568 SoCs

2021-04-16 Thread Johan Jonker
From: Elaine Zhang According to a description from TRM, add all the power domains Signed-off-by: Elaine Zhang Reviewed-by: Enric Balletbo i Serra Signed-off-by: Johan Jonker Acked-by: Rob Herring --- include/dt-bindings/power/rk3568-power.h | 32 1 file

[PATCH v8 08/15] arm64: dts: rockchip: add #power-domain-cells to power domain nodes

2021-04-16 Thread Johan Jonker
Add #power-domain-cells to power domain nodes, because they are required by power-domain.yaml Signed-off-by: Johan Jonker --- arch/arm64/boot/dts/rockchip/px30.dtsi | 8 arch/arm64/boot/dts/rockchip/rk3328.dtsi | 3 +++ arch/arm64/boot/dts/rockchip/rk3399.dtsi | 20

[PATCH v8 07/15] arm64: dts: rockchip: Fix power-controller node names for rk3399

2021-04-16 Thread Johan Jonker
From: Elaine Zhang Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang Reviewed-by: Enric Balletbo i Serra Signed-off-by: Johan Jonker --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 40

linux-next: manual merge of the rust tree with the printk tree

2021-04-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the rust tree got a conflict in: kernel/printk/printk.c between commit: cf5b0208fda4 ("printk: introduce CONSOLE_LOG_MAX") from the printk tree and commit: fd1e637b9b4b ("Rust: Kernel crate") from the rust tree. I fixed it up (see below) and can

[PATCH net-next 4/6] r8152: support new chips

2021-04-16 Thread Hayes Wang
Support RTL8153C, RTL8153D, RTL8156A, and RTL8156B. The RTL8156A and RTL8156B are the 2.5G ethernet. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 2634 +++ 1 file changed, 2359 insertions(+), 275 deletions(-) diff --git a/drivers/net/usb/r8152.c

[PATCH net-next 5/6] r8152: support PHY firmware for RTL8156 series

2021-04-16 Thread Hayes Wang
Support new firmware type and method for RTL8156 series. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 563 +++- 1 file changed, 561 insertions(+), 2 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index

[PATCH net-next 2/6] r8152: adjust rtl8152_check_firmware function

2021-04-16 Thread Hayes Wang
Use bits operations to record and check the firmware. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 51 +++-- 1 file changed, 29 insertions(+), 22 deletions(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index

[PATCH net-next 6/6] r8152: search the configuration of vendor mode

2021-04-16 Thread Hayes Wang
The vendor mode is not always at config #1, so it is necessary to set the correct configuration number. Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 39 +++ 1 file changed, 35 insertions(+), 4 deletions(-) diff --git a/drivers/net/usb/r8152.c

[PATCH net-next 1/6] r8152: set inter fram gap time depending on speed

2021-04-16 Thread Hayes Wang
Set the maximum inter frame gap time (144ns) for speed 10M/half and 100M/half. It improves the performance for those speeds. And, there is no effect for the other speeds. For 10M/half and 100M/half, the fast inter frame gap time let the device couldn't use the feature of the aggregation

[PATCH net-next 3/6] r8152: add help function to change mtu

2021-04-16 Thread Hayes Wang
The different chips may have different requests when changing mtu. Therefore, add a new help function of rtl_ops to change mtu. Besides, reset the tx/rx after changing mtu. Additionally, add mtu_to_size() and size_to_mtu() macros to simplify the code. Signed-off-by: Hayes Wang ---

[PATCH net-next 0/6] r8152: support new chips

2021-04-16 Thread Hayes Wang
Support new RTL8153 and RTL8156 series. Hayes Wang (6): r8152: set inter fram gap time depending on speed r8152: adjust rtl8152_check_firmware function r8152: add help function to change mtu r8152: support new chips r8152: support PHY firmware for RTL8156 series r8152: search the

[PATCH v8 06/15] arm64: dts: rockchip: Fix power-controller node names for rk3328

2021-04-16 Thread Johan Jonker
From: Elaine Zhang Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang Reviewed-by: Enric Balletbo i Serra Signed-off-by: Johan Jonker --- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 6 +++--- 1 file changed, 3

[PATCH v8 05/15] arm64: dts: rockchip: Fix power-controller node names for px30

2021-04-16 Thread Johan Jonker
From: Elaine Zhang Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang Reviewed-by: Enric Balletbo i Serra Signed-off-by: Johan Jonker --- arch/arm64/boot/dts/rockchip/px30.dtsi | 16 1 file

[PATCH v8 04/15] ARM: dts: rockchip: add #power-domain-cells to power domain nodes

2021-04-16 Thread Johan Jonker
Add #power-domain-cells to power domain nodes, because they are required by power-domain.yaml Signed-off-by: Johan Jonker --- arch/arm/boot/dts/rk3066a.dtsi | 3 +++ arch/arm/boot/dts/rk3188.dtsi | 3 +++ arch/arm/boot/dts/rk3288.dtsi | 4 3 files changed, 10 insertions(+) diff --git

[PATCH v8 02/15] ARM: dts: rockchip: Fix power-controller node names for rk3188

2021-04-16 Thread Johan Jonker
From: Elaine Zhang Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang Reviewed-by: Enric Balletbo i Serra Signed-off-by: Johan Jonker --- arch/arm/boot/dts/rk3188.dtsi | 6 +++--- 1 file changed, 3 insertions(+),

[PATCH v8 03/15] ARM: dts: rockchip: Fix power-controller node names for rk3288

2021-04-16 Thread Johan Jonker
From: Elaine Zhang Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang Reviewed-by: Enric Balletbo i Serra Signed-off-by: Johan Jonker --- arch/arm/boot/dts/rk3288.dtsi | 8 1 file changed, 4

[PATCH v8 01/15] ARM: dts: rockchip: Fix power-controller node names for rk3066a

2021-04-16 Thread Johan Jonker
From: Elaine Zhang Use more generic names (as recommended in the device tree specification or the binding documentation) Signed-off-by: Elaine Zhang Reviewed-by: Enric Balletbo i Serra Signed-off-by: Johan Jonker --- Changed --- arch/arm/boot/dts/rk3066a.dtsi | 6 +++--- 1 file changed, 3

[PATCH v8 00/15] soc: rockchip: power-domain: add rk3568 powerdomains

2021-04-16 Thread Johan Jonker
Fix power-controller node names for dtbs_check. Convert power domain documentation to json-schema. Add a meaningful power domain name. Support power domain function for RK3568 Soc. Changed in V8: Add #power-domain-cells to power domain nodes. Convert pmu.txt to YAML. Add more compatible

Re: [PATCH v1 1/1] powerpc/papr_scm: Properly handle UUID types and API

2021-04-16 Thread Aneesh Kumar K.V
On 4/15/21 7:16 PM, Andy Shevchenko wrote: Parse to and export from UUID own type, before dereferencing. This also fixes wrong comment (Little Endian UUID is something else) and should fix Sparse warnings about assigning strict types to POD. Fixes: 43001c52b603 ("powerpc/papr_scm: Use

linux-next: manual merge of the rust tree with the char-misc tree

2021-04-16 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the rust tree got a conflict in: include/uapi/linux/android/binder.h between commits: 432ff1e91694 ("binder: BINDER_FREEZE ioctl") ae28c1be1e54 ("binder: BINDER_GET_FROZEN_INFO ioctl") a7dc1e6f99df ("binder: tell userspace to dump current backtrace

Re: linux-next: Fixes tag needs some work in the iommu tree

2021-04-16 Thread Dafna Hirschfeld
On 15.04.21 23:51, Stephen Rothwell wrote: Hi all, In commit af5247b169a0 ("iommu/mediatek: Always enable the clk on resume") Fixes tag Fixes: commit c0b57581b73b ("iommu/mediatek: Add power-domain operation") has these problem(s): - leading word 'commit' unexpected Hi, I'll

[PATCH 3/3] audit: Use syscall_get_return_value to get syscall return code in audit_syscall_exit

2021-04-16 Thread He Zhe
regs_return_value for some architectures like arm64 simply retrieve register value from pt_regs without sign extension in 32-bit compatible case and cause audit to have false syscall return code. For example, 32-bit -13 would be treated as 4294967283 below. type=SYSCALL

[PATCH 2/3] arm64: syscall.h: Add sign extension handling in syscall_get_return_value for compat

2021-04-16 Thread He Zhe
Add sign extension handling in syscall_get_return_value so that it can handle 32-bit compatible case and can be used by for example audit, just like what syscall_get_error does. Signed-off-by: He Zhe --- arch/arm64/include/asm/syscall.h | 7 ++- 1 file changed, 6 insertions(+), 1

[PATCH 1/3] arm64: ptrace: Add is_syscall_success to handle compat

2021-04-16 Thread He Zhe
The general version of is_syscall_success does not handle 32-bit compatible case, which would cause 32-bit negative return code to be recoganized as a positive number later and seen as a "success". Since is_compat_thread is defined in compat.h, implementing is_syscall_success in ptrace.h would

Bisections with different bug manifestations

2021-04-16 Thread Dmitry Vyukov
On Tue, Apr 13, 2021 at 8:43 PM Steven Rostedt wrote: > > On Tue, 13 Apr 2021 14:40:09 -0400 > Steven Rostedt wrote: > > > [ cut here ] > > raw_local_irq_restore() called with IRQs enabled > > WARNING: CPU: 0 PID: 8777 at kernel/locking/irqflag-debug.c:9 > >

Re: [PATCH v5, 2/4] soc: mediatek: mmsys: add component POSTMASK

2021-04-16 Thread Enric Balletbo Serra
Hi Yongqiang, Thank you for your patch. Missatge de Yongqiang Niu del dia dl., 12 d’abr. 2021 a les 16:05: > > This patch add component POSTMASK > > Signed-off-by: Yongqiang Niu Reviewed-by: Enric Balletbo i Serra > --- > include/linux/soc/mediatek/mtk-mmsys.h | 1 + > 1 file changed, 1

[PATCH] ARM: dts: aspeed: update e3c246d4i vuart properties

2021-04-16 Thread Zev Weiss
This device-tree was merged with a provisional vuart IRQ-polarity property that was still under review and ended up taking a somewhat different form. This patch updates it to match the final form of the new vuart properties, which additionally allow specifying the SIRQ number and LPC address.

Re: [PATCH v4 3/3] phy: phy-can-transceiver: Add support for generic CAN transceiver driver

2021-04-16 Thread Marc Kleine-Budde
On 16.04.2021 10:56:47, Aswath Govindraju wrote: > The driver adds support for generic CAN transceivers. Currently > the modes supported by this driver are standby and normal modes for TI > TCAN1042 and TCAN1043 CAN transceivers. > > The transceiver is modelled as a phy with pins controlled by

Re: [PATCH v5, 1/4] soc: mediatek: mmsys: add component OVL_2L2

2021-04-16 Thread Enric Balletbo Serra
Hi Yongqiang, Thank you for your patch. Missatge de Yongqiang Niu del dia dl., 12 d’abr. 2021 a les 16:04: > > This patch add component OVL_2L2 > > Signed-off-by: Yongqiang Niu > Reviewed-by: Chun-Kuang Hu Reviewed-by: Enric Balletbo i Serra > --- > include/linux/soc/mediatek/mtk-mmsys.h

Re: [PATCH v2 0/1] arm: topology: parse the topology from the dt

2021-04-16 Thread Ruifeng Zhang
Dietmar Eggemann 于2021年4月16日周五 上午4:10写道: > > On 15/04/2021 20:09, Valentin Schneider wrote: > > On 14/04/21 20:23, Ruifeng Zhang wrote: > >> From: Ruifeng Zhang > >> > >> In Unisoc, the sc9863a SoC which using cortex-a55, it has two software > >> version, one of them is the kernel running on EL1

Re: [PATCH 00/13] [RFC] Rust support

2021-04-16 Thread Peter Zijlstra
On Fri, Apr 16, 2021 at 06:02:33AM +0100, Wedson Almeida Filho wrote: > On Fri, Apr 16, 2021 at 04:25:34AM +, Al Viro wrote: > > And as one of those freaks I can tell > > you where exactly I would like you to go and what I would like you to do > > with implicit suggestions to start a browser

Re: [PATCH v3 2/5] media: i2c: max9286: Use "maxim,gpio-poc" property

2021-04-16 Thread Jacopo Mondi
Hi Laurent, On Thu, Apr 15, 2021 at 10:14:05PM +0300, Laurent Pinchart wrote: > > > > + /* GPIO values default to high */ > > > > + priv->gpio_state = BIT(0) | BIT(1); > > > > > > Why is that ? > > > > > As the set/get functions of gpiochip use the gpio_state and I

Re: [PATCH v3 1/2] binfmt_flat: allow not offsetting data start

2021-04-16 Thread Damien Le Moal
On 2021/04/16 16:24, Greg Ungerer wrote: > > On 16/4/21 9:22 am, Damien Le Moal wrote: >> On 2021/04/15 23:04, Greg Ungerer wrote: >>> Hi Damien, >>> >>> On 15/4/21 4:15 pm, Damien Le Moal wrote: Commit 2217b9826246 ("binfmt_flat: revert "binfmt_flat: don't offset the data start"")

Re: [PATCH 0/1] coresight: Fix for v5.12-rc7

2021-04-16 Thread Greg KH
On Fri, Apr 16, 2021 at 08:54:00AM +0200, Greg KH wrote: > On Thu, Apr 15, 2021 at 02:24:03PM -0600, Mathieu Poirier wrote: > > Hi Greg, > > > > Please consider this patch as a fix for v5.12-rc7. Applies cleanly > > to your char-misc-linus branch (e49d033bddf5). > > It's too late for

Re: [External] Re: [PATCH v1] ARM: dts: Fix 64MiB OpenBMC flash layout and aspeed-ast2600-evb.dts

2021-04-16 Thread Lei Yu
On Fri, Apr 16, 2021 at 11:03 AM Joel Stanley wrote: > > On Tue, 16 Mar 2021 at 08:59, Troy Lee wrote: > > > > Aspeed AST2600 u-boot requires 600KiB+ flash space. Sharing the same > > openbmc-flash-layout-64.dtsi requires to resize the flash partition. > > > > The updated flash layout as

Re: [PATCH] floppy: remove redundant assignment to variable st

2021-04-16 Thread Denis Efremov
Hi, On 4/15/21 4:00 PM, Colin King wrote: > From: Colin Ian King > > The variable st is being assigned 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-Coverity: ("Unused value") > Signed-off-by:

RE: [PATCH 1/1] mm: Fix struct page layout on 32-bit systems

2021-04-16 Thread David Laight
From: Matthew Wilcox > Sent: 15 April 2021 23:22 > > On Thu, Apr 15, 2021 at 09:11:56PM +, David Laight wrote: > > Isn't it possible to move the field down one long? > > This might require an explicit zero - but this is not a common > > code path - the extra write will be noise. > > Then it

Re: [PATCH 00/57] Rid W=1 warnings from Staging

2021-04-16 Thread Greg Kroah-Hartman
On Fri, Apr 16, 2021 at 09:27:51AM +0200, Fabio Aiuto wrote: > On Wed, Apr 14, 2021 at 07:10:32PM +0100, Lee Jones wrote: > > This set is part of a larger effort attempting to clean-up W=1 > > kernel builds, which are currently overwhelmingly riddled with > > niggly little warnings. > > > > Lee

Re: [PATCH net-next v4 2/2] of: net: fix of_get_mac_addr_nvmem() for non-platform devices

2021-04-16 Thread Michael Walle
Am 2021-04-16 05:24, schrieb Benjamin Herrenschmidt: On Mon, 2021-04-12 at 19:47 +0200, Michael Walle wrote: /** * of_get_phy_mode - Get phy mode for given device_node @@ -59,15 +60,39 @@ static int of_get_mac_addr(struct device_node *np, const char *name, u8 *addr) static int

Re: [PATCH 00/57] Rid W=1 warnings from Staging

2021-04-16 Thread Fabio Aiuto
On Wed, Apr 14, 2021 at 07:10:32PM +0100, Lee Jones wrote: > This set is part of a larger effort attempting to clean-up W=1 > kernel builds, which are currently overwhelmingly riddled with > niggly little warnings. > > Lee Jones (57): > staging: r8192U_core: Remove two unused variables 'ret'

Re: [PATCH v2 0/2] Fix binfmt_flat loader for RISC-V

2021-04-16 Thread Greg Ungerer
On 16/4/21 10:26 am, Damien Le Moal wrote: On 2021/04/16 9:22, Al Viro wrote: On Thu, Apr 15, 2021 at 07:56:05AM +0200, Christoph Hellwig wrote: binfmt_flat tends to go through Greg's uclinux tree, adding him and the list. FWIW, my involvement with binfmt_flat had been pretty much

Re: [PATCH v7 4/8] mm,memory_hotplug: Allocate memmap from the added memory range

2021-04-16 Thread Oscar Salvador
On Thu, Apr 15, 2021 at 01:19:59PM +0200, David Hildenbrand wrote: > > Implementation wise we will reuse vmem_altmap infrastructure to override > > the default allocator used by __populate_section_memmap. > > Part of the implementation also relies on memory_block structure gaining > > a new field

Re: [PATCH v3 1/2] binfmt_flat: allow not offsetting data start

2021-04-16 Thread Greg Ungerer
On 16/4/21 9:22 am, Damien Le Moal wrote: On 2021/04/15 23:04, Greg Ungerer wrote: Hi Damien, On 15/4/21 4:15 pm, Damien Le Moal wrote: Commit 2217b9826246 ("binfmt_flat: revert "binfmt_flat: don't offset the data start"") restored offsetting the start of the data section by a number of

Re: [PATCH v3 net-next 07/10] net: korina: Add support for device tree

2021-04-16 Thread Thomas Bogendoerfer
On Fri, Apr 16, 2021 at 01:49:07AM +0200, Andrew Lunn wrote: > > - memcpy(dev->dev_addr, mac_addr, ETH_ALEN); > > + if (mac_addr) { > > + ether_addr_copy(dev->dev_addr, mac_addr); > > + } else { > > + u8 ofmac[ETH_ALEN]; > > + > > + if

Re: [PATCH v2 0/8] MIPS: fixes for PCI legacy drivers (rt2880, rt3883)

2021-04-16 Thread Thomas Bogendoerfer
On Tue, Apr 13, 2021 at 08:12:32PM -0700, Ilya Lipnitskiy wrote: > One major fix for rt2880-pci in the first patch - fixes breakage that > existed since v4.14. > > Other more minor fixes, cleanups, and improvements that either free up > memory, make dmesg messages clearer, or remove redundant

Re: [PATCH] MIPS: Fix strnlen_user access check

2021-04-16 Thread Thomas Bogendoerfer
On Thu, Apr 15, 2021 at 11:26:40PM +0200, Thomas Bogendoerfer wrote: > Commit 04324f44cb69 ("MIPS: Remove get_fs/set_fs") changed the access_ok > for strnlen_user to check the whole range, which broke some callers > of strndup_user(). Restore the old behaviour and just check the first byte. > >

[PATCH V3 3/3] vDPA/ifcvf: get_config_size should return dev specific config size

2021-04-16 Thread Zhu Lingshan
get_config_size() should return the size based on the decected device type. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_main.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/drivers/vdpa/ifcvf/ifcvf_main.c b/drivers/vdpa/ifcvf/ifcvf_main.c

[PATCH V3 2/3] vDPA/ifcvf: enable Intel C5000X-PL virtio-block for vDPA

2021-04-16 Thread Zhu Lingshan
This commit enabled Intel FPGA SmartNIC C5000X-PL virtio-block for vDPA. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base.h | 8 +++- drivers/vdpa/ifcvf/ifcvf_main.c | 19 ++- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git

[PATCH V3 1/3] vDPA/ifcvf: deduce VIRTIO device ID when probe

2021-04-16 Thread Zhu Lingshan
This commit deduces VIRTIO device ID as device type when probe, then ifcvf_vdpa_get_device_id() can simply return the ID. ifcvf_vdpa_get_features() and ifcvf_vdpa_get_config_size() can work properly based on the device ID. Signed-off-by: Zhu Lingshan --- drivers/vdpa/ifcvf/ifcvf_base.h | 1 +

[PATCH V3 0/3] vDPA/ifcvf: enables Intel C5000X-PL virtio-blk

2021-04-16 Thread Zhu Lingshan
This series enabled Intel FGPA SmartNIC C5000X-PL virtio-blk for vDPA. This series requires: Stefano's vdpa block patchset: https://lkml.org/lkml/2021/3/15/2113 my patchset to enable Intel FGPA SmartNIC C5000X-PL virtio-net for vDPA: https://lkml.org/lkml/2021/3/17/432 changes from V2: both

Re: [syzbot] general protection fault in gadget_setup

2021-04-16 Thread Dmitry Vyukov
On Thu, Apr 15, 2021 at 10:59 PM Alan Stern wrote: > > On Tue, Apr 13, 2021 at 07:11:11PM +0200, Dmitry Vyukov wrote: > > On Tue, Apr 13, 2021 at 6:57 PM Alan Stern > > wrote: > > > > > > On Tue, Apr 13, 2021 at 06:47:47PM +0200, Dmitry Vyukov wrote: > > > > On Tue, Apr 13, 2021 at 6:13 PM Alan

Re: [PATCH] mmc: core: Don't allocate IDA for OF aliases

2021-04-16 Thread Ulf Hansson
On Thu, 15 Apr 2021 at 21:29, Stephen Boyd wrote: > > Quoting Ulf Hansson (2021-04-15 01:56:12) > > On Tue, 13 Apr 2021 at 02:36, Stephen Boyd wrote: > > > > > > - err = ida_simple_get(_host_ida, min_idx, max_idx, GFP_KERNEL); > > > - if (err < 0) { > > > - kfree(host);

Re: [PATCH] kernel:irq:manage: request threaded irq with a specified priority

2021-04-16 Thread Daniel Bristot de Oliveira
On 4/16/21 6:57 AM, chensong wrote: > > > On 2021/4/13 下午4:39, Thomas Gleixner wrote: >> On Tue, Apr 13 2021 at 14:19, Song Chen wrote: >>> In general, irq handler thread will be assigned a default priority which >>> is MAX_RT_PRIO/2, as a result, no one can preempt others. >>> >>> Here is the 

Re: [PATCH] powerpc/pseries: extract host bridge from pci_bus prior to bus removal

2021-04-16 Thread Daniel Axtens
Hi Tyrel, > The pci_bus->bridge reference may no longer be valid after > pci_bus_remove() resulting in passing a bad value to device_unregister() > for the associated bridge device. > > Store the host_bridge reference in a separate variable prior to > pci_bus_remove(). > The patch certainly seems

[PATCH v3] drm/i915: Fix "mitigations" parsing if i915 is builtin

2021-04-16 Thread Jisheng Zhang
I met below error during boot with i915 builtin if pass "i915.mitigations=off": [0.015589] Booting kernel: `off' invalid for parameter `i915.mitigations' The reason is slab subsystem isn't ready at that time, so kstrdup() returns NULL. Fix this issue by using stack var instead of kstrdup().

Re: [PATCH 00/13] [RFC] Rust support

2021-04-16 Thread Peter Zijlstra
On Fri, Apr 16, 2021 at 03:22:16AM +0100, Wedson Almeida Filho wrote: > On Thu, Apr 15, 2021 at 08:58:16PM +0200, Peter Zijlstra wrote: > > On Wed, Apr 14, 2021 at 08:45:51PM +0200, oj...@kernel.org wrote: > > > > > Rust is a systems programming language that brings several key > > > advantages

Re: [PATCH 2/2] drm/ttm: optimize the pool shrinker a bit v2

2021-04-16 Thread Christian König
Am 15.04.21 um 22:33 schrieb Andrew Morton: On Thu, 15 Apr 2021 13:56:24 +0200 "Christian König" wrote: @@ -530,6 +525,11 @@ void ttm_pool_fini(struct ttm_pool *pool) for (j = 0; j < MAX_ORDER; ++j)

Re: [PATCH] soc: fsl: qe: remove unused function

2021-04-16 Thread Christophe Leroy
Le 16/04/2021 à 08:57, Daniel Axtens a écrit : Hi Jiapeng, Fix the following clang warning: You are not fixing a warning, you are removing a function in order to fix a warning ... drivers/soc/fsl/qe/qe_ic.c:234:29: warning: unused function 'qe_ic_from_irq' [-Wunused-function]. Would

Re: [PATCH] x86/kprobes: Simplify alloc_insn_page() with __vmalloc_node_range

2021-04-16 Thread Jisheng Zhang
On Wed, 14 Apr 2021 16:12:23 +0300 Jarkko Sakkinen wrote: > > So kprobes ss ins slot page "must be in the range of relative branching only > > for x86 and arm" > > > > And Jarkko's "arch/x86: kprobes: Remove MODULES dependency" series look > > much better. The last version is v5, I'm not sure

Re: [PATCH 10/15] usb: dwc2: Allow exit hibernation in urb enqueue

2021-04-16 Thread Artur Petrosyan
Hi Sergei, On 4/16/2021 09:43, Artur Petrosyan wrote: > Hi Sergei, > > On 4/15/2021 13:12, Sergei Shtylyov wrote: >> On 15.04.2021 8:40, Artur Petrosyan wrote: >> >>> When core is in hibernation state and an external >>> hub is connected, upper layer sends URB enqueue request, >>> which results

[PATCH v9 7/7] mm,page_alloc: Drop unnecessary checks from pfn_range_valid_contig

2021-04-16 Thread Oscar Salvador
pfn_range_valid_contig() bails out when it finds an in-use page or a hugetlb page, among other things. We can drop the in-use page check since __alloc_contig_pages can migrate away those pages, and the hugetlb page check can go too since isolate_migratepages_range is now capable of dealing with

[PATCH v9 6/7] mm: Make alloc_contig_range handle in-use hugetlb pages

2021-04-16 Thread Oscar Salvador
alloc_contig_range() will fail if it finds a HugeTLB page within the range, without a chance to handle them. Since HugeTLB pages can be migrated as any LRU or Movable page, it does not make sense to bail out without trying. Enable the interface to recognize in-use HugeTLB pages so we can migrate

[PATCH v9 3/7] mm,hugetlb: Drop clearing of flag from prep_new_huge_page

2021-04-16 Thread Oscar Salvador
Pages allocated via the page allocator or CMA get its private field cleared by means of post_alloc_hook(). Pages allocated during boot, that is directly from the memblock allocator, get cleared by paging_init()->..->memmap_init_zone->..->__init_single_page() before any memblock allocation. Based

[PATCH v9 5/7] mm: Make alloc_contig_range handle free hugetlb pages

2021-04-16 Thread Oscar Salvador
alloc_contig_range will fail if it ever sees a HugeTLB page within the range we are trying to allocate, even when that page is free and can be easily reallocated. This has proved to be problematic for some users of alloc_contic_range, e.g: CMA and virtio-mem, where those would fail the call even

[PATCH v9 4/7] mm,hugetlb: Split prep_new_huge_page functionality

2021-04-16 Thread Oscar Salvador
Currently, prep_new_huge_page() performs two functions. It sets the right state for a new hugetlb, and increases the hstate's counters to account for the new page. Let us split its functionality into two separate functions, decoupling the handling of the counters from initializing a hugepage. The

[PATCH v9 2/7] mm,compaction: Let isolate_migratepages_{range,block} return error codes

2021-04-16 Thread Oscar Salvador
Currently, isolate_migratepages_{range,block} and their callers use a pfn == 0 vs pfn != 0 scheme to let the caller know whether there was any error during isolation. This does not work as soon as we need to start reporting different error codes and make sure we pass them down the chain, so they

[PATCH v9 0/7] Make alloc_contig_range handle Hugetlb pages

2021-04-16 Thread Oscar Salvador
Hi Andrew, I think this is ready to be picked up. v8 -> v9: - Collect final Acked-by/Reviewed-by - Fix up some nits in patch#5 - Reword patch#3's changelog v7 -> v8: - Remove clearing of flag from prep_new_huge_page() - Reworded comment in alloc_and_dissolve_huge_page() by Michal -

[PATCH v9 1/7] mm,page_alloc: Bail out earlier on -ENOMEM in alloc_contig_migrate_range

2021-04-16 Thread Oscar Salvador
Currently, __alloc_contig_migrate_range can generate -EINTR, -ENOMEM or -EBUSY, and report them down the chain. The problem is that when migrate_pages() reports -ENOMEM, we keep going till we exhaust all the try-attempts (5 at the moment) instead of bailing out. migrate_pages() bails out right

[0/3] Add L3 provider support for SC7280

2021-04-16 Thread Odelu Kukatla
Add Epoch Subsystem (EPSS) L3 provider support on SM7280 SoCs. Depends on: https://lore.kernel.org/patchwork/cover/1389010/ Depends on: https://lore.kernel.org/patchwork/cover/1392102/ Odelu Kukatla (3): dt-bindings: interconnect: Add EPSS L3 DT binding on SC7280 interconnect: qcom: Add EPSS

[3/3] arm64: dts: qcom: sc7280: Add EPSS L3 interconnect provider

2021-04-16 Thread Odelu Kukatla
Add Epoch Subsystem (EPSS) L3 interconnect provider node on SC7280 SoCs. Signed-off-by: Odelu Kukatla --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index

[1/3] dt-bindings: interconnect: Add EPSS L3 DT binding on SC7280

2021-04-16 Thread Odelu Kukatla
Add Epoch Subsystem (EPSS) L3 interconnect provider binding on SC7280 SoCs. Signed-off-by: Odelu Kukatla --- Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/interconnect/qcom,osm-l3.yaml

[2/3] interconnect: qcom: Add EPSS L3 support on SC7280

2021-04-16 Thread Odelu Kukatla
Add Epoch Subsystem (EPSS) L3 interconnect provider support on SC7280 SoCs. Signed-off-by: Odelu Kukatla --- drivers/interconnect/qcom/osm-l3.c | 124 +++-- drivers/interconnect/qcom/sc7280.h | 10 ++ include/dt-bindings/interconnect/qcom,osm-l3.h |

Re: [PATCH v2 2/2] can: m_can: Add support for transceiver as phy

2021-04-16 Thread Marc Kleine-Budde
On 4/15/21 5:46 PM, Aswath Govindraju wrote: > From: Faiz Abbas > > Add support for implementing transceiver node as phy. The max_bitrate is > obtained by getting a phy attribute. > > Signed-off-by: Faiz Abbas > Signed-off-by: Aswath Govindraju > --- > drivers/net/can/m_can/m_can.c

Re: [PATCH v3 net-next 06/10] net: korina: Only pass mac address via platform data

2021-04-16 Thread Thomas Bogendoerfer
On Fri, Apr 16, 2021 at 01:30:04AM +0200, Andrew Lunn wrote: > On Thu, Apr 15, 2021 at 01:06:43AM +0200, Thomas Bogendoerfer wrote: > > Get rid of access to struct korina_device by just passing the mac > > address via platform data and use drvdata for passing netdev to remove > > function. > > >

Re: [PATCH] soc: fsl: qe: remove unused function

2021-04-16 Thread Daniel Axtens
Hi Jiapeng, > Fix the following clang warning: > > drivers/soc/fsl/qe/qe_ic.c:234:29: warning: unused function > 'qe_ic_from_irq' [-Wunused-function]. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > drivers/soc/fsl/qe/qe_ic.c | 5 - > 1 file changed, 5 deletions(-) > >

[PATCH v8] fat: Add KUnit tests for checksums and timestamps

2021-04-16 Thread David Gow
Add some basic sanity-check tests for the fat_checksum() function and the fat_time_unix2fat() and fat_time_fat2unix() functions. These unit tests verify these functions return correct output for a number of test inputs. These tests were inspored by -- and serve a similar purpose to -- the

Re: [PATCH 0/1] coresight: Fix for v5.12-rc7

2021-04-16 Thread Greg KH
On Thu, Apr 15, 2021 at 02:24:03PM -0600, Mathieu Poirier wrote: > Hi Greg, > > Please consider this patch as a fix for v5.12-rc7. Applies cleanly > to your char-misc-linus branch (e49d033bddf5). It's too late for 5.12-final, and really my tree should be closed for 5.13-rc1 now. I can sneak

[next PATCH] usb: xhci-mtk: remove bus status check

2021-04-16 Thread Chunfeng Yun
PM will take care of the status of child device, so no need check each port anymore. Suggested-by: Ikjoon Jang Signed-off-by: Chunfeng Yun --- drivers/usb/host/xhci-mtk.c | 43 ++--- 1 file changed, 2 insertions(+), 41 deletions(-) diff --git

[PATCH] powerpc/kdump: fix kdump kernel hangup issue with hot add CPUs

2021-04-16 Thread Sourabh Jain
With the kexec_file_load system call when system crashes on the hot add CPU the capture kernel hangs and failed to collect the vmcore. Kernel panic - not syncing: sysrq triggered crash CPU: 24 PID: 6065 Comm: echo Kdump: loaded Not tainted 5.12.0-rc5upstream #54 Call Trace: [c000e590fac0]

Re: [PATCH v3] serial: omap: fix rs485 half-duplex filtering

2021-04-16 Thread Greg Kroah-Hartman
On Thu, Apr 15, 2021 at 11:02:52PM +0200, Dario Binacchi wrote: > Data received during half-duplex transmission must be filtered. > If the target device responds quickly, emptying the FIFO at the end of > the transmission can erase not only the echo characters but also part of > the response

Re: [RFC PATCH v1 00/11] Manage the top tier memory in a tiered memory

2021-04-16 Thread Michal Hocko
On Thu 15-04-21 15:31:46, Tim Chen wrote: > > > On 4/9/21 12:24 AM, Michal Hocko wrote: > > On Thu 08-04-21 13:29:08, Shakeel Butt wrote: > >> On Thu, Apr 8, 2021 at 11:01 AM Yang Shi wrote: > > [...] > >>> The low priority jobs should be able to be restricted by cpuset, for > >>> example, just

[PATCH 1/4] dt-bindings: reset: Convert ti,sci-reset to json schema

2021-04-16 Thread Nishanth Menon
Convert the ti,sci-reset to json schema for better checks and documentation. Differences being: - Drop consumer example as they are documented in the corresponding bindings themselves. - Drop phandle description for reset consumer or cell definition as it is redundant. NOTE: we do have

[PATCH 3/4] dt-bindings: soc: ti: Convert ti,sci-pm-domain to json schema

2021-04-16 Thread Nishanth Menon
Convert the ti,sci-pm-domain to json schema for better checks and documentation. Differences being: - Drop consumer example as they are documented in the corresponding bindings themselves. - Drop phandle description for reset consumer or cell definition as it is redundant. NOTE: we do

[PATCH 4/4] dt-bindings: arm: keystone: Convert ti,sci to json schema

2021-04-16 Thread Nishanth Menon
Convert the ti,sci to json schema for better checks and documentation. NOTE: This change does introduce a stricter naming convention for TI-SCI controller nodes. NOTE: we do have false positive checkpatch warning with this patch: "DT binding docs and includes should be a separate patch"

[PATCH 2/4] dt-bindings: clock: Convert ti,sci-clk to json schema

2021-04-16 Thread Nishanth Menon
Convert the ti,sci-clk to json schema for better checks and documentation. Differences being: - Drop consumer example as they are documented in the corresponding bindings themselves. - Standardize the node name as clock-controller rather than clocks as it is more appropriate. - Drop

[PATCH 0/4] dt-bindings: soc/arm: Convert pending ti,sci* bindings to json format

2021-04-16 Thread Nishanth Menon
Hi, I understand that the following series belong to various maintainers, but, it is a bit better reviewed as a single series for cohesiveness. There are also dts fixups that this series exposes, which is good, but I chose to hold them back for now pending binding review at least. The complete

Re: [syzbot] WARNING in ctx_sched_in

2021-04-16 Thread Dmitry Vyukov
On Fri, Apr 16, 2021 at 6:35 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:79c338ab riscv: keep interrupts disabled for BREAKPOINT ex.. > git tree: git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git > fixes > console output:

答复: [PATCH] symbol : Make the size of the compile-related array fixed

2021-04-16 Thread Han Dapeng
Thank you!Got it. I tried to use Git, but it didn't work. I'll do it next time. -邮件原件- 发件人: Daniel Axtens 发送时间: 2021年4月16日 14:19 收件人: 韩大鹏(Han Dapeng) ; Michael Ellerman ; Benjamin Herrenschmidt ; Paul Mackerras ; Heiko Carstens ; Vasily Gorbik ; Christian Borntraeger ; Thomas

答复: [PATCH] symbol : Make the size of the compile-related array fixed

2021-04-16 Thread Han Dapeng
The raw text is shown below: From 540e6a6c36e6372d4f99eeb4a50c8eaa6d7989b3 Mon Sep 17 00:00:00 2001 From: Han Dapeng Date: Fri, 16 Apr 2021 10:36:38 +0800 Subject: [PATCH] symbol : Make the size of the compile-related array

Re: [PATCH 1/5] mm/swapfile: add percpu_ref support for swap

2021-04-16 Thread Huang, Ying
Miaohe Lin writes: > On 2021/4/15 22:31, Dennis Zhou wrote: >> On Thu, Apr 15, 2021 at 01:24:31PM +0800, Huang, Ying wrote: >>> Dennis Zhou writes: >>> On Wed, Apr 14, 2021 at 01:44:58PM +0800, Huang, Ying wrote: > Dennis Zhou writes: > >> On Wed, Apr 14, 2021 at 11:59:03AM

Re: [PATCH] platform/chrome: cros_ec_typec: Handle hard reset

2021-04-16 Thread Prashant Malani
Hi Enric, Thanks for taking a look. On Thu, Apr 15, 2021 at 10:39 PM Enric Balletbo Serra wrote: > > Hi Prashant, > > Thank you for your patch. > > Missatge de Prashant Malani del dia dj., 15 > d’abr. 2021 a les 4:15: > > > > The Chrome Embedded Controller (EC) generates a hard reset type C

[RFC PATCH] irqchip/gic-v3: Do not enable irqs when handling spurious interrups

2021-04-16 Thread He Ying
We found this problem in our kernel src tree: [ 14.816231] [ cut here ] [ 14.816231] kernel BUG at irq.c:99! [ 14.816232] Internal error: Oops - BUG: 0 [#1] SMP [ 14.816232] Process swapper/0 (pid: 0, stack limit = 0x(ptrval)) [ 14.816233] CPU: 0 PID: 0

Re: [PATCH] symbol : Make the size of the compile-related array fixed

2021-04-16 Thread Daniel Axtens
Hi, Thanks for your contribution to the kernel! I notice that your patch is sumbitted as an attachment. In future, please could you submit your patch inline, rather than as an attachment? See https://www.kernel.org/doc/html/v4.15/process/5.Posting.html I'd recommend you use git send-email if

Re: [RFC PATCH] percpu_ref: Make percpu_ref_tryget*() ACQUIRE operations

2021-04-16 Thread Huang, Ying
Kent Overstreet writes: > On Thu, Apr 15, 2021 at 09:42:56PM -0700, Paul E. McKenney wrote: >> On Tue, Apr 13, 2021 at 10:47:03AM +0800, Huang Ying wrote: >> > One typical use case of percpu_ref_tryget() family functions is as >> > follows, >> > >> > if (percpu_ref_tryget(>ref)) { >> >

Re: [PATCH] symbol : Make the size of the compile-related array fixed

2021-04-16 Thread Christophe Leroy
Also, the following statement which appears at the end of your mail is puzzling. What can we do with your patch if there are such limitations ? This e-mail and its attachments contain confidential information from OPPO, which is intended only for the person or entity whose address is listed

<    8   9   10   11   12   13   14   >