RE: [PATCH] arm64: dts: imx8mp: Update pinfunc header file

2020-08-23 Thread Anson Huang
Hi, Shawn > Subject: Re: [PATCH] arm64: dts: imx8mp: Update pinfunc header file > > On Fri, Aug 14, 2020 at 05:27:19PM +0800, Anson Huang wrote: > > Update some pins' name and adjust pin options to i.MX8MP pinfunc > > header file according to latest reference manual. > > > > Signed-off-by: Anson

Re: [PATCH] vdpa/mlx5: Avoid warnings about shifts on 32-bit platforms

2020-08-23 Thread Eli Cohen
On Fri, Aug 21, 2020 at 03:50:19PM -0700, Nathan Chancellor wrote: > Clang warns several times when building for 32-bit ARM along the lines > of: > > drivers/vdpa/mlx5/net/mlx5_vnet.c:1462:31: warning: shift count >= width > of type [-Wshift-count-overflow] >

[PATCH] typhoon: switch from 'pci_' to 'dma_' API

2020-08-23 Thread Christophe JAILLET
The wrappers in include/linux/pci-dma-compat.h should go away. The patch has been generated with the coccinelle script below and has been hand modified to replace GFP_ with a correct flag. It has been compile tested. When memory is allocated in 'typhoon_init_one()' GFP_KERNEL can be used because

Re: [PATCH 4/5] bio: introduce BIO_FOLL_PIN flag

2020-08-23 Thread Christoph Hellwig
On Fri, Aug 21, 2020 at 09:20:58PM -0700, John Hubbard wrote: > Add a new BIO_FOLL_PIN flag to struct bio, whose "short int" flags field > was full, thuse triggering an expansion of the field from 16, to 32 > bits. This allows for a nice assertion in bio_release_pages(), that the > bio page

[PATCH] starfire: switch from 'pci_' to 'dma_' API

2020-08-23 Thread Christophe JAILLET
The wrappers in include/linux/pci-dma-compat.h should go away. The patch has been generated with the coccinelle script below and has been hand modified to replace GFP_ with a correct flag. It has been compile tested. When memory is allocated in 'netdev_open()', GFP_ATOMIC must be used because it

[PATCH] vme: ca91cx42: fix memleak in ca91cx42_dma_list_add

2020-08-23 Thread Dinghao Liu
When we encounter invalid data width or address space, entry should be freed just like what we've done in the previous error paths. Signed-off-by: Dinghao Liu --- drivers/vme/bridges/vme_ca91cx42.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

Re: [PATCH V2 2/3] vhost: vdpa: report iova range

2020-08-23 Thread Eli Cohen
On Fri, Aug 21, 2020 at 05:28:12AM -0400, Jason Wang wrote: > This patch introduces a new ioctl for vhost-vdpa device that can > report the iova range by the device. > > For device that implements get_iova_range() method, we fetch it from > the vDPA device. If device doesn't implement

Re: [PATCH AUTOSEL 5.8 55/62] RDMA/efa: Add EFA 0xefa1 PCI ID

2020-08-23 Thread Gal Pressman
On 21/08/2020 23:34, Sasha Levin wrote: > On Fri, Aug 21, 2020 at 05:19:52PM -0300, Jason Gunthorpe wrote: >> On Fri, Aug 21, 2020 at 03:53:22PM -0400, Sasha Levin wrote: >>> On Fri, Aug 21, 2020 at 04:40:36PM -0300, Jason Gunthorpe wrote: >>> > On Fri, Aug 21, 2020 at 12:14:16PM -0400, Sasha

Re: [PATCH] fs: Kill DCACHE_DONTCACHE dentry even if DCACHE_REFERENCED is set

2020-08-23 Thread Ira Weiny
On Fri, Aug 21, 2020 at 10:40:41AM -0700, 'Ira Weiny' wrote: > On Fri, Aug 21, 2020 at 09:59:53AM +0800, Hao Li wrote: > > Currently, DCACHE_REFERENCED prevents the dentry with DCACHE_DONTCACHE > > set from being killed, so the corresponding inode can't be evicted. If > > the DAX policy of an

[PATCH] ntb: intel: Fix memleak in intel_ntb_pci_probe

2020-08-23 Thread Dinghao Liu
The default error branch of a series of pdev_is_gen calls should free ndev just like what we've done in these calls. Signed-off-by: Dinghao Liu --- drivers/ntb/hw/intel/ntb_hw_gen1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ntb/hw/intel/ntb_hw_gen1.c

Re: [PATCH 4/5] bio: introduce BIO_FOLL_PIN flag

2020-08-23 Thread John Hubbard
On 8/22/20 11:25 PM, Christoph Hellwig wrote: On Fri, Aug 21, 2020 at 09:20:58PM -0700, John Hubbard wrote: Add a new BIO_FOLL_PIN flag to struct bio, whose "short int" flags field was full, thuse triggering an expansion of the field from 16, to 32 bits. This allows for a nice assertion in

KMSAN: uninit-value in vga16fb_imageblit

2020-08-23 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:ce8056d1 wip: changed copy_from_user where instrumented git tree: https://github.com/google/kmsan.git master console output: https://syzkaller.appspot.com/x/log.txt?x=14fb406190 kernel config:

Re: [RFC PATCH] habanalabs: goya: make use of dma_mmap_coherent

