[PATCH v5 1/3] venus: core: handle race condititon for core ops

2020-09-24 Thread Mansur Alisha Shaik
For core ops we are having only write protect but there is no read protect, because of this in multithreading and concurrency, one CPU core is reading without wait which is causing the NULL pointer dereferece crash. one such scenario is as show below, where in one CPU core, core->ops becoming NULL

[PATCH v5 2/3] venus: handle use after free for iommu_map/iommu_unmap

2020-09-24 Thread Mansur Alisha Shaik
In concurrency usecase and reboot scenario we are seeing muliple crashes related to iommu_map/iommu_unamp of core->fw.iommu_domain. In one case we are seeing "Unable to handle kernel NULL pointer dereference at virtual address 0008" crash, this is because of core->fw.iommu_domain in ve

[PATCH v5 3/3] venus: core: add shutdown callback for venus

2020-09-24 Thread Mansur Alisha Shaik
After the SMMU translation is disabled in the arm-smmu shutdown callback during reboot, if any subsystem are still alive then IOVAs they are using will become PAs on bus, which may lead to crash. So implemented shutdown callback, which detach iommu maps. Signed-off-by: Mansur Alisha Shaik Acked-

[PATCH v5 0/3] venus: core: add shutdown callback for venus

2020-09-24 Thread Mansur Alisha Shaik
Add shutdown callback for venus driver. Handle race conditions in concurrency usecases like multiple browser YouTube browser tabs(approx 50 tabs) graphics_Stress, WiFi ON/OFF, Bluetooth ON/OF, and reboot in parallel. Mansur Alisha Shaik (3): venus: core: handle race condititon for core ops ven

Re: [PATCH v2] omap3: enable off mode automatically

2020-09-24 Thread Andreas Kemnade
On Fri, 11 Sep 2020 18:12:09 +0200 Andreas Kemnade wrote: > Enabling off mode was only reachable deeply hidden > in the debugfs. As powersaving is an important feature, > move the option out of its shady place. > The debugfs file can still be used to override the default. > > Use the presence of

[PATCH 3/4] habanalabs: add debug messages for opening/closing context

2020-09-24 Thread Oded Gabbay
During debugging of error we sometimes need to know whether the error happened when a user context was open. Add debug prints when opening and closing user contexts. Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/common/context.c | 5 + 1 file changed, 5 insertions(+) diff --git a/d

[PATCH 4/4] habanalabs: add notice of device not idle

2020-09-24 Thread Oded Gabbay
The device should be idle after a context is closed. If not, print a notice. Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/common/context.c | 8 1 file changed, 8 insertions(+) diff --git a/drivers/misc/habanalabs/common/context.c b/drivers/misc/habanalabs/common/context.c in

[PATCH 2/4] habanalabs: release kernel context after hw_fini

2020-09-24 Thread Oded Gabbay
Some engines use resources that belong to the kernel context (e.g. MMU mappings). In case the halt-engines doesn't work properly due to H/W restriction, we need to make sure the kernel context lives on until after the hw_fini. The hw_fini resets the ASIC after that no engine is alive and we can saf

[PATCH 1/4] habanalabs: correct an error message

2020-09-24 Thread Oded Gabbay
We don't try to allocate huge pages here so remove the huge word. Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/common/memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/habanalabs/common/memory.c b/drivers/misc/habanalabs/common/memory.c inde

Re: [PATCH v1 3/4] mm: introduce page memcg flags

2020-09-24 Thread Shakeel Butt
On Tue, Sep 22, 2020 at 1:38 PM Roman Gushchin wrote: > > The lowest bit in page->memcg_data is used to distinguish between > struct memory_cgroup pointer and a pointer to a objcgs array. > All checks and modifications of this bit are open-coded. > > Let's formalize it using page memcg flags, defi

Re: [Patch v2 1/3] dt-bindings: rtc: pcf2127: Add bindings for nxp,pcf2127

2020-09-24 Thread Uwe Kleine-König
Hello, On Thu, Sep 24, 2020 at 03:20:33AM +, Qiang Zhao wrote: > On 21/09/2020 13:48:19+0800, Qiang Zhao wrote: > > > -Original Message- > > From: Alexandre Belloni > > Sent: 2020年9月23日 17:45 > > To: Qiang Zhao > > Cc: Wim Van Sebroeck ; Guenter Roeck > > ; linux-watch...@vger.kerne

Re: [PATCH] ARM: dts: document pinctrl-single,pins when #pinctrl-cells = 2

2020-09-24 Thread Tony Lindgren
* Trent Piepho [200924 06:31]: > On Wed, Sep 23, 2020 at 11:06 PM Tony Lindgren wrote: > > > > * Trent Piepho [200924 05:49]: > > > On Wed, Sep 23, 2020 at 10:43 PM Tony Lindgren wrote: > > > > > > > > * Trent Piepho [200924 01:34]: > > > > > On Tue, Sep 22, 2020 at 11:57 PM Tony Lindgren >

Re: [PATCH] PCI: dwc: Move allocate and map page for msi out of dw_pcie_msi_init()

2020-09-24 Thread Jisheng Zhang
Hi Rob, On Wed, 23 Sep 2020 10:41:45 -0600 Rob Herring wrote: > > On Wed, Sep 23, 2020 at 12:27 AM Jisheng Zhang > wrote: > > > > Currently, dw_pcie_msi_init() allocates and maps page for msi, then > > program the PCIE_MSI_ADDR_LO and PCIE_MSI_ADDR_HI. The Root Complex > > may lose power during

Re: [PATCH v1 4/4] mm: convert page kmemcg type to a page memcg flag

2020-09-24 Thread Shakeel Butt
On Tue, Sep 22, 2020 at 1:37 PM Roman Gushchin wrote: > > PageKmemcg flag is currently defined as a page type (like buddy, > offline, table and guard). Semantically it means that the page > was accounted as a kernel memory by the page allocator and has > to be uncharged on the release. > > As a si

