Re: [PATCH net-next v4 3/5] net: hdlc_fr: Improve the initial checks when we receive an skb

2020-10-30 Thread Xie He
On Fri, Oct 30, 2020 at 9:31 AM Willem de Bruijn wrote: > > > Add an fh->ea2 check to the initial checks in fr_rx. fh->ea2 == 1 means > > the second address byte is the final address byte. We only support the > > case where the address length is 2 bytes. > > Can you elaborate a bit for readers not

Re: general protection fault in security_inode_getattr

2020-10-30 Thread Miklos Szeredi
On Fri, Oct 30, 2020 at 7:42 PM Dmitry Vyukov wrote: > > On Fri, Oct 30, 2020 at 2:02 PM Miklos Szeredi wrote: > > > > On Mon, Aug 24, 2020 at 11:00 PM Ondrej Mosnacek > > wrote: > > > > > > On Mon, Aug 24, 2020 at 9:37 PM syzbot > > > wrote: > > > > syzbot has found a reproducer for the follo

Re: [PATCH v4 7/7] dma-buf: system_heap: Add a system-uncached heap re-using the system heap

2020-10-30 Thread John Stultz
On Fri, Oct 30, 2020 at 12:51 AM Hillf Danton wrote: > On Thu, 29 Oct 2020 21:04:30 -0700 John Stultz wrote: > > > > But I'll try to share my thoughts: > > > > So the system heap allows for allocation of non-contiguous buffers > > (currently allocated from page_alloc), which we keep track using >

Re: [PATCH 1/4] dt-bindings: clock: Add SDX55 GCC clock bindings

2020-10-30 Thread Rob Herring
On Wed, Oct 28, 2020 at 01:12:29PM +0530, Manivannan Sadhasivam wrote: > From: Vinod Koul > > Add device tree bindings for global clock controller on SDX55 SoCs. > > Signed-off-by: Vinod Koul This should carry your S-o-b too. > --- > .../bindings/clock/qcom,gcc-sdx55.yaml| 71 ++

Re: [PATCH v4 00/17] Add VFIO mediated device support and DEV-MSI support for the idxd driver

2020-10-30 Thread Jason Gunthorpe
On Fri, Oct 30, 2020 at 12:13:48PM -0700, Dave Jiang wrote: > > > On 10/30/2020 11:58 AM, Jason Gunthorpe wrote: > > On Fri, Oct 30, 2020 at 11:50:47AM -0700, Dave Jiang wrote: > > > .../ABI/stable/sysfs-driver-dma-idxd |6 + > > > Documentation/driver-api/vfio/mdev-idxd.rst |

Re: [PATCH 1/2] dt-bindings: mediatek: mmsys: add mt1867 binding

2020-10-30 Thread Rob Herring
On Tue, 27 Oct 2020 17:06:29 +0100, Fabien Parent wrote: > Add binding documentation for MT8167 SoC. > > Signed-off-by: Fabien Parent > --- > .../devicetree/bindings/arm/mediatek/mediatek,mmsys.txt | 1 + > 1 file changed, 1 insertion(+) > Acked-by: Rob Herring

Re: [PATCH 1/3] dt-bindings: arm64: dts: mediatek: Add mt8167-pumpkin board

2020-10-30 Thread Rob Herring
On Tue, 27 Oct 2020 20:48:13 +0100, Fabien Parent wrote: > Add binding documentation for the MT8167 Pumpkin board. > > Signed-off-by: Fabien Parent > --- > Documentation/devicetree/bindings/arm/mediatek.yaml | 4 > 1 file changed, 4 insertions(+) > Acked-by: Rob Herring

Re: [PATCH 1/2] futex.2: srcfix

2020-10-30 Thread Michael Kerrisk (man-pages)
On 10/30/20 1:39 PM, Alejandro Colomar wrote: > Signed-off-by: Alejandro Colomar Hi Alex, I've applied this patch, but would prefer to avoid such patches in the future. Nothing is actually broken in the old version, so I tend to regard such patches as unnecessary chur,. Thanks, Michael > ---

[ANNOUNCE] v5.10-rc1-rt2

2020-10-30 Thread Sebastian Andrzej Siewior
Dear RT folks! I'm pleased to announce the v5.10-rc1-rt2 patch set. Changes since v5.10-rc1-rt1: - Add Thomas Gleixner's "Preemptible variant of kmap_atomic & friends" series. - Apply patch by Paul E. McKenney which avoids a warning while a RCU stall is printed. - The last updat

Re: For review: seccomp_user_notif(2) manual page [v2]