2020-08-23 Thread Oded Gabbay
On Sun, Aug 23, 2020 at 2:32 AM Hillf Danton wrote: > > > On Sat, 22 Aug 2020 19:10:07 +0300 Oded Gabbay wrote: > > On Mon, Aug 17, 2020 at 4:48 PM Hillf Danton wrote: > > > > > > > > > Add dma_mmap_coherent() to match dma_alloc_coherent(), see the Link tag > > > for why. > > > > > > Link:

Re: [PATCH v33 03/12] LRNG - sysctls and /proc interface

2020-08-23 Thread kernel test robot
Hi "Stephan, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on char-misc/char-misc-testing] [also build test WARNING on cryptodev/master crypto/master v5.9-rc1 next-20200821] [If your patch is applied to the wrong git tree, kindly drop us a note. And when

[PATCH] watchdog: Fix double-free in watchdog_cdev_register

2020-08-23 Thread Dinghao Liu
When misc_register() fails, wd_data will be released by the release callback function watchdog_core_data_release(), so we don't need to free it again. But when watchdog_kworker is NULL, we should free wd_data to prevent memleak. Fixes: cb36e29bb0e4b ("watchdog: initialize device before

Re: [PATCH v2 1/9] docs: Document IO Address Space ID (IOASID) APIs

2020-08-23 Thread Lu Baolu
Hi Jacob, On 2020/8/22 12:35, Jacob Pan wrote: IOASID is used to identify address spaces that can be targeted by device DMA. It is a system-wide resource that is essential to its many users. This document is an attempt to help developers from all vendors navigate the APIs. At this time, ARM

[PATCH v4 1/2] arm64: defconfig: re-sync DRM related defconfig bits

2020-08-23 Thread Guido Günther
This moves the CONFIG_DRM_SIMPLE_BRIDGE entry around making further updates simpler. Signed-off-by: Guido Günther --- arch/arm64/configs/defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index

[PATCH v4 2/2] arm64: defconfig: Enable imx8mq-librem5-devkit display stack

2020-08-23 Thread Guido Günther
Enable the panel, NWL DSI host controller and dphy. This also needs the reset controller. Signed-off-by: Guido Günther Reviewed-by: Fabio Estevam --- arch/arm64/configs/defconfig | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig

[PATCH v4 0/2] arm64: dts: imx8mq: Add NWL DSI host controller to Librem 5 Devkit

2020-08-23 Thread Guido Günther
These patches add the NWL host controller to the imx8mq and make use of it on the Librem 5 Devkit enabling the built in MIPI DSI LCD panel. I opted to add imx8mq internal ports and endpoints between nwl and lcdif to the generic dtsi since those are SOC rather than board specific properties.

[PATCH] NFC: st95hf: Fix memleak in st95hf_in_send_cmd

2020-08-23 Thread Dinghao Liu
When down_killable() fails, skb_resp should be freed just like when st95hf_spi_send() fails. Signed-off-by: Dinghao Liu --- drivers/nfc/st95hf/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nfc/st95hf/core.c b/drivers/nfc/st95hf/core.c index

Re: [PATCH v2 3/4] arm64: defconfig: re-sync DRM related defconfig bits

2020-08-23 Thread Guido Günther
Hi, On Sun, Aug 23, 2020 at 10:56:22AM +0800, Shawn Guo wrote: > On Thu, Aug 20, 2020 at 10:50:58AM +0200, Guido Günther wrote: > > This moves the CONFIG_DRM_SIMPLE_BRIDGE entry around making further > > updates simpler. > > > > Signed-off-by: Guido Günther > > Patch #3 and #4 do not apply to

Re: [PATCH] sched/fair: avoid vruntime compensation for SCHED_IDLE task

2020-08-23 Thread Jiang Biao
Hi, Vincent and Peter On Thu, 20 Aug 2020 at 22:09, Vincent Guittot wrote: > > On Thu, 20 Aug 2020 at 15:44, wrote: > > > > > That's been said, not compensating the vruntime for a sched_idle task > > > makes sense for me. Even if that will only help for others task in the > > > same cfs_rq > >

[PATCH] Bluetooth: btusb: Fix memleak in btusb_mtk_submit_wmt_recv_urb

2020-08-23 Thread Dinghao Liu
When kmalloc() on buf fails, urb should be freed just like when kmalloc() on dr fails. Signed-off-by: Dinghao Liu --- drivers/bluetooth/btusb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index 8d2608ddfd08..f88968bcdd6a 100644 ---

[PATCH] rtc: sun6i: Fix memleak in sun6i_rtc_clk_init

2020-08-23 Thread Dinghao Liu
When clk_hw_register_fixed_rate_with_accuracy() fails, clk_data should be freed. It's the same for the subsequent error paths. Signed-off-by: Dinghao Liu --- drivers/rtc/rtc-sun6i.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-sun6i.c

Re: [PATCHv2] PCI: Add pci_iounmap

2020-08-23 Thread Michael S. Tsirkin
On Thu, Aug 20, 2020 at 04:55:49PM -0500, Bjorn Helgaas wrote: > [+cc Michael, author of 66eab4df288a ("lib: add GENERIC_PCI_IOMAP")] > > On Thu, Aug 20, 2020 at 10:33:06AM +0530, George Cherian wrote: > > In case if any architecture selects CONFIG_GENERIC_PCI_IOMAP and not > >