Re: [PATCH v2] omap3: enable off mode automatically

2020-09-24 Thread Tony Lindgren
* Andreas Kemnade [200924 07:00]: > On Fri, 11 Sep 2020 18:12:09 +0200 > Andreas Kemnade wrote: > > > Enabling off mode was only reachable deeply hidden > > in the debugfs. As powersaving is an important feature, > > move the option out of its shady place. > > The debugfs file can still be used

Re: [net] net: mscc: ocelot: fix fields offset in SG_CONFIG_REG_3

2020-09-24 Thread Alexandre Belloni
Hi, On 24/09/2020 10:11:13+0800, Xiaoliang Yang wrote: > INIT_IPS and GATE_ENABLE fields have a wrong offset in SG_CONFIG_REG_3. You are changing GATE_STATE, not GATE_ENABLE > This register is used by stream gate control of PSFP, and it has not > been used before, because PSFP is not implemented

Re: [PATCH] Bluetooth: btusb: Avoid unnecessary reset upon system resume

2020-09-24 Thread Kai-Heng Feng
[+Cc linux-usb] Hi Abhishek, > On Sep 24, 2020, at 04:41, Abhishek Pandit-Subedi > wrote: > > Hi Kai-Heng, > > Which Realtek controller is this on?' The issue happens on 8821CE. > > Specifically for RTL8822CE, we tested without reset_resume being set > and that was causing the controller b

[RESEND v2 PATCH 1/3] spi: spi-zynqmp-gqspi: Fix kernel-doc warnings

2020-09-24 Thread Michal Simek
From: Amit Kumar Mahapatra Fix kernel-doc warnings in ZynqMP qspi driver file. Signed-off-by: Amit Kumar Mahapatra Signed-off-by: Michal Simek --- drivers/spi/spi-zynqmp-gqspi.c | 45 +- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/drivers/s

RE: [PATCH 4/4] habanalabs: add notice of device not idle

2020-09-24 Thread Tomer Tayar
On Thu, Sep 24, 2020 at 10:03 AM Oded Gabbay wrote: > The device should be idle after a context is closed. If not, print a > notice. > > Signed-off-by: Oded Gabbay This patch-set is: Reviewed-by: Tomer Tayar

Re: [PATCH 1/6] seccomp: Introduce SECCOMP_PIN_ARCHITECTURE

2020-09-24 Thread Kees Cook
On Thu, Sep 24, 2020 at 02:41:36AM +0200, Jann Horn wrote: > On Thu, Sep 24, 2020 at 1:29 AM Kees Cook wrote: > > For systems that provide multiple syscall maps based on audit > > architectures (e.g. AUDIT_ARCH_X86_64 and AUDIT_ARCH_I386 via > > CONFIG_COMPAT) or via syscall masks (e.g. x86_x32),

Re: [EXT] Re: [PATCH] net: fec: Keep device numbering consistent with datasheet

2020-09-24 Thread Stefan Riedmüller
Hi Andy, David and Andrew, first of all, thanks for your review. I really appreciate it! On 24.09.20 08:36, Andy Duan wrote: From: David Miller Sent: Thursday, September 24, 2020 4:32 AM From: Stefan Riedmueller Date: Wed, 23 Sep 2020 16:25:28 +0200 From: Christian Hemp Make use of devi

Re: [PATCH v2] MAINTAINERS: add Dan Murphy as TP LP8xxx drivers maintainer

2020-09-24 Thread Krzysztof Kozlowski
On Wed, 23 Sep 2020 at 22:01, Jonathan Cameron wrote: > > On Wed, 23 Sep 2020 11:53:33 -0500 > Dan Murphy wrote: > > > Hello > > > > On 9/22/20 10:28 AM, Krzysztof Kozlowski wrote: > > > Milo Kim's email in TI bounces with permanent error (550: Invalid > > > recipient). Last email from him on LK

[RESEND v2 PATCH 0/3] spi: spi-zynqmp-gqspi: Update driver to use spi-mem framework

2020-09-24 Thread Michal Simek
Hi, I am resending this series instead of Amit because his patches are broken in lore. Mark has reported the issue with it and I clearly see that patch is broken in lore. For example: https://lore.kernel.org/linux-spi/20200922164016.30979-2-amit.kumar-mahapa...@xilinx.com/raw There is additional

[RESEND v2 PATCH 3/3] spi: spi-zynqmp-gqspi: Fix incorrect indentation

2020-09-24 Thread Michal Simek
From: Amit Kumar Mahapatra Fixed incorrect indentation in ZynqMP qspi controller driver. Addresses-checkpatch: "Alignment should match open parenthesis" Signed-off-by: Amit Kumar Mahapatra Signed-off-by: Michal Simek --- drivers/spi/spi-zynqmp-gqspi.c | 46 +-

[RESEND v2 PATCH 2/3] spi: spi-zynqmp-gqspi: Update driver to use spi-mem framework

2020-09-24 Thread Michal Simek
From: Amit Kumar Mahapatra Updated Zynqmp qspi controller driver to use spi-mem framework. Signed-off-by: Amit Kumar Mahapatra Signed-off-by: Michal Simek --- drivers/spi/spi-zynqmp-gqspi.c | 645 +++-- 1 file changed, 369 insertions(+), 276 deletions(-) diff --g

Re: [RFC PATCH 6/9] surface_aggregator: Add dedicated bus and device type

2020-09-24 Thread Greg Kroah-Hartman
On Wed, Sep 23, 2020 at 11:12:49PM +0200, Maximilian Luz wrote: > On 9/23/20 7:33 PM, Greg Kroah-Hartman wrote: > > On Wed, Sep 23, 2020 at 05:15:08PM +0200, Maximilian Luz wrote: > [...] > > > Overall, nice work on this patch, the integration to the driver core > > looks totally correct. Great j

Re: [PATCH 2/6] x86: Enable seccomp architecture tracking

