[PATCH v10 1/2] Add DT bindings YAML schema for PWM fan controller of LGM SoC

2020-08-23 Thread Rahul Tanwar
Intel's LGM(Lightning Mountain) SoC contains a PWM fan controller which is only used to control the fan attached to the system. This PWM controller does not have any other consumer other than fan. Add DT bindings documentation for this PWM fan controller. Signed-off-by: Rahul Tanwar --- .../devi

[PATCH v10 2/2] Add PWM fan controller driver for LGM SoC

2020-08-23 Thread Rahul Tanwar
Intel Lightning Mountain(LGM) SoC contains a PWM fan controller. This PWM controller does not have any other consumer, it is a dedicated PWM controller for fan attached to the system. Add driver for this PWM fan controller. Signed-off-by: Rahul Tanwar --- drivers/pwm/Kconfig | 11 ++ dr

Re: [PATCH v2] h8300: dts: Fix /chosen:stdout-path

2020-08-23 Thread Yoshinori Sato
On Wed, 19 Aug 2020 21:28:38 +0900, Geert Uytterhoeven wrote: > > arch/h8300/boot/dts/h8s_sim.dts:11.3-25: Warning > (chosen_node_stdout_path): /chosen:stdout-path: property is not a string > arch/h8300/boot/dts/h8300h_sim.dts:11.3-25: Warning > (chosen_node_stdout_path): /chosen:stdout-

[GIT PULL] fallthrough pseudo-keyword macro conversions for 5.9-rc3

2020-08-23 Thread Gustavo A. R. Silva
Hi Linus, Not sure what the problem was with my pull-request for -rc2. So, I'm giving this a second try because I think it is worth it. I have build-tested this patch on 10 different architectures: x86_64, i386, arm64, powerpc, s390, sparc64, sh, m68k, powerpc64 and alpha (allyesconfig/ allmodcon

Re: [PATCH v1 07/10] powerpc/pseries/iommu: Allow DDW windows starting at 0x00

2020-08-23 Thread Alexey Kardashevskiy
On 18/08/2020 09:40, Leonardo Bras wrote: > enable_ddw() currently returns the address of the DMA window, which is > considered invalid if has the value 0x00. > > Also, it only considers valid an address returned from find_existing_ddw > if it's not 0x00. > > Changing this behavior makes sense

Re: [PATCH v2] h8300: Replace by

2020-08-23 Thread Yoshinori Sato
On Wed, 19 Aug 2020 21:29:25 +0900, Geert Uytterhoeven wrote: > > The H8/300 platform code is not a clock provider, and just needs to call > of_clk_init(). > > Hence it can include instead of . > > Signed-off-by: Geert Uytterhoeven > Reviewed-by: Stephen Boyd > --- > v2: > - Add Reviewed-by

Re: [PATCH v1 06/10] powerpc/pseries/iommu: Add ddw_list_add() helper

2020-08-23 Thread Alexey Kardashevskiy
On 18/08/2020 09:40, Leonardo Bras wrote: > There are two functions adding DDW to the direct_window_list in a > similar way, so create a ddw_list_add() to avoid duplicity and > simplify those functions. > > Also, on enable_ddw(), add list_del() on out_free_window to allow > removing the window

[PATCH V2] arm64/hotplug: Improve memory offline event notifier

2020-08-23 Thread Anshuman Khandual
This brings about three different changes to the sole memory event notifier for arm64 platform and improves it's robustness while also enhancing debug capabilities during potential memory offlining error conditions. This moves the memory notifier registration bit earlier in the boot process from d

Re: [PATCH] tools/power turbostat: call pread64 in kernel directly

2020-08-23 Thread Liwei Song
On 8/24/20 04:54, Alexander Monakov wrote: > Hi, > > I am not the original submitter, but I have answers and a proper patch :) > > On Fri, 21 Aug 2020, Len Brown wrote: > >> Re: offset size >> >> The offsets on this file are the MSR offsets. >> What MSR are you trying to access at offset 0xc0

Re: [PATCH V2] arm64/hotplug: Improve memory offline event notifier