Re: [patch RFC 38/38] irqchip: Add IMS array driver - NOT FOR MERGING

2020-08-23 Thread Thomas Gleixner
On Sat, Aug 22 2020 at 20:05, Jason Gunthorpe wrote: > On Sat, Aug 22, 2020 at 03:34:45AM +0200, Thomas Gleixner wrote: > As a silicon design it might work, but it means existing devices can't > be used with this dev_msi. It is also the sort of thing that would > need a standard document to have

[PATCH] net: atheros: switch from 'pci_' to 'dma_' API

2020-08-23 Thread Christophe JAILLET
The wrappers in include/linux/pci-dma-compat.h should go away. The patch has been generated with the coccinelle script below and has been hand modified to replace GFP_ with a correct flag. It has been compile tested. When memory is allocated in 'atl1e_setup_ring_resources()' (atl1e_main.c),

[PATCH] net: usb: Fix uninit-was-stored issue in asix_read_cmd()

2020-08-23 Thread Himadri Pandya
Initialize the buffer before passing it to usb_read_cmd() function(s) to fix the uninit-was-stored issue in asix_read_cmd(). Fixes: KMSAN: kernel-infoleak in raw_ioctl Reported by: syzbot+a7e220df5a81d1ab4...@syzkaller.appspotmail.com Signed-off-by: Himadri Pandya ---

[GIT pull] perf/urgent for v5.9-rc2

2020-08-23 Thread Thomas Gleixner
Linus, please pull the latest perf/urgent branch from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-2020-08-23 up to: 24633d901ea4: perf/x86/intel/uncore: Add BW counters for GT, IA and IO breakdown A single update for perf on x86 which ass support for the

[GIT pull] efi/urgent for v5.9-rc2

2020-08-23 Thread Thomas Gleixner
Linus, please pull the latest efi/urgent branch from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git efi-urgent-2020-08-23 up to: fb1201aececc: Documentation: efi: remove description of efi=old_map A set of EFI fixes: - Enforce NX on RO data in mixed EFI mode - Destroy

[GIT pull] core/urgent for v5.9-rc2

2020-08-23 Thread Thomas Gleixner
Linus, please pull the latest core/urgent branch from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git core-urgent-2020-08-23 up to: d88d59b64ca3: core/entry: Respect syscall number rewrites A single bug fix for the common entry code. The transcript of the x86 version messed up

[GIT pull] x86/urgent for v5.9-rc2

2020-08-23 Thread Thomas Gleixner
Linus, please pull the latest x86/urgent branch from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-2020-08-23 up to: 6a3ea3e68b8a: x86/entry/64: Do not use RDPID in paranoid entry to accomodate KVM A single fix for x86 which removes the RDPID usage from the

[PATCH] chelsio: switch from 'pci_' to 'dma_' API

2020-08-23 Thread Christophe JAILLET
The wrappers in include/linux/pci-dma-compat.h should go away. The patch has been generated with the coccinelle script below and has been hand modified to replace GFP_ with a correct flag. It has been compile tested. When memory is allocated in 'free_rx_resources()' and 'alloc_tx_resources()'

[tip: timers/core] timekeeping: Provide multi-timestamp accessor to NMI safe timekeeper

2020-08-23 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the timers/core branch of tip: Commit-ID: e2d977c9f1abd1d199b412f8f83c1727808b794d Gitweb: https://git.kernel.org/tip/e2d977c9f1abd1d199b412f8f83c1727808b794d Author:Thomas Gleixner AuthorDate:Fri, 14 Aug 2020 12:19:35 +02:00

[tip: timers/core] timekeeping: Utilize local_clock() for NMI safe timekeeper during early boot

2020-08-23 Thread tip-bot2 for Thomas Gleixner
The following commit has been merged into the timers/core branch of tip: Commit-ID: 71419b30cab099f7ca37e61bf41028d8b7d4984d Gitweb: https://git.kernel.org/tip/71419b30cab099f7ca37e61bf41028d8b7d4984d Author:Thomas Gleixner AuthorDate:Fri, 14 Aug 2020 12:19:34 +02:00

Re: [PATCH v2 1/2] arm64: defconfig: Enable USB gadget with configfs

2020-08-23 Thread Krzysztof Kozlowski
On Sun, Aug 23, 2020 at 09:46:01AM +0800, Shawn Guo wrote: > On Mon, Aug 17, 2020 at 08:56:53AM +0200, Krzysztof Kozlowski wrote: > > USB OTG connections are pretty common for embedded and development > > boards, for example to have networking or serial access to the device. > > Build as a module

Re: [patch 0/2] timekeeping: NMI safe timekeeper enhancements

2020-08-23 Thread Thomas Gleixner
Petr, On Thu, Aug 20 2020 at 12:43, Petr Mladek wrote: > On Thu 2020-08-20 12:30:55, Thomas Gleixner wrote: >> Good. So I suggest that I apply that on top of rc1 somewhere in tip and >> tag the top commit. So you can pull that tag into your printk branch and >> go wild. > > Sounds good to me.

Re: [PATCH v2 3/4] arm64: dts: imx8mm-var-som: Add Variscite VAR-SOM-MX8MM System on Module

2020-08-23 Thread Krzysztof Kozlowski
On Sun, Aug 23, 2020 at 09:56:47AM +0800, Shawn Guo wrote: > On Mon, Aug 17, 2020 at 09:01:19AM +0200, Krzysztof Kozlowski wrote: > > Add DTSI of Variscite VAR-SOM-MX8MM System on Module in a basic version, > > delivered with Variscite Symphony Evaluation kit. This version comes > > with: > > -

[PATCH] ARM: dts: imx6q-kontron-samx6i: Remove old fsl,spi-num-chipselects

2020-08-23 Thread Krzysztof Kozlowski
The property "fsl,spi-num-chipselects" is gone since commit 790739c4417c ("dt-bindings: spi: Convert imx cspi to json-schema"). Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/imx6q-kontron-samx6i.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git

[PATCH] net: arc_emac: Fix memleak in arc_mdio_probe

2020-08-23 Thread Dinghao Liu
When devm_gpiod_get_optional() fails, bus should be freed just like when of_mdiobus_register() fails. Fixes: 1bddd96cba03d ("net: arc_emac: support the phy reset for emac driver") Signed-off-by: Dinghao Liu --- drivers/net/ethernet/arc/emac_mdio.c | 1 + 1 file changed, 1 insertion(+) diff

Re: [PATCH v2 4/4] arm64: dts: imx8mm-var-som-symphony: Add Variscite Symphony board with VAR-SOM-MX8MM

2020-08-23 Thread Krzysztof Kozlowski
On Sun, Aug 23, 2020 at 10:00:51AM +0800, Shawn Guo wrote: > On Mon, Aug 17, 2020 at 09:01:20AM +0200, Krzysztof Kozlowski wrote: > > Add a DTS for Variscite Symphony evaluation kit with VAR-SOM-MX8MM > > System on Module. > > > > Signed-off-by: Krzysztof Kozlowski > > > > --- > > > > Changes

[PATCH 1/3] arm64: dts: imx8mm-evk: remove orphaned pinctrl-names property

2020-08-23 Thread Krzysztof Kozlowski
The "pinctrl-names" property in iomux node does not make sense on its own (without "pinctrl-X"). Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/freescale/imx8mm-evk.dts | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dts

[PATCH 2/3] arm64: dts: imx8mn-evk: remove orphaned pinctrl-names property

2020-08-23 Thread Krzysztof Kozlowski
The "pinctrl-names" property in iomux node does not make sense on its own (without "pinctrl-X"). Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi

[PATCH 3/3] arm64: dts: imx8mp-evk: remove orphaned pinctrl-names property

2020-08-23 Thread Krzysztof Kozlowski
The "pinctrl-names" property in iomux node does not make sense on its own (without "pinctrl-X"). Signed-off-by: Krzysztof Kozlowski --- arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts

Re: [PATCH 2/2] block: fix locking for struct block_device size updates

2020-08-23 Thread Christoph Hellwig
On Fri, Aug 21, 2020 at 06:02:32PM +0800, 田 wrote: > thanks Hellwig for your kindly reply and your fix and add report by me :) I found an issue with the patch, and will send a new version in a bit. If this works for your reproducer, can you add a Tested-by: tag?

fix block device size update serialization v2

2020-08-23 Thread Christoph Hellwig
Hi Jens, this series fixes how we update i_size for the block device inodes (and thus the block device). Different helpers use two different locks (bd_mutex and i_rwsem) to protect the update, and it appears device mapper uses yet another internal lock. A lot of the drivers do the update

[PATCH 3/3] nvme: don't call revalidate_disk from nvme_set_queue_dying

2020-08-23 Thread Christoph Hellwig
In nvme_set_queue_dying we really just want to ensure the disk and bdev sizes are set to zero. Going through revalidate_disk leads to a somewhat arcance and complex callchain relying on special behavior in a few places. Instead just lift the set_capacity directly to nvme_set_queue_dying, and

[PATCH 1/3] block: replace bd_set_size with bd_set_nr_sectors

2020-08-23 Thread Christoph Hellwig
Replace bd_set_size with a version that takes the number of sectors instead, as that fits most of the current and future callers much better. Signed-off-by: Christoph Hellwig Reviewed-by: Hannes Reinecke --- drivers/block/loop.c | 4 ++-- drivers/block/nbd.c | 7 ---

[PATCH 2/3] block: fix locking for struct block_device size updates

2020-08-23 Thread Christoph Hellwig
Two different callers use two different mutexes for updating the block device size, which obviously doesn't help to actually protect against concurrent updates from the different callers. In addition one of the locks, bd_mutex is rather prone to deadlocks with other parts of the block stack that

[PATCH] scsi: pm8001: Fix memleak in pm8001_exec_internal_task_abort

2020-08-23 Thread Dinghao Liu
When pm8001_tag_alloc() fails, task should be freed just like what we've done in the subsequent error paths. Signed-off-by: Dinghao Liu --- drivers/scsi/pm8001/pm8001_sas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/pm8001/pm8001_sas.c

Re: [PATCH] net: usb: Fix uninit-was-stored issue in asix_read_cmd()

2020-08-23 Thread Dmitry Vyukov
On Sun, Aug 23, 2020 at 10:21 AM Himadri Pandya wrote: > > Initialize the buffer before passing it to usb_read_cmd() function(s) to > fix the uninit-was-stored issue in asix_read_cmd(). > > Fixes: KMSAN: kernel-infoleak in raw_ioctl > Reported by:

Re: [PATCH v2 04/10] fs/ntfs3: Add file operations and implementation

2020-08-23 Thread Pali Rohár
Hello Konstantin! On Friday 21 August 2020 16:25:15 Konstantin Komarov wrote: > diff --git a/fs/ntfs3/dir.c b/fs/ntfs3/dir.c > new file mode 100644 > index ..5f1105f1283c > --- /dev/null > +++ b/fs/ntfs3/dir.c > @@ -0,0 +1,529 @@ > +// SPDX-License-Identifier: GPL-2.0 > +/* > + *

Re: [PATCH v2 02/10] fs/ntfs3: Add initialization of super block

2020-08-23 Thread Pali Rohár
On Friday 21 August 2020 16:25:03 Konstantin Komarov wrote: > + case Opt_nls: > + match_strlcpy(nls_name, [0], sizeof(nls_name)); > + break; > + > + /* unknown option */ > + default: > + if (!silent) >

Re: [PATCH v4] i3c: master: fix for SETDASA and DAA process

2020-08-23 Thread Boris Brezillon
On Fri, 21 Aug 2020 11:13:15 +0200 Parshuram Thombare wrote: > This patch fix following issue. > Controller slots blocked for devices with static_addr > but no init_dyn_addr may limit the number of I3C devices > on the bus which gets dynamic address in DAA. So > instead of attaching all the

[GIT PULL] EDAC urgent for v5.9-rc2

2020-08-23 Thread Borislav Petkov
Hi Linus, please pull a single fix which corrects a wrong error severity determination which got copied to a bunch of drivers too. Thx. --- The following changes since commit 9123e3a74ec7b934a4a099e98af6a61c2f80bbf5: Linux 5.9-rc1 (2020-08-16 13:04:57 -0700) are available in the Git

Re: [PATCH v4] i3c: master: fix for SETDASA and DAA process

2020-08-23 Thread Boris Brezillon
On Sun, 23 Aug 2020 11:59:18 +0200 Boris Brezillon wrote: > > -static void i3c_master_pre_assign_dyn_addr(struct i3c_dev_desc *dev) > > +static int i3c_master_early_i3c_dev_add(struct i3c_master_controller > > *master, > > + struct i3c_dev_boardinfo

Re: [PATCH v2 08/10] fs/ntfs3: Add Kconfig, Makefile and doc

2020-08-23 Thread Pali Rohár
On Friday 21 August 2020 16:25:37 Konstantin Komarov wrote: > +Mount Options > += > + > +The list below describes mount options supported by NTFS3 driver in addtion > to > +generic ones. > + > +=== > + >

Re: [PATCH] net: usb: Fix uninit-was-stored issue in asix_read_cmd()

2020-08-23 Thread Greg Kroah-Hartman
On Sun, Aug 23, 2020 at 11:26:27AM +0200, Dmitry Vyukov wrote: > On Sun, Aug 23, 2020 at 10:21 AM Himadri Pandya > wrote: > > > > Initialize the buffer before passing it to usb_read_cmd() function(s) to > > fix the uninit-was-stored issue in asix_read_cmd(). > > > > Fixes: KMSAN: kernel-infoleak

Re: [PATCH] net: usb: Fix uninit-was-stored issue in asix_read_cmd()

2020-08-23 Thread Dmitry Vyukov
On Sun, Aug 23, 2020 at 12:19 PM Greg Kroah-Hartman wrote: > > On Sun, Aug 23, 2020 at 11:26:27AM +0200, Dmitry Vyukov wrote: > > On Sun, Aug 23, 2020 at 10:21 AM Himadri Pandya > > wrote: > > > > > > Initialize the buffer before passing it to usb_read_cmd() function(s) to > > > fix the

Re: [PATCH v2] mm: Track page table modifications in __apply_to_page_range()

2020-08-23 Thread Pavel Machek
Hi! > The __apply_to_page_range() function is also used to change and/or > allocate page-table pages in the vmalloc area of the address space. > Make sure these changes get synchronized to other page-tables in the > system by calling arch_sync_kernel_mappings() when necessary. > > Tested-by:

Re: [PATCH] net: usb: Fix uninit-was-stored issue in asix_read_cmd()

2020-08-23 Thread Greg Kroah-Hartman
On Sun, Aug 23, 2020 at 12:31:03PM +0200, Dmitry Vyukov wrote: > On Sun, Aug 23, 2020 at 12:19 PM Greg Kroah-Hartman > > It's not always a failure, some devices have protocols that are "I could > > return up to a max X bytes but could be shorter" types of messages, so > > it's up to the caller to

Re: [PATCH] net: usb: Fix uninit-was-stored issue in asix_read_cmd()

2020-08-23 Thread Greg Kroah-Hartman
On Sun, Aug 23, 2020 at 12:31:03PM +0200, Dmitry Vyukov wrote: > On Sun, Aug 23, 2020 at 12:19 PM Greg Kroah-Hartman > wrote: > > > > On Sun, Aug 23, 2020 at 11:26:27AM +0200, Dmitry Vyukov wrote: > > > On Sun, Aug 23, 2020 at 10:21 AM Himadri Pandya > > > wrote: > > > > > > > > Initialize the

[PATCH] ALSA: usb-audio: Disable autosuspend for Lenovo ThinkStation P620

2020-08-23 Thread Kai-Heng Feng
If USB autosuspend is enabled, both front and rear panel can no longer detect jack insertion. Enable USB remote wakeup, i.e. needs_remote_wakeup = 1, doesn't help either. So disable USB autosuspend to prevent missing jack detection event. Signed-off-by: Kai-Heng Feng ---

Re: [RFC PATCH] habanalabs: goya: make use of dma_mmap_coherent

2020-08-23 Thread Oded Gabbay
On Sun, Aug 23, 2020 at 11:19 AM Hillf Danton wrote: > > > On Sun, 23 Aug 2020 10:01:59 +0300 Oded Gabbay wrote: > > > > One more small thing, can you please change the error message content > > from "remap_pfn_range error" to "dma_mmap_coherent error" ? > > My fault. > > ---8<--- > From: Hillf

[PATCH v2] mtd: spinand: micron: add support for MT29F2G01AAAED

2020-08-23 Thread Thirumalesha Narasimhappa
The MT29F2G01AAAED is a single die, 2Gb Micron SPI NAND Flash with 4-bit ECC Signed-off-by: Thirumalesha Narasimhappa --- v2: removed SPINAND_SELECT_TARGET as per the comments & fixed typo errors drivers/mtd/nand/spi/micron.c | 78 +++ 1 file changed, 78

[PATCH] Platform: OLPC: Fix memleak in olpc_ec_probe

2020-08-23 Thread Dinghao Liu
When devm_regulator_register() fails, ec should be freed just like when olpc_ec_cmd() fails. Fixes: 231c0c216172a ("Platform: OLPC: Add a regulator for the DCON") Signed-off-by: Dinghao Liu --- drivers/platform/olpc/olpc-ec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH 2/5] arm64: dts: imx8mq-evk: Replace deprecated phy reset properties

2020-08-23 Thread Krzysztof Kozlowski
Use preferred properties of phy node instead of deprecated phy-reset-gpios (and others). This avoids copying deprecated code into future DTSes. Signed-off-by: Krzysztof Kozlowski --- Not tested on HW. --- arch/arm64/boot/dts/freescale/imx8mq-evk.dts | 4 ++-- 1 file changed, 2 insertions(+),

[PATCH 1/5] arm64: dts: imx8mm-evk: Replace deprecated phy reset properties

2020-08-23 Thread Krzysztof Kozlowski
Use preferred properties of phy node instead of deprecated phy-reset-gpios (and others). This avoids copying deprecated code into future DTSes. Signed-off-by: Krzysztof Kozlowski --- Not tested on HW. --- arch/arm64/boot/dts/freescale/imx8mm-evk.dts | 4 ++-- 1 file changed, 2 insertions(+),

[PATCH 3/5] arm64: dts: imx8mq-phanbell: Replace deprecated phy reset properties

2020-08-23 Thread Krzysztof Kozlowski
Use preferred properties of phy node instead of deprecated phy-reset-gpios (and others). This avoids copying deprecated code into future DTSes. Signed-off-by: Krzysztof Kozlowski --- Not tested on HW. --- arch/arm64/boot/dts/freescale/imx8mq-phanbell.dts | 6 +++--- 1 file changed, 3

[PATCH 5/5] arm64: dts: imx8mq-thor96: Replace deprecated phy reset properties

2020-08-23 Thread Krzysztof Kozlowski
Use preferred properties of phy node instead of deprecated phy-reset-gpios (and others). This avoids copying deprecated code into future DTSes. Signed-off-by: Krzysztof Kozlowski --- Not tested on HW. --- arch/arm64/boot/dts/freescale/imx8mq-thor96.dts | 2 +- 1 file changed, 1 insertion(+),

[PATCH 4/5] arm64: dts: imx8mq-sr-som: Replace deprecated phy reset properties

2020-08-23 Thread Krzysztof Kozlowski
Use preferred properties of phy node instead of deprecated phy-reset-gpios (and others). This avoids copying deprecated code into future DTSes. Signed-off-by: Krzysztof Kozlowski --- Not tested on HW. --- arch/arm64/boot/dts/freescale/imx8mq-sr-som.dtsi | 4 ++-- 1 file changed, 2

Re: [git pull] habanalabs fixes pull request for kernel 5.9-rc2/3

2020-08-23 Thread Greg KH
On Sat, Aug 22, 2020 at 01:12:50PM +0300, Oded Gabbay wrote: > Hello Greg, > > This is the pull request for habanalabs driver fixes for 5.9-rc2/3. > Mostly security fixes but also some functionality fixes. More details are > in the tag. > > Thanks, > Oded > > The following changes since commit

[PATCH] firestream: Fix memleak in fs_open

2020-08-23 Thread Dinghao Liu
When make_rate() fails, vcc should be freed just like other error paths in fs_open(). Signed-off-by: Dinghao Liu --- drivers/atm/firestream.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/atm/firestream.c b/drivers/atm/firestream.c index 2ca9ec802734..510250cf5c87 100644 ---

include/linux/rwlock_api_smp.h:150:23: error: 'do_raw_read_trylock' undeclared; did you mean

2020-08-23 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: c3d8f220d01220a5b253e422be407d068dc65511 commit: 0cd39f4600ed4de859383018eb10f0f724900e1b locking/seqlock, headers: Untangle the spaghetti monster date: 2 weeks ago config: sh-j2_defconfig (attached as

Re: [PATCH v2] hv_utils: drain the timesync packets on onchannelcallback

2020-08-23 Thread Vineeth Pillai
Typo "packaet". No need to resend. I can fix this while committing this patch. Thanks Wei.

cc1: fatal error: opening output file arch/powerpc/boot/dts/fsl/.mvme7100.dtb.dts.tmp: No such file or directory

2020-08-23 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: c3d8f220d01220a5b253e422be407d068dc65511 commit: cc8a51ca6f05ade72f7dd2624bc5f9b948e216fc kbuild: always create directories of targets date: 2 weeks ago config: powerpc64-randconfig-r032-20200823

Re: [PATCH] ARM: dts: imx6sx-sdb: Add headphone detection for sound card

2020-08-23 Thread S.j. Wang
Hi Shawn > > > I didn't put headphone detect GPIO in audmux group in imx6sl-evk > > patch, Still in hog group. > > Ok, sorry. You grouped it with MX6SL_PAD_AUD_MCLK__AUDIO_CLK_OUT, > which I also think should not be part of the hog group. > > > And I think headphone detect GPIO is not belong

[GIT PULL] Please pull powerpc/linux.git powerpc-5.9-3 tag

2020-08-23 Thread Michael Ellerman
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hi Linus, Please pull some more powerpc fixes for 5.9. There's one non-fix, which is the perf extended regs support. That was posted way back but I waited for the tools/perf part to land, which it now has. cheers The following changes since

Re: [PATCH v2] mtd: spinand: micron: add support for MT29F2G01AAAED

2020-08-23 Thread kernel test robot
' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Thirumalesha-Narasimhappa/mtd-spinand-micron-add-support-for-MT29F2G01AAAED/20200823-191310 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

[PATCH] clocksource/drivers/cadence-ttc: Fix memleak in ttc_setup_clockevent

2020-08-23 Thread Dinghao Liu
When clk_notifier_register() fails, ttcce should be freed just like when clk_prepare_enable() and request_irq() fail. Signed-off-by: Dinghao Liu --- drivers/clocksource/timer-cadence-ttc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clocksource/timer-cadence-ttc.c

Re: [PATCH v4 0/2] Add new UniPhier AHCI PHY driver

2020-08-23 Thread Vinod Koul
Hello, On 21-08-20, 18:20, Kunihiko Hayashi wrote: > Gentle ping. > Are there any comments in this series? Sorry I dont have this in my inbox, can you please rebease and resend to me as well Thanks > > Thank you, > > On 2020/07/16 17:32, Kunihiko Hayashi wrote: > > This series adds support

Re: [PATCH v2] mtd: spinand: micron: add support for MT29F2G01AAAED

2020-08-23 Thread Boris Brezillon
On Sun, 23 Aug 2020 19:14:10 +0800 Thirumalesha Narasimhappa wrote: > The MT29F2G01AAAED is a single die, 2Gb Micron SPI NAND Flash with 4-bit > ECC > > Signed-off-by: Thirumalesha Narasimhappa > --- > v2: removed SPINAND_SELECT_TARGET as per the comments & fixed typo errors > >

RE: [PATCH] x86: work around clang IAS bug referencing __force_order

2020-08-23 Thread David Laight
From: Arvind Sankar > Sent: 22 August 2020 22:17 ... > Assuming we don't want to risk removing force_order, I'd suggest > - make it an input/output operand, so it enforces ordering fully. > - either restrict it to gcc < 8, or just provide a proper definition in > some file (maybe

[PATCH] net: ocelot: Add of_node_put() before return statement

2020-08-23 Thread Sumera Priyadarsini
Every iteration of for_each_available_child_of_node() decrements the reference count of the previous node, however when control is transferred from the middle of the loop, as in the case of a return or break or goto, there is no decrement thus ultimately resulting in a memory leak. Fix a

[PATCH 2/2] ASoC: ak5558: Add regulator support

2020-08-23 Thread Shengjiu Wang
"AVDD" is for analog power supply, "DVDD" is for digital power supply, they can improve the power management. As the regulator is enabled in pm runtime resume, which is behind the component driver probe, so accessing registers in component driver probe will fail. Fix this issue by enabling

[PATCH 1/2] ASoC: dt-bindings: ak5558: Add power supply property

2020-08-23 Thread Shengjiu Wang
AVDD-supply is for Analog power supply DVDD-supply is for Digital power supply Signed-off-by: Shengjiu Wang --- Documentation/devicetree/bindings/sound/ak5558.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/ak5558.txt

[PATCH] net: dsa: Add of_node_put() before break statement

2020-08-23 Thread Sumera Priyadarsini
Every iteration of for_each_child_of_node() decrements the reference count of the previous node, however when control is transferred from the middle of the loop, as in the case of a return or break or goto, there is no decrement thus ultimately resulting in a memory leak. Fix a potential memory

Re: [PATCH V5 3/7] phy: tegra: xusb: Add USB2 pad power control support for Tegra210

2020-08-23 Thread Vinod Koul
On 20-07-20, 15:25, Nagarjuna Kristam wrote: > Add USB2 pad power on and off API's for TEgra210 and provide its control > via soc ops. It can be used by operations like charger detect to power on > and off USB2 pad if needed. > > Signed-off-by: Nagarjuna Kristam > Acked-by: Thierry Reding > ---

Re: [PATCH v5] phy: samsung: Use readl_poll_timeout function

2020-08-23 Thread Vinod Koul
On 20-07-20, 17:35, Anand Moon wrote: > Instead of a busy waiting while loop using udelay > use readl_poll_timeout function to check the condition > is met or timeout occurs in crport_handshake function. > readl_poll_timeout is called in non atomic context so > it safe to sleep until the condition

[PATCH v1 0/6] Introduce Embedded Controller driver for Acer A500

2020-08-23 Thread Dmitry Osipenko
Hello! This series adds support for the Embedded Controller which is found on Acer Iconia Tab A500 (Android tablet device). The Embedded Controller is ENE KB930 and it's running firmware customized for the A500. The firmware interface may be reused by some other sibling Acer tablets, although

[PATCH v1 5/6] dt-bindings: mfd: ene-kb3930: Document power-supplies and monitored-battery properties

2020-08-23 Thread Dmitry Osipenko
Battery could be connected to the controller and in this case controller will provide a battery-monitor function. The power-supplies phandle property is needed in order to describe the power supply which is used for charging of the battery, this allows to determine whither battery is charging or

[PATCH v1 3/6] leds: Add driver for Acer Iconia Tab A500

2020-08-23 Thread Dmitry Osipenko
Acer Iconia Tab A500 is an Android tablet device which has two LEDs embedded into the Power Button. Orange LED indicates "battery charging" status and white LED indicates "wake-up/charge-done" status. The new LED driver provides control over both LEDs to userspace. Signed-off-by: Dmitry Osipenko

[PATCH v1 1/6] mfd: Add driver for Embedded Controller found on Acer Iconia Tab A500

2020-08-23 Thread Dmitry Osipenko
Acer Iconia Tab A500 is an Android tablet device, it has ENE KB930 Embedded Controller which provides battery-gauge, LED, GPIO and some other functions. The EC uses firmware that is specifically customized for Acer A500. This patch adds MFD driver for the Embedded Controller which allows to

[PATCH v1 6/6] ARM: tegra: acer-a500: Add Embedded Controller

2020-08-23 Thread Dmitry Osipenko
This patch adds device-tree node for the Embedded Controller which is found on the Picasso board. The Embedded Controller itself is ENE KB930, it provides functions like battery-gauge/LED/GPIO/etc and it uses firmware that is specifically customized for the Acer A500 device. Signed-off-by: Dmitry

[PATCH v1 2/6] power: supply: Add battery gauge driver for Acer Iconia Tab A500

2020-08-23 Thread Dmitry Osipenko
This patch adds battery gauge driver for Acer Iconia Tab A500 device. The battery gauge function is provided via the Embedded Controller, which is found on the Acer A500. Signed-off-by: Dmitry Osipenko --- drivers/power/supply/Kconfig | 6 + drivers/power/supply/Makefile

[PATCH v1 4/6] dt-bindings: mfd: ene-kb3930: Add compatibles for KB930 and Acer A500

2020-08-23 Thread Dmitry Osipenko
The ENE KB930 hardware is compatible with KB3930. Acer A500 Iconia Tab is Android tablet device, it has KB930 controller that is running firmware specifically customized for the needs of the Acer A500 hardware. This means that firmware interface isn't re-usable by other non-Acer devices. Some

Re: [PATCH v2 0/3] phy: ti: am654: improve PCIe enumeration performance

2020-08-23 Thread Vinod Koul
On 28-07-20, 01:16, Sekhar Nori wrote: > This patch series updates AM654x PCIe serdes settings to > latest recommended by hardware. This fixes Gen2 enumeration > issues seen previously. Applied after fixing typo 'threshold' in last patch, thanks -- ~Vinod

Re: [PATCH] ARM: dts: imx6sx-sdb: Add headphone detection for sound card

2020-08-23 Thread Fabio Estevam
Hi Wang Shengjiu and Shawn, On Sun, Aug 23, 2020 at 9:31 AM S.j. Wang wrote: > I would like to know your opinion, should I move headphone detect GPIO > To audmux group? What about adding a dedicated pinctrl_hp for the headphone detect pin like it is done at:

[PATCH v1] brcmfmac: increase F2 watermark for BCM4329

2020-08-23 Thread Dmitry Osipenko
This patch fixes SDHCI CRC errors during of RX throughput testing on BCM4329 chip if SDIO BUS is clocked above 25MHz. In particular the checksum problem is observed on NVIDIA Tegra20 SoCs. The good watermark value is borrowed from downstream BCMDHD driver and it's the same as the value used for

Re: [PATCH] net: dsa: Add of_node_put() before break statement

2020-08-23 Thread Andrew Lunn
On Sun, Aug 23, 2020 at 07:31:16PM +0530, Sumera Priyadarsini wrote: > Every iteration of for_each_child_of_node() decrements > the reference count of the previous node, however when control > is transferred from the middle of the loop, as in the case of > a return or break or goto, there is no

  1   2   3   4   >