2020-09-24 Thread Kees Cook
On Thu, Sep 24, 2020 at 02:45:45AM +0200, Jann Horn wrote: > On Thu, Sep 24, 2020 at 1:29 AM Kees Cook wrote: > > Provide seccomp internals with the details to calculate which syscall > > table the running kernel is expecting to deal with. This allows for > > efficient architecture pinning and pav

Re: [PATCH v13 2/2] Add PWM fan controller driver for LGM SoC

2020-09-24 Thread Thierry Reding
On Thu, Sep 24, 2020 at 08:55:34AM +0200, Uwe Kleine-König wrote: > Hello, > > (hhm Thierry already announced to have taken this patch, so my review is > late.) There's also a build warning in linux-next caused by this patch, so I'm going to back it out. Rahul, please address Uwe's comments and

Re: [PATCH net] Revert "ravb: Fixed to be able to unload modules"

2020-09-24 Thread Geert Uytterhoeven
Hi David, On Thu, Sep 24, 2020 at 2:40 AM David Miller wrote: > From: Geert Uytterhoeven > Date: Tue, 22 Sep 2020 09:29:31 +0200 > > > This reverts commit 1838d6c62f57836639bd3d83e7855e0ee4f6defc. > > > > This commit moved the ravb_mdio_init() call (and thus the > > of_mdiobus_register() call) f

Re: [RESEND PATCH 1/3] spi: spi-zynqmp-gqspi: Fix kernel-doc warnings

2020-09-24 Thread Michal Simek
Hi, On 23. 09. 20 20:34, Mark Brown wrote: > On Tue, Sep 22, 2020 at 10:40:14AM -0600, Amit Kumar Mahapatra > wrote: >> Fix kernel-doc warnings in ZynqMP qspi driver file. > > This *still* doesn't apply against current code: > > $ git am -3 --signoff > ~/queue/spi/next/20200922_amit_kumar_mahapa

Re: [RFC PATCH 01/24] vhost-vdpa: fix backend feature ioctls

2020-09-24 Thread Eli Cohen
On Thu, Sep 24, 2020 at 11:21:02AM +0800, Jason Wang wrote: > Commit 653055b9acd4 ("vhost-vdpa: support get/set backend features") > introduces two malfunction backend features ioctls: > > 1) the ioctls was blindly added to vring ioctl instead of vdpa device >ioctl > 2) vhost_set_backend_featu

Re: [PATCH 2/3] dm: add support for passing through inline crypto support

2020-09-24 Thread Satya Tangirala
On Wed, Sep 23, 2020 at 09:14:39PM -0400, Mike Snitzer wrote: > On Mon, Sep 21 2020 at 8:32pm -0400, > Eric Biggers wrote: > > > On Wed, Sep 09, 2020 at 11:44:21PM +, Satya Tangirala wrote: > > > From: Eric Biggers > > > > > > Update the device-mapper core to support exposing the inline cr

Re: [PATCH v2 1/2] dt-bindings: usb: dwc3-xilinx: Add documentation for Versal DWC3 Controller

2020-09-24 Thread Felipe Balbi
Rob Herring writes: > On Thu, Sep 10, 2020 at 12:33:04AM +0530, Manish Narani wrote: >> Add documentation for Versal DWC3 controller. Add required property >> 'reg' for the same. Also add optional properties for snps,dwc3. >> >> Signed-off-by: Manish Narani >> --- >> .../devicetree/bindings/us

[PATCH v6 1/6] genirq: define an empty function set_handle_irq() if !GENERIC_IRQ_MULTI_HANDLER

2020-09-24 Thread Zhen Lei
To avoid compilation error if an irqchip driver references the function set_handle_irq() but may not select GENERIC_IRQ_MULTI_HANDLER on some systems. For example, the Synopsys DesignWare APB interrupt controller (dw_apb_ictl) is used as the secondary interrupt controller on arc, csky, arm64, and

Re: [PATCH RESEND] sched/fair: Fix wrong cpu selecting from isolated domain

2020-09-24 Thread Vincent Guittot
On Thu, 24 Sep 2020 at 08:48, Xunlei Pang wrote: > > We've met problems that occasionally tasks with full cpumask > (e.g. by putting it into a cpuset or setting to full affinity) > were migrated to our isolated cpus in production environment. > > After some analysis, we found that it is due to the

[PATCH v6 0/6] irqchip: dw-apb-ictl: support hierarchy irq domain

2020-09-24 Thread Zhen Lei
v5 --> v6: 1. add Reviewed-by: Rob Herring for Patch 4. 2. Some modifications are made to Patch 5: 1) add " |" for each "description:" property if its content exceeds one line, to tell the yaml keep the "newline" character. 2) add "..." to mark the end of the yaml file. 3) Change th

[PATCH v6 6/6] ARC: [dts] fix the errors detected by dtbs_check

2020-09-24 Thread Zhen Lei
xxx/arc/boot/dts/axs101.dt.yaml: dw-apb-ictl@e0012000: $nodename:0: \ 'dw-apb-ictl@e0012000' does not match '^interrupt-controller(@[0-9a-f,]+)*$' >From schema: xxx/interrupt-controller/snps,dw-apb-ictl.yaml The node name of the interrupt controller must start with "interrupt-controller" instead o

[PATCH v6 4/6] dt-bindings: dw-apb-ictl: support hierarchy irq domain

2020-09-24 Thread Zhen Lei
Add support to use dw-apb-ictl as primary interrupt controller. Signed-off-by: Zhen Lei Reviewed-by: Rob Herring --- .../bindings/interrupt-controller/snps,dw-apb-ictl.txt | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/i

[PATCH v6 2/6] irqchip: dw-apb-ictl: prepare for support hierarchy irq domain

2020-09-24 Thread Zhen Lei
Rename some functions and variables in advance, to make the next patch looks more clear. The details are as follows: 1. rename dw_apb_ictl_handler() to dw_apb_ictl_handle_irq_cascaded(). 2. change (1 << hwirq) to BIT(hwirq). In function dw_apb_ictl_init(): 1. rename local variable irq to parent_ir