2020-08-23 Thread Anshuman Khandual
On 08/24/2020 09:34 AM, Anshuman Khandual wrote: > This brings about three different changes to the sole memory event notifier > for arm64 platform and improves it's robustness while also enhancing debug > capabilities during potential memory offlining error conditions. > > This moves the memor

Re: [GIT PULL] irqchip fixes for 5.9, take #1

2020-08-23 Thread Lokesh Vutla
Hi, On 18/08/20 8:44 pm, Marc Zyngier wrote: > Hi Thomas, > > As -rc1 is out, here's the first batches of fixes for 5.9. The most > important one is a fix for a typo that broke modular irqchips using > the brand new set of macros. Oh hum... > > The rest of it is what I was hinting at when I sent

Re: [patch RFC 22/38] x86/xen: Make xen_msi_init() static and rename it to xen_hvm_msi_init()

2020-08-23 Thread Jürgen Groß
On 21.08.20 02:24, Thomas Gleixner wrote: The only user is in the same file and the name is too generic because this function is only ever used for HVM domains. Signed-off-by: Thomas Gleixner Cc: Konrad Rzeszutek Wilk Cc:linux-...@vger.kernel.org Cc:xen-de...@lists.xenproject.org Cc: Juergen Gro

linux-next: Tree for Aug 24

2020-08-23 Thread Stephen Rothwell
Hi all, Changes since 20200821: The hwmon-staging tree gained a build failure so I used the version from next-20200821. The bpf-next tree still had its build failure for which I disabled BPF_PRELOAD. It also gained a conflict against Linus' tree. Non-merge commits (relative to Linus' tree): 20

Re: [patch RFC 24/38] x86/xen: Consolidate XEN-MSI init

2020-08-23 Thread Jürgen Groß
On 21.08.20 02:24, Thomas Gleixner wrote: X86 cannot store the irq domain pointer in struct device without breaking XEN because the irq domain pointer takes precedence over arch_*_msi_irqs() fallbacks. To achieve this XEN MSI interrupt management needs to be wrapped into an irq domain. Move the

Re: [PATCH v1 08/10] powerpc/pseries/iommu: Add ddw_property_create() and refactor enable_ddw()

2020-08-23 Thread Alexey Kardashevskiy
On 18/08/2020 09:40, Leonardo Bras wrote: > Code used to create a ddw property that was previously scattered in > enable_ddw() is now gathered in ddw_property_create(), which deals with > allocation and filling the property, letting it ready for > of_property_add(), which now occurs in sequence.

Re: [patch RFC 23/38] x86/xen: Rework MSI teardown

2020-08-23 Thread Jürgen Groß
On 21.08.20 02:24, Thomas Gleixner wrote: X86 cannot store the irq domain pointer in struct device without breaking XEN because the irq domain pointer takes precedence over arch_*_msi_irqs() fallbacks. XENs MSI teardown relies on default_teardown_msi_irqs() which invokes arch_teardown_msi_irq().

Re: [PATCH v2] KVM: LAPIC: Narrow down the kick target vCPU

2020-08-23 Thread Wanpeng Li
On Mon, 24 Aug 2020 at 09:03, Wanpeng Li wrote: > > From: Wanpeng Li > > The kick after setting KVM_REQ_PENDING_TIMER is used to handle the timer > fires on a different pCPU which vCPU is running on, this kick is expensive > since memory barrier, rcu, preemption disable/enable operations. We don'

Re: [PATCH v1 09/10] powerpc/pseries/iommu: Make use of DDW even if it does not map the partition

2020-08-23 Thread Alexey Kardashevskiy
On 18/08/2020 09:40, Leonardo Bras wrote: > As of today, if the biggest DDW that can be created can't map the whole > partition, it's creation is skipped and the default DMA window > "ibm,dma-window" is used instead. > > DDW is 16x bigger than the default DMA window, 16x only under very specif

[PATCH] driver/pci: reduce the single block time in pci_read_config