2020-10-30 Thread Jann Horn
On Thu, Oct 29, 2020 at 3:19 PM Michael Kerrisk (man-pages) wrote: > On 10/29/20 2:42 AM, Jann Horn wrote: > > On Mon, Oct 26, 2020 at 10:55 AM Michael Kerrisk (man-pages) > > wrote: > >>static bool > >>getTargetPathname(struct seccomp_notif *req, int notifyFd, > >>

Re: [PATCH 2/2] futex.2: Use appropriate types

2020-10-30 Thread Michael Kerrisk (man-pages)
On 10/30/20 1:39 PM, Alejandro Colomar wrote: > The Linux kernel uses the following: > > kernel/futex.c:3778: > SYSCALL_DEFINE6(futex, u32 __user *, uaddr, int, op, u32, val, > struct __kernel_timespec __user *, utime, u32 __user *, uaddr2, > u32, val3) > > Since there

Re: [PATCH v6 1/9] mm: add Kernel Electric-Fence infrastructure

2020-10-30 Thread Marco Elver
On Fri, 30 Oct 2020 at 03:49, Jann Horn wrote: > On Thu, Oct 29, 2020 at 2:17 PM Marco Elver wrote: > > This adds the Kernel Electric-Fence (KFENCE) infrastructure. KFENCE is a > > low-overhead sampling-based memory safety error detector of heap > > use-after-free, invalid-free, and out-of-bounds

Re: net/can/isotp.c:1240:13: sparse: sparse: incorrect type in initializer (different address spaces)

2020-10-30 Thread Marc Kleine-Budde
On 10/30/20 7:55 PM, Oliver Hartkopp wrote: >>>1229 >>>1230 static int isotp_getsockopt(struct socket *sock, int level, int >>> optname, >>>1231 char __user *optval, int __user >>> *optlen) >>>1232 { >>>1233 struct sock

Re: [PATCH v4 00/17] Add VFIO mediated device support and DEV-MSI support for the idxd driver

2020-10-30 Thread Dave Jiang
On 10/30/2020 11:58 AM, Jason Gunthorpe wrote: On Fri, Oct 30, 2020 at 11:50:47AM -0700, Dave Jiang wrote: .../ABI/stable/sysfs-driver-dma-idxd |6 + Documentation/driver-api/vfio/mdev-idxd.rst | 404 ++ MAINTAINERS |1 + drivers/

Re: [PATCH v2 1/3] dt-bindings: HID: i2c-hid: Label this binding as deprecated

2020-10-30 Thread Benjamin Tissoires
On Fri, Oct 30, 2020 at 7:00 PM Rob Herring wrote: > > On Fri, Oct 30, 2020 at 11:51:53AM +0100, Benjamin Tissoires wrote: > > Hi Doug, > > > > Foreword: I was about to say "yeah, whatever" to please Rob for once. > > Read my other reply first... I think we mostly agree. > > > But after re-reading

Re: [PATCH] x86/mce: Enable additional error logging on certain Intel CPUs

2020-10-30 Thread Luck, Tony
On Fri, Oct 30, 2020 at 12:04:03PM -0700, Luck, Tony wrote: Bah, didn't notice this conversation didn't include LKML. > The Xeon versions of Sandy Bridge, Ivy Bridge and Haswell support an > optional additional error logging mode which is enabled by an MSR. > > Previously this mode was enabled f

Re: [PATCH v10 01/15] ASoC: sun4i-i2s: Fix lrck_period computation for I2S justified mode

2020-10-30 Thread Clément Péron
Hi Maxime, On Fri, 30 Oct 2020 at 17:11, Maxime Ripard wrote: > > On Fri, Oct 30, 2020 at 03:46:34PM +0100, Clément Péron wrote: > > Left and Right justified mode are computed using the same formula > > as DSP_A and DSP_B mode. > > Which is wrong and the user manual explicitly says: > > > > LRCK_

Re: [PATCH v3 4/4] dt-bindings: arm: add support for SCMI Regulators

2020-10-30 Thread Mark Brown
On Fri, Oct 30, 2020 at 01:55:14PM -0500, Rob Herring wrote: > I'm a bit worried that now we're changing CPUs (at least?) from clocks > to 'performance domains' while at the same time here we're adding > low level, virtual regulators. Are we going to end up wanting something > more abstract her

Re: [PATCH v10 14/15] dt-bindings: sound: sun4i-i2s: Document H3 with missing RX channel possibility

2020-10-30 Thread Clément Péron
Hi Mark, On Fri, 30 Oct 2020 at 19:19, Mark Brown wrote: > > On Fri, Oct 30, 2020 at 03:46:47PM +0100, Clément Péron wrote: > > Like A83T the Allwinner H3 doesn't have the DMA reception available for > > some audio interfaces. > > Please if you're going to mix dts updates in with subsystem change

Re: [PATCH v2 1/2] dt-bindings: power: Add MT8167 power domains

2020-10-30 Thread Rob Herring
On Tue, 27 Oct 2020 14:11:20 +0100, Fabien Parent wrote: > Add power domains dt-bindings for MT8167. > > Signed-off-by: Fabien Parent > --- > > This patch depends on the SCPSYS PM domains driver [0]. > > v2: > * Implement on top of new SCPSYS PM domains driver [0] > > [0] https://patchwo

[PATCH 07/12] mm/mempolicy: handle MPOL_PREFERRED_MANY like BIND

2020-10-30 Thread Ben Widawsky
Begin the real plumbing for handling this new policy. Now that the internal representation for preferred nodes and bound nodes is the same, and we can envision what multiple preferred nodes will behave like, there are obvious places where we can simply reuse the bind behavior. In v1 of this series

[PATCH 11/12] mm/mempolicy: huge-page allocation for many preferred

2020-10-30 Thread Ben Widawsky
Implement the missing huge page allocation functionality while obeying the preferred node semantics. This uses a fallback mechanism to try multiple preferred nodes first, and then all other nodes. It cannot use the helper function that was introduced because huge page allocation already has its ow

[PATCH 09/12] mm/mempolicy: Thread allocation for many preferred

2020-10-30 Thread Ben Widawsky
In order to support MPOL_PREFERRED_MANY as the mode used by set_mempolicy(2), alloc_pages_current() needs to support it. This patch does that by using the new helper function to allocate properly based on policy. All the actual machinery to make this work was part of ("mm/mempolicy: Create a page

[PATCH 12/12] mm/mempolicy: Advertise new MPOL_PREFERRED_MANY

2020-10-30 Thread Ben Widawsky
Adds a new mode to the existing mempolicy modes, MPOL_PREFERRED_MANY. MPOL_PREFERRED_MANY will be adequately documented in the internal admin-guide with this patch. Eventually, the man pages for mbind(2), get_mempolicy(2), set_mempolicy(2) and numactl(8) will also have text about this mode. Those

[PATCH 04/12] mm/mempolicy: allow preferred code to take a nodemask

2020-10-30 Thread Ben Widawsky
From: Dave Hansen Create a helper function (mpol_new_preferred_many()) which is usable both by the old, single-node MPOL_PREFERRED and the new MPOL_PREFERRED_MANY. Enforce the old single-node MPOL_PREFERRED behavior in the "new" version of mpol_new_preferred() which calls mpol_new_preferred_many

[PATCH 08/12] mm/mempolicy: Create a page allocator for policy

2020-10-30 Thread Ben Widawsky
Add a helper function which takes care of handling multiple preferred nodes. It will be called by future patches that need to handle this, specifically VMA based page allocation, and task based page allocation. Huge pages don't quite fit the same pattern because they use different underlying page a

[PATCH 05/12] mm/mempolicy: refactor rebind code for PREFERRED_MANY

2020-10-30 Thread Ben Widawsky
From: Dave Hansen Again, this extracts the "only one node must be set" behavior of MPOL_PREFERRED. It retains virtually all of the existing code so it can be used by MPOL_PREFERRED_MANY as well. v2: Fixed typos in commit message. (Ben) Merged bits from other patches. (Ben) annotate mpol_rebind_

[PATCH 10/12] mm/mempolicy: VMA allocation for many preferred

2020-10-30 Thread Ben Widawsky
This patch implements MPOL_PREFERRED_MANY for alloc_pages_vma(). Like alloc_pages_current(), alloc_pages_vma() needs to support policy based decisions if they've been configured via mbind(2). The temporary "hack" of treating MPOL_PREFERRED and MPOL_PREFERRED_MANY can now be removed with this, too.

[PATCH 01/12] mm/mempolicy: Add comment for missing LOCAL

2020-10-30 Thread Ben Widawsky
MPOL_LOCAL is a bit weird because it is simply a different name for an existing behavior (preferred policy with no node mask). It has been this way since it was added here: commit 479e2802d09f ("mm: mempolicy: Make MPOL_LOCAL a real policy") It is so similar to MPOL_PREFERRED in fact that when the

[PATCH 06/12] mm/mempolicy: kill v.preferred_nodes

2020-10-30 Thread Ben Widawsky
Now that preferred_nodes is just a mask, and policies are mutually exclusive, there is no reason to have a separate mask. This patch is optional. It definitely helps clean up code in future patches, but there is no functional difference to leaving it with the previous name. I do believe it helps d

[PATCH 03/12] mm/mempolicy: Add MPOL_PREFERRED_MANY for multiple preferred nodes

2020-10-30 Thread Ben Widawsky
From: Dave Hansen MPOL_PREFERRED honors only a single node set in the nodemask. Add the bare define for a new mode which will allow more than one. The patch does all the plumbing without actually adding the new policy type. v2: Plumb most MPOL_PREFERRED_MANY without exposing UAPI (Ben) Fixes f

[PATCH 02/12] mm/mempolicy: convert single preferred_node to full nodemask

2020-10-30 Thread Ben Widawsky
From: Dave Hansen The NUMA APIs currently allow passing in a "preferred node" as a single bit set in a nodemask. If more than one bit it set, bits after the first are ignored. Internally, this is implemented as a single integer: mempolicy->preferred_node. This single node is generally OK for l

Re: [PATCH 1/1] ARM: dts: sun8i: h3: Add initial NanoPi R1 support

2020-10-30 Thread Rob Herring
On Tue, Oct 27, 2020 at 04:48:03PM +0800, Yu-Tung Chang wrote: > The NanoPi R1 is a complete open source board developed > by FriendlyElec for makers, hobbyists, fans and etc. > > NanoPi R1 key features > - Allwinner H3, Quad-core Cortex-A7@1.2GHz > - 512MB/1GB DDR3 RAM > - 8GB eMMC > - microSD sl

Re: [PATCH 1/3] x86/resctrl: Remove superfluous kernfs_get() calls to prevent refcount leak

2020-10-30 Thread Xiaochen Shen
Sorry, please ignore this patch. The correct version of patchset: https://lkml.org/lkml/2020/10/30/998 On 10/31/2020 3:03, Xiaochen Shen wrote: Willem reported growing of kernfs_node_cache entries in slabtop when repeatedly creating and removing resctrl subdirectories as well as when repeatedly

[GIT PULL] perf tools changes for v5.10: 2nd batch

2020-10-30 Thread Arnaldo Carvalho de Melo
Hi Linus, Please consider pulling, Best regards, - Arnaldo The following changes since commit 7cf726a59435301046250c42131554d9ccc566b8: Merge tag 'linux-kselftest-kunit-5.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest (2020-10-18 14:45:59 -0700) ar

Re: [PATCH v4 00/17] Add VFIO mediated device support and DEV-MSI support for the idxd driver

2020-10-30 Thread Jason Gunthorpe
On Fri, Oct 30, 2020 at 11:50:47AM -0700, Dave Jiang wrote: > .../ABI/stable/sysfs-driver-dma-idxd |6 + > Documentation/driver-api/vfio/mdev-idxd.rst | 404 ++ > MAINTAINERS |1 + > drivers/dma/Kconfig |9 + >

Re: [PATCH v1 2/2] leds: rt4505: Add DT binding document for Richtek RT4505

2020-10-30 Thread Rob Herring
On Tue, 27 Oct 2020 15:34:29 +0800, cy_huang wrote: > From: ChiYuan Huang > > Add DT binding document for Richtek RT4505 flash led controller. > > Signed-off-by: ChiYuan Huang > --- > .../devicetree/bindings/leds/leds-rt4505.yaml | 57 > ++ > 1 file changed, 57 insert

[PATCH] mm: define flags using bit numbers

2020-10-30 Thread Hui Su
These flag is meant the bit numbers, they are used like '(type & SLOTS_CACHE)' and so on. Define these flags using bit numbers instead of hardcoding powers of 2, which maybe better. No change in the actual values. Signed-off-by: Hui Su --- mm/swap_slots.c | 4 ++-- mm/swapfile.c | 6 +++---

Re: net/can/isotp.c:1240:13: sparse: sparse: incorrect type in initializer (different address spaces)

2020-10-30 Thread Oliver Hartkopp
Hi all, On 29.10.20 08:33, Marc Kleine-Budde wrote: Hello, looks like sh is missing the some __user annotations so that sparse spwes these warnings. Adding sh maintainers to Cc. regards, Marc On 10/29/20 12:01 AM, kernel test robot wrote: tree: https://git.kernel.org/pub/scm/linux/kernel/g

Re: [PATCH] mm/compaction: count pages and stop correctly during page isolation.

2020-10-30 Thread Yang Shi
On Fri, Oct 30, 2020 at 11:39 AM Zi Yan wrote: > > On 30 Oct 2020, at 14:33, Yang Shi wrote: > > > On Fri, Oct 30, 2020 at 6:36 AM Michal Hocko wrote: > >> > >> On Fri 30-10-20 08:20:50, Zi Yan wrote: > >>> On 30 Oct 2020, at 5:43, Michal Hocko wrote: > >>> > [Cc Vlastimil] > > On

Re: [PATCH v3 4/4] dt-bindings: arm: add support for SCMI Regulators

2020-10-30 Thread Rob Herring
On Mon, Oct 26, 2020 at 08:31:48PM +, Cristian Marussi wrote: > Add devicetree bindings to support regulators based on SCMI Voltage > Domain Protocol. > > Signed-off-by: Cristian Marussi > --- > v2 --> v3 > - avoid awkard examples based on _cpu/_gpu regulators > v1 --> v2 > - removed any refe

Re: arc: kernel/entry.S:310: Error: inappropriate arguments for opcode 'and'

2020-10-30 Thread Jens Axboe
On 10/30/20 12:53 PM, Vineet Gupta wrote: > Hi Naresh, > > On 10/30/20 3:29 AM, Naresh Kamboju wrote: >> arc defconfig build failed on linux next 20201030 with gcc-8 and gcc-9. >> >> make -sk KBUILD_BUILD_USER=TuxBuild -C/linux -j16 ARCH=arc >> CROSS_COMPILE=arc-

Re: arc: kernel/entry.S:310: Error: inappropriate arguments for opcode 'and'

2020-10-30 Thread Vineet Gupta
Hi Naresh, On 10/30/20 3:29 AM, Naresh Kamboju wrote: > arc defconfig build failed on linux next 20201030 with gcc-8 and gcc-9. > > make -sk KBUILD_BUILD_USER=TuxBuild -C/linux -j16 ARCH=arc > CROSS_COMPILE=arc-elf32- HOSTCC=gcc CC="sccache arc-elf32-gcc" O=build > uImage

[PATCH v4 09/17] dmaengine: idxd: add basic mdev registration and helper functions

2020-10-30 Thread Dave Jiang
Create a mediated device through the VFIO mediated device framework. The mdev framework allows creation of an mediated device by the driver with portion of the device's resources. The driver will emulate the slow path such as the PCI config space, MMIO bar, and the command registers. The descriptor

[PATCH v4 05/17] dmaengine: idxd: add interrupt handle request support

2020-10-30 Thread Dave Jiang
Add support for requesting interrupt handle from the device. The interrupt handle is put in the interrupt handle field of a descriptor for the device to determine which interrupt vector to use be it MSI-X or IMS. On the host device, the interrupt handle is indexed to the MSI-X table. This allows a

[PATCH v4 08/17] dmaengine: idxd: add device support functions in prep for mdev

2020-10-30 Thread Dave Jiang
Add device support helper functions in preparation of adding VFIO mdev support. Signed-off-by: Dave Jiang --- drivers/dma/idxd/device.c| 61 ++ drivers/dma/idxd/idxd.h |4 +++ drivers/dma/idxd/registers.h |3 +- 3 files changed, 67 inser

[PATCH v4 12/17] dmaengine: idxd: virtual device commands emulation

2020-10-30 Thread Dave Jiang
Add all the helper functions that supports the emulation of the commands that are submitted to the device command register. Signed-off-by: Dave Jiang --- drivers/dma/idxd/registers.h | 16 +- drivers/dma/idxd/vdev.c | 427 ++ 2 files changed, 438 i

[PATCH v4 15/17] dmaengine: idxd: add dedicated wq mdev type

2020-10-30 Thread Dave Jiang
Add the support code for "1dwq" mdev type. This mdev type follows the standard VFIO mdev flow. The "1dwq" type will export a single dedicated wq to the mdev. The dwq will have read-only configuration that is configured by the host. The mdev type does not support PASID and SVA and will match the sta

[PATCH v4 02/17] iommu/vt-d: Add DEV-MSI support

2020-10-30 Thread Dave Jiang
From: Megha Dey Add required support in the interrupt remapping driver for devices which generate dev-msi interrupts and use the intel remapping domain as the parent domain. Reviewed-by: Ashok Raj Suggested-by: Thomas Gleixner Signed-off-by: Megha Dey Signed-off-by: Dave Jiang --- drivers/i

[PATCH v4 04/17] dmaengine: idxd: add support for readonly config devices

2020-10-30 Thread Dave Jiang
The VFIO mediated device for idxd driver will provide a virtual DSA device by backing it with a workqueue. The virtual device will be limited with the wq configuration registers set to read-only. Add support and helper functions for the handling of a DSA device with the configuration registers mark

[PATCH v4 01/17] irqchip: Add IMS (Interrupt Message Store) driver

2020-10-30 Thread Dave Jiang
From: Thomas Gleixner Generic IMS(Interrupt Message Store) irq chips and irq domain implementations for IMS based devices which store the interrupt messages in an array in device memory. Allocation and freeing of interrupts happens via the generic msi_domain_alloc/free_irqs() interface. No speci

[PATCH v4 07/17] dmaengine: idxd: add IMS support in base driver

2020-10-30 Thread Dave Jiang
In preparation for support of VFIO mediated device for idxd driver, the enabling for Interrupt Message Store (IMS) interrupts is added for the idxd With IMS support the idxd driver can dynamically allocate interrupts on a per mdev basis based on how many IMS vectors that are mapped to the mdev devi

[PATCH v4 06/17] PCI: add SIOV and IMS capability detection

2020-10-30 Thread Dave Jiang
Intel Scalable I/O Virtualization (SIOV) enables sharing of I/O devices across isolated domains through PASID based sub-device partitioning. Interrupt Message Storage (IMS) enables devices to store the interrupt messages in a device-specific optimized manner without the scalability restrictions of

[PATCH v4 11/17] dmaengine: idxd: prep for virtual device commands

2020-10-30 Thread Dave Jiang
Update some of the device commands in order to support usage by the virtual device commands emulated by the vdcm. Expose some of the commands' raw status so the virtual commands can utilize them accordingly. Signed-off-by: Dave Jiang --- drivers/dma/idxd/cdev.c |2 + drivers/dma/idxd/devic

[PATCH v4 13/17] dmaengine: idxd: ims setup for the vdcm

2020-10-30 Thread Dave Jiang
Add setup for IMS enabling for the mediated device. On the actual hardware the MSIX vector 0 is misc interrupt and handles events such as administrative command completion, error reporting, performance monitor overflow, and etc. The MSIX vectors 1...N are used for descriptor completion interrupts.

[PATCH v4 17/17] dmaengine: idxd: add error notification from host driver to mediated device

2020-10-30 Thread Dave Jiang
When a device error occurs, the mediated device need to be notified in order to notify the guest of device error. Add support to notify the specific mdev when an error is wq specific and broadcast errors to all mdev when it's a generic device error. Signed-off-by: Dave Jiang --- drivers/dma/idxd

[PATCH v4 03/17] dmaengine: idxd: add theory of operation documentation for idxd mdev

2020-10-30 Thread Dave Jiang
Add idxd vfio mediated device theory of operation documentation. Provide description on mdev design, usage, and why vfio mdev was chosen. Reviewed-by: Ashok Raj Reviewed-by: Kevin Tian Signed-off-by: Dave Jiang --- Documentation/driver-api/vfio/mdev-idxd.rst | 404 +++

[PATCH v4 16/17] dmaengine: idxd: add new wq state for mdev

2020-10-30 Thread Dave Jiang
When a dedicated wq is enabled as mdev, we must disable the wq on the device in order to program the pasid to the wq. Introduce a wq state IDXD_WQ_LOCKED that is software state only in order to prevent the user from modifying the configuration while mdev wq is in this state. While in this state, th

[PATCH v4 00/17] Add VFIO mediated device support and DEV-MSI support for the idxd driver

2020-10-30 Thread Dave Jiang
- Would like to acquire Reviewed-by tags from Thomas for MSI and IMS related bits. - Would like to acquire for Reviewed-by tags from Alex and/or Kirti for the VFIO mdev driver bits. - Would like to acquire for Reviewed-by tag from Bjorn for PCI common bits - Would like to acquire 5.11 kernel acce

[PATCH v4 10/17] dmaengine: idxd: add emulation rw routines

2020-10-30 Thread Dave Jiang
Add emulation routines for PCI config read/write, MMIO read/write, and interrupt handling routine for the emulated device. The rw routines are called when PCI config read/writes or BAR0 mmio read/writes and being issued by the guest kernel through KVM/qemu. Because we are supporting read-only conf

[PATCH v4 14/17] dmaengine: idxd: add mdev type as a new wq type

2020-10-30 Thread Dave Jiang
Add "mdev" wq type and support helpers. The mdev wq type marks the wq to be utilized as a VFIO mediated device. Signed-off-by: Dave Jiang --- drivers/dma/idxd/idxd.h |2 ++ drivers/dma/idxd/sysfs.c | 13 +++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH v2 2/2] uuid: Make guid_t completely internal type to the kernel

2020-10-30 Thread Andy Shevchenko
The guid_t type was defined in UAPI by mistake. Keep it an internal type and leave uuid_le UAPI for it's only user, i.e. MEI. Signed-off-by: Andy Shevchenko --- v2: converted uuid_le_cmp() to old type include/linux/uuid.h | 20 include/uapi/linux/uuid.h | 14 +--

[PATCH v2 1/2] modpost: Mark uuid_le type only for MEI

2020-10-30 Thread Andy Shevchenko
The uuid_le type is used only for MEI ABI, do not advertise it for others. Due to above, bury add_uuid() in its only user. Signed-off-by: Andy Shevchenko --- v2: no changes scripts/mod/file2alias.c | 30 +- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git

Re: [PATCH -next] fs: Fix memory leaks in do_renameat2() error paths

2020-10-30 Thread Al Viro
On Fri, Oct 30, 2020 at 12:46:26PM -0600, Jens Axboe wrote: > See other reply, it's being posted soon, just haven't gotten there yet > and it wasn't ready. > > It's a prep patch so we can call do_renameat2 and pass in a filename > instead. The intent is not to have any functional changes in that

Re: [PATCH] sched/fair: remove the spin_lock operations

2020-10-30 Thread Benjamin Segall
Hui Su writes: > Since 'ab93a4bc955b ("sched/fair: Remove > distribute_running fromCFS bandwidth")',there is > nothing to protect between raw_spin_lock_irqsave/store() > in do_sched_cfs_slack_timer(). > > So remove it. Reviewed-by: Ben Segall (I might nitpick the subject to be clear that it sh

Re: [PATCH net] net: dsa: qca8k: Fix port MTU setting

2020-10-30 Thread Andrew Lunn
On Fri, Oct 30, 2020 at 06:33:15PM +, Jonathan McDowell wrote: > The qca8k only supports a switch-wide MTU setting, and the code to take > the max of all ports was only looking at the port currently being set. > Fix to examine all ports. > > Reported-by: DENG Qingfang > Fixes: f58d2598cf70 ("

[PATCH 3/3] x86/resctrl: Clean up unused function parameter in rmdir path

2020-10-30 Thread Xiaochen Shen
Previous commit ("x86/resctrl: Remove superfluous kernfs_get() calls to prevent refcount leak") removed superfluous kernfs_get() calls in rdtgroup_ctrl_remove() and rdtgroup_rmdir_ctrl(). That change resulted in an unused function parameter to these two functions. Clean up the unused function par

Re: [PATCH] ASoC: qcom: MSM8996 depends on COMMON_CLK

2020-10-30 Thread Mark Brown
On Fri, Oct 30, 2020 at 11:31:25AM -0700, Randy Dunlap wrote: > Ping. I am still seeing this kconfig warning in linux-next 20201030. Please don't send content free pings and please allow a reasonable time for review. People get busy, go on holiday, attend conferences and so on so unle

[PATCH 2/3] x86/resctrl: Add necessary kernfs_put() calls to prevent refcount leak

2020-10-30 Thread Xiaochen Shen
On resource group creation via a mkdir an extra kernfs_node reference is obtained by kernfs_get() to ensure that the rdtgroup structure remains accessible for the rdtgroup_kn_unlock() calls where it is removed on deletion. Currently the extra kernfs_node reference count is only dropped by kernfs_pu

Re: [PATCH -next] fs: Fix memory leaks in do_renameat2() error paths

2020-10-30 Thread Jens Axboe
On 10/30/20 12:42 PM, Al Viro wrote: > On Fri, Oct 30, 2020 at 11:24:07AM -0400, Qian Cai wrote: >> We will need to call putname() before do_renameat2() returning -EINVAL >> to avoid memory leaks. >> >> Fixes: 3c5499fa56f5 ("fs: make do_renameat2() take struct filename") >> Signed-off-by: Qian Cai

[PATCH 1/3] x86/resctrl: Remove superfluous kernfs_get() calls to prevent refcount leak

2020-10-30 Thread Xiaochen Shen
Willem reported growing of kernfs_node_cache entries in slabtop when repeatedly creating and removing resctrl subdirectories as well as when repeatedly mounting and unmounting resctrl filesystem. On resource group (control as well as monitoring) creation via a mkdir an extra kernfs_node reference

Re: [PATCH v3 1/1] dt-bindings: timer: Add new OST support for the upcoming new driver.

2020-10-30 Thread Rob Herring
On Mon, 26 Oct 2020 23:58:42 +0800, 周琰杰 (Zhou Yanjie) wrote: > The new OST has one global timer and two or four percpu timers, so there > will be three combinations in the upcoming new OST driver: the original > GLOBAL_TIMER + PERCPU_TIMER, the new GLOBAL_TIMER + PERCPU_TIMER0/1 and > GLOBAL_TIMER

Re: [PATCH] dma-mapping: Fix 32-bit overflow with CONFIG_ARM_LPAE=n

2020-10-30 Thread Rob Herring
On Thu, Oct 29, 2020 at 04:59:18PM +0100, Christoph Hellwig wrote: > On Tue, Oct 27, 2020 at 08:55:51AM +0100, Christoph Hellwig wrote: > > Looks good: > > > > Reviewed-by: Christoph Hellwig > > > > Rob and Frank: do you want to take this through the OF tree, or should > > I queue it up in the d

Re: [PATCH -next] fs: Fix memory leaks in do_renameat2() error paths

2020-10-30 Thread Al Viro
On Fri, Oct 30, 2020 at 11:24:07AM -0400, Qian Cai wrote: > We will need to call putname() before do_renameat2() returning -EINVAL > to avoid memory leaks. > > Fixes: 3c5499fa56f5 ("fs: make do_renameat2() take struct filename") > Signed-off-by: Qian Cai May I ask where has the original commit b

[PATCH v4] mm/oom_kill: change comment and rename is_dump_unreclaim_slabs()

2020-10-30 Thread Hui Su
Change the comment of is_dump_unreclaim_slabs(), it just check whether nr_unreclaimable slabs amount is greater than user memory, and explain why we dump unreclaim slabs. Rename it to should_dump_unreclaim_slab() maybe better. Signed-off-by: Hui Su --- mm/oom_kill.c | 14 -- 1 file

Re: [PATCH v2 2/2] drm: dt-bindings: adi: axi-hdmi-tx: Add DT bindings for axi-hdmi-tx

2020-10-30 Thread Rob Herring
On Mon, 26 Oct 2020 08:41:06 +0200, Bogdan Togorean wrote: > Add YAML device tree bindings for Analog Devices Inc. AXI HDMI TX > IP core DRM driver. > > Signed-off-by: Bogdan Togorean > --- > .../bindings/display/adi/adi,axi-hdmi-tx.yaml | 72 +++ > 1 file changed, 72 insertions(

Re: general protection fault in security_inode_getattr

2020-10-30 Thread Dmitry Vyukov
On Fri, Oct 30, 2020 at 2:02 PM Miklos Szeredi wrote: > > On Mon, Aug 24, 2020 at 11:00 PM Ondrej Mosnacek wrote: > > > > On Mon, Aug 24, 2020 at 9:37 PM syzbot > > wrote: > > > syzbot has found a reproducer for the following issue on: > > > > Looping in fsdevel and OverlayFS maintainers, as thi

[PATCH 1/3] x86/resctrl: Remove superfluous kernfs_get() calls to prevent refcount leak

2020-10-30 Thread Xiaochen Shen
Willem reported growing of kernfs_node_cache entries in slabtop when repeatedly creating and removing resctrl subdirectories as well as when repeatedly mounting and unmounting resctrl filesystem. On resource group (control as well as monitoring) creation via a mkdir an extra kernfs_node reference

Re: [PATCH] mm/compaction: count pages and stop correctly during page isolation.

2020-10-30 Thread Zi Yan
On 30 Oct 2020, at 14:33, Yang Shi wrote: > On Fri, Oct 30, 2020 at 6:36 AM Michal Hocko wrote: >> >> On Fri 30-10-20 08:20:50, Zi Yan wrote: >>> On 30 Oct 2020, at 5:43, Michal Hocko wrote: >>> [Cc Vlastimil] On Thu 29-10-20 16:04:35, Zi Yan wrote: > From: Zi Yan > >

[PATCH v3 1/2] mm/compaction: count pages and stop correctly during page isolation.

2020-10-30 Thread Zi Yan
From: Zi Yan In isolate_migratepages_block, when cc->alloc_contig is true, we are able to isolate compound pages, nr_migratepages and nr_isolated did not count compound pages correctly, causing us to isolate more pages than we thought. Count compound pages as the number of base pages they contain

[PATCH v3 2/2] mm/compaction: stop isolation if too many pages are isolated and we have pages to migrate.

2020-10-30 Thread Zi Yan
From: Zi Yan In isolate_migratepages_block, if we have too many isolated pages and nr_migratepages is not zero, we should try to migrate what we have without wasting time on isolating. Fixes: 1da2f328fa64 (“mm,thp,compaction,cma: allow THP migration for CMA allocations”) Suggested-by: Vlastimil

[PATCH v2 4/4] ARM: dts: at91: kizbox: switch to new pwm-atmel-tcb binding

2020-10-30 Thread Alexandre Belloni
Switch to the new pwm-atmel-tcb binding that avoid wasting TCB channels. Cc: Antoine Aubert Signed-off-by: Alexandre Belloni --- arch/arm/boot/dts/at91-kizbox.dts | 45 --- 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/arch/arm/boot/dts/at91-kizbox.

[PATCH v2 0/4] pwm: atmel-tcb: rework device tree binding

2020-10-30 Thread Alexandre Belloni
Hello, This was sent as part of a 58 patches series back in 2017. The bindings were agreed upon back then: https://lore.kernel.org/linux-arm-kernel/20170607211752.avts3cofvac7ks3q@rob-hp-laptop/ There is still only one user of atmel,tcb-pwm in the tree and I still think it is worth doing that ch

[PATCH v2 3/4] pwm: atmel-tcb: add sama5d2 support

2020-10-30 Thread Alexandre Belloni
Add sama5d2 support. The sama5d2 has a new clock input, its gclk. Index 0 of the clock selector is the gclk instead of the peripheral clock divided by 2. For now, the gclk is not used because the peripheral clock divided by 8 already gives a 9.6ns resolution which is enough for most use cases. Si

[PATCH 0/3] Fix kernfs node reference count leak issues

2020-10-30 Thread Xiaochen Shen
Fix several kernfs node reference count leak issues: (1) Remove superfluous kernfs_get() calls to prevent refcount leak (2) Add necessary kernfs_put() calls to prevent refcount leak (3) Follow-up cleanup for the change in previous patch. Xiaochen Shen (3): x86/resctrl: Remove superfluous kernfs

[PATCH v2 1/4] dt-bindings: microchip: atmel,at91rm9200-tcb: add atmel,tcb-pwm

2020-10-30 Thread Alexandre Belloni
Move the TCB pwm nodes under their parent. This removes the need for the tc-block property as there is now a child-parent relationship between the TC channel and the TC block. Move the documentation to the main file. Signed-off-by: Alexandre Belloni --- Changes in v2: - rework commit message -

[PATCH v2 2/4] pwm: atmel-tcb: switch to new binding

2020-10-30 Thread Alexandre Belloni
The PWM is now a subnode of the used TCB. This is cleaner and it mainly allows to stop wasting TCB channels when only 2 or 4 PWMs are used. This also removes the atmel_tclib dependency Cc: Thierry Reding Cc: linux-...@vger.kernel.org Signed-off-by: Alexandre Belloni --- drivers/pwm/Kconfig

Re: [RFC 3/3] pinctl: mt7622: drop pwm ch7 as mt7622 only has 6 channels

2020-10-30 Thread Sean Wang
> > mt7622 is reported by mediatek to have only 6 pwm channels > > so drop pindefines for 7th channel > > > > Signed-off-by: Frank Wunderlich > > I can merge this patch to the pinctrl tree if I get some kind of > review response from one of the Mediatek maintainers. > After confirming with the in

Re: WARNING in close_fs_devices (2)

2020-10-30 Thread Dmitry Vyukov
On Fri, Oct 30, 2020 at 3:01 PM Anand Jain wrote: > On 30/10/20 6:10 pm, Dmitry Vyukov wrote: > > On Tue, Sep 22, 2020 at 2:37 PM Anand Jain wrote: > >> > >> On 18/9/20 7:22 pm, syzbot wrote: > >>> Hello, > >>> > >>> syzbot found the following issue on: > >>> > >>> HEAD commit:e4c26faa Merge

Re: [PATCH v1 2/2] uuid: Make guid_t completely internal type to the kernel

2020-10-30 Thread Andy Shevchenko
On Fri, Oct 30, 2020 at 08:28:47PM +0200, Andy Shevchenko wrote: > The guid_t type was defined in UAPI by mistake. > Keep it an internal type and leave uuid_le UAPI > for it's only user, i.e. MEI. ... > static inline int uuid_le_cmp(const guid_t u1, const guid_t u2) > { > return memcmp(&u

Re: INFO: task hung in io_uring_setup

2020-10-30 Thread Dmitry Vyukov
On Fri, Oct 30, 2020 at 3:01 PM Jens Axboe wrote: > > On 10/30/20 4:01 AM, Dmitry Vyukov wrote: > > On Thu, Sep 3, 2020 at 1:44 PM Jens Axboe wrote: > >> > >> On 9/3/20 5:15 AM, Hillf Danton wrote: > >>> > >>> Thu, 03 Sep 2020 01:38:15 -0700 > syzbot found the following issue on: > > >>

Re: [PATCH] mm/compaction: count pages and stop correctly during page isolation.

2020-10-30 Thread Yang Shi
On Fri, Oct 30, 2020 at 6:36 AM Michal Hocko wrote: > > On Fri 30-10-20 08:20:50, Zi Yan wrote: > > On 30 Oct 2020, at 5:43, Michal Hocko wrote: > > > > > [Cc Vlastimil] > > > > > > On Thu 29-10-20 16:04:35, Zi Yan wrote: > > >> From: Zi Yan > > >> > > >> In isolate_migratepages_block, when cc->a

[PATCH net] net: dsa: qca8k: Fix port MTU setting

2020-10-30 Thread Jonathan McDowell
The qca8k only supports a switch-wide MTU setting, and the code to take the max of all ports was only looking at the port currently being set. Fix to examine all ports. Reported-by: DENG Qingfang Fixes: f58d2598cf70 ("net: dsa: qca8k: implement the port MTU callbacks") Cc: sta...@vger.kernel.org

[PATCH net-next] net: avoid unneeded UDP L4 and fraglist GSO resegmentation

2020-10-30 Thread Alexander Lobakin
Commit 9fd1ff5d2ac7 ("udp: Support UDP fraglist GRO/GSO.") added a support for fraglist UDP L4 and fraglist GSO not only for local traffic, but also for forwarding. This works well on simple setups, but when any logical netdev (e.g. VLAN) is present, kernel stack always performs software resegmenta

Re: [PATCH 1/2] dt-bindings: Fix entry name for I/O High Voltage property

2020-10-30 Thread Rob Herring
On Mon, 26 Oct 2020 12:09:01 +0530, Vidya Sagar wrote: > Correct the name of the I/O High Voltage Property from > 'nvidia,io-high-voltage' to 'nvidia,io-hv'. > > Fixes: 2585a584f844 ("pinctrl: Add Tegra194 pinctrl DT bindings") > Signed-off-by: Vidya Sagar > --- > .../devicetree/bindings/pinctrl

Re: [PATCH] ASoC: qcom: MSM8996 depends on COMMON_CLK

2020-10-30 Thread Randy Dunlap
06,6 +106,7 @@ config SND_SOC_QDSP6 > config SND_SOC_MSM8996 > tristate "SoC Machine driver for MSM8996 and APQ8096 boards" > depends on QCOM_APR > + depends on COMMON_CLK > select SND_SOC_QDSP6 > select SND_SOC_QCOM_COMMON > help > Ping. I am still seeing this kconfig warning in linux-next 20201030. -- ~Randy

Re: [PATCH 1/2] dt-bindings: pci: layerscape-pci: Add compatible strings for LX2160A rev2

2020-10-30 Thread Rob Herring
On Mon, 26 Oct 2020 13:14:47 +0800, Zhiqiang Hou wrote: > From: Hou Zhiqiang > > Add PCIe Endpoint mode compatible string "fsl,lx2160ar2-pcie-ep" > > Signed-off-by: Hou Zhiqiang > --- > Documentation/devicetree/bindings/pci/layerscape-pci.txt | 1 + > 1 file changed, 1 insertion(+) > Acked-b

Re: [RFC 1/3] dt-bindings: clock: imx8mn: Add media blk_ctl clock IDs

2020-10-30 Thread Rob Herring
On Sat, 24 Oct 2020 11:20:13 -0500, Adam Ford wrote: > These will be used by the imx8mn for blk_ctl driver. > > Signed-off-by: Adam Ford > --- > include/dt-bindings/clock/imx8mn-clock.h | 11 +++ > 1 file changed, 11 insertions(+) > Acked-by: Rob Herring

Re: [RFC 2/3] dt-bindings: reset: imx8mn: Add media blk_ctl reset IDs

2020-10-30 Thread Rob Herring
On Sat, 24 Oct 2020 11:20:14 -0500, Adam Ford wrote: > These will be used by the imx8mn for blk_ctl driver. > > Signed-off-by: Adam Ford > --- > include/dt-bindings/reset/imx8mn-reset.h | 22 ++ > 1 file changed, 22 insertions(+) > Acked-by: Rob Herring

[PATCH v1 1/2] modpost: Mark uuid_le type only for MEI

2020-10-30 Thread Andy Shevchenko
The uuid_le type is used only for MEI ABI, do not advertise it for others. Due to above, bury add_uuid() in its only user. Signed-off-by: Andy Shevchenko --- scripts/mod/file2alias.c | 30 +- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/scripts/mod/

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