[PATCH v6 3/6] irqchip: dw-apb-ictl: support hierarchy irq domain

2020-09-24 Thread Zhen Lei
Add support to use dw-apb-ictl as primary interrupt controller. Suggested-by: Marc Zyngier Signed-off-by: Zhen Lei Tested-by: Haoyu Lv --- drivers/irqchip/Kconfig | 2 +- drivers/irqchip/irq-dw-apb-ictl.c | 74 ++- 2 files changed, 67 insertions(+

[PATCH v6 5/6] dt-bindings: dw-apb-ictl: convert to json-schema

2020-09-24 Thread Zhen Lei
Convert the Synopsys DesignWare APB interrupt controller (dw_apb_ictl) binding to DT schema format using json-schema. Signed-off-by: Zhen Lei --- .../interrupt-controller/snps,dw-apb-ictl.txt | 43 - .../interrupt-controller/snps,dw-apb-ictl.yaml | 74 ++

Re: [PATCH 1/7] usb: mtu3: convert to devm_platform_ioremap_resource_byname

2020-09-24 Thread Felipe Balbi
Chunfeng Yun writes: > Hi Felip, > > > On Mon, 2020-09-07 at 10:42 +0300, Felipe Balbi wrote: >> Hi, >> >> Chunfeng Yun writes: >> > Use devm_platform_ioremap_resource_byname() to simplify code >> > >> > Signed-off-by: Chunfeng Yun >> >> why is it so that your patches always come base64 encod

Re: [PATCH v2] ide/macide: Convert Mac IDE driver to platform driver

2020-09-24 Thread Geert Uytterhoeven
Hi Finn, On Thu, Sep 24, 2020 at 3:07 AM Finn Thain wrote: > On Wed, 16 Sep 2020, Finn Thain wrote: > > On Tue, 15 Sep 2020, Geert Uytterhoeven wrote: > > > > > > --- a/drivers/ide/macide.c > > > > > > +++ b/drivers/ide/macide.c > > > > > > > > > > > @@ -109,42 +110,61 @@ static const char *mac_i

Re: [PATCH] MAINTAINERS: Add entry for Broadcom BDC driver

2020-09-24 Thread Felipe Balbi
Greg KH writes: > On Thu, Sep 17, 2020 at 02:49:54PM +0800, Chunfeng Yun wrote: >> On Sun, 2020-09-06 at 12:55 -0700, Florian Fainelli wrote: >> > >> > On 7/9/2020 8:48 PM, Florian Fainelli wrote: >> > > The Broadcom BDC driver did not have a MAINTAINERS entry which made it >> > > escape review

Re: [PATCH v4] ide/macide: Convert Mac IDE driver to platform driver

2020-09-24 Thread Geert Uytterhoeven
Hi Finn, On Thu, Sep 24, 2020 at 1:17 AM Finn Thain wrote: > Add platform devices for the Mac IDE controller variants. Convert the > macide module into a platform driver to support two of those variants. > For the third, use a generic "pata_platform" driver instead. > This enables automatic loadi

Re: [PATCH] MAINTAINERS: Add entry for Broadcom BDC driver

2020-09-24 Thread Felipe Balbi
Felipe Balbi writes: > Greg KH writes: > >> On Thu, Sep 17, 2020 at 02:49:54PM +0800, Chunfeng Yun wrote: >>> On Sun, 2020-09-06 at 12:55 -0700, Florian Fainelli wrote: >>> > >>> > On 7/9/2020 8:48 PM, Florian Fainelli wrote: >>> > > The Broadcom BDC driver did not have a MAINTAINERS entry whic

RE: [Patch v2 1/3] dt-bindings: rtc: pcf2127: Add bindings for nxp,pcf2127

2020-09-24 Thread Qiang Zhao
On Thu, Sep 24, 2020 at 15:05AM +, Uwe Kleine-König wrote: > -Original Message- > From: Uwe Kleine-König > Sent: 2020年9月24日 15:05 > To: Qiang Zhao > Cc: Alexandre Belloni ; Wim Van Sebroeck > ; Guenter Roeck ; > linux-watch...@vger.kernel.org; a.zu...@towertech.it; robh...@kernel.o

Re: [PATCH v4 11/23] device-dax: Kill dax_kmem_res

2020-09-24 Thread David Hildenbrand
On 23.09.20 23:41, Dan Williams wrote: > On Wed, Sep 23, 2020 at 1:04 AM David Hildenbrand wrote: >> >> On 08.09.20 17:33, Joao Martins wrote: >>> [Sorry for the late response] >>> >>> On 8/21/20 11:06 AM, David Hildenbrand wrote: On 03.08.20 07:03, Dan Williams wrote: > @@ -37,109 +45,94

Re: [PATCH] usb: phy: tegra: Use IS_ERR() to check and simplify code

2020-09-24 Thread Felipe Balbi
Tang Bin writes: > Use IS_ERR() and PTR_ERR() instead of PTR_ERR_OR_ZERO() to > simplify code, avoid redundant judgements. > > Signed-off-by: Zhang Shengju > Signed-off-by: Tang Bin Applied for next merge window. Make sure to get this driver out of drivers/usb/phy and moved into drivers/phy AS

Re: [RFC PATCH 01/24] vhost-vdpa: fix backend feature ioctls

2020-09-24 Thread Jason Wang
On 2020/9/24 下午3:16, Eli Cohen wrote: On Thu, Sep 24, 2020 at 11:21:02AM +0800, Jason Wang wrote: Commit 653055b9acd4 ("vhost-vdpa: support get/set backend features") introduces two malfunction backend features ioctls: 1) the ioctls was blindly added to vring ioctl instead of vdpa device

Re: possible deadlock in xfrm_policy_delete

2020-09-24 Thread peterz
On Thu, Sep 24, 2020 at 06:44:12AM +0200, Dmitry Vyukov wrote: > On Thu, Sep 24, 2020 at 6:36 AM Herbert Xu > wrote: > > > (k-slock-AF_INET6){+.-.}-{2:2} That's a seqlock. > > What's going on with all these bogus lockdep reports? > > > > These are two completely different locks, one is for TCP

Re: [PATCH v9 11/20] gpiolib: cdev: support GPIO_V2_LINE_SET_VALUES_IOCTL

2020-09-24 Thread Kent Gibson
On Wed, Sep 23, 2020 at 07:18:08PM +0300, Andy Shevchenko wrote: > On Tue, Sep 22, 2020 at 5:36 AM Kent Gibson wrote: > > > > Add support for the GPIO_V2_LINE_SET_VALUES_IOCTL. > > > +static long linereq_set_values_unlocked(struct linereq *lr, > > + struct gp

Re: [PATCH -next] tee: optee: fix type warning of sizeof in pool_op_alloc()

2020-09-24 Thread Jens Wiklander
On Thu, Sep 17, 2020 at 9:52 AM Liu Shixin wrote: > > sizeof() when applied to a pointer typed expression should gives the > size of the pointed data, even if the data is a pointer. > > Signed-off-by: Liu Shixin > --- > drivers/tee/optee/shm_pool.c | 2 +- > 1 file changed, 1 insertion(+), 1 del

Re: [PATCH v2] soc: renesas: rmobile-sysc: Fix some leaks in rmobile_init_pm_domains()

2020-09-24 Thread Geert Uytterhoeven
On Wed, Sep 23, 2020 at 1:31 PM Dan Carpenter wrote: > This code needs to call iounmap() on one error path. > > Fixes: 2173fc7cb681 ("ARM: shmobile: R-Mobile: Add DT support for PM domains") > Signed-off-by: Dan Carpenter > --- > v2: The v1 patch potentially led to a use after free. Reviewed-by

Re: [PATCH V2 1/3] riscv: Fixup static_obj() fail

2020-09-24 Thread Andreas Schwab
On Sep 14 2020, Aurelien Jarno wrote: > How should we proceed to get that fixed in time for 5.9? For the older > branches where it has been backported (so far 5.7 and 5.8), should we > just get that commit reverted instead? Can this please be resolved ASAP? Andreas. -- Andreas Schwab, sch...@l

Re: [PATCH 3/6] seccomp: Implement constant action bitmaps

2020-09-24 Thread Kees Cook
On Thu, Sep 24, 2020 at 02:25:03AM +0200, Jann Horn wrote: > On Thu, Sep 24, 2020 at 1:29 AM Kees Cook wrote: > > +/* When no bits are set for a syscall, filters are run. */ > > +struct seccomp_bitmaps { > > +#ifdef SECCOMP_ARCH > > + /* "allow" are initialized to set and only ever get clear

Re: [PATCH v2 3/5] dt-bindings: iio: ad9467: add entry for for AD9434 ADC

2020-09-24 Thread Alexandru Ardelean
On Wed, Sep 23, 2020 at 11:42 PM Jonathan Cameron wrote: > > On Tue, 22 Sep 2020 16:25:57 +0300 > Alexandru Ardelean wrote: > > > Add entry for the AD9434 high-speed ADC which is supported by the 'ad9467' > > driver. > > > > Signed-off-by: Alexandru Ardelean > > Probably want to tweak a few othe

Re: [PATCH 2/3] dm: add support for passing through inline crypto support

2020-09-24 Thread Satya Tangirala
On Wed, Sep 23, 2020 at 09:21:03PM -0400, Mike Snitzer wrote: > On Wed, Sep 09 2020 at 7:44pm -0400, > Satya Tangirala wrote: > > > From: Eric Biggers > > > > Update the device-mapper core to support exposing the inline crypto > > support of the underlying device(s) through the device-mapper d

Re: [PATCH 3/6] seccomp: Implement constant action bitmaps

2020-09-24 Thread Kees Cook
On Wed, Sep 23, 2020 at 07:36:47PM -0500, YiFei Zhu wrote: > On Wed, Sep 23, 2020 at 6:29 PM Kees Cook wrote: > > In order to optimize these cases from O(n) to O(1), seccomp can > > use bitmaps to immediately determine the desired action. A critical > > observation in the prior paragraph bears rep

Re: [PATCH v13 2/2] Add PWM fan controller driver for LGM SoC

2020-09-24 Thread Tanwar, Rahul
On 24/9/2020 3:12 pm, Thierry Reding wrote: > On Thu, Sep 24, 2020 at 08:55:34AM +0200, Uwe Kleine-König wrote: >> Hello, >> >> (hhm Thierry already announced to have taken this patch, so my review is >> late.) > There's also a build warning in linux-next caused by this patch, so I'm > going to

Re: [RFC PATCH 01/24] vhost-vdpa: fix backend feature ioctls

2020-09-24 Thread Eli Cohen
On Thu, Sep 24, 2020 at 03:26:08PM +0800, Jason Wang wrote: > > On 2020/9/24 下午3:16, Eli Cohen wrote: > > On Thu, Sep 24, 2020 at 11:21:02AM +0800, Jason Wang wrote: > > > Commit 653055b9acd4 ("vhost-vdpa: support get/set backend features") > > > introduces two malfunction backend features ioctls:

Re: [PATCH v3] usb: dwc3: Stop active transfers before halting the controller

2020-09-24 Thread Felipe Balbi
Hi, Wesley Cheng writes: > On 9/6/2020 11:20 PM, Felipe Balbi wrote: >> >> Hi, >> >> Wesley Cheng writes: >>> diff --git a/drivers/usb/dwc3/ep0.c b/drivers/usb/dwc3/ep0.c >>> index 59f2e8c31bd1..456aa87e8778 100644 >>> --- a/drivers/usb/dwc3/ep0.c >>> +++ b/drivers/usb/dwc3/ep0.c >>> @@ -197,

Re: [PATCH v2] ovl: introduce new "index=nouuid" option for inodes index feature

2020-09-24 Thread Pavel Tikhomirov
On 9/23/20 7:36 PM, Amir Goldstein wrote: @@ -414,7 +415,7 @@ static int ovl_check_origin(struct ovl_fs *ofs, struct dentry *upperdentry, * Return 0 on match, -ESTALE on mismatch, < 0 on error. */ static int ovl_verify_fh(struct dentry *dentry, const char *name, -

Re: KASAN: stack-out-of-bounds Read in xfrm_selector_match (2)

2020-09-24 Thread Steffen Klassert
On Mon, Sep 21, 2020 at 07:56:20AM -0700, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:eb5f95f1 Merge tag 's390-5.9-6' of git://git.kernel.org/pu.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=13996ad590 > kernel

[PATCH] mmc: rtsx: Add SD Express mode support for RTS5261

2020-09-24 Thread rui_feng
From: Rui Feng RTS5261 support legacy SD mode and SD Express mode. In SD7.x, SD association introduce SD Express as a new mode. This patch makes RTS5261 support SD Express mode, and this patch is based on patch "mmc: core: Initial support for SD express card/host" committed by Ulf Hansson. Signe

Re: [RFC PATCH 8/9] surface_aggregator: Add DebugFS interface

2020-09-24 Thread Arnd Bergmann
On Thu, Sep 24, 2020 at 12:23 AM Maximilian Luz wrote: > On 9/23/20 8:51 PM, Arnd Bergmann wrote: > > On Wed, Sep 23, 2020 at 8:29 PM Maximilian Luz > > wrote: > >> On 9/23/20 6:48 PM, Arnd Bergmann wrote: > > > > The version I showed avoids the pointers and is compatible with > > 32-bit user sp

Re: possible deadlock in xfrm_policy_delete

2020-09-24 Thread Herbert Xu
On Thu, Sep 24, 2020 at 09:30:03AM +0200, pet...@infradead.org wrote: > On Thu, Sep 24, 2020 at 06:44:12AM +0200, Dmitry Vyukov wrote: > > On Thu, Sep 24, 2020 at 6:36 AM Herbert Xu > > wrote: > > > > (k-slock-AF_INET6){+.-.}-{2:2} > > That's a seqlock. Are you sure? Line 2503 in net/ipv4/tcp.

Re: KASAN: stack-out-of-bounds Read in xfrm_selector_match (2)

2020-09-24 Thread Herbert Xu
On Thu, Sep 24, 2020 at 09:40:26AM +0200, Steffen Klassert wrote: > > This is yet another ipv4 mapped ipv6 address with IPsec socket policy > combination bug, and I'm sure it is not the last one. We could fix this > one by adding another check to match the address family of the policy > and the SA

Re: [PATCH] KVM: Enable hardware before doing arch VM initialization

2020-09-24 Thread Huacai Chen
Hi, Paolo, On Thu, Sep 24, 2020 at 2:50 PM Paolo Bonzini wrote: > > On 24/09/20 08:31, Huacai Chen wrote: > > Hi, Sean, > > > > On Thu, Sep 24, 2020 at 3:00 AM Sean Christopherson > > wrote: > >> > >> Swap the order of hardware_enable_all() and kvm_arch_init_vm() to > >> accommodate Intel's Trus

Re: [PATCH 4/6] seccomp: Emulate basic filters for constant action results

2020-09-24 Thread Kees Cook
On Thu, Sep 24, 2020 at 01:47:47AM +0200, Jann Horn wrote: > On Thu, Sep 24, 2020 at 1:29 AM Kees Cook wrote: > > This emulates absolutely the most basic seccomp filters to figure out > > if they will always give the same results for a given arch/nr combo. > > > > Nearly all seccomp filters are bu

Re: [Patch v2 1/3] dt-bindings: rtc: pcf2127: Add bindings for nxp,pcf2127

2020-09-24 Thread Alexandre Belloni
Hi, On 24/09/2020 07:23:18+, Qiang Zhao wrote: > > > Yes, you are right, There is not a fundamental solution. > > > However it somewhat avoid this situation at least. > > > > > > And if without this issue, > > > is it correct to register a rtc device as watchdog no matter it is used as > > wat

Re: [PATCH 2/3] dm: add support for passing through inline crypto support

2020-09-24 Thread Satya Tangirala
On Wed, Sep 23, 2020 at 09:21:03PM -0400, Mike Snitzer wrote: > On Wed, Sep 09 2020 at 7:44pm -0400, > Satya Tangirala wrote: > > > From: Eric Biggers > > > > Update the device-mapper core to support exposing the inline crypto > > support of the underlying device(s) through the device-mapper d

Re: [PATCH v9 12/20] gpiolib: cdev: support setting debounce

2020-09-24 Thread Kent Gibson
On Wed, Sep 23, 2020 at 07:27:37PM +0300, Andy Shevchenko wrote: > On Tue, Sep 22, 2020 at 5:36 AM Kent Gibson wrote: > > > > Add support for setting debounce on a line via the GPIO uAPI. > > Where debounce is not supported by hardware, a software debounce is > > provided. > > > > The implementati

Re: [RFC PATCH 02/24] vhost-vdpa: fix vqs leak in vhost_vdpa_open()

2020-09-24 Thread Eli Cohen
On Thu, Sep 24, 2020 at 11:21:03AM +0800, Jason Wang wrote: > We need to free vqs during the err path after it has been allocated > since vhost won't do that for us. > > Signed-off-by: Jason Wang > --- > drivers/vhost/vdpa.c | 11 --- > 1 file changed, 8 insertions(+), 3 deletions(-) >

Re: [PATCH] usb: gadget: bcm63xx_udc: fix up the error of undeclared usb_debug_root

2020-09-24 Thread Felipe Balbi
Chunfeng Yun writes: > Fix up the build error caused by undeclared usb_debug_root > > Cc: stable > Fixes: a66ada4f241c("usb: gadget: bcm63xx_udc: create debugfs directory under > usb root") > Reported-by: kernel test robot > Signed-off-by: Chunfeng Yun $ patch -p1 --dry-run p.patch /usr/bin/

Re: [RFC PATCH 01/24] vhost-vdpa: fix backend feature ioctls

2020-09-24 Thread Michael S. Tsirkin
On Thu, Sep 24, 2020 at 11:21:02AM +0800, Jason Wang wrote: > Commit 653055b9acd4 ("vhost-vdpa: support get/set backend features") > introduces two malfunction backend features ioctls: > > 1) the ioctls was blindly added to vring ioctl instead of vdpa device >ioctl > 2) vhost_set_backend_featu

Re: [PATCH v9 17/20] tools: gpio: port gpio-hammer to v2 uAPI

2020-09-24 Thread Kent Gibson
On Wed, Sep 23, 2020 at 07:30:52PM +0300, Andy Shevchenko wrote: > On Tue, Sep 22, 2020 at 5:36 AM Kent Gibson wrote: > > > > Port the gpio-hammer tool to the latest GPIO uAPI. > > _BITUL() and _BITULL() are part of Linux uAPI. Why not to use them? > const.h > Yeah, that is an oversight on my p

Re: [PATCH 3/6] seccomp: Implement constant action bitmaps

2020-09-24 Thread YiFei Zhu
On Thu, Sep 24, 2020 at 2:38 AM Kees Cook wrote: > > Would you mind educating me how this patch plan one handling MIPS? For > > one kernel they seem to have up to three arch numbers per build, > > AUDIT_ARCH_MIPS{,64,64N32}. Though ARCH_TRACE_IGNORE_COMPAT_SYSCALLS > > does not seem to be defined

Re: [PATCH v3 3/4] venus: core: vote with average bandwidth and peak bandwidth as zero

2020-09-24 Thread Stephen Boyd
Quoting Mansur Alisha Shaik (2020-09-23 23:51:05) > As per bandwidth table video driver is voting with average bandwidth > for "video-mem" and "cpu-cfg" paths as peak bandwidth is zero > in bandwidth table. > > Fixes: 7482a983d ("media: venus: redesign clocks and pm domains control") > Signed-off-

Re: [PATCH v3 2/4] venus: core: vote for video-mem path

2020-09-24 Thread Stephen Boyd
Quoting Mansur Alisha Shaik (2020-09-23 23:51:04) > Currently video driver is voting for venus0-ebi path during buffer > processing with an average bandwidth of all the instances and > unvoting during session release. > > While video streaming when we try to do XO-SD using the command > "echo mem

Re: [PATCH v3 4/4] venus: put dummy vote on video-mem path after last session release

2020-09-24 Thread Stephen Boyd
Quoting Mansur Alisha Shaik (2020-09-23 23:51:06) > As per current implementation, video driver is unvoting "videom-mem" path > for last video session during vdec_session_release(). > While video playback when we try to suspend device, we see video clock > warnings since votes are already removed d

Re: [PATCH] dt-bindings: iio: sx9310: Add various settings as DT properties

2020-09-24 Thread Stephen Boyd
Quoting Stephen Boyd (2020-09-23 16:25:43) > > > > > + > > > > > + semtech,close-debounce-samples: > > > > > +allOf: > > > > > + - $ref: /schemas/types.yaml#definitions/uint32 > > > > > + - enum: [0, 2, 4, 8] > > > > > +default: 0 > > > > > +description: > > > > > + The

Re: [PATCH v9 00/20] gpio: cdev: add uAPI v2

2020-09-24 Thread Kent Gibson
On Wed, Sep 23, 2020 at 07:35:30PM +0300, Andy Shevchenko wrote: > On Tue, Sep 22, 2020 at 5:34 AM Kent Gibson wrote: > > > > This patchset defines and implements a new version of the > > GPIO CDEV uAPI to address existing 32/64-bit alignment issues, add > > support for debounce, event sequence nu

[PATCH] cpuidle: change #ifdef for the declaration of cpuidle_enter_s2idle()

2020-09-24 Thread zhuguangqing83
From: zhuguangqing Currently, if CONFIG_SUSPEND=n and CONFIG_CPU_IDLE=y, the function cpuidle_enter_s2idle() is declared but not defined, it may cause error when cpuidle_enter_s2idle() is called. If CONFIG_SUSPEND=y and CONFIG_CPU_IDLE=n, the function cpuidle_enter_s2idle() is defined as "return

Re: KASAN: stack-out-of-bounds Read in xfrm_selector_match (2)

2020-09-24 Thread Steffen Klassert
On Thu, Sep 24, 2020 at 05:43:51PM +1000, Herbert Xu wrote: > On Thu, Sep 24, 2020 at 09:40:26AM +0200, Steffen Klassert wrote: > > > > This is yet another ipv4 mapped ipv6 address with IPsec socket policy > > combination bug, and I'm sure it is not the last one. We could fix this > > one by adding

Re: [Linux-stm32] [PATCH 3/3] ARM: dts: stm32: update stm32mp151 for remote proc synchronisation support

2020-09-24 Thread Arnaud POULIQUEN
Hi Ahmad, On 9/24/20 7:45 AM, Ahmad Fatoum wrote: > Hello Arnaud, > > On 8/27/20 9:21 AM, Arnaud Pouliquen wrote: >> Two backup registers are used to store the Cortex-M4 state and the resource >> table address. >> Declare the tamp node and add associated properties in m4_rproc node >> to allow Li

[PATCH v3 0/4] iio: adc: ad9467: add support for AD9434 & AD9265

2020-09-24 Thread Alexandru Ardelean
This is a V2 & V3 for: https://lore.kernel.org/linux-iio/CA+U=DspC_W=j-eet38q1v+ytbntuxqwvucbkx0dj9hdgvtv...@mail.gmail.com/T/ V2 is: https://lore.kernel.org/linux-iio/20200922132559.38456-1-alexandru.ardel...@analog.com/T/ It does a bit of rework/unification of the 2 chip-info constants, s

[PATCH v3 3/4] iio: adc: ad9467: add support for AD9265 high-speed ADC

2020-09-24 Thread Alexandru Ardelean
From: Michael Hennerich The AD9265 is a 16-bit, 125 MSPS analog-to-digital converter (ADC). The AD9265 is designed to support communications applications where high performance combined with low cost, small size, and versatility is desired. The ADC core features a multistage, differential pipeli

[PATCH] habanalabs/gaudi: configure QMAN LDMA registers properly

2020-09-24 Thread Oded Gabbay
From: Ofir Bitton LDMA registers are configured with a fixed value. We add new define set which gives the configuration a proper meaning. Signed-off-by: Ofir Bitton Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- drivers/misc/habanalabs/gaudi/gaudi.c | 62 +-

[PATCH v3 2/4] iio: adc: ad9467: add support for AD9434 high-speed ADC

2020-09-24 Thread Alexandru Ardelean
From: Michael Hennerich The AD9434 is a 12-bit monolithic sampling analog-to-digital converter (ADC) optimized for high performance, low power, and ease of use. The part operates at up to a 500 MSPS conversion rate and is optimized for outstanding dynamic performance in wideband carrier and broad

[PATCH v3 4/4] dt-bindings: iio: ad9467: add entries for for AD9434 & AD9265 ADCs

2020-09-24 Thread Alexandru Ardelean
Add entries for the AD9434 & AD9265 high-speed ADCs which are supported by the 'ad9467' driver. Better describe the family of ADCs similar to AD9467 in the description. Signed-off-by: Alexandru Ardelean --- .../devicetree/bindings/iio/adc/adi,ad9467.yaml | 15 --- 1 file changed, 1

[PATCH v3 1/4] iio: adc: ad9467: wrap a axi-adc chip-info into a ad9467_chip_info type

2020-09-24 Thread Alexandru Ardelean
There are 2 chip constants that can be added to the chip-info part. The default output-mode and the VREF mask. When adding new chips to this driver, these can be easily omitted, because these also need to be updated in 2 switch statements. However, if adding them in the chip-info constants, they

Re: [PATCH 22/24] membarrier.2: Note that glibc does not provide a wrapper

2020-09-24 Thread Michael Kerrisk (man-pages)
Hi Branden, On 9/21/20 4:36 PM, G. Branden Robinson wrote: > At 2020-09-11T12:58:08+, Walter Harms wrote: >> the groff commands are ducument in man 7 groff >> .nf No filling or adjusting of output-lines. >> .fi Fill output lines >> >> (for me) a typical use is like this: >> .nf >>

Re: [PATCH 3/6] seccomp: Implement constant action bitmaps

2020-09-24 Thread YiFei Zhu
On Thu, Sep 24, 2020 at 2:37 AM Kees Cook wrote: > > > > This belongs over into patch 1. > > Thanks! I was rushing to get this posted so YiFei Zhu wouldn't spend > time fighting with arch and Kconfig stuff. :) I'll clean this (and the > other random cruft) up. Wait, what? I'm sorry. We have alrea

Re: [PATCH v9 07/20] gpiolib: cdev: support GPIO_V2_GET_LINE_IOCTL and GPIO_V2_LINE_GET_VALUES_IOCTL

2020-09-24 Thread Kent Gibson
On Wed, Sep 23, 2020 at 02:11:54PM +0300, Andy Shevchenko wrote: > On Tue, Sep 22, 2020 at 5:35 AM Kent Gibson wrote: > > > > Add support for requesting lines using the GPIO_V2_GET_LINE_IOCTL, and > > returning their current values using GPIO_V2_LINE_GET_VALUES_IOCTL. > > > > The struct linereq im

Re: [PATCH v3 3/9] lib: zstd: Upgrade to latest upstream zstd version 1.4.6

2020-09-24 Thread Rong Chen
; as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Nick-Terrell/Update-to-zstd-1-4-6/20200924-064102 base: https://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git for-next config: h8300-randconfig-p002-20200923 (attached as .c

[PATCH v2 0/4] mtd: hyperbus: hbmc-am654: Add DMA support

2020-09-24 Thread Vignesh Raghavendra
This series add DMA support for reading data from HyperBus memory devices for TI's AM654/J721e SoCs With DMA there is ~5x improvement in read througput. v2: Fix DMAengine APIs usage issues pointed out by Peter. Vignesh Raghavendra (4): mtd: hyperbus: Provide per device private pointer mtd: h

[PATCH v2 3/4] mtd: hyperbus: hbmc-am654: Drop pm_runtime* calls from probe

2020-09-24 Thread Vignesh Raghavendra
Recent genpd changes for K3 platform ensure device is ON before driver probe is called. Therefore, drop redundant pm_runtime_* calls from driver to simplify the code. Signed-off-by: Vignesh Raghavendra --- drivers/mtd/hyperbus/hbmc-am654.c | 16 ++-- 1 file changed, 2 insertions(+),

[PATCH v2 2/4] mtd: hyperbus: hbmc-am654: Fix direct mapping setup flash access

2020-09-24 Thread Vignesh Raghavendra
Setting up of direct mapping should be done with flash node's IO address space and not with controller's IO region. Fixes: b6fe8bc67d2d3 ("mtd: hyperbus: move direct mapping setup to AM654 HBMC driver") Signed-off-by: Vignesh Raghavendra --- drivers/mtd/hyperbus/hbmc-am654.c | 4 ++-- 1 file ch

[PATCH v2 1/4] mtd: hyperbus: Provide per device private pointer

2020-09-24 Thread Vignesh Raghavendra
Provide per device private pointer that can be used by controller drivers to store device specific private data. Signed-off-by: Vignesh Raghavendra --- include/linux/mtd/hyperbus.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/mtd/hyperbus.h b/include/linux/mtd/hyperbus.h i

  1   2   3   4   5   6   7   8   9   10   >