2020-08-23 Thread Jiang Biao
From: Jiang Biao pci_read_config() could block several ms in kernel space, mainly caused by the while loop to call pci_user_read_config_dword(). Singel pci_user_read_config_dword() loop could consume 130us+, |pci_user_read_config_dword() { | _raw_spin_lock_irq

Re: [PATCH 02/22] dt-bindings: gpio: fsl-imx-gpio: Add gpio-ranges property

2020-08-23 Thread Sascha Hauer
On Sun, Aug 23, 2020 at 06:15:30PM +0200, Krzysztof Kozlowski wrote: > The GPIO controller node can have gpio-ranges property. This fixes > dtbs_check warnings like: > > arch/arm64/boot/dts/freescale/imx8mm-evk.dt.yaml: gpio@3020: > 'gpio-ranges' does not match any of the regexes: 'pinctrl

Re: [RFC PATCH 1/5] printk: implement pr_cont_t

2020-08-23 Thread Sergey Senozhatsky
On (20/08/20 01:32), John Ogness wrote: > +#define CONT_LINE_MAX LOG_LINE_MAX > +#define CONT_BUF_COUNT 10 > +static char cont_buf[CONT_BUF_COUNT][CONT_LINE_MAX]; > +static DECLARE_BITMAP(cont_buf_map, CONT_BUF_COUNT); > + > +static int get_cont_buf(void) > +{ > + int bit; > + > + do { > +

[PATCH] net: hns: Fix memleak in hns_nic_dev_probe

2020-08-23 Thread Dinghao Liu
hns_nic_dev_probe allocates ndev, but not free it on two error handling paths, which may lead to memleak. Fixes: 63434888aaf1b ("net: hns: net: hns: enet adds support of acpi") Signed-off-by: Dinghao Liu --- drivers/net/ethernet/hisilicon/hns/hns_enet.c | 9 ++--- 1 file changed, 6 insertion

Re: [PATCH 07/22] dt-bindings: serial: fsl-imx-uart: imx-pwm: Add i.MX 8M compatibles

2020-08-23 Thread Sascha Hauer
The subject contains a "imx-pwm", presumably from the last patch. Sascha On Sun, Aug 23, 2020 at 06:15:35PM +0200, Krzysztof Kozlowski wrote: > DTSes with new i.MX 8M SoCs introduce their own compatibles so add them > to fix dtbs_check warnings like: > > arch/arm64/boot/dts/freescale/imx8mm-

[PATCH] iio: dac: ad5593r: Dynamically set AD5593R channel modes

2020-08-23 Thread William Sung
To use ad5593r more flexibly, we use the module parameter to setting the channel modes dynamically whenever the module probe up. Users can pass the channel modes to the module parameter for allocating the functionality of channels as desired. For example: * Use in the kernel command line: Users ca

Re: [RESEND PATCH v3 7/8] mtd: spi-nor: Convert cadence-quadspi to use spi-mem framework

2020-08-23 Thread Jan Kiszka
On 01.06.20 09:04, Vignesh Raghavendra wrote: > From: Ramuthevar Vadivel Murugan > > Move cadence-quadspi driver to use spi-mem framework. This is required > to make the driver support for SPI NAND flashes in future. > > Driver is feature compliant with existing SPI NOR version. > > Signed-off-

[PATCH] net: systemport: Fix memleak in bcm_sysport_probe

2020-08-23 Thread Dinghao Liu
When devm_kcalloc() fails, dev should be freed just like what we've done in the subsequent error paths. Fixes: 7b78be48a8eb6 ("net: systemport: Dynamically allocate number of TX rings") Signed-off-by: Dinghao Liu --- drivers/net/ethernet/broadcom/bcmsysport.c | 6 -- 1 file changed, 4 inser

Re: [PATCH] kbuild: Run syncconfig with -s

2020-08-23 Thread Ingo Molnar
* Masahiro Yamada wrote: > On Thu, Aug 20, 2020 at 3:35 PM Ingo Molnar wrote: > > > > On every kernel build that runs --syncconfig, there's an output of the > > following line: > > > > scripts/kconfig/conf --syncconfig Kconfig > > > > This is the only non-platform build message the kbuild

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

2020-08-23 Thread Li, Hao
On 2020/8/23 14:54, Ira Weiny wrote: > 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 ev

Re: [patch RFC 26/38] x86/xen: Wrap XEN MSI management into irqdomain

2020-08-23 Thread Jürgen Groß
On 21.08.20 02:24, Thomas Gleixner wrote: To allow utilizing the irq domain pointer in struct device it is necessary to make XEN/MSI irq domain compatible. While the right solution would be to truly convert XEN to irq domains, this is an exercise which is not possible for mere mortals with limit

[PATCH] i2c: i2c-rcar: Auto select RESET_CONTROLLER

2020-08-23 Thread Eugeniu Rosca
From: Dirk Behme The i2c-rcar driver utilizes the Generic Reset Controller kernel feature, so select the RESET_CONTROLLER option when the I2C_RCAR option is selected. Fixes: 2b16fd63059ab9 ("i2c: rcar: handle RXDMA HW behaviour on Gen3") Cc: sta...@vger.kernel.org Signed-off-by: Dirk Behme Sign

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

2020-08-23 Thread Takashi Iwai
On Sun, 23 Aug 2020 12:58:50 +0200, Kai-Heng Feng wrote: > > 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 d

Re: Why KASAN doesn't detect this stack oob fault?

2020-08-23 Thread richard clark
Willy Tarreau 于2020年8月23日周日 下午12:56写道: > > On Sun, Aug 23, 2020 at 11:04:34AM +0800, richard clark wrote: > > Hi guys, > > > > I ins a kmod with below code in a KASAN enabled kernel ( > > 5.7.0, > > CONFIG_KASAN=y > > CONFIG_KASAN_GENERIC=y > > CONFIG_KASAN_OUTLINE=y): > > > > static int kmod_init

Re: [PATCH] Documentation: sound/cards: fix heading underline lengths for https: changes

2020-08-23 Thread Takashi Iwai
On Mon, 24 Aug 2020 02:02:23 +0200, Randy Dunlap wrote: > > From: Randy Dunlap > > Fix documentation build warnings for underline length too short, > caused by s/http/https/ and not changing the accompanying underlines. > > Documentation/sound/cards/audigy-mixer.rst:335: WARNING: Title underlin

Re: [PATCH v4 07/15] iommu/vt-d: Delegate the dma domain to upper layer

2020-08-23 Thread Lu Baolu
Hi Chris, On 2020/8/22 2:33, Chris Wilson wrote: Quoting Lu Baolu (2019-05-25 06:41:28) This allows the iommu generic layer to allocate a dma domain and attach it to a device through the iommu api's. With all types of domains being delegated to upper layer, we can remove an internal flag which

Re: [PATCH] mmc: core: Initial support for SD express card/host

2020-08-23 Thread Ulf Hansson
On Mon, 24 Aug 2020 at 03:04, 冯锐 wrote: > > Hi Hansson: > > If this patch will not be changed, I will post a patch for rtsx driver > according your patch. I don't think there is any change needed, unless you think so. Kind regards Uffe > > > > > Rui, > > > > On Thu, 16 Jul 2020 at 16:16, Ulf H

Re: [PATCH 0/4] mmc: sdio: Export CISTPL_VERS_1 attributes to userspace

2020-08-23 Thread Ulf Hansson
On Sat, 22 Aug 2020 at 11:41, Pali Rohár wrote: > > Hello Ulf! I would like to remind you this SDIO patch series. Could you > please look and review it? Yes, thanks for pinging, I will have a look. Kind regards Uffe > > On Monday 27 July 2020 15:38:33 Pali Rohár wrote: > > CISTPL_VERS_1 structu

Re: [PATCH 02/22] dt-bindings: gpio: fsl-imx-gpio: Add gpio-ranges property

2020-08-23 Thread Krzysztof Kozlowski
On Mon, Aug 24, 2020 at 07:24:46AM +0200, Sascha Hauer wrote: > On Sun, Aug 23, 2020 at 06:15:30PM +0200, Krzysztof Kozlowski wrote: > > The GPIO controller node can have gpio-ranges property. This fixes > > dtbs_check warnings like: > > > > arch/arm64/boot/dts/freescale/imx8mm-evk.dt.yaml: gpi

Re: [PATCH 07/22] dt-bindings: serial: fsl-imx-uart: imx-pwm: Add i.MX 8M compatibles

2020-08-23 Thread Krzysztof Kozlowski
On Mon, Aug 24, 2020 at 07:46:01AM +0200, Sascha Hauer wrote: > > The subject contains a "imx-pwm", presumably from the last patch. Ah, copy-paste. Thanks for pointing this out. Best regards, Krzysztof

Re: [PATCH 00/49] DRM driver for Hikey 970

2020-08-23 Thread Mauro Carvalho Chehab
Hi John, Em Wed, 19 Aug 2020 20:28:44 -0700 John Stultz escreveu: > That said even with the patches I've got on top of your series, I > still see a few issues: > 1) I'm seeing red-blue swap with your driver. I need to dig a bit to > see what the difference is, I know gralloc has a config optio

Re: [GIT PULL] tee subsystem pin_user_pages for v5.8

2020-08-23 Thread Jens Wiklander
On Fri, Aug 21, 2020 at 11:19 PM Olof Johansson wrote: > > On Fri, Aug 21, 2020 at 12:58 PM John Hubbard wrote: > > > > On 8/21/20 11:49 AM, Olof Johansson wrote: > > > On Tue, May 26, 2020 at 03:12:59PM +0200, Jens Wiklander wrote: > > >> Hello arm-soc maintainers, > > >> > > >> Please pull this

[PATCH] media: omap3isp: Fix memleak in isp_probe

2020-08-23 Thread Dinghao Liu
When devm_ioremap_resource() fails, isp should be freed just like other error paths in isp_probe. Fixes: 8644cdf972dd6 ("[media] omap3isp: Replace many MMIO regions by two") Signed-off-by: Dinghao Liu --- drivers/media/platform/omap3isp/isp.c | 6 -- 1 file changed, 4 insertions(+), 2 deleti

Re: [PATCH 02/22] dt-bindings: gpio: fsl-imx-gpio: Add gpio-ranges property

2020-08-23 Thread Sascha Hauer
On Mon, Aug 24, 2020 at 08:38:06AM +0200, Krzysztof Kozlowski wrote: > On Mon, Aug 24, 2020 at 07:24:46AM +0200, Sascha Hauer wrote: > > On Sun, Aug 23, 2020 at 06:15:30PM +0200, Krzysztof Kozlowski wrote: > > > The GPIO controller node can have gpio-ranges property. This fixes > > > dtbs_check wa

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: https://syzkaller.appspot.com/x/.

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: https:

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 submitt

[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 misc_regist

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 SMMU

[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 6d04b9577b0b..4

[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. Chang

[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 9642971e89ce..4578

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 my

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 --- a/

[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 b/drivers/rtc/rt

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 > > CONFIG_GENERIC_IOMA

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 an

[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), 'atl1

[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 --- drivers/net/usb/asix_commo

[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 broken

[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 workq

[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 parano

[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()' (sg

[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 Commi

[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 Commi

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 t

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: > > - 2

[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 a/arch/arm/boot/dts/imx6q-kontron-sa

[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 --gi

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 s

[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 b/arch/arm64/boo

[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 b/arch/arm64/b

[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 b/arch/arm64/boo

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 handcra

[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 rena

[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 --- drivers/bloc

[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 u

[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 b/drivers/scsi/pm8001/

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: syzbot+a7e220df5a81d1ab4...@syzkaller.appspotmail.

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 > +/* > + * linu

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, &args[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 devic

[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 reposito

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 *boardinf

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. > + > +=== > + > +nls=n

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 i

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 uninit-wa

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: Chri

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 c

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 bu

[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 --- sound/usb/quirks-table

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 Da

[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 inserti

[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 a

[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 insertio

<    1   2   3   4   >