[PATCH v2 3/3] tools: iio: add example for high-speed buffer support

2021-02-12 Thread Alexandru Ardelean
Following a recent update to the IIO buffer infrastructure, this change adds a basic example on how to access an IIO buffer via the new mmap() interface. The ioctl() for the high-speed mode needs to be enabled right from the start, before setting any parameters via sysfs (length, enable, etc), to

Re: [PATCH v5 1/1] mm: refactor initialization of struct page for holes in memory layout

2021-02-12 Thread Michal Hocko
On Fri 12-02-21 10:56:19, David Hildenbrand wrote: > On 12.02.21 10:55, David Hildenbrand wrote: > > On 08.02.21 12:08, Mike Rapoport wrote: [...] > > > @@ -6519,8 +6581,19 @@ void __init get_pfn_range_for_nid(unsigned int nid, > > > *end_pfn = max(*end_pfn, this_end_pfn); > > >

[PATCH v2 2/3] iio: buffer-dma: Add mmap support

2021-02-12 Thread Alexandru Ardelean
From: Lars-Peter Clausen Add support for the new mmap interface to IIO DMA buffer. This interface allows to directly map the backing memory of a block to userspace. This is especially advantageous for high-speed devices where the extra copy from kernel space to userspace of the data incurs a sign

Re: [PATCH 1/2] quota: Add mountpath based quota support

2021-02-12 Thread Jan Kara
On Fri 12-02-21 09:38:35, Sascha Hauer wrote: > On Thu, Feb 11, 2021 at 03:38:13PM +, Christoph Hellwig wrote: > > > + if (!mountpoint) > > > + return -ENODEV; > > > + > > > + ret = user_path_at(AT_FDCWD, mountpoint, > > > + LOOKUP_FOLLOW | LOOKUP_AUTOMOUNT, &mountp

Re: [PATCH v2 1/3] misc/pvpanic: split-up generic and platform dependent code

2021-02-12 Thread Arnd Bergmann
On Fri, Feb 12, 2021 at 10:17 AM Mihai Carabas wrote: > > Split-up generic and platform dependent code in order to be able to re-use > generic event handling code in pvpanic PCI device driver in the next patch. > > The code from pvpanic.c was split in two new files: > - pvpanic-common.c: generic c

Re: [PATCH v2 3/3] misc/pvpanic: add license

2021-02-12 Thread Arnd Bergmann
On Fri, Feb 12, 2021 at 10:17 AM Mihai Carabas wrote: > > Add license to the newly created files in adding support for pvpanic PCI > device > driver. > > Signed-off-by: Mihai Carabas I don't see why this is a separate patch, rather than part of the patch that creates these files. Arnd

[PATCH 2/2] staging: greybus: Fixed a misspelling in hid.c

2021-02-12 Thread Pritthijit Nath
Fixed the spelling of 'transfered' to 'transferred'. Signed-off-by: Pritthijit Nath --- Fixed the typo in 'transferred' which crept in last time. drivers/staging/greybus/hid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/greybus/hid.c b/drivers/staging/gr

Re: [PATCH v2 3/3] misc/pvpanic: add license

2021-02-12 Thread Greg KH
On Fri, Feb 12, 2021 at 11:17:06AM +0200, Mihai Carabas wrote: > Add license to the newly created files in adding support for pvpanic PCI > device > driver. > > Signed-off-by: Mihai Carabas > --- > drivers/misc/pvpanic/Kconfig | 7 +++ > drivers/misc/pvpanic/Makefile | 7 +++ > drive

Re: This reply comments on the patch to fixes the missing a blank line warning

2021-02-12 Thread David Hildenbrand
On 11.02.21 19:20, Adithya Chandrakasan wrote: On 2/11/21 2:36 AM, David Hildenbrand wrote: ^ Please create proper patch subjects. Nobody has a glue what you are doing when looking at the subject. "mm/util: fix ??? warning" Which raises the question, what is ??? Compiler? static code checke

Re: [PATCH v2 2/3] misc/pvpanic: add PCI driver

2021-02-12 Thread Arnd Bergmann
On Fri, Feb 12, 2021 at 10:17 AM Mihai Carabas wrote: > > Add support for pvpanic PCI device added in qemu [1]. At probe time, obtain > the > address where to read/write pvpanic events and pass it to the generic handling > code. Will follow the same logic as pvpanic MMIO device driver. At remove

Re: [PATCH] i2c: remove redundant error print in stm32f7_i2c_probe

2021-02-12 Thread Wolfram Sang
On Tue, Jan 12, 2021 at 12:53:11AM -0800, menglong8.d...@gmail.com wrote: > From: Menglong Dong > > Coccinelle reports a redundant error print in stm32f7_i2c_probe. > As 'platform_get_irq' already prints the error message, error > print here is redundant and can be removed. > > Signed-off-by: Me

Re: [PATCH v2 0/2] quota: Add mountpath based quota support

2021-02-12 Thread Jan Kara
On Thu 11-02-21 16:30:21, Sascha Hauer wrote: > Current quotactl syscall uses a path to a block device to specify the > filesystem to work on which makes it unsuitable for filesystems that > do not have a block device. This series adds a new syscall quotactl_path() > which replaces the path to the

Re: [PATCH v5 1/1] mm: refactor initialization of struct page for holes in memory layout

2021-02-12 Thread David Hildenbrand
On 12.02.21 11:11, Michal Hocko wrote: On Fri 12-02-21 10:56:19, David Hildenbrand wrote: On 12.02.21 10:55, David Hildenbrand wrote: On 08.02.21 12:08, Mike Rapoport wrote: [...] @@ -6519,8 +6581,19 @@ void __init get_pfn_range_for_nid(unsigned int nid, *end_pfn = max(*end_pf

Re: [PATCH v2 1/3] misc/pvpanic: split-up generic and platform dependent code

2021-02-12 Thread Greg KH
On Fri, Feb 12, 2021 at 11:17:04AM +0200, Mihai Carabas wrote: > Split-up generic and platform dependent code in order to be able to re-use > generic event handling code in pvpanic PCI device driver in the next patch. > > The code from pvpanic.c was split in two new files: > - pvpanic-common.c: ge

Re: [PATCH v2 2/3] misc/pvpanic: add PCI driver

2021-02-12 Thread Greg KH
On Fri, Feb 12, 2021 at 11:17:05AM +0200, Mihai Carabas wrote: > Add support for pvpanic PCI device added in qemu [1]. At probe time, obtain > the > address where to read/write pvpanic events and pass it to the generic handling > code. Will follow the same logic as pvpanic MMIO device driver. At r

[RFC PATCH 0/5] iio: buffer: add output buffer and cyclic mode

2021-02-12 Thread Alexandru Ardelean
Largely, an adaptation of Lars' work, applied on the IIO multi-buffer support + high-speed/mmap support [1]. Found here: https://github.com/larsclausen/linux/commits/iio-high-speed-5.10 But this isn't tested. [1] Requires that these sets be applied (in this order): * https://lore.kernel.org/lin

[RFC PATCH 1/5] iio: Add output buffer support

2021-02-12 Thread Alexandru Ardelean
From: Lars-Peter Clausen Currently IIO only supports buffer mode for capture devices like ADCs. Add support for buffered mode for output devices like DACs. The output buffer implementation is analogous to the input buffer implementation. Instead of using read() to get data from the buffer write(

[RFC PATCH 3/5] iio: buffer-dma: Allow to provide custom buffer ops

2021-02-12 Thread Alexandru Ardelean
From: Lars-Peter Clausen Some devices that want to make use of the DMA buffer might need to do something special, like write a register when the buffer is enabled. Extend the API to allow those drivers to provide their own buffer ops. Signed-off-by: Lars-Peter Clausen Signed-off-by: Alexandru

[RFC PATCH 5/5] iio: buffer-dma: add support for cyclic DMA transfers

2021-02-12 Thread Alexandru Ardelean
From: Lars-Peter Clausen This change adds support for cyclic DMA transfers using the IIO buffer DMA infrastructure. To do this, userspace must set the IIO_BUFFER_BLOCK_FLAG_CYCLIC flag on the block when enqueueing them via the ENQUEUE_BLOCK ioctl(). Signed-off-by: Lars-Peter Clausen Signed-off-

[RFC PATCH 2/5] iio: kfifo-buffer: Add output buffer support

2021-02-12 Thread Alexandru Ardelean
From: Lars-Peter Clausen Add output buffer support to the kfifo buffer implementation. The implementation is straight forward and mostly just wraps the kfifo API to provide the required operations. Signed-off-by: Lars-Peter Clausen Signed-off-by: Alexandru Ardelean --- drivers/iio/buffer/kfi

[RFC PATCH 4/5] iio: buffer-dma: Add output buffer support

2021-02-12 Thread Alexandru Ardelean
From: Lars-Peter Clausen Add support for output buffers to the dma buffer implementation. Signed-off-by: Lars-Peter Clausen Signed-off-by: Alexandru Ardelean --- drivers/iio/adc/adi-axi-adc.c | 3 +- drivers/iio/buffer/industrialio-buffer-dma.c | 116 -- ...

Re: [PATCH] of: base: improve error message in of_phandle_iterator_next()

2021-02-12 Thread Enrico Weigelt, metux IT consult
On 11.02.21 21:13, Rob Herring wrote: On Mon, Feb 8, 2021 at 10:58 AM Enrico Weigelt, metux IT consult wrote: Also print out the phandle ID on error message, as a debug aid. I already have this patch applied in my tree. Why do you keep sending it? Sorry, didn't know that when sending it th

Re: [PATCH v2 1/3] iio: core: Add mmap interface infrastructure

2021-02-12 Thread Alexandru Ardelean
On Fri, Feb 12, 2021 at 12:12 PM Alexandru Ardelean wrote: > > From: Lars-Peter Clausen > > Add the necessary infrastructure to the IIO core to support an mmap based > interface to access the capture data. > > The advantage of the mmap based interface compared to the read() based > interface is t

Re: This reply comments on the patch to fixes the missing a blank line warning

2021-02-12 Thread David Hildenbrand
On 12.02.21 11:14, David Hildenbrand wrote: On 11.02.21 19:20, Adithya Chandrakasan wrote: On 2/11/21 2:36 AM, David Hildenbrand wrote: ^ Please create proper patch subjects. Nobody has a glue what you are doing when looking at the subject. "mm/util: fix ??? warning" Which raises the questi

Re: [PATCH v2 2/3] misc/pvpanic: add PCI driver

2021-02-12 Thread Arnd Bergmann
On Fri, Feb 12, 2021 at 11:18 AM Greg KH wrote: le > > @@ -1,2 +1,4 @@ > > obj-$(CONFIG_PVPANIC_MMIO) += pvpanic-mmio.o > > pvpanic-mmio-objs := pvpanic-common.o mmio.o > > +obj-$(CONFIG_PVPANIC_PCI)+= pvpanic-pci.o > > +pvpanic-pci-objs := pvpanic-common.o pci.o > > So you now have the pv

RE: [Linuxarm] Re: [PATCH for next v1 1/2] gpio: omap: Replace raw_spin_lock_irqsave with raw_spin_lock in omap_gpio_irq_handler()

2021-02-12 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Arnd Bergmann [mailto:a...@kernel.org] > Sent: Friday, February 12, 2021 10:45 PM > To: Song Bao Hua (Barry Song) > Cc: Grygorii Strashko ; luojiaxing > ; Linus Walleij ; Andy > Shevchenko ; Andy Shevchenko > ; Santosh Shilimkar ; > Kevin Hilman ; open list:G

Re: [PATCH 1/2] quota: Add mountpath based quota support

2021-02-12 Thread Sascha Hauer
On Fri, Feb 12, 2021 at 11:05:05AM +0100, Jan Kara wrote: > On Fri 12-02-21 09:38:35, Sascha Hauer wrote: > > On Thu, Feb 11, 2021 at 03:38:13PM +, Christoph Hellwig wrote: > > > > + if (!mountpoint) > > > > + return -ENODEV; > > > > + > > > > + ret = user_path_at(AT_F

Re: [Linuxarm] Re: [PATCH for next v1 1/2] gpio: omap: Replace raw_spin_lock_irqsave with raw_spin_lock in omap_gpio_irq_handler()

2021-02-12 Thread Grygorii Strashko
Hi Arnd, On 12/02/2021 11:45, Arnd Bergmann wrote: On Fri, Feb 12, 2021 at 6:05 AM Song Bao Hua (Barry Song) wrote: -Original Message- Note. there is also generic_handle_irq() call inside. So generic_handle_irq() is not safe to run in thread thus requires an interrupt-disabled en

Re: [PATCH] ACPI: property: Fix fwnode string properties matching

2021-02-12 Thread Mika Westerberg
On Thu, Feb 11, 2021 at 07:30:01PM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Property matching does not work for ACPI fwnodes if the value of the > given property is not represented as a package in the _DSD package > containing it. For example, the "compatible" property in th

Re: [PATCH 4.19 00/24] 4.19.176-rc1 review

2021-02-12 Thread Naresh Kamboju
On Fri, 12 Feb 2021 at 13:12, Greg Kroah-Hartman wrote: > > On Fri, Feb 12, 2021 at 10:16:11AM +0530, Naresh Kamboju wrote: > > On Thu, 11 Feb 2021 at 20:36, Greg Kroah-Hartman > > wrote: > > > > > > This is the start of the stable review cycle for the 4.19.176 release. > > > There are 24 patches

Re: [PATCH v2 1/3] misc/pvpanic: split-up generic and platform dependent code

2021-02-12 Thread Mihai Carabas
..snip -}; -module_platform_driver(pvpanic_mmio_driver); diff --git a/drivers/misc/pvpanic/Kconfig b/drivers/misc/pvpanic/Kconfig new file mode 100644 index ..0dce6ef --- /dev/null +++ b/drivers/misc/pvpanic/Kconfig @@ -0,0 +1,12 @@ +config PVPANIC + bool "pvpanic device support" +

Re: [PATCH] ACPI: property: Fix fwnode string properties matching

2021-02-12 Thread Andy Shevchenko
On Thu, Feb 11, 2021 at 07:30:01PM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Property matching does not work for ACPI fwnodes if the value of the > given property is not represented as a package in the _DSD package > containing it. For example, the "compatible" property in th

Re: [PATCH v5 1/1] mm: refactor initialization of struct page for holes in memory layout

2021-02-12 Thread Michal Hocko
On Mon 08-02-21 13:08:20, Mike Rapoport wrote: > From: Mike Rapoport > > There could be struct pages that are not backed by actual physical memory. > This can happen when the actual memory bank is not a multiple of > SECTION_SIZE or when an architecture does not register memory holes > reserved b

Re: [PATCH v7 28/28] coresight: Add support for v8.4 SelfHosted tracing

2021-02-12 Thread Mike Leach
Hi Mathieu, Suzuki, Sorry for the really late response on this patch, but I noticed a problem while doing a review of the ETE / TRBE set. (TRBE specs mention TRFCR_ELx, so I was confirming a couple of things). On Sun, 10 Jan 2021 at 22:49, Suzuki K Poulose wrote: > > From: Jonathan Zhou > > v8.

Re: [PATCH 1/5] i2c: stm32f7: fix configuration of the digital filter

2021-02-12 Thread Wolfram Sang
On Fri, Feb 05, 2021 at 09:51:40AM +0100, Alain Volmat wrote: > The digital filter related computation are present in the driver > however the programming of the filter within the IP is missing. > The maximum value for the DNF is wrong and should be 15 instead of 16. > > Fixes: aeb068c57214 ("i2c:

Re: [PATCH v5 1/1] mm: refactor initialization of struct page for holes in memory layout

2021-02-12 Thread Michal Hocko
On Fri 12-02-21 11:16:28, David Hildenbrand wrote: > On 12.02.21 11:11, Michal Hocko wrote: > > On Fri 12-02-21 10:56:19, David Hildenbrand wrote: > > > On 12.02.21 10:55, David Hildenbrand wrote: > > > > On 08.02.21 12:08, Mike Rapoport wrote: > > [...] > > > > > @@ -6519,8 +6581,19 @@ void __init

[PATCH] mtd: physmap: physmap-bt1-rom: Fix unintentional stack access

2021-02-12 Thread Gustavo A. R. Silva
Cast &data to (char *) in order to avoid unintentionally accessing the stack. Notice that data is of type u32, so any increment to &data will be in the order of 4-byte chunks, and this piece of code is actually intended to be a byte offset. Fixes: b3e79e7682e0 ("mtd: physmap: Add Baikal-T1 physic

Re: [PATCH 1/2] quota: Add mountpath based quota support

2021-02-12 Thread Jan Kara
On Fri 12-02-21 11:29:00, Sascha Hauer wrote: > On Fri, Feb 12, 2021 at 11:05:05AM +0100, Jan Kara wrote: > > On Fri 12-02-21 09:38:35, Sascha Hauer wrote: > > > On Thu, Feb 11, 2021 at 03:38:13PM +, Christoph Hellwig wrote: > > > > > + if (!mountpoint) > > > > > + return -ENODE

RE: [PATCH] ARM: Implement Clang's SLS mitigation

2021-02-12 Thread David Laight
> > on -mharden-sls=all, which mitigates the straight-line speculation > > vulnerability, or more commonly known as Spectre, Meldown. > > ^ I would drop "or" here > ^ drop comma, >

RE: [Linuxarm] Re: [PATCH for next v1 1/2] gpio: omap: Replace raw_spin_lock_irqsave with raw_spin_lock in omap_gpio_irq_handler()

2021-02-12 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Grygorii Strashko [mailto:grygorii.stras...@ti.com] > Sent: Friday, February 12, 2021 11:28 PM > To: Arnd Bergmann ; Song Bao Hua (Barry Song) > > Cc: luojiaxing ; Linus Walleij > ; Andy Shevchenko ; Andy > Shevchenko ; Santosh Shilimkar > ; Kevin Hilman ; op

Re: [PATCH v5 1/1] mm: refactor initialization of struct page for holes in memory layout

2021-02-12 Thread David Hildenbrand
On 12.02.21 11:33, Michal Hocko wrote: On Mon 08-02-21 13:08:20, Mike Rapoport wrote: From: Mike Rapoport There could be struct pages that are not backed by actual physical memory. This can happen when the actual memory bank is not a multiple of SECTION_SIZE or when an architecture does not re

Re: [PATCH] iommu/amd: Fix performance counter initialization

2021-02-12 Thread Joerg Roedel
On Mon, Feb 08, 2021 at 06:27:12AM -0600, Suravee Suthikulpanit wrote: > drivers/iommu/amd/init.c | 45 ++-- > 1 file changed, 34 insertions(+), 11 deletions(-) Applied, thanks.

Re: [PATCH] iommu: Add device name to iommu map/unmap trace events

2021-02-12 Thread Joerg Roedel
On Tue, Feb 09, 2021 at 06:06:20PM +0530, Sai Prakash Ranjan wrote: > diff --git a/include/linux/iommu.h b/include/linux/iommu.h > index 5e7fe519430a..6064187d9bb6 100644 > --- a/include/linux/iommu.h > +++ b/include/linux/iommu.h > @@ -87,6 +87,7 @@ struct iommu_domain { > void *handler_toke

Re: [PATCH v2] arm64: Fix warning in mte_get_random_tag()

2021-02-12 Thread Catalin Marinas
On Thu, Feb 11, 2021 at 03:22:08PM +, Vincenzo Frascino wrote: > The simplification of mte_get_random_tag() caused the introduction of the > warning below: > > In file included from arch/arm64/include/asm/kasan.h:9, > from include/linux/kasan.h:16, > from mm/k

Re: [PATCH] x86: vdso: fix printf() format warnings in vdso2c.h

2021-02-12 Thread Jarkko Sakkinen
On Mon, Feb 08, 2021 at 05:23:05PM -0800, Randy Dunlap wrote: > Use %zu instead of %lu for size_t to prevent w printf() > format warnings in vdso2c.h > > HOSTCC arch/x86/entry/vdso/vdso2c > In file included from ../arch/x86/entry/vdso/vdso2c.c:162: > ../arch/x86/entry/vdso/vdso2c.h: In function

Re: [Linuxarm] Re: [PATCH for next v1 1/2] gpio: omap: Replace raw_spin_lock_irqsave with raw_spin_lock in omap_gpio_irq_handler()

2021-02-12 Thread Andy Shevchenko
On Fri, Feb 12, 2021 at 10:42:19AM +, Song Bao Hua (Barry Song) wrote: > > From: Grygorii Strashko [mailto:grygorii.stras...@ti.com] > > Sent: Friday, February 12, 2021 11:28 PM > > On 12/02/2021 11:45, Arnd Bergmann wrote: > > > On Fri, Feb 12, 2021 at 6:05 AM Song Bao Hua (Barry Song) > > >

Re: [PATCH] virt: acrn: Fix vCPU removing code build error

2021-02-12 Thread Shuo A Liu
Hi Greg, On Fri 12.Feb'21 at 8:52:33 +0100, Greg Kroah-Hartman wrote: On Fri, Feb 12, 2021 at 12:57:24PM +0800, shuo.a@intel.com wrote: From: Shuo Liu vCPU removing code depends on CONFIG_HOTPLUG_CPU as it uses remove_cpu() and add_cpu(). Make the vCPU removing interface building with CO

[PATCH 0/2] Domain nesting info for arm-smmu

2021-02-12 Thread Vivek Gautam
These couple of patches are adding nesting information for arm and are based on the domain nesting info patches by Yi [1,2,3]. Based on the discussion in the thread [4], sending these out as I have been using in my tree [5] for nested translation based on virtio-iommu on Arm reference platforms.

[PATCH 1/2] iommu: Report domain nesting info for arm-smmu-v3

2021-02-12 Thread Vivek Gautam
Add a vendor specific structure for domain nesting info for arm smmu-v3, and necessary info fields required to populate stage1 page tables. Signed-off-by: Vivek Gautam --- include/uapi/linux/iommu.h | 31 +-- 1 file changed, 25 insertions(+), 6 deletions(-) diff --gi

[PATCH 2/2] iommu: arm-smmu-v3: Report domain nesting info reuqired for stage1

2021-02-12 Thread Vivek Gautam
Update nested domain information required for stage1 page table. Signed-off-by: Vivek Gautam --- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c b/drivers/iommu/arm/arm-

Re: [Linuxarm] Re: [PATCH for next v1 1/2] gpio: omap: Replace raw_spin_lock_irqsave with raw_spin_lock in omap_gpio_irq_handler()

2021-02-12 Thread Arnd Bergmann
On Fri, Feb 12, 2021 at 11:42 AM Song Bao Hua (Barry Song) wrote: > > Ok, second thought. irqsave before generic_handle_irq() won't defeat > the purpose of preemption too much as the dispatched irq handlers by > gpiochip will run in their own threads but not in the thread of > gpiochip's handler.

Re: [PATCH v3 2/2] tpm: in tpm2_del_space check if ops pointer is still valid

2021-02-12 Thread Jarkko Sakkinen
On Tue, Feb 09, 2021 at 12:52:17PM +0100, Lino Sanfilippo wrote: > Hi Jason, > > On 05.02.21 18:25, Jason Gunthorpe wrote: > > On Fri, Feb 05, 2021 at 08:48:11AM -0800, James Bottomley wrote: > >>> Thanks for pointing this out. I'd strongly support Jason's proposal: > >>> > >>> https://lore.kernel

Re: [PATCH v2 1/3] misc/pvpanic: split-up generic and platform dependent code

2021-02-12 Thread Greg KH
On Fri, Feb 12, 2021 at 12:29:49PM +0200, Mihai Carabas wrote: > ..snip > > > -}; > > > -module_platform_driver(pvpanic_mmio_driver); > > > diff --git a/drivers/misc/pvpanic/Kconfig b/drivers/misc/pvpanic/Kconfig > > > new file mode 100644 > > > index ..0dce6ef > > > --- /dev/null > > > +++

Re: [PATCH 4.19 00/24] 4.19.176-rc1 review

2021-02-12 Thread Greg Kroah-Hartman
On Fri, Feb 12, 2021 at 03:59:41PM +0530, Naresh Kamboju wrote: > On Fri, 12 Feb 2021 at 13:12, Greg Kroah-Hartman > wrote: > > > > On Fri, Feb 12, 2021 at 10:16:11AM +0530, Naresh Kamboju wrote: > > > On Thu, 11 Feb 2021 at 20:36, Greg Kroah-Hartman > > > wrote: > > > > > > > > This is the start

Re: [PATCH v3 2/2] tpm: in tpm2_del_space check if ops pointer is still valid

2021-02-12 Thread Jarkko Sakkinen
On Tue, Feb 09, 2021 at 09:36:53AM -0400, Jason Gunthorpe wrote: > On Tue, Feb 09, 2021 at 12:52:17PM +0100, Lino Sanfilippo wrote: > > > @@ -640,8 +643,10 @@ void tpm_chip_unregister(struct tpm_chip *chip) > > > if (IS_ENABLED(CONFIG_HW_RANDOM_TPM)) > > > hwrng_unregister(&chip->hwrng)

Re: possible deadlock in dquot_commit

2021-02-12 Thread Dmitry Vyukov
On Thu, Feb 11, 2021 at 10:46 PM Theodore Ts'o wrote: > > On Thu, Feb 11, 2021 at 12:47:18PM +0100, Dmitry Vyukov wrote: > > > This actually looks problematic: We acquired &ei->i_data_sem/2 (i.e., > > > I_DATA_SEM_QUOTA subclass) in ext4_map_blocks() called from > > > ext4_block_write_begin(). Thi

Re: [PATCH] virt: acrn: Fix vCPU removing code build error

2021-02-12 Thread Greg Kroah-Hartman
On Fri, Feb 12, 2021 at 06:58:53PM +0800, Shuo A Liu wrote: > Hi Greg, > > On Fri 12.Feb'21 at 8:52:33 +0100, Greg Kroah-Hartman wrote: > > On Fri, Feb 12, 2021 at 12:57:24PM +0800, shuo.a@intel.com wrote: > > > From: Shuo Liu > > > > > > vCPU removing code depends on CONFIG_HOTPLUG_CPU as

Re: linux-next: Tree for Feb 11

2021-02-12 Thread Heiko Carstens
Hi Vlad, > > Build fails on s390 using defconfig with: > > > > In file included from drivers/net/ethernet/mellanox/mlx5/core/en_tc.h:40, > > from drivers/net/ethernet/mellanox/mlx5/core/en_main.c:45: > > drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.h:24:29: error: field > >

[PATCH v5] tpm_tis: Add missing tpm_request/relinquish_locality() calls

2021-02-12 Thread Lukasz Majczak
There are missing calls to tpm_request_locality() before the calls to the tpm_get_timeouts() and tpm_tis_probe_irq_single() - both functions internally send commands to the tpm using tpm_tis_send_data() which in turn, at the very beginning, calls the tpm_tis_status(). This one tries to read TPM_STS

linux-next: Tree for Feb 12

2021-02-12 Thread Stephen Rothwell
Hi all, Changes since 20210211: The powerpc tree lost its build failure. The btrfs tree gained a conflict against the fscache tree. The net-next tree gained a conflict against the net tree. The device-mapper tree lost its build failure. The spi tree gained a conflict against the powerpc tree.

Re: [PATCH 2/3] [v3] kselftest: add support for skipped tests

2021-02-12 Thread Petr Mladek
On Wed 2021-02-10 15:34:52, Timur Tabi wrote: > Update the kselftest framework to allow client drivers to > specify that some tests were skipped. > > Signed-off-by: Timur Tabi Reviewed-by: Petr Mladek Tested-by: Petr Mladek Best Regards, Petr

arch/sh/kernel/cpu/sh2a/clock-sh7264.c:44:33: sparse: sparse: incorrect type in argument 1 (different base types)

2021-02-12 Thread kernel test robot
months ago config: sh-randconfig-s032-20210212 (attached as .config) compiler: sh4-linux-gcc (GCC) 9.3.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse

[GIT PULL] soundwire updates for v5.12-rc1

2021-02-12 Thread Vinod Koul
Hello greg, Few more patches came in late and would be great to have in upcoming merge window. Please pull to receive a fix for Intel laptops and support for _no_pm in sdw regmap (acked by Mark) The following changes since commit 6d7a1ff71cbb326fadfbedb7f75c1fc8f5c84d84: soundwire: bus: clarif

Re: [GIT PULL] soundwire updates for v5.12-rc1

2021-02-12 Thread Greg KH
On Fri, Feb 12, 2021 at 04:44:22PM +0530, Vinod Koul wrote: > Hello greg, > > Few more patches came in late and would be great to have in upcoming > merge window. Please pull to receive a fix for Intel laptops and support > for _no_pm in sdw regmap (acked by Mark) > > The following changes since

Re: [PATCH v5] tpm_tis: Add missing tpm_request/relinquish_locality() calls

2021-02-12 Thread Greg KH
On Fri, Feb 12, 2021 at 12:06:00PM +0100, Lukasz Majczak wrote: > There are missing calls to tpm_request_locality() before the calls to > the tpm_get_timeouts() and tpm_tis_probe_irq_single() - both functions > internally send commands to the tpm using tpm_tis_send_data() > which in turn, at the ve

Re: possible deadlock in start_this_handle (2)

2021-02-12 Thread Tetsuo Handa
On 2021/02/12 1:41, Michal Hocko wrote: > But I suspect we have drifted away from the original issue. I thought > that a simple check would help us narrow down this particular case and > somebody messing up from the IRQ context didn't sound like a completely > off. > From my experience at https

[PATCH V8 0/4] dt: Add fdtoverlay rule and statically build unittest

2021-02-12 Thread Viresh Kumar
Hi, This patchset adds a generic rule for applying overlays using fdtoverlay tool and then updates unittests to get built statically using the same. V7->V8: - Patch 1 is new. - Platforms need to use dtb-y += foo.dtb instead of overlay-y += foo.dtb. - Use multi_depend instead of .SECONDEXPANSION

[PATCH V8 1/4] kbuild: Simplify builds with CONFIG_OF_ALL_DTBS

2021-02-12 Thread Viresh Kumar
We update 'extra-y' based on CONFIG_OF_ALL_DTBS three times. It would be far more straight forward if we rather update dtb-y to include all .dtb files if CONFIG_OF_ALL_DTBS is enabled. Signed-off-by: Viresh Kumar --- scripts/Makefile.lib | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)

[PATCH v11] Add the latency-collector to tools

2021-02-12 Thread Viktor Rosendahl
This is a tool that is intended to work around the fact that the preemptoff, irqsoff, and preemptirqsoff tracers only work in overwrite mode. The idea is to act randomly in such a way that we do not systematically lose any latencies, so that if enough testing is done, all latencies will be captured

[PATCH V8 4/4] of: unittest: Statically apply overlays using fdtoverlay

2021-02-12 Thread Viresh Kumar
Now that fdtoverlay is part of the kernel build, start using it to test the unitest overlays we have by applying them statically. Create two new base files static_base_1.dts and static_base_2.dts which includes other .dtsi files. Some unittest overlays deliberately contain errors that unittest che

[PATCH V8 2/4] kbuild: Add generic rule to apply fdtoverlay

2021-02-12 Thread Viresh Kumar
From: Rob Herring Add a generic rule to apply fdtoverlay in Makefile.lib, so every platform doesn't need to carry the complex rule. The platform's Makefile only needs to have this now: DTC_FLAGS_foo_base += -@ foo-dtbs := foo_base.dtb foo_overlay1.dtbo foo_overlay2.dtbo dtb-y := foo.dtb We

[PATCH V8 3/4] of: unittest: Create overlay_common.dtsi and testcases_common.dtsi

2021-02-12 Thread Viresh Kumar
In order to build-test the same unit-test files using fdtoverlay tool, move the device nodes from the existing overlay_base.dts and testcases_common.dts files to .dtsi counterparts. The .dts files now include the new .dtsi files, resulting in exactly the same behavior as earlier. The .dtsi files c

Re: [PATCH] virt: acrn: Fix vCPU removing code build error

2021-02-12 Thread Shuo A Liu
On Fri 12.Feb'21 at 12:02:18 +0100, Greg Kroah-Hartman wrote: On Fri, Feb 12, 2021 at 06:58:53PM +0800, Shuo A Liu wrote: Hi Greg, On Fri 12.Feb'21 at 8:52:33 +0100, Greg Kroah-Hartman wrote: > On Fri, Feb 12, 2021 at 12:57:24PM +0800, shuo.a@intel.com wrote: > > From: Shuo Liu > > > > vC

Re: [PATCH v1] clang_tools:gen_compile_commands: Change the default source directory

2021-02-12 Thread Stephen Zhang
Masahiro Yamada 于2021年2月11日周四 下午10:16写道: > Please stop. > > > Commit 6ca4c6d25949117dc5b4845612e290b6d89e70a8 > removed the tools/ support. > > > There exist two build systems in the Linux source tree. > Kbuild covers the entire tree except tools/. > The tools/ directory adopts a different build s

Re: [PATCH v13 3/7] kasan: Add report for async mode

2021-02-12 Thread Vincenzo Frascino
Hi Andrey, On 2/11/21 8:13 PM, Andrey Konovalov wrote: riscv64-linux-ld: report.c:(.text+0x5c4): undefined reference to `kasan_flag_async' > Let's do something like this (untested): > > https://github.com/xairy/linux/commit/91354d34b30ceedbc1b6417f1ff253de90618a97 Could you reproduce

Re: [PATCH v13 2/7] kasan: Add KASAN mode kernel parameter

2021-02-12 Thread Vincenzo Frascino
On 2/11/21 5:50 PM, Andrey Konovalov wrote: > Let's default to KASAN_ARG_MODE_DEFAULT like for other args: > > if (!arg) > return -EINVAL; > > kasan_init_hw_tags_cpu()/kasan_init_hw_tags() already handle > KASAN_ARG_MODE_DEFAULT properly. Ok, no problem, I will take care of it in the next v

drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:1037:23: sparse: sparse: incorrect type in initializer (different address spaces)

2021-02-12 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dcc0b49040c70ad827a7f3d58a21b01fdb14e749 commit: 5d240a54be7e5921856ce1baa3642351aa118dbc staging: vchiq: convert compat await_completion date: 5 months ago config: sh-randconfig-s032-20210212 (attached

Re: [PATCH v2 14/15] ARM: dts: bcm2711: Add the BSC interrupt controller

2021-02-12 Thread Nicolas Saenz Julienne
On Wed, 2021-02-10 at 10:49 -0800, Florian Fainelli wrote: > On 2/10/21 7:49 AM, Dave Stevenson wrote: > > Hi Marc. > > > > On Wed, 10 Feb 2021 at 15:30, Marc Zyngier wrote: > > > > > > Hi Maxime, > > > > > > On 2021-02-10 14:40, Maxime Ripard wrote: > > > > Hi Dave, > > > > > > > > On Tue, Fe

Re: [PATCH v14 2/4] phy: Add media type and speed serdes configuration interfaces

2021-02-12 Thread Steen Hegelund
Hi David, On Wed, 2021-02-10 at 15:32 -0800, David Miller wrote: > EXTERNAL EMAIL: Do not click links or open attachments unless you > know the content is safe > > From: Steen Hegelund > Date: Wed, 10 Feb 2021 09:52:53 +0100 > > > Provide new phy configuration interfaces for media type and spee

Re: [RFC v4 05/11] drm/i915/dpcd_bl: Cleanup intel_dp_aux_vesa_enable_backlight() a bit

2021-02-12 Thread Jani Nikula
On Mon, 08 Feb 2021, Lyude Paul wrote: > Get rid of the extraneous switch case in here, and just open code > edp_backlight_mode as we only ever use it once. > > v4: > * Check that backlight mode is DP_EDP_BACKLIGHT_CONTROL_MODE_DPCD, not > DP_EDP_BACKLIGHT_CONTROL_MODE_MASK - imirkin > > Signed-

RE: [Linuxarm] Re: [PATCH for next v1 1/2] gpio: omap: Replace raw_spin_lock_irqsave with raw_spin_lock in omap_gpio_irq_handler()

2021-02-12 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > Sent: Friday, February 12, 2021 11:57 PM > To: Song Bao Hua (Barry Song) > Cc: Grygorii Strashko ; Arnd Bergmann > ; luojiaxing ; Linus Walleij > ; Santosh Shilimkar ; Kevin > Hilman ; open list:GPIO SUBSY

Re: [PATCH v6 1/3] lib/vsprintf: Add support for printing V4L2 and DRM fourccs

2021-02-12 Thread Sakari Ailus
Hi Petr, Thanks for the comments. On Thu, Feb 11, 2021 at 06:14:28PM +0100, Petr Mladek wrote: > On Tue 2021-02-09 19:47:55, Sakari Ailus wrote: > > Hi Andy, > > > > On Tue, Feb 09, 2021 at 11:58:40AM +0200, Andy Shevchenko wrote: > > > On Tue, Feb 09, 2021 at 11:20:32AM +0200, Sakari Ailus wrot

Re: [RESEND RFC PATCH v2] arm64: Exposes support for 32-bit syscalls

2021-02-12 Thread Steven Price
On 11/02/2021 20:21, sonicadvan...@gmail.com wrote: From: Ryan Houdek Sorry about the noise. I obviously don't work in this ecosystem. Didn't get any comments previously so I'm resending We're just coming up to a merge window, so I expect people are fairly busy at the moment. Also from a rev

Re: [PATCH v14 2/4] phy: Add media type and speed serdes configuration interfaces

2021-02-12 Thread Kishon Vijay Abraham I
Hi Steen, On 10/02/21 2:22 pm, Steen Hegelund wrote: > Provide new phy configuration interfaces for media type and speed that > allows allows e.g. PHYs used for ethernet to be configured with this > information. > > Signed-off-by: Lars Povlsen > Signed-off-by: Steen Hegelund > Reviewed-by: Andr

Re: [PATCH v2 14/15] ARM: dts: bcm2711: Add the BSC interrupt controller

2021-02-12 Thread Maxime Ripard
On Fri, Feb 12, 2021 at 12:20:14PM +0100, Nicolas Saenz Julienne wrote: > On Wed, 2021-02-10 at 10:49 -0800, Florian Fainelli wrote: > > On 2/10/21 7:49 AM, Dave Stevenson wrote: > > > Hi Marc. > > > > > > On Wed, 10 Feb 2021 at 15:30, Marc Zyngier wrote: > > > > > > > > Hi Maxime, > > > > > >

Re: [PATCH v5 5/6] dm: add 'noexcl' option for dm-linear

2021-02-12 Thread Sergei Shtepa
The 02/11/2021 20:51, Mike Snitzer wrote: > On Tue, Feb 09 2021 at 9:30am -0500, > Sergei Shtepa wrote: > > > The 'noexcl' option allow to open underlying block-device > > without FMODE_EXCL. > > > > Signed-off-by: Sergei Shtepa > > --- > > drivers/md/dm-linear.c| 14 +- >

Re: [Linuxarm] Re: [PATCH for next v1 1/2] gpio: omap: Replace raw_spin_lock_irqsave with raw_spin_lock in omap_gpio_irq_handler()

2021-02-12 Thread Andy Shevchenko
On Fri, Feb 12, 2021 at 11:59:28AM +0100, Arnd Bergmann wrote: > On Fri, Feb 12, 2021 at 11:42 AM Song Bao Hua (Barry Song) > wrote: > > > > Ok, second thought. irqsave before generic_handle_irq() won't defeat > > the purpose of preemption too much as the dispatched irq handlers by > > gpiochip wi

Re: Adding custom functional callbacks to IIO driver

2021-02-12 Thread Lars-Peter Clausen
On 2/12/21 12:07 PM, Anand Ashok Dumbre wrote: Hello, I have an IIO adc driver that measures temperatures and voltages on the SOC. There are other kernel modules interested in the temperature and voltage event information. Would using a custom callback registration mechanism be advisable? Is t

[PATCH][next] octeontx2-af: Fix spelling mistake "recievd" -> "received"

2021-02-12 Thread Colin King
From: Colin Ian King There is a spelling mistake in the text in array rpm_rx_stats_fields, fix it. Signed-off-by: Colin Ian King --- drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/octeontx

[PATCH][next] ath11k: debugfs: Fix spelling mistake "Opportunies" -> "Opportunities"

2021-02-12 Thread Colin King
From: Colin Ian King There is a spelling mistake in some debug text, fix this. Signed-off-by: Colin Ian King --- drivers/net/wireless/ath/ath11k/debugfs_htt_stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath11k/debugfs_htt_stats.c b/driver

RE: Adding custom functional callbacks to IIO driver

2021-02-12 Thread Anand Ashok Dumbre
Thanks a lot I will go through it. > -Original Message- > From: Lars-Peter Clausen > Sent: Friday 12 February 2021 5:06 PM > To: Anand Ashok Dumbre ; Jonathan Cameron > ; knaac...@gmx.de; Peter Meerwald-Stadler > ; Michal Simek ; linux- > i...@vger.kernel.org; linux-arm-ker...@lists.infr

[v3] drm/msm/disp/dpu1: turn off vblank irqs aggressively in dpu

2021-02-12 Thread Kalyan Thota
Set the flag vblank_disable_immediate = true to turn off vblank irqs immediately as soon as drm_vblank_put is requested so that there are no irqs triggered during idle state. This will reduce cpu wakeups and help in power saving. To enable vblank_disable_immediate flag the underlying KMS driver ne

Re: [PATCH v6 5/5] certs: Allow root user to append signed hashes to the blacklist keyring

2021-02-12 Thread Jarkko Sakkinen
On Wed, Feb 10, 2021 at 01:04:10PM +0100, Mickaël Salaün wrote: > From: Mickaël Salaün > > Add a kernel option SYSTEM_BLACKLIST_AUTH_UPDATE to enable the root user > to dynamically add new keys to the blacklist keyring. This enables to > invalidate new certificates, either from being loaded in a

drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c:1055:23: sparse: sparse: incorrect type in initializer (different address spaces)

2021-02-12 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: dcc0b49040c70ad827a7f3d58a21b01fdb14e749 commit: 4184da4f316a549ae732d91088571fef46a2f58d staging: vchiq: fix __user annotations date: 5 months ago config: sh-randconfig-s032-20210212 (attached as .config

Re: Re: Conflict with Mickaël Salaün's blacklist patches [was [PATCH v5 0/4] Add EFI_CERT_X509_GUID support for dbx/mokx entries]

2021-02-12 Thread Jarkko Sakkinen
On Tue, Feb 09, 2021 at 01:14:06PM +, David Howells wrote: > > Hi Eric, Mickaël, > > Do we have a consensus on this? From what's written here, I don't think I can > ask Linus to pull the merge of your two branches. I feel that I probably need > to push Eric's first as that fixes a CVE if I

Re: [PATCH] net/qrtr: restrict user-controlled length in qrtr_tun_write_iter()

2021-02-12 Thread Eric Dumazet
On 2/2/21 10:20 AM, Sabyrzhan Tasbolatov wrote: > syzbot found WARNING in qrtr_tun_write_iter [1] when write_iter length > exceeds KMALLOC_MAX_SIZE causing order >= MAX_ORDER condition. > > Additionally, there is no check for 0 length write. > > [1] > WARNING: mm/page_alloc.c:5011 > [..] > Cal

[PATCH] [v13] wireless: Initial driver submission for pureLiFi STA devices

2021-02-12 Thread Srinivasan Raju
This introduces the pureLiFi LiFi driver for LiFi-X, LiFi-XC and LiFi-XL USB devices. This driver implementation has been based on the zd1211rw driver. Driver is based on 802.11 softMAC Architecture and uses native 802.11 for configuration and management. The driver is compiled and tested in ARM

[v3] drm/msm/disp/dpu1: turn off vblank irqs aggressively in dpu

2021-02-12 Thread Kalyan Thota
From: Kalyan Thota Set the flag vblank_disable_immediate = true to turn off vblank irqs immediately as soon as drm_vblank_put is requested so that there are no irqs triggered during idle state. This will reduce cpu wakeups and help in power saving. To enable vblank_disable_immediate flag the und

Re: [PATCH 3/3] lib/vsprintf: make-printk-non-secret printks all addresses as unhashed

2021-02-12 Thread Petr Mladek
Hi, I have realized that I did not comment the two ideas. On Wed 2021-02-10 11:27:45, Timur Tabi wrote: > > > On 2/10/21 7:41 AM, Petr Mladek wrote: > > > > The option causes that vsprintf() will not hash pointers. Yes, it is > > primary used by printk(). But it is used also in some other > >

Re: [Linuxarm] Re: [PATCH for next v1 1/2] gpio: omap: Replace raw_spin_lock_irqsave with raw_spin_lock in omap_gpio_irq_handler()

2021-02-12 Thread Grygorii Strashko
On 12/02/2021 13:29, Song Bao Hua (Barry Song) wrote: -Original Message- From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] Sent: Friday, February 12, 2021 11:57 PM To: Song Bao Hua (Barry Song) Cc: Grygorii Strashko ; Arnd Bergmann ; luojiaxing ; Linus Walleij ; Santosh Shil

<    1   2   3   4   5   6   7   8   9   10   >