[PATCH] net: usb: usbnet: update __usbnet_{read|write}_cmd() to use new API

2020-10-10 Thread Anant Thazhemadam
Currently, __usbnet_{read|write}_cmd() use usb_control_msg(). However, this could lead to potential partial reads/writes being considered valid, and since most of the callers of usbnet_{read|write}_cmd() don't take partial reads/writes into account (only checking for negative error number is done),

Re: [PATCH] staging: comedi: check validity of wMaxPacketSize of usb endpoints found

2020-10-10 Thread Greg Kroah-Hartman
On Fri, Oct 09, 2020 at 09:50:29PM +0530, Anant Thazhemadam wrote: > While finding usb endpoints in vmk80xx_find_usb_endpoints(), check if > wMaxPacketSize = 0 for the endpoints found. > > Some devices have isochronous endpoints that have wMaxPacketSize = 0 > (as required by the USB-2 spec). > Ho

Re: [PATCH v3 1/5] fpga: dfl: rename the bus type "dfl" to "fpga-dfl"

2020-10-10 Thread Greg KH
On Fri, Oct 09, 2020 at 02:28:39PM -0700, Moritz Fischer wrote: > We're pretty late in the cycle, so this is gonna wait till the next cycle > most likely. My trees are closed for new stuff for 5.10-rc1, so yes, it has to be for the next round. I'll try to get to the "wall of text" next week...

[v4 PATCH 0/2] fix scrolling of panel with small hfp or hbp

2020-10-10 Thread Jitao Shi
Changes since v3: - Revert v2, for v2 will cause some bridge ic no output. the cause the video linetime doesn't match display mode from get mode. - Make sure the horizontal_frontporch_byte and horizontal_backporch_byte are > 0. Jitao Shi (2): Revert "drm/mediatek: dsi: Fix scrolling of p

[PATCH v4 1/2] Revert "drm/mediatek: dsi: Fix scrolling of panel with small hfp or hbp"

2020-10-10 Thread Jitao Shi
This reverts commit 35bf948f1edbf507f6e57e0879fa6ea36d2d2930. Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dsi.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index 80b7a082e874..

[PATCH v4 2/2] drm/mediatek: dsi: fix scrolling of panel with small hfp or hbp

2020-10-10 Thread Jitao Shi
Replace horizontal_backporch_byte with vm->hback_porch * bpp to aovid flowing judgement negative number. if ((vm->hfront_porch * dsi_tmp_buf_bpp + horizontal_backporch_byte) > data_phy_cycles * dsi->lanes + delta) Signed-off-by: Jitao Shi --- drivers/gpu/drm/mediatek/mtk_dsi.c | 54

Re: [kbuild-all] Re: arceb-elf-ld: include/linux/leds.h:193: undefined reference to `devm_led_classdev_register_ext'

2020-10-10 Thread Rong Chen
On 10/10/20 11:49 AM, Randy Dunlap wrote: On 10/9/20 8:19 PM, Rong Chen wrote: On 10/8/20 3:15 PM, Pavel Machek wrote: Hi! tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head:   c85fb28b6f999db9928b841f63f1beeb3074eeca commit: 92a81562e695628086acb92f95

[PATCH v9 0/6] add DFL bus support to MODULE_DEVICE_TABLE()

2020-10-10 Thread Xu Yilun
Patch #1 is a fix of the fields in struct dfl_device & dfl_device_id. Patch #2, 3, 4 add dfl bus support to MODULE_DEVICE_TABLE(), they also move the necessary definitions in head file to public folders so that scatter dfl drivers could use them. Patch #5 is the dfl driver for N3000 Nios private

[PATCH v9 1/6] fpga: dfl: fix the definitions of type & feature_id for dfl devices

2020-10-10 Thread Xu Yilun
The value of the field dfl_device.type comes from the 12 bits register field DFH_ID according to DFL spec. So this patch changes the definition of the type field to u16. Also it is not necessary to illustrate the valid bits of the type field in comments. Instead we should explicitly define the pos

[PATCH v9 3/6] fpga: dfl: add dfl bus support to MODULE_DEVICE_TABLE()

2020-10-10 Thread Xu Yilun
Device Feature List (DFL) is a linked list of feature headers within the device MMIO space. It is used by FPGA to enumerate multiple sub features within it. Each feature can be uniquely identified by DFL type and feature id, which can be read out from feature headers. A dfl bus helps DFL framework

[PATCH v9 2/6] fpga: dfl: move dfl_device_id to mod_devicetable.h

2020-10-10 Thread Xu Yilun
In order to support MODULE_DEVICE_TABLE() for dfl device driver, this patch moves struct dfl_device_id to mod_devicetable.h Signed-off-by: Xu Yilun Signed-off-by: Wu Hao Signed-off-by: Matthew Gerlach Signed-off-by: Russ Weight Reviewed-by: Tom Rix Acked-by: Wu Hao Signed-off-by: Moritz Fisc

[PATCH v9 6/6] memory: dfl-emif: add the DFL EMIF private feature driver

2020-10-10 Thread Xu Yilun
This driver is for the EMIF private feature implemented under FPGA Device Feature List (DFL) framework. It is used to expose memory interface status information as well as memory clearing control. The purpose of memory clearing block is to zero out all private memory when FPGA is to be reprogramme

[PATCH v9 5/6] fpga: dfl: add support for N3000 Nios private feature

2020-10-10 Thread Xu Yilun
This patch adds support for the Nios handshake private feature on Intel PAC (Programmable Acceleration Card) N3000. The Nios is the embedded processor on the FPGA card. This private feature provides a handshake interface to FPGA Nios firmware, which receives retimer configuration command from host

Re: [PATCH v2 2/4] time: make getboottime64 aware of time namespace

2020-10-10 Thread Andrei Vagin
On Fri, Oct 09, 2020 at 03:28:15PM +0200, Christian Brauner wrote: > On Thu, Oct 08, 2020 at 07:39:42AM +0200, Michael Weiß wrote: > > getboottime64() provides the time stamp of system boot. In case of > > time namespaces, the offset to the boot time stamp was not applied > > earlier. However, getb

[PATCH v9 4/6] fpga: dfl: move dfl bus related APIs to include/linux/fpga/dfl.h

2020-10-10 Thread Xu Yilun
Now the dfl drivers could be made as independent modules and put in different folders according to their functionalities. In order for scattered dfl device drivers to include dfl bus APIs, move the dfl bus APIs to a new header file in the public folder. [m...@kernel.org: Fixed up MAINTAINERS entry

Re: [PATCH] staging: comedi: check validity of wMaxPacketSize of usb endpoints found

2020-10-10 Thread Anant Thazhemadam
Hi, On 10-10-2020 12:30, Greg Kroah-Hartman wrote: > On Fri, Oct 09, 2020 at 09:50:29PM +0530, Anant Thazhemadam wrote: >> While finding usb endpoints in vmk80xx_find_usb_endpoints(), check if >> wMaxPacketSize = 0 for the endpoints found. >> >> Some devices have isochronous endpoints that have w

Re: [PATCH] vdpa/mlx5: should keep avail_index despite device status

2020-10-10 Thread Jason Wang
On 2020/10/2 上午4:18, Si-Wei Liu wrote: A VM with mlx5 vDPA has below warnings while being reset: vhost VQ 0 ring restore failed: -1: Resource temporarily unavailable (11) vhost VQ 1 ring restore failed: -1: Resource temporarily unavailable (11) We should allow userspace emulating the virtio d

Re: [PATCH v1 1/6] staging: qlge: Initialize devlink health dump framework for the dlge driver

2020-10-10 Thread Benjamin Poirier
On 2020-10-08 19:58 +0800, Coiby Xu wrote: > Initialize devlink health dump framework for the dlge driver so the > coredump could be done via devlink. > > Signed-off-by: Coiby Xu > --- > drivers/staging/qlge/Kconfig| 1 + > drivers/staging/qlge/Makefile | 2 +- > drivers/staging/

Re: [PATCH v1 2/6] staging: qlge: coredump via devlink health reporter

2020-10-10 Thread Benjamin Poirier
On 2020-10-08 19:58 +0800, Coiby Xu wrote: > $ devlink health dump show DEVICE reporter coredump -p -j > { > "Core Registers": { > "segment": 1, > "values": [ > 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

Re: [PATCH 1/2] net: store KCOV remote handle in sk_buff

2020-10-10 Thread Dmitry Vyukov
On Sat, Oct 10, 2020 at 1:16 AM Jakub Kicinski wrote: > > On Wed, 7 Oct 2020 10:17:25 + Aleksandr Nogikh wrote: > > From: Aleksandr Nogikh > > > > Remote KCOV coverage collection enables coverage-guided fuzzing of the > > code that is not reachable during normal system call execution. It is

Re: [PATCH v1 5/6] staging: qlge: clean up debugging code in the QL_ALL_DUMP ifdef land

2020-10-10 Thread Benjamin Poirier
On 2020-10-08 19:58 +0800, Coiby Xu wrote: > The debugging code in the following ifdef land > - QL_ALL_DUMP > - QL_REG_DUMP > - QL_DEV_DUMP > - QL_CB_DUMP > - QL_IB_DUMP > - QL_OB_DUMP > > becomes unnecessary because, > - Device status and general registers can be obtained by ethtool. > -

Re: [PATCH 3/3] MIPS: Loongson64: Add /proc/boardinfo

2020-10-10 Thread Jiaxun Yang
在 2020/10/9 下午6:57, Tiezhu Yang 写道: Add /proc/boardinfo to get mainboard and BIOS info easily on the Loongson platform, this is useful to point out the current used mainboard type and BIOS version when there exists problems related with hardware or firmware. Hi Tiezhu, You're touching Kerne

Re: [PATCH 2/3] MIPS: Loongson64: Clean up numa.c

2020-10-10 Thread Jiaxun Yang
在 2020/10/9 下午6:57, Tiezhu Yang 写道: (1) Replace nid_to_addroffset() with nid_to_addrbase() and then remove the related useless code. (2) Since end_pfn = start_pfn + node_psize, use "node_psize" instead of "end_pfn - start_pfn" to avoid the redundant calculation. (3) After commit 6fbde6b492df

Re: [PATCH] staging: comedi: check validity of wMaxPacketSize of usb endpoints found

2020-10-10 Thread Greg Kroah-Hartman
On Sat, Oct 10, 2020 at 07:29:13AM +0530, Anant Thazhemadam wrote: > Hi, > > On 10-10-2020 12:30, Greg Kroah-Hartman wrote: > > On Fri, Oct 09, 2020 at 09:50:29PM +0530, Anant Thazhemadam wrote: > >> While finding usb endpoints in vmk80xx_find_usb_endpoints(), check if > >> wMaxPacketSize = 0 for

Re: [PATCH 00/35] Enhance memory utilization with DMEMFS

2020-10-10 Thread yulei zhang
On Fri, Oct 9, 2020 at 7:53 PM Joao Martins wrote: > > On 10/9/20 12:39 PM, yulei zhang wrote: > > Joao, thanks a lot for the feedback. One more thing needs to mention > > is that dmemfs also support fine-grained > > memory management which makes it more flexible for tenants with > > different req

Re: [PATCH v3 6/7] can: usb: etas_es58X: add support for ETAS ES58X CAN USB interfaces

2020-10-10 Thread Vincent Mailhol
> Just one header file for now :) Thanks for the review, very constructive comments :) I acknowledge all the trivial fixes (space, new line, // comments, naming...), those will be fixed in v4 (will also review other files for similar mistakes). In this reply, I will only focus on the points which

[PATCH v3 2/2] iommu/vt-d:Add support for probing ACPI device in RMRR

2020-10-10 Thread FelixCuioc
After acpi device in RMRR is detected,it is necessary to establish a mapping for these devices. In acpi_device_create_direct_mappings(),create a mapping for the acpi device in RMRR. Add a helper to achieve the acpi namespace device can access the RMRR region. Signed-off-by: FelixCuioc --- driver

[PATCH v3 1/2] iommu/vt-d:Add support for detecting ACPI device in RMRR

2020-10-10 Thread FelixCuioc
Some ACPI devices need to issue dma requests to access the reserved memory area.BIOS uses the device scope type ACPI_NAMESPACE_DEVICE in RMRR to report these ACPI devices. This patch add support for detecting ACPI devices in RMRR. Signed-off-by: FelixCuioc --- drivers/iommu/intel/dmar.c | 76 ++

[PATCH v3 0/2] Add support for ACPI device in RMRR

2020-10-10 Thread FelixCuioc
BIOS allocate reserved memory ranges that may be DMA targets. BIOS may report each such reserved memory region through the RMRR structures,along with the devices that requires access to the specified reserved memory region. The purpose of this series is to achieve ACPI device in RMRR access reserv

[tip:objtool/core] BUILD SUCCESS 2486baae2cf6df73554144d0a4e40ae8809b54d4

2020-10-10 Thread kernel test robot
-a013-20201009 x86_64 randconfig-a014-20201009 x86_64 randconfig-a011-20201009 x86_64 randconfig-a016-20201009 x86_64 randconfig-a016-20201010 x86_64 randconfig-a015-20201010 x86_64 randconfig-a012-20201010 x86_64

Re: [PATCH] staging: comedi: check validity of wMaxPacketSize of usb endpoints found

2020-10-10 Thread Anant Thazhemadam
On 10/10/20 1:39 pm, Greg Kroah-Hartman wrote: > On Sat, Oct 10, 2020 at 07:29:13AM +0530, Anant Thazhemadam wrote: >> Hi, >> >> On 10-10-2020 12:30, Greg Kroah-Hartman wrote: >>> On Fri, Oct 09, 2020 at 09:50:29PM +0530, Anant Thazhemadam wrote: While finding usb endpoints in vmk80xx_find_u

[PATCH v2 2/4] dt-bindings: usb: add properties for hard wired devices

2020-10-10 Thread Chunfeng Yun
Add some optional properties which are needed for hard wired devices Signed-off-by: Chunfeng Yun --- v2 changes suggested by Rob: 1. modify pattern to support any USB class 2. refer to usb-device.yaml instead of usb-device.txt --- .../devicetree/bindings/usb/usb-hcd.yaml | 19

[PATCH v2 1/4] dt-bindings: usb: convert usb-device.txt to YAML schema

2020-10-10 Thread Chunfeng Yun
Convert usb-device.txt to YAML schema usb-device.yaml Signed-off-by: Chunfeng Yun --- v2: new patch suggested by Rob --- .../devicetree/bindings/usb/usb-device.txt| 102 -- .../devicetree/bindings/usb/usb-device.yaml | 129 ++ 2 files changed, 129 insertions(+),

[PATCH v2 3/4] dt-bindings: net: btusb: change reference file name

2020-10-10 Thread Chunfeng Yun
Due to usb-device.txt is converted into usb-device.yaml, so modify reference file names at the same time. Signed-off-by: Chunfeng Yun --- v2: new patch --- Documentation/devicetree/bindings/net/btusb.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/devicetree

[PATCH] bpf: Avoid allocing memory on memoryless numa node

2020-10-10 Thread Xianting Tian
In architecture like powerpc, we can have cpus without any local memory attached to it. In such cases the node does not have real memory. Use local_memory_node(), which is guaranteed to have memory. local_memory_node is a noop in other architectures that does not support memoryless nodes. Signed-

Re: [PATCH v2 1/2] MIPS: cpu-probe: move fpu probing/handling into its own file

2020-10-10 Thread Sergei Shtylyov
Hello! On 10.10.2020 3:30, Maciej W. Rozycki wrote: + /* +* MAC2008 toolchain never landed in real world, so we're only +* testing whether it can be disabled and don't try to enabled +* it. +

Re: Patch "spi: Fix controller unregister order" has been added to the 4.4-stable tree

2020-10-10 Thread yangerkun
在 2020/6/16 9:56, Sasha Levin 写道: This is a note to let you know that I've just added the patch titled spi: Fix controller unregister order to the 4.4-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename o

Re: [PATCH v3 00/23] Use asm-generic for mmu_context no-op functions

2020-10-10 Thread Arnd Bergmann
On Sat, Oct 10, 2020 at 4:02 AM Stephen Rothwell wrote: > On Fri, 9 Oct 2020 16:01:22 +0200 Arnd Bergmann wrote: > > > Are there other changes that depend on this? If not, I would > > just wait until -rc1 and then either push the branch correctly or > > rebase the patches on that first, to avoid

Re: [PATCH v2] PCI: keystone: Enable compile-testing on !ARM

2020-10-10 Thread Alex Dewar
On 30/09/2020 19:21, Rob Herring wrote: On Sun, 06 Sep 2020 20:51:27 +0100, Alex Dewar wrote: Currently the Keystone driver can only be compile-tested on ARM, but this restriction seems unnecessary. Get rid of it to increase test coverage. Build-tested with allyesconfig on x86, ppc, mips and ri

[PATCH v3] staging: comedi: check validity of wMaxPacketSize of usb endpoints found

2020-10-10 Thread Anant Thazhemadam
While finding usb endpoints in vmk80xx_find_usb_endpoints(), check if wMaxPacketSize = 0 for the endpoints found. Some devices have isochronous endpoints that have wMaxPacketSize = 0 (as required by the USB-2 spec). However, since this doesn't apply here, wMaxPacketSize = 0 can be considered to b

[PATCH v2 4/4] dt-bindings: usb: use preferred license tag

2020-10-10 Thread Chunfeng Yun
This is used to fix the checkpach.pl WARNING:SPDX_LICENSE_TAG See bindings/submitting-patches.rst: "DT binding files should be dual licensed. The preferred license tag is (GPL-2.0-only OR BSD-2-Clause)." Signed-off-by: Chunfeng Yun --- v2: new patch --- Documentation/devicetree/bindings/usb/us

Re: [PATCH v2 4/4] dt-bindings: usb: use preferred license tag

2020-10-10 Thread Greg Kroah-Hartman
On Sat, Oct 10, 2020 at 04:43:14PM +0800, Chunfeng Yun wrote: > This is used to fix the checkpach.pl WARNING:SPDX_LICENSE_TAG > > See bindings/submitting-patches.rst: > "DT binding files should be dual licensed. The preferred license tag is > (GPL-2.0-only OR BSD-2-Clause)." > > Signed-off-by: C

Re: [PATCH v3 1/4] genirq/irqdomain: Allow partial trimming of irq_data hierarchy

2020-10-10 Thread Marc Zyngier
On Thu, 08 Oct 2020 21:47:29 +0100, Thomas Gleixner wrote: > > On Thu, Oct 08 2020 at 14:06, Marc Zyngier wrote: > > On 2020-10-08 12:22, Thomas Gleixner wrote: > > Here's what I have now, with the pmc driver calling > > irq_domain_disconnect_hierarchy() at the right spots. > > > > static int i

Re: [PATCH v3 4/4] mmc: mediatek: Add subsys clock control for MT8192 msdc

2020-10-10 Thread Wenbin Mei
On Thu, 2020-10-01 at 14:14 +0800, Nicolas Boichat wrote: > On Wed, Sep 30, 2020 at 4:31 PM Wenbin Mei wrote: > > > > MT8192 msdc is an independent sub system, we need control more bus > > clocks for it. > > Add support for the additional subsys clocks to allow it to be > > configured appropriatel

Re: [PATCH 5/5] x86/kvm: Add KVM_FEATURE_MSI_EXT_DEST_ID

2020-10-10 Thread David Woodhouse
On Fri, 2020-10-09 at 01:27 +0200, Thomas Gleixner wrote: > On Thu, Oct 08 2020 at 22:39, David Woodhouse wrote: > > On Thu, 2020-10-08 at 23:14 +0200, Thomas Gleixner wrote: > > > > > > > > (We'd want the x86_vector_domain to actually have an MSI compose > > > > function in the !CONFIG_PCI_MSI ca

[PATCH 09/10] dt-bindings: arm: hisilicon: add missing properties into sysctrl.yaml

2020-10-10 Thread Zhen Lei
Add properties: #address-cells, #size-cells and ranges. Due to the Hisilicon system controller node may contains child nodes, change the value of "additionalProperties" from "false" to "type: object". The examples have also been updated. Signed-off-by: Zhen Lei --- .../bindings/arm/hisilicon/con

[PATCH 06/10] ARM: dts: hisilicon: fix errors detected by synopsys-dw-mshc.yaml

2020-10-10 Thread Zhen Lei
Look at the clock-names schema defined in synopsys-dw-mshc.yaml: clock-names: items: - const: biu - const: ciu The "biu" needs to be placed before the "ciu". Signed-off-by: Zhen Lei --- arch/arm/boot/dts/hisi-x5hd2.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

[PATCH 02/10] ARM: dts: hisilicon: fix errors detected by pl011.yaml

2020-10-10 Thread Zhen Lei
1. Change node name to match '^serial(@[0-9a-f,]+)*$' 2. Change clock-names to "uartclk", "apb_pclk". Both of them use the same clock. 3. Change pinctrl-names to "default", "sleep". Signed-off-by: Zhen Lei --- arch/arm/boot/dts/hi3519.dtsi | 20 ++-- arch/arm/boot/dts/hi

Re: [PATCH v6 01/17] dt-bindings: mfd: syscon: add some compatible strings for Hisilicon

2020-10-10 Thread Leizhen (ThunderTown)
On 2020/10/1 14:59, Lee Jones wrote: > On Wed, 30 Sep 2020, Leizhen (ThunderTown) wrote: > >> >> >> On 2020/9/30 15:11, Lee Jones wrote: >>> On Wed, 30 Sep 2020, Zhen Lei wrote: >>> Add some compatible strings for Hisilicon controllers: hisilicon,hi6220-sramctrl --> Hi6220 SRAM contr

Re: [PATCH v6 14/17] dt-bindings: arm: hisilicon: convert hisilicon,hip04-bootwrapper bindings to json-schema

2020-10-10 Thread Leizhen (ThunderTown)
On 2020/10/1 14:41, Krzysztof Kozlowski wrote: > On Wed, Sep 30, 2020 at 11:17:09AM +0800, Zhen Lei wrote: >> Convert the Hisilicon Bootwrapper boot method binding to DT schema format >> using json-schema. >> >> The property boot-method contains two groups of physical address range >> informatio

Re: [PATCH v1 1/6] staging: qlge: Initialize devlink health dump framework for the dlge driver

2020-10-10 Thread Coiby Xu
On Sat, Oct 10, 2020 at 04:35:14PM +0900, Benjamin Poirier wrote: On 2020-10-08 19:58 +0800, Coiby Xu wrote: Initialize devlink health dump framework for the dlge driver so the coredump could be done via devlink. Signed-off-by: Coiby Xu --- drivers/staging/qlge/Kconfig| 1 + drivers/

Re: [PATCH v1 5/6] staging: qlge: clean up debugging code in the QL_ALL_DUMP ifdef land

2020-10-10 Thread Coiby Xu
On Sat, Oct 10, 2020 at 05:01:26PM +0900, Benjamin Poirier wrote: On 2020-10-08 19:58 +0800, Coiby Xu wrote: The debugging code in the following ifdef land - QL_ALL_DUMP - QL_REG_DUMP - QL_DEV_DUMP - QL_CB_DUMP - QL_IB_DUMP - QL_OB_DUMP becomes unnecessary because, - Device status and ge

[PATCH] IB/hfi1: Avoid allocing memory on memoryless numa node

2020-10-10 Thread Xianting Tian
In architecture like powerpc, we can have cpus without any local memory attached to it. In such cases the node does not have real memory. Use local_memory_node(), which is guaranteed to have memory. local_memory_node is a noop in other architectures that does not support memoryless nodes. Signed-

Re: linux-next: manual merge of the devicetree tree with the mfd tree

2020-10-10 Thread Leizhen (ThunderTown)
On 2020/10/1 20:31, Rob Herring wrote: > On Thu, Oct 1, 2020 at 1:26 AM Krzysztof Kozlowski wrote: >> >> On Thu, 1 Oct 2020 at 08:22, Stephen Rothwell wrote: >>> >>> Hi all, >>> >>> Today's linux-next merge of the devicetree tree got a conflict in: >>> >>> Documentation/devicetree/bindings/m

Re: [io_uring] b166b25674: BUG:KASAN:null-ptr-deref_in_i

2020-10-10 Thread Pavel Begunkov
On 10/10/2020 12:41, kernel test robot wrote: > Greeting, > > FYI, we noticed the following commit (built with gcc-9): > > commit: b166b25674b991268afbe1bcbfee7d1eadf1203d ("io_uring: Fix XArray usage > in io_uring_add_task_file") > url: > https://github.com/0day-ci/linux/commits/Matthew-Wilcox

Re: [PATCH] bcache: Use #ifdef instead of boolean variable

2020-10-10 Thread Alex Dewar
On Sat, Oct 10, 2020 at 10:05:22AM +0800, Coly Li wrote: > On 2020/10/10 07:00, Rasmus Villemoes wrote: > > On 09/10/2020 20.34, Alex Dewar wrote: > >> The variable async_registration is used to indicate whether or not > >> CONFIG_BCACHE_ASYNC_REGISTRATION is enabled, triggering a (false) > >> warn

[PATCH 08/10] ARM: dts: hisilicon: fix errors detected by syscon.yaml

2020-10-10 Thread Zhen Lei
The DT binding for system controller is not allowed to contain only the compatible string "syscon", the Hisilicon peripheral subsystem controller should add compatible string "hisilicon,peri-subctrl". Otherwise, the error "compatible: ['syscon'] is too short" will be reported. Signed-off-by: Zhen

[PATCH 07/10] ARM: dts: hisilicon: fix errors detected by spi-pl022.yaml

2020-10-10 Thread Zhen Lei
1. Change clock-names to "sspclk", "apb_pclk". Both of them use the same clock. Signed-off-by: Zhen Lei --- arch/arm/boot/dts/hi3519.dtsi | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm/boot/dts/hi3519.dtsi b/arch/arm/boot/dts/hi3519.dtsi index 630753

[PATCH 04/10] ARM: dts: hisilicon: fix errors detected by simple-bus.yaml

2020-10-10 Thread Zhen Lei
Change bus node name from "amba" to "amba-bus" to match '^([a-z][a-z0-9\\-]+-bus|bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' Signed-off-by: Zhen Lei --- arch/arm/boot/dts/hi3620-hi4511.dts | 2 +- arch/arm/boot/dts/hi3620.dtsi | 2 +- arch/arm/boot/dts/hip01.dtsi| 2 +- arch/arm/boot/dts/h

Re: [PATCH v3] staging: comedi: check validity of wMaxPacketSize of usb endpoints found

2020-10-10 Thread Greg Kroah-Hartman
On Sat, Oct 10, 2020 at 01:59:32PM +0530, Anant Thazhemadam wrote: > While finding usb endpoints in vmk80xx_find_usb_endpoints(), check if > wMaxPacketSize = 0 for the endpoints found. > > Some devices have isochronous endpoints that have wMaxPacketSize = 0 > (as required by the USB-2 spec). > Ho

[PATCH 01/10] ARM: dts: hisilicon: fix errors detected by snps-dw-apb-uart.yaml

2020-10-10 Thread Zhen Lei
1. Change node name to match '^serial(@[0-9a-f,]+)*$' 2. Change clock-names to "baudclk", "apb_pclk". Both of them use the same clock. Signed-off-by: Zhen Lei --- arch/arm/boot/dts/hip01.dtsi| 24 arch/arm/boot/dts/hip04-d01.dts | 2 +- arch/arm/boot/dts/hip04.dt

[PATCH 00/10] clean up all Hisilicon-related errors detected by DT schema on arm32

2020-10-10 Thread Zhen Lei
These patches are based on the latest linux-next. Zhen Lei (10): ARM: dts: hisilicon: fix errors detected by snps-dw-apb-uart.yaml ARM: dts: hisilicon: fix errors detected by pl011.yaml ARM: dts: hisilicon: fix errors detected by usb yaml ARM: dts: hisilicon: fix errors detected by simple

[PATCH 10/10] dt-bindings: arm: hisilicon: add missing properties into cpuctrl.yaml

2020-10-10 Thread Zhen Lei
Add properties: #address-cells, #size-cells and ranges. Due to the Hisilicon CPU controller node may contains child nodes, change the value of "additionalProperties" from "false" to "type: object". The corresponding examples are also added. Signed-off-by: Zhen Lei --- .../bindings/arm/hisilicon

[PATCH 03/10] ARM: dts: hisilicon: fix errors detected by usb yaml

2020-10-10 Thread Zhen Lei
1. Change node name to match '^usb(@.*)?' These errrors are detected by generic-ehci.yaml and generic-ohci.yaml. Signed-off-by: Zhen Lei --- arch/arm/boot/dts/hisi-x5hd2.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/hisi-x5hd2.dtsi b/arch/arm/bo

Re: [PATCH -next] i2c: at91: Use devm_platform_get_and_ioremap_resource()

2020-10-10 Thread Codrin.Ciubotariu
On 18.09.2020 11:21, Wang ShaoBo wrote: > Make use of devm_platform_get_and_ioremap_resource() provided by > driver core platform instead of duplicated analogue. > > Signed-off-by: Wang ShaoBo Reviewed-by: Codrin Ciubotariu Thanks! > --- > drivers/i2c/busses/i2c-at91-core.c | 11 ---

[PATCH 05/10] ARM: dts: hisilicon: fix errors detected by root-node.yaml

2020-10-10 Thread Zhen Lei
Make the momory node name match the regex "^memory(@[0-9a-f]+)?$" which is described in memory.yaml. Otherwise, it will be treated as root node, and misreported by root-node.yaml. Errors misreported by root-node.yaml: /: memory: False schema does not allow {'device_type': ['memory'], 'reg': Signe

Re: [PATCH v2] leds: lm3697: Rename struct into more appropriate name

2020-10-10 Thread Pavel Machek
On Fri 2020-10-09 15:51:35, Gabriel David wrote: > The mentioned struct, lm3697_led, was renamed to lm3697_bank since the > structure is representing the control banks. This name, in my opinion, > is more semantically correct. The pointers referring to it were also > renamed. > Signed-off-by: Gabr

Re: [PATCH][next] net: thunderx: Use struct_size() helper in kmalloc()

2020-10-10 Thread Jakub Kicinski
On Thu, 8 Oct 2020 09:28:06 -0500 Gustavo A. R. Silva wrote: > Make use of the new struct_size() helper instead of the offsetof() idiom. > > Signed-off-by: Gustavo A. R. Silva Applied, thanks!

Re: [PATCH v2] kcov, usb, vhost: specify contexts for remote coverage sections

2020-10-10 Thread kernel test robot
Hi Andrey, I love your patch! Yet something to improve: [auto build test ERROR on usb/usb-testing] [also build test ERROR on vhost/linux-next hnaz-linux-mm/master linus/master v5.9-rc8 next-20201009] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patc

Re: [PATCH] rcutorture: remove unneeded check

2020-10-10 Thread Tom Rix
On 10/10/20 10:57 AM, Paul E. McKenney wrote: > On Fri, Oct 09, 2020 at 07:57:43PM -0700, Paul E. McKenney wrote: >> On Fri, Oct 09, 2020 at 05:24:37PM -0700, Tom Rix wrote: >>> On 10/9/20 4:50 PM, Paul E. McKenney wrote: On Fri, Oct 09, 2020 at 02:18:41PM -0700, Tom Rix wrote: > On 10/9

[PATCH] crypto: inside-secure: Fix sizeof() mismatch

2020-10-10 Thread Colin King
From: Colin Ian King An incorrect sizeof() is being used, sizeof(priv->ring[i].rdr_req) is not correct, it should be sizeof(*priv->ring[i].rdr_req). Note that since the size of ** is the same size as * this is not causing any issues. Addresses-Coverity: ("Sizeof not portable (SIZEOF_MISMATCH)")

[PULL REQUEST] i2c for v5.9

2020-10-10 Thread Wolfram Sang
Linus, here a some more driver bugfixes for I2C. Including a revert - the updated series for it will come during the next merge window. Please pull. Thanks, Wolfram The following changes since commit 549738f15da0e5a00275977623be199fbbf7df50: Linux 5.9-rc8 (2020-10-04 16:04:34 -0700) ar

[PATCH] powerpc/603: Always fault when _PAGE_ACCESSED is not set

2020-10-10 Thread Christophe Leroy
The kernel expects pte_young() to work regardless of CONFIG_SWAP. Make sure a minor fault is taken to set _PAGE_ACCESSED when it is not already set, regardless of the selection of CONFIG_SWAP. Fixes: 84de6ab0e904 ("powerpc/603: don't handle PAGE_ACCESSED in TLB miss handlers.") Cc: sta...@vger.k

Re: [PATCH] arm:traps: Don't print stack or raw PC/LR values in backtraces

2020-10-10 Thread Josh Poimboeuf
On Fri, Oct 09, 2020 at 09:08:50AM +0100, Russell King - ARM Linux admin wrote: > On Fri, Oct 09, 2020 at 03:59:57PM +0800, Xiaoming Ni wrote: > > Printing raw pointer values in backtraces has potential security > > implications and are of questionable value anyway. > > > > This patch follows x86

Re: [PATCH] crypto: testmgr - Fix format argument warning

2020-10-10 Thread Eric Biggers
On Sat, Oct 10, 2020 at 10:16:37AM +0800, Ye Bin wrote: > Fix follow warning: > [crypto/testmgr.c:2317]: (warning) %d in format string (no. 5) requires > 'int' but the argument type is 'unsigned int'. > > Reported-by: Hulk Robot > Signed-off-by: Ye Bin > --- > crypto/testmgr.c | 2 +- > 1 file

Re: [PATCH v3 00/23] Use asm-generic for mmu_context no-op functions

2020-10-10 Thread Stephen Rothwell
Hi Arnd, On Sat, 10 Oct 2020 10:25:11 +0200 Arnd Bergmann wrote: > > On Sat, Oct 10, 2020 at 4:02 AM Stephen Rothwell > wrote: > > On Fri, 9 Oct 2020 16:01:22 +0200 Arnd Bergmann wrote: > > > > > Are there other changes that depend on this? If not, I would > > > just wait until -rc1 and then

Re: [PATCH 1/2] net: smc: fix missing brace warning for old compilers

2020-10-10 Thread Jakub Kicinski
On Thu, 8 Oct 2020 20:19:28 +0800 Pujin Shi wrote: > For older versions of gcc, the array = {0}; will cause warnings: > > net/smc/smc_llc.c: In function 'smc_llc_send_link_delete_all': > net/smc/smc_llc.c:1317:9: warning: missing braces around initializer > [-Wmissing-braces] > struct smc_llc_

Re: [PATCH v6 08/10] vfio/fsl-mc: trigger an interrupt via eventfd

2020-10-10 Thread Auger Eric
On 10/5/20 7:36 PM, Diana Craciun wrote: > This patch allows to set an eventfd for fsl-mc device interrupts > and also to trigger the interrupt eventfd from userspace for testing. > > All fsl-mc device interrupts are MSIs. The MSIs are allocated from > the MSI domain only once per DPRC and used

Re: [PATCH] checkpatch: Check for .byte-spelled insn opcodes documentation on x86

2020-10-10 Thread Joe Perches
On Sat, 2020-10-10 at 12:54 +0200, Borislav Petkov wrote: > On Fri, Oct 09, 2020 at 11:01:18AM -0700, Joe Perches wrote: > > Given the location, this only works on .c and .h files. > > It does not work on .S files. Should it? > > Probably not because there will be too many false positives. .byte

[PATCH 4/4] powerpc/8xx: Manage _PAGE_ACCESSED through APG bits in L1 entry

2020-10-10 Thread Christophe Leroy
When _PAGE_ACCESSED is not set, a minor fault is expected. To do this, TLB miss exception ANDs _PAGE_PRESENT and _PAGE_ACCESSED into the L2 entry valid bit. To simplify the processing and reduce the number of instructions in TLB miss exceptions, manage it as an APG bit and get it next to _PAGE_GUA

Re: [PATCH v4 4/4] iio: adc: at91_adc: remove platform data and move defs in driver file

2020-10-10 Thread Jonathan Cameron
On Wed, 30 Sep 2020 16:05:55 +0200 Alexandre Belloni wrote: > On 30/09/2020 16:50:48+0300, Alexandru Ardelean wrote: > > The AT91 ADC driver no longer uses the 'at91_add_device_adc' platform data > > type. This is no longer used (at least in mainline boards). > > > > This change removes the plat

Re: arm-smmu 5000000.iommu: Cannot accommodate DMA offset for IOMMU page tables

2020-10-10 Thread Stephen Rothwell
Hi Naresh, Just adding Christoph and Jim to cc] On Fri, 9 Oct 2020 19:26:24 +0530 Naresh Kamboju wrote: > > On Fri, 9 Oct 2020 at 19:24, Naresh Kamboju wrote: > > > > > > > > On Thu, 24 Sep 2020 at 15:26, Joerg Roedel wrote: > > > > > > On Thu, Sep 24, 2020 at 10:36:47AM +0100, Robin Murphy

Re: [PATCH] mm: proc: add Sock to /proc/meminfo

2020-10-10 Thread Randy Dunlap
Hi, On 10/10/20 3:38 AM, Muchun Song wrote: > The amount of memory allocated to sockets buffer can become significant. > However, we do not display the amount of memory consumed by sockets > buffer. In this case, knowing where the memory is consumed by the kernel > is very difficult. On our server

[PATCH] powerpc/40x: Always fault when _PAGE_ACCESSED is not set

2020-10-10 Thread Christophe Leroy
The kernel expects pte_young() to work regardless of CONFIG_SWAP. Make sure a minor fault is taken to set _PAGE_ACCESSED when it is not already set, regardless of the selection of CONFIG_SWAP. Fixes: 2c74e2586bb9 ("powerpc/40x: Rework 40x PTE access and TLB miss") Cc: sta...@vger.kernel.org Signe

Re: [PATCH] net: usb: usbnet: update __usbnet_{read|write}_cmd() to use new API

2020-10-10 Thread Anant Thazhemadam
On 10/10/20 10:33 pm, Jakub Kicinski wrote: > On Sat, 10 Oct 2020 12:26:23 +0530 Anant Thazhemadam wrote: >> GPF_KERNEL > You haven't even built this, let alone tested :/ I'm really sorry about this. Turns out, my .config wasn't set generated by make allyesconfig, and thus this regression went u

Re: [PATCH] i2c: i2c-mux-gpio: Enable this driver in ACPI land

2020-10-10 Thread Peter Rosin
Hi! On 2020-10-10 00:43, Evan Green wrote: > Enable i2c-mux-gpio devices to be defined via ACPI. The idle-state > property translates directly to a fwnode_property_*() call. The child > reg property translates naturally into _ADR in ACPI. > > The i2c-parent is a little trickier, since of's phandl

drivers/net/hamradio/dmascc.c:1238:56: sparse: sparse: non size-preserving pointer to integer cast

2020-10-10 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 6f2f486d57c4d562cdf4932320b66fbb878ab1c4 commit: 80591e61a0f7e88deaada69844e4a31280c4a38f kbuild: tell sparse about the $ARCH date: 11 months ago config: alpha-randconfig-s031-20201011 (attached as .config

[PATCH v3 1/6] phy/rockchip: inno-hdmi: use correct vco_div_5 macro on rk3328

2020-10-10 Thread Jonas Karlman
inno_hdmi_phy_rk3328_clk_set_rate() is using the RK3228 macro when configuring vco_div_5 on RK3328. Fix this by using correct vco_div_5 macro for RK3328. Fixes: 53706a116863 ("phy: add Rockchip Innosilicon hdmi phy") Signed-off-by: Jonas Karlman --- drivers/phy/rockchip/phy-rockchip-inno-hdmi.c

Re: [PATCH] mm/khugepaged: fix filemap page_to_pgoff(page) != offset

2020-10-10 Thread Matthew Wilcox
On Fri, Oct 09, 2020 at 08:07:59PM -0700, Hugh Dickins wrote: > There have been elusive reports of filemap_fault() hitting its > VM_BUG_ON_PAGE(page_to_pgoff(page) != offset, page) on kernels built > with CONFIG_READ_ONLY_THP_FOR_FS=y. > > Suren has hit it on a kernel with CONFIG_READ_ONLY_THP_FOR

Re: [PATCH] rcutorture: remove unneeded check

2020-10-10 Thread Paul E. McKenney
On Fri, Oct 09, 2020 at 07:57:43PM -0700, Paul E. McKenney wrote: > On Fri, Oct 09, 2020 at 05:24:37PM -0700, Tom Rix wrote: > > > > On 10/9/20 4:50 PM, Paul E. McKenney wrote: > > > On Fri, Oct 09, 2020 at 02:18:41PM -0700, Tom Rix wrote: > > >> On 10/9/20 1:18 PM, Paul E. McKenney wrote: > > >>>

Re: [PATCH] i2c: aT91: remove legacy DMA left overs

2020-10-10 Thread Codrin.Ciubotariu
On 30.09.2020 17:56, Alexandre Belloni wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you know the > content is safe > > Commit dc6df6e90de9 ("i2c: at91: remove legacy DMA support") removed legcy > DMA support from the driver. Remove the last use of the definitions from >

[PATCH 3/4] powerpc/8xx: Always fault when _PAGE_ACCESSED is not set

2020-10-10 Thread Christophe Leroy
The kernel expects pte_young() to work regardless of CONFIG_SWAP. Make sure a minor fault is taken to set _PAGE_ACCESSED when it is not already set, regardless of the selection of CONFIG_SWAP. This adds at least 3 instructions to the TLB miss exception handlers fast path. Following patch will red

[PATCH 2/4] powerpc/8xx: Fix TLB Miss exceptions with CONFIG_SWAP

2020-10-10 Thread Christophe Leroy
When CONFIG_SWAP is set, _PAGE_ACCESSED gets ANDed with _PAGE_PRESENT. But during several changes of _PAGE_ACCESSED value, this operation which is based on bit rotation has been forgotten. As of today it doesn't work. Update to the rotation to the correct number of bits. Fixes: 5f356497c384 ("po

Re: [RFC 13/13] m68k: mac: convert to generic clockevent

2020-10-10 Thread Arnd Bergmann
On Sat, Oct 10, 2020 at 12:21 AM Finn Thain wrote: > > Hi Arnd, > > Perhaps patch 13 does not belong in this series (?). > > All m68k platforms will need conversion before the TODO can be removed > from Documentation/features/time/clockevents/arch-support.txt. Yes, correct. I marked this patch as

Re: [PATCH v6 0/3] iio: adc: mt6360: Add ADC driver for MT6360

2020-10-10 Thread Jonathan Cameron
On Thu, 1 Oct 2020 16:54:05 +0800 Gene Chen wrote: > This patch series add MT6360 ADC support contains driver, testing document > and binding document > > Gene Chen (2) > dt-bindings: iio: adc: add bindings doc for MT6360 ADC > Documentation: ABI: testing: mt6360: Add ADC sysfs guideline >

Re: [tip: objtool/core] x86/insn: Support big endian cross-compiles

2020-10-10 Thread Josh Poimboeuf
On Fri, Oct 09, 2020 at 10:49:21PM +0200, Borislav Petkov wrote: > On Fri, Oct 09, 2020 at 10:38:22PM +0200, Peter Zijlstra wrote: > > On Wed, Oct 07, 2020 at 04:20:19PM -, tip-bot2 for Martin Schwidefsky > > wrote: > > > The following commit has been merged into the objtool/core branch of tip

De Mr Armand AGBO(Demande de Partenariat)

2020-10-10 Thread Armand Agbo
De Mr Armand AGBO Je suis Mr Armand AGBO de nationalité béninoise, gestionnaire de compte dans une institution bancaire. Je vous prie de m'excuser pour cette intrusion inattendue de ma part car c'est suite à une recherche via internet que j'ai trouvé votre contact et après avoir parcouru votre

Re: [PATCH v6 05/10] vfio/fsl-mc: Allow userspace to MMAP fsl-mc device MMIO regions

2020-10-10 Thread Auger Eric
Hi Diana, On 10/5/20 7:36 PM, Diana Craciun wrote: > Allow userspace to mmap device regions for direct access of > fsl-mc devices. > > Signed-off-by: Bharat Bhushan > Signed-off-by: Diana Craciun Reviewed-by: Eric Auger Thanks Eric > --- > drivers/vfio/fsl-mc/vfio_fsl_mc.c | 68 +++

Re: [PATCH] net: usb: rtl8150: don't incorrectly assign random MAC addresses

2020-10-10 Thread Anant Thazhemadam
On 10/10/20 11:46 pm, Jakub Kicinski wrote: > On Sat, 10 Oct 2020 23:34:51 +0530 Anant Thazhemadam wrote: >> On 10/10/20 10:29 pm, Jakub Kicinski wrote: >>> On Sat, 10 Oct 2020 12:14:59 +0530 Anant Thazhemadam wrote: get_registers() directly returns the return value of usb_control_msg

Re: [PATCH v6 06/10] vfio/fsl-mc: Added lock support in preparation for interrupt handling

2020-10-10 Thread Auger Eric
Hi Diana, On 10/5/20 7:36 PM, Diana Craciun wrote: > Only the DPRC object allocates interrupts from the MSI > interrupt domain. The interrupts are managed by the DPRC in > a pool of interrupts. The access to this pool of interrupts > has to be protected with a lock. > This patch extends the current

  1   2   3   4   >