Re: [PATCH] docs/memory-barriers.txt: Fix a typo in CPU MEMORY BARRIERS section

2020-09-14 Thread Paul E. McKenney
On Fri, Sep 11, 2020 at 03:02:19PM +0100, Will Deacon wrote: > On Wed, Sep 09, 2020 at 02:53:40PM +0800, Fox Chen wrote: > > Commit 39323c6 smp_mb__{before,after}_atomic(): update Documentation > > has a typo in CPU MEORY BARRIERS section: > > "RMW functions that do not imply are memory barrier

[PATCH net-next 3/5] rxrpc: Fix rxrpc_bundle::alloc_error to be signed

2020-09-14 Thread David Howells
The alloc_error field in the rxrpc_bundle struct should be signed as it has negative error codes assigned to it. Checks directly on it may then fail, and may produce a warning like this: net/rxrpc/conn_client.c:662 rxrpc_wait_for_channel() warn: 'bundle->alloc_error' is unsigned

Re: [PATCH 02/26] perf: Introduce mmap3 version of mmap event

2020-09-14 Thread Arnaldo Carvalho de Melo
Em Mon, Sep 14, 2020 at 11:08:11AM +0200, pet...@infradead.org escreveu: > On Sun, Sep 13, 2020 at 11:41:00PM -0700, Stephane Eranian wrote: > > On Sun, Sep 13, 2020 at 2:03 PM Jiri Olsa wrote: > > what happens if I set mmap3 and mmap2? > > > > I think using mmap3 for every mmap may be overkill

Re: [PATCH v10 05/16] s390/vfio-ap: implement in-use callback for vfio_ap driver

2020-09-14 Thread Cornelia Huck
On Fri, 21 Aug 2020 15:56:05 -0400 Tony Krowiak wrote: > Let's implement the callback to indicate when an APQN > is in use by the vfio_ap device driver. The callback is > invoked whenever a change to the apmask or aqmask would > result in one or more queue devices being removed from the driver.

Re: [PATCH 02/26] perf: Introduce mmap3 version of mmap event

2020-09-14 Thread Arnaldo Carvalho de Melo
Em Sun, Sep 13, 2020 at 11:41:00PM -0700, Stephane Eranian escreveu: > On Sun, Sep 13, 2020 at 2:03 PM Jiri Olsa wrote: > > > > Add new version of mmap event. The MMAP3 record is an > > augmented version of MMAP2, it adds build id value to > > identify the exact binary object behind memory map: >

Re: [PATCH v10 04/16] s390/zcrypt: driver callback to indicate resource in use

2020-09-14 Thread Cornelia Huck
On Fri, 21 Aug 2020 15:56:04 -0400 Tony Krowiak wrote: > Introduces a new driver callback to prevent a root user from unbinding > an AP queue from its device driver if the queue is in use. The intent of > this callback is to provide a driver with the means to prevent a root user > from

Re: [PATCH] MAINTAINERS: make linux-mediatek list remarks consistent

2020-09-14 Thread Lukas Bulwahn
On Mon, 14 Sep 2020, David Woodhouse wrote: > On Mon, 2020-09-14 at 17:23 +0200, Lukas Bulwahn wrote: > > > # /usr/lib/mailman/bin/config_list -o- linux-mediatek | grep -B5 > > > ^generic_nonmember_action > > > # legal values are: > > > #0 = "Accept" > > > #1 = "Hold" > > > #2 =

[PATCH net-next 0/5] rxrpc: Fixes for the connection manager rewrite

2020-09-14 Thread David Howells
namespace exit. (5) Fix an overget of the bundle when setting up a new client conn. The patches are tagged here: git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git rxrpc-next-20200914 and can also be found on this branch: http://git.kernel.org/cgit/linux

Re: [PATCH v3 1/2] cper, apei, mce: Pass x86 CPER through the MCA handling chain

2020-09-14 Thread Borislav Petkov
On Thu, Sep 03, 2020 at 06:45:30PM -0500, Smita Koralahalli wrote: > Linux Kernel uses ACPI Boot Error Record Table (BERT) to report fatal > errors that occurred in a previous boot. The MCA errors in the BERT are > reported using the x86 Processor Error Common Platform Error Record (CPER) >

Re: [PATCH] MAINTAINERS: make linux-mediatek list remarks consistent

2020-09-14 Thread David Woodhouse
On Mon, 2020-09-14 at 17:23 +0200, Lukas Bulwahn wrote: > > # /usr/lib/mailman/bin/config_list -o- linux-mediatek | grep -B5 > > ^generic_nonmember_action > > # legal values are: > > #0 = "Accept" > > #1 = "Hold" > > #2 = "Reject" > > #3 = "Discard" > > generic_nonmember_action =

Re: [External] Re: [PATCH v2] mm/vmscan: fix infinite loop in drop_slab_node

2020-09-14 Thread Michal Hocko
On Mon 14-09-20 23:02:15, Chunxin Zang wrote: > On Mon, Sep 14, 2020 at 9:47 PM Michal Hocko wrote: > > > On Mon 14-09-20 21:25:59, Chunxin Zang wrote: > > > On Mon, Sep 14, 2020 at 5:30 PM Michal Hocko wrote: > > > > > > > The subject is misleading because this patch doesn't fix an infinite >

Re: [PATCH v4 2/3] mm/memcg: Simplify mem_cgroup_get_max()

2020-09-14 Thread Michal Hocko
On Mon 14-09-20 11:09:28, Waiman Long wrote: > The mem_cgroup_get_max() function used to get memory+swap max from > both the v1 memsw and v2 memory+swap page counters & return the maximum > of these 2 values. This is redundant and it is more efficient to just > get either the v1 or the v2 values

Re: [PATCH 02/26] perf: Introduce mmap3 version of mmap event

2020-09-14 Thread Arnaldo Carvalho de Melo
Em Mon, Sep 14, 2020 at 02:38:27PM +0900, Namhyung Kim escreveu: > On Mon, Sep 14, 2020 at 6:03 AM Jiri Olsa wrote: > > Add new version of mmap event. The MMAP3 record is an > > augmented version of MMAP2, it adds build id value to > > identify the exact binary object behind memory map: > >

Re: [v4,0/5] watchdog: mt8192: add wdt support

2020-09-14 Thread Guenter Roeck
On 9/10/20 8:26 PM, Nicolas Boichat wrote: > Matthias, Guenter, > > These patches have all been reviewed (apart from fairly trivial 2/5), > which maintainer should be picking those up? > I don't see an Acked-by or Reviewed-by from a DT maintainer. We'll have to wait for feedback from Rob.

Re: [PATCH V6 1/1] Softirq:avoid large sched delay from the pending softirqs

2020-09-14 Thread Qais Yousef
On 09/14/20 16:14, pet...@infradead.org wrote: > On Mon, Sep 14, 2020 at 12:27:35PM +0100, Qais Yousef wrote: > > What does PREEMPT_RT do to deal with softirqs delays? > > Makes the lot preemptible, you found the patch below. > > > I have tried playing with enabling threadirqs, which AFAIU

Re: a saner API for allocating DMA addressable pages v2

2020-09-14 Thread Matthew Wilcox
On Mon, Sep 14, 2020 at 04:44:16PM +0200, Christoph Hellwig wrote: > I'm still a little unsure about the API naming, as alloc_pages sort of > implies a struct page return value, but we return a kernel virtual > address. Erm ... dma_alloc_pages() returns a struct page, so is this sentence stale?

Re: [PATCH v4 1/1] Input: atmel_mxt_ts - implement I2C retries

2020-09-14 Thread Dmitry Osipenko
14.09.2020 16:49, Andy Shevchenko пишет: > On Sun, Sep 13, 2020 at 3:57 PM Dmitry Osipenko wrote: >> >> 13.09.2020 11:43, Andy Shevchenko пишет: >>> ... >>> + bool retried = false; >> >>> I thought Dmitry wants that to be retry >> >> In the comment to v2 you suggested to negate the

Re: xconfig is broken again on Qt5

2020-09-14 Thread Masahiro Yamada
On Sun, Sep 13, 2020 at 10:21 PM Maxim Levitsky wrote: > > I hate to say it, but xconfig got broken again. > > After commit 68fd110b3e7e2 ("kconfig: qconf: remove redundant help in the > info view") > help description disappered completely from xconfig (both normal and split > mode) > > I

Re: [PATCH] MAINTAINERS: make linux-mediatek list remarks consistent

2020-09-14 Thread Lukas Bulwahn
On Mon, 14 Sep 2020, David Woodhouse wrote: > On Mon, 2020-09-14 at 16:57 +0200, Lukas Bulwahn wrote: > > Well, I am happy to send any PATCH v2. I guess we, you, David, Matthias > > and I, now just need to determine if the list is moderated or not. > > It really isn't. > > #

[PATCH 17/17] firewire-ohci: use dma_alloc_pages

2020-09-14 Thread Christoph Hellwig
Use dma_alloc_pages to allocate DMAable pages instead of hoping that the architecture either has GFP_DMA32 or not more than 4G of memory. Signed-off-by: Christoph Hellwig --- drivers/firewire/ohci.c | 26 +++--- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git

Re: [PATCH v2 04/11] USB: core: hub.c: use usb_control_msg_send() in a few places

2020-09-14 Thread Greg Kroah-Hartman
On Mon, Sep 07, 2020 at 11:08:58AM -0400, Alan Stern wrote: > On Mon, Sep 07, 2020 at 04:51:01PM +0200, Greg Kroah-Hartman wrote: > > There are a few calls to usb_control_msg() that can be converted to use > > usb_control_msg_send() instead, so do that in order to make the error > > checking a bit

[PATCH 16/17] dma-iommu: implement ->alloc_noncoherent

2020-09-14 Thread Christoph Hellwig
Implement the alloc_noncoherent method to provide memory that is neither coherent not contiguous. Signed-off-by: Christoph Hellwig --- drivers/iommu/dma-iommu.c | 41 +++ 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/drivers/iommu/dma-iommu.c

[PATCH v2 1/2] arm64: dts: ti: k3-j721e-main: Add PCIe device tree nodes

2020-09-14 Thread Kishon Vijay Abraham I
Add PCIe device tree nodes (both RC and EP) for the four PCIe instances here. Also add the missing translations required in the "ranges" DT property of cbass_main to access all the four PCIe instances. Signed-off-by: Kishon Vijay Abraham I --- arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 232

[PATCH v2 0/2] Add DT to get PCIe working in J721E SoC

2020-09-14 Thread Kishon Vijay Abraham I
Now that J721E PCIe support is merged (including the YAML bindings), add PCIe device tree nodes to get PCIe working in J721E SoC both in RC mode and EP mode. Series has been rebased to: git://git.kernel.org/pub/scm/linux/kernel/git/nmenon/linux ti-k3-dts-next Changes from v1: 1) Renamed all

[PATCH v2 2/2] arm64: dts: ti: k3-j721e-common-proc-board: Configure the PCIe instances

2020-09-14 Thread Kishon Vijay Abraham I
J721E Common Processor Board has PCIe connectors for the 1st three PCIe instances. Configure the three PCIe instances in RC mode and disable the 4th PCIe instance. Signed-off-by: Kishon Vijay Abraham I --- .../dts/ti/k3-j721e-common-proc-board.dts | 80 +++ 1 file changed,

Re: [RESEND PATCH v5 2/5] irqchip/irq-pruss-intc: Add a PRUSS irqchip driver for PRUSS interrupts

2020-09-14 Thread Marc Zyngier
On 2020-09-14 15:57, Grzegorz Jaszczyk wrote: On Sat, 12 Sep 2020 at 11:44, Marc Zyngier wrote: [...] > +static void pruss_intc_update_cmr(struct pruss_intc *intc, int evt, s8 ch) > +{ > + u32 idx, offset, val; > + > + idx = evt / CMR_EVT_PER_REG; > + offset = (evt %

Re: How to upload fpga firmware

2020-09-14 Thread Ulf Samuelsson
I just started looking at this for an application. My plan is to load my FPGAs already in u-boot, but I want them upgradeable when running linux as well. Since I am lazy of nature, I implemented an MTD driver for the FPGA in U-boot. This means that when I do "mtd list", I get List of MTD

[PATCH 15/17] dma-mapping: add new {alloc,free}_noncoherent dma_map_ops methods

2020-09-14 Thread Christoph Hellwig
This will allow IOMMU drivers to allocate non-contigous memory and return a vmapped virtual address. Signed-off-by: Christoph Hellwig --- include/linux/dma-mapping.h | 5 + kernel/dma/mapping.c| 33 +++-- 2 files changed, 32 insertions(+), 6 deletions(-)

Re: [PATCH 07/17] 53c700: improve non-coherent DMA handling

2020-09-14 Thread James Bottomley
On Mon, 2020-09-14 at 16:44 +0200, Christoph Hellwig wrote: > @@ -429,7 +430,7 @@ struct NCR_700_Host_Parameters { > for(i=0; i< (sizeof(A_##symbol##_used) / sizeof(__u32)); > i++) { \ > __u32 val = > bS_to_cpu((script)[A_##symbol##_used[i]]) + da; \ >

Re: [V9fs-developer] [PATCH RFC 0/4] 9p: fix open-unlink-f*syscall bug

2020-09-14 Thread Christian Schoenebeck
On Montag, 14. September 2020 14:43:25 CEST Greg Kurz wrote: > > So yes, looks like this also requires changes to the 9pfs 'local' fs > > driver on QEMU side: > > https://lists.nongnu.org/archive/html/qemu-devel/2016-06/msg07586.html > > > > Eric, Greg, would there be an easy way to establish

[PATCH 14/17] dma-mapping: add a new dma_alloc_pages API

2020-09-14 Thread Christoph Hellwig
This API is the equivalent of alloc_pages, except that the returned memory is guaranteed to be DMA addressable by the passed in device. The implementation will also be used to provide a more sensible replacement for DMA_ATTR_NON_CONSISTENT flag. Additionally dma_alloc_noncoherent is switched

Re: [PATCH v37 02/24] x86/cpufeatures: x86/msr: Add Intel SGX Launch Control hardware bits

2020-09-14 Thread Josh Poimboeuf
Hi Jarko, It looks like some of the patches weren't delivered to the lists. Patches 0, 1, 8, 9, and 17 seem to be missing. Lore agrees with me: https://lore.kernel.org/linux-sgx/20200911124019.42178-1-jarkko.sakki...@linux.intel.com/ On Fri, Sep 11, 2020 at 03:39:57PM +0300, Jarkko Sakkinen

Re: [PATCH] MAINTAINERS: make linux-mediatek list remarks consistent

2020-09-14 Thread Lukas Bulwahn
On Mon, 14 Sep 2020, David Woodhouse wrote: > > AFAICT the linux-mediatek list isn't configured to automatically > moderate messages from non-subscribers. Its generic_nonmember_action > setting is 'Accept'. That is the default setting for lists on > infradead.org and I strongly encourage list

Re: [PATCH] MAINTAINERS: make linux-mediatek list remarks consistent

2020-09-14 Thread David Woodhouse
On Mon, 2020-09-14 at 16:57 +0200, Lukas Bulwahn wrote: > Well, I am happy to send any PATCH v2. I guess we, you, David, Matthias > and I, now just need to determine if the list is moderated or not. It really isn't. # /usr/lib/mailman/bin/config_list -o- linux-mediatek | grep -B5

Re: [v4,2/5] arm64: dts: mt8183: update watchdog device node

2020-09-14 Thread Guenter Roeck
On 8/3/20 12:14 AM, Crystal Guo wrote: > The watchdog driver for MT8183 relies on DT data, so the fallback > compatible MT6589 won't work, need to update watchdog device node > to sync with watchdog dt-binding document. > > Signed-off-by: Crystal Guo Acked-by: Guenter Roeck > --- >

Re: [PATCH 11/17] sgiseeq: convert to dma_alloc_noncoherent

2020-09-14 Thread Matthew Wilcox
On Mon, Sep 14, 2020 at 04:44:27PM +0200, Christoph Hellwig wrote: > drivers/net/ethernet/i825xx/lasi_82596.c | 25 ++--- > drivers/net/ethernet/i825xx/lib82596.c | 114 ++- > drivers/net/ethernet/i825xx/sni_82596.c | 4 - > drivers/net/ethernet/seeq/sgiseeq.c | 28

[PATCH 13/17] dma-mapping: remove dma_cache_sync

2020-09-14 Thread Christoph Hellwig
All users are gone now, remove the API. Signed-off-by: Christoph Hellwig --- arch/mips/Kconfig | 1 - arch/mips/jazz/jazzdma.c| 1 - arch/mips/mm/dma-noncoherent.c | 6 -- arch/parisc/Kconfig | 1 - arch/parisc/kernel/pci-dma.c| 6 --

Re: [v4,4/5] dt-binding: mt8192: add toprgu reset-controller head file

2020-09-14 Thread Guenter Roeck
On 8/3/20 12:15 AM, Crystal Guo wrote: > add toprgu reset-controller head file for MT8192 platform > > Signed-off-by: Crystal Guo > Reviewed-by: Matthias Brugger Acked-by: Guenter Roeck > --- > .../reset-controller/mt8192-resets.h | 30 +++ > 1 file changed, 30

Re: [PATCH 24/26] perf tools: Add buildid-list --store option

2020-09-14 Thread Arnaldo Carvalho de Melo
Em Mon, Sep 14, 2020 at 03:42:55PM +0900, Namhyung Kim escreveu: > On Mon, Sep 14, 2020 at 6:05 AM Jiri Olsa wrote: > > > > Adding buildid-list --store option to populate > > .debug data with build id files. > > Hmm.. isn't it better to add it to the buildid-cache command? Yes, that is the

Re: [v4,1/5] dt-binding: mediatek: watchdog: fix the description of compatible

2020-09-14 Thread Guenter Roeck
On 8/3/20 12:14 AM, Crystal Guo wrote: > The watchdog driver for MT2712 and MT8183 relies on DT data, so > the fallback compatible MT6589 won't work. > > Signed-off-by: Crystal Guo > Reviewed-by: Matthias Brugger Reviewed-by: Guenter Roeck > --- >

[PATCH v5 12/14] arm64: usercopy: Add intermediate fixup routine

2020-09-14 Thread Oliver Swede
This adds an intermediate fixup routine that initiates an in-order byte-wise copy that is expected to fault for a second time, and then be redirected to the final fixup where the precise number of bytes remaining is obtained. As well as compatibility with the latest optimized copy routine, these

[PATCH v5 10/14] arm64: usercopy: Store the arguments on stack

2020-09-14 Thread Oliver Swede
Use the stack to preserve the initial arguments to the usercopy functions before the copy routine modifies the relevant registers. The values in x0 (dst), x1 (src) and x2 (count) may be modified in the code paths for large copy sizes, and saving them before the copy begins enables restoration by

Re: [v4,5/5] watchdog: mt8192: add wdt support

2020-09-14 Thread Guenter Roeck
On 8/3/20 12:15 AM, Crystal Guo wrote: > Add support for watchdog device found in MT8192 SoC > > Signed-off-by: Crystal Guo > Reviewed-by: Matthias Brugger Reviewed-by: Guenter Roeck > --- > drivers/watchdog/mtk_wdt.c | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git

[PATCH v5 09/14] arm64: Tidy up _asm_extable_faultaddr usage

2020-09-14 Thread Oliver Swede
From: Robin Murphy To match the way the USER() shorthand wraps _asm_extable entries, introduce USER_F() to wrap _asm_extable_faultaddr and clean up a bit. Signed-off-by: Robin Murphy Signed-off-by: Oliver Swede --- arch/arm64/include/asm/assembler.h | 4 ++ arch/arm64/lib/copy_from_user.S

[PATCH v5 07/14] arm64: Import latest version of Cortex Strings' strncmp

2020-09-14 Thread Oliver Swede
From: Sam Tebbs Import latest version of Cortex Strings' strncmp function. The upstream source is src/aarch64/strncmp.S as of commit 071fe283b28d in https://git.linaro.org/toolchain/cortex-strings.git. Signed-off-by: Sam Tebbs [ rm: update attribution, expand commit message ] Signed-off-by:

[PATCH v5 11/14] arm64: usercopy: Check for overlapping buffers in fixup

2020-09-14 Thread Oliver Swede
Check for overlapping source and destination buffers in the usercopy fixup before proceeding, and if this is the case then return from the fixup with the full copy size in x0. Imported optimized copy routines may contain the implementation of both memcpy() and memmov(), where the latter code path

[PATCH v5 08/14] arm64: Import latest optimization of memcpy

2020-09-14 Thread Oliver Swede
From: Sam Tebbs Import the latest memcpy implementation into memcpy, copy_{from, to and in}_user. The implementation of the user routines is separated into two forms: one for when UAO is enabled and one for when UAO is disabled, with the two being chosen between with a runtime patch. This avoids

[PATCH 11/17] sgiseeq: convert to dma_alloc_noncoherent

2020-09-14 Thread Christoph Hellwig
Use the new non-coherent DMA API including proper ownership transfers. This includes adding additional calls to dma_sync_desc_dev as the old syncing was rather ad-hoc. Thanks to Thomas Bogendoerfer for debugging the ownership transfer issues. Signed-off-by: Christoph Hellwig ---

[PATCH v5 00/14] Optimise and update memcpy, user copy and string routines

2020-09-14 Thread Oliver Swede
Hi all, In this version the backtracking fixups are replaced with a two-stage approach that maintains the accuracy in v4 and still uses the fault address, but provides a copy-routine-independent mechanism for determining the fault address. The same constraints on the fixup routine (the available

Re: [PATCH tip] KVM: nSVM: avoid freeing uninitialized pointers in svm_set_nested_state()

2020-09-14 Thread Sean Christopherson
On Mon, Sep 14, 2020 at 03:37:25PM +0200, Vitaly Kuznetsov wrote: > The save and ctl pointers are passed uninitialized to kfree() when > svm_set_nested_state() follows the 'goto out_set_gif' path. While > the issue could've been fixed by initializing these on-stack varialbles > to NULL, it seems

[PATCH v5 05/14] arm64: Import latest version of Cortex Strings' strcmp

2020-09-14 Thread Oliver Swede
From: Sam Tebbs Import the latest version of Cortex Strings' strcmp function. The upstream source is src/aarch64/strcmp.S as of commit 90b61261ceb4 in https://git.linaro.org/toolchain/cortex-strings.git. Signed-off-by: Sam Tebbs [ rm: update attribution, expand commit message ] Signed-off-by:

[PATCH v4 2/3] mm/memcg: Simplify mem_cgroup_get_max()

2020-09-14 Thread Waiman Long
The mem_cgroup_get_max() function used to get memory+swap max from both the v1 memsw and v2 memory+swap page counters & return the maximum of these 2 values. This is redundant and it is more efficient to just get either the v1 or the v2 values depending on which one is currently in use.

[PATCH 10/17] hal2: convert to dma_alloc_noncoherent

2020-09-14 Thread Christoph Hellwig
Use the new non-coherent DMA API including proper ownership transfers. This also means we can allocate the buffer memory with the proper direction instead of bidirectional. Signed-off-by: Christoph Hellwig --- sound/mips/hal2.c | 58 ++- 1 file

[PATCH AUTOSEL 5.4 01/22] NFSv4.1 handle ERR_DELAY error reclaiming locking state on delegation recall

2020-09-14 Thread Sasha Levin
From: Olga Kornievskaia [ Upstream commit 3d7a9520f0c3e6a68b6de8c5812fc8b6d7a52626 ] A client should be able to handle getting an ERR_DELAY error while doing a LOCK call to reclaim state due to delegation being recalled. This is a transient error that can happen due to server moving its volumes

[PATCH AUTOSEL 5.4 03/22] scsi: libfc: Fix for double free()

2020-09-14 Thread Sasha Levin
From: Javed Hasan [ Upstream commit 5a5b80f98534416b3b253859897e2ba1dc241e70 ] Fix for '>skb' double free. Link: https://lore.kernel.org/r/20200825093940.19612-1-jha...@marvell.com Reported-by: Dan Carpenter Signed-off-by: Javed Hasan Signed-off-by: Martin K. Petersen Signed-off-by: Sasha

[PATCH AUTOSEL 5.4 11/22] kobject: Drop unneeded conditional in __kobject_del()

2020-09-14 Thread Sasha Levin
From: Andy Shevchenko [ Upstream commit 07ecc6693f9157cf293da5d165c73fb28fd69bf4 ] __kobject_del() is called from two places, in one where kobj is dereferenced before and thus can't be NULL, and in the other the NULL check is done before call. Drop unneeded conditional in __kobject_del().

[RESEND PATCH V2 3/6] perf/x86/intel/uncore: Factor out uncore_pci_pmu_register()

2020-09-14 Thread kan . liang
From: Kan Liang The PMU registration in the uncore PCI sub driver is similar as the normal PMU registration for a PCI device. The codes to register a PCI PMU can be shared. Factor out uncore_pci_pmu_register(), which will be used later. The pci_set_drvdata() is not included in

Re: [PATCH v2] arm64/mm: Refactor {pgd, pud, pmd, pte}_ERROR()

2020-09-14 Thread Will Deacon
On Mon, 14 Sep 2020 09:47:30 +1000, Gavin Shan wrote: > The function __{pgd, pud, pmd, pte}_error() are introduced so that > they can be called by {pgd, pud, pmd, pte}_ERROR(). However, some > of the functions could never be called when the corresponding page > table level isn't enabled. For

[PATCH AUTOSEL 5.4 13/22] nvme-fc: cancel async events before freeing event struct

2020-09-14 Thread Sasha Levin
From: David Milburn [ Upstream commit e126e8210e950bb83414c4f57b3120ddb8450742 ] Cancel async event work in case async event has been queued up, and nvme_fc_submit_async_event() runs after event has been freed. Signed-off-by: David Milburn Reviewed-by: Keith Busch Reviewed-by: Sagi Grimberg

Re: [NEEDS-REVIEW] Re: [PATCH v11 25/25] x86/cet/shstk: Add arch_prctl functions for shadow stack

2020-09-14 Thread Dave Hansen
On 9/11/20 3:59 PM, Yu-cheng Yu wrote: ... > Here are the changes if we take the mprotect(PROT_SHSTK) approach. > Any comments/suggestions? I still don't like it. :) I'll also be much happier when there's a proper changelog to accompany this which also spells out the alternatives any why they

Re: [PATCH v6 04/12] KVM: SVM: Modify intercept_exceptions to generic intercepts

2020-09-14 Thread Sean Christopherson
On Sat, Sep 12, 2020 at 06:52:20PM +0200, Paolo Bonzini wrote: > On 11/09/20 21:28, Babu Moger wrote: > > diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c > > index 1a5f3908b388..11892e86cb39 100644 > > --- a/arch/x86/kvm/svm/svm.c > > +++ b/arch/x86/kvm/svm/svm.c > > @@ -1003,11

[PATCH 09/17] sgiwd93: convert to dma_alloc_noncoherent

2020-09-14 Thread Christoph Hellwig
Use the new non-coherent DMA API including proper ownership transfers. This also means we can allocate the memory as DMA_TO_DEVICE instead of bidirectional. Signed-off-by: Christoph Hellwig --- drivers/scsi/sgiwd93.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff

[PATCH block/for-next] iocost: fix infinite loop bug in adjust_inuse_and_calc_cost()

2020-09-14 Thread Tejun Heo
adjust_inuse_and_calc_cost() is responsible for reducing the amount of donated weights dynamically in period as the budget runs low. Because we don't want to do full donation calculation in period, we keep latching up inuse by INUSE_ADJ_STEP_PCT of the active weight of the cgroup until the

Re: [PATCH v6 00/12] SVM cleanup and INVPCID feature support

2020-09-14 Thread Sean Christopherson
On Sat, Sep 12, 2020 at 07:08:05PM +0200, Paolo Bonzini wrote: > Queued except for patch 9 with only some changes to the names (mostly > replacing "vector" with "word"). It should get to kvm.git on Monday or > Tuesday, please give it a shot. Belated vote for s/vector/word, I found

[PATCH 08/17] dma-mapping: add a new dma_alloc_noncoherent API

2020-09-14 Thread Christoph Hellwig
Add a new API to allocate and free memory that is guaranteed to be addressable by a device, but which potentially is not cache coherent for DMA. To transfer ownership to and from the device, the existing streaming DMA API calls dma_sync_single_for_device and dma_sync_single_for_cpu must be used.

[PATCH] nvme: tcp: fix kconfig dependency warning when !CRYPTO

2020-09-14 Thread Necip Fazil Yildiran
When NVME_TCP is enabled and CRYPTO is disabled, it results in the following Kbuild warning: WARNING: unmet direct dependencies detected for CRYPTO_CRC32C Depends on [n]: CRYPTO [=n] Selected by [y]: - NVME_TCP [=y] && INET [=y] && BLK_DEV_NVME [=y] The reason is that NVME_TCP selects

Re: mmotm 2020-09-13-21-39 uploaded (arch/x86/kernel/kvm.c)

2020-09-14 Thread Randy Dunlap
On 9/13/20 9:40 PM, a...@linux-foundation.org wrote: > The mm-of-the-moment snapshot 2020-09-13-21-39 has been uploaded to > >http://www.ozlabs.org/~akpm/mmotm/ > > mmotm-readme.txt says > > README for mm-of-the-moment: > > http://www.ozlabs.org/~akpm/mmotm/ > > This is a snapshot of my

Re: [PATCH v1] kernel.h: Move oops_in_progress to printk.h

2020-09-14 Thread Andy Shevchenko
On Mon, Sep 14, 2020 at 10:43:32AM +0200, Petr Mladek wrote: > On Fri 2020-09-11 20:02:02, Andy Shevchenko wrote: > > The oops_in_progress is defined in printk.c, so it's logical > > to move oops_in_progress to printk.h. > > > > Signed-off-by: Andy Shevchenko > > Yeah, it makes sense. > >

Re: KASAN: use-after-free Read in ucma_close (2)

2020-09-14 Thread Jason Gunthorpe
On Sat, Sep 12, 2020 at 09:35:14AM +0800, Hillf Danton wrote: > > Migrate is the cause, very tricky: > > > > CPU0 CPU1 > > ucma_destroy_id() > > ucma_migrate_id() > >ucma_get_ctx() > >

[PATCH 06/17] lib82596: move DMA allocation into the callers of i82596_probe

2020-09-14 Thread Christoph Hellwig
This allows us to get rid of the LIB82596_DMA_ATTR defined and prepare for untangling the coherent vs non-coherent DMA allocation API. Signed-off-by: Christoph Hellwig --- drivers/net/ethernet/i825xx/lasi_82596.c | 24 ++-- drivers/net/ethernet/i825xx/lib82596.c | 36

[PATCH 07/17] 53c700: improve non-coherent DMA handling

2020-09-14 Thread Christoph Hellwig
Switch the 53c700 driver to only use non-coherent descriptor memory if it really has to because dma_alloc_coherent fails. This doesn't matter for any of the platforms it runs on currently, but that will change soon. To help with this two new helpers to transfer ownership to and from the device

[PATCH] kconfig: qconf: revive help message in the info view

2020-09-14 Thread Masahiro Yamada
Since commit 68fd110b3e7e ("kconfig: qconf: remove redundant help in the info view"), the help message is no longer displayed. I intended to drop duplicated "Symbol:", "Type:", but precious info about help and reverse dependencies was lost too. Revive it now. "defined at" is contained in

Re: [RESEND PATCH 1/2] arm64: dts: ti: k3-j721e-main: Add PCIe device tree nodes

2020-09-14 Thread Kishon Vijay Abraham I
Hi Nishanth, On 14/09/20 6:44 pm, Nishanth Menon wrote: > On 17:43-20200914, Kishon Vijay Abraham I wrote: >> Hi Nishanth, >> >> On 14/09/20 5:22 pm, Nishanth Menon wrote: >>> On 16:53-20200914, Kishon Vijay Abraham I wrote: >>>> Hi Rob, >>>>

Re: [PATCH] MAINTAINERS: make linux-mediatek list remarks consistent

2020-09-14 Thread Lukas Bulwahn
On Mon, 14 Sep 2020, David Woodhouse wrote: > On Mon, 2020-09-14 at 16:01 +0200, Lukas Bulwahn wrote: > > > > I am not subscribed to linux-mediatek. When I sent an email to the list, > > > > it showed up really seconds later in the lore.kernel.org of the > > > > linux-mediatek public-inbox

[PATCH] soc: qcom: pdr: Fixup array type of get_domain_list_resp message

2020-09-14 Thread Sibi Sankar
The array type of get_domain_list_resp is incorrectly marked as NO_ARRAY. Due to which the following error was observed when using pdr helpers with the downstream proprietary pd-mapper. Fix this up by marking it as VAR_LEN_ARRAY instead. Err logs: qmi_decode_struct_elem: Fault in decoding: dl(2),

Re: [RESEND PATCH v5 4/5] irqchip/irq-pruss-intc: Implement irq_{get,set}_irqchip_state ops

2020-09-14 Thread Grzegorz Jaszczyk
On Sat, 12 Sep 2020 at 11:49, Marc Zyngier wrote: > > On Mon, 31 Aug 2020 16:09:17 +0100, > Grzegorz Jaszczyk wrote: > > > > From: David Lechner > > > > This implements the irq_get_irqchip_state and irq_set_irqchip_state > > callbacks for the TI PRUSS INTC driver. The set callback can be used >

Re: [PATCH v3 2/3] mm/memcg: Simplify mem_cgroup_get_max()

2020-09-14 Thread Waiman Long
On 9/14/20 10:47 AM, Michal Hocko wrote: On Mon 14-09-20 10:19:55, Waiman Long wrote: The mem_cgroup_get_max() function used to get memory+swap max from both the v1 memsw and v2 memory+swap page counters & return the maximum of these 2 values. This is redundant and it is more efficient to just

[PATCH 05/17] net/au1000-eth: stop using DMA_ATTR_NON_CONSISTENT

2020-09-14 Thread Christoph Hellwig
The au1000-eth driver contains none of the manual cache synchronization required for using DMA_ATTR_NON_CONSISTENT. From what I can tell it can be used on both dma coherent and non-coherent DMA platforms, but I suspect it has been buggy on the non-coherent platforms all along. Signed-off-by:

Re: [RESEND PATCH] staging: rtl8188eu: Fix else after return WARNING (checkpatch)

2020-09-14 Thread Dan Carpenter
On Sun, Sep 13, 2020 at 12:19:50PM +0530, Sohom Datta wrote: > >From 4c8c8f3ff7f4d711daea4ac3bb987fcecc7ef1ed Mon Sep 17 00:00:00 2001 > From: Sohom > Date: Sat, 12 Sep 2020 18:04:56 +0530 > Subject: [RESEND PATCH] staging: rtl8188eu: Fix else after return WARNING > (checkpatch) > > Fixed: >

Re: [PATCH v2 0/2] ASoC: ti: j721e-evm: Support for j7200 variant

2020-09-14 Thread Mark Brown
On Thu, 10 Sep 2020 15:41:08 +0300, Peter Ujfalusi wrote: > Changes since v1: > - Suffix the 2359296000 constant with 'u' to silence C90 warning > > When j7200 SOM is connected to the CPB, the audio setup is a bit different: > Only 48KHz family have clock path, 44.1KHz is not supported. > >

Re: [PATCH] ASoC: stm32: sai: add pm_runtime support

2020-09-14 Thread Mark Brown
On Fri, 11 Sep 2020 10:15:07 +0200, Olivier Moysan wrote: > Enable support of pm_runtime on STM32 SAI driver to allow > SAI power state monitoring. > pm_runtime_put_autosuspend() is called from ASoC framework > on pcm device close. > The pmdown_time delay is available in runtime context, and may

Re: [RESEND PATCH v5 2/5] irqchip/irq-pruss-intc: Add a PRUSS irqchip driver for PRUSS interrupts

2020-09-14 Thread Grzegorz Jaszczyk
On Sat, 12 Sep 2020 at 11:44, Marc Zyngier wrote: > > On Mon, 31 Aug 2020 16:09:15 +0100, > Grzegorz Jaszczyk wrote: > > > > The Programmable Real-Time Unit Subsystem (PRUSS) contains a local > > interrupt controller (INTC) that can handle various system input events > > and post interrupts back

Re: [PATCH v2 1/4] mtd: spi-nor: cleanup common code

2020-09-14 Thread Pratyush Yadav
On 14/09/20 01:09PM, Michael Walle wrote: > Hi Pratyush, > > Am 2020-09-14 11:40, schrieb Pratyush Yadav: > > Hi Michael, > > > > *sigh* This patch will cause a _lot_ of conflicts with my series [0]. It > > should hopefully go in the next merge window so maybe you can rebase on > > top of it?

[PATCH 04/17] drm/nouveau/gk20a: stop setting DMA_ATTR_NON_CONSISTENT

2020-09-14 Thread Christoph Hellwig
DMA_ATTR_NON_CONSISTENT is a no-op except on PARISC and some mips configs, so don't set it in this ARM specific driver part. Signed-off-by: Christoph Hellwig --- drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

Re: [PATCH REBASE] spi: sprd: Simplify with dev_err_probe()

2020-09-14 Thread Mark Brown
On Thu, 10 Sep 2020 18:07:06 +0200, Krzysztof Kozlowski wrote: > Common pattern of handling deferred probe can be simplified with > dev_err_probe(). Less code and the error value gets printed. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/1]

Re: [PATCH 1/4] dt-bindings: spi: Add compatible string for brcmstb SoCs

2020-09-14 Thread Mark Brown
On Thu, 10 Sep 2020 08:25:36 -0700, Ray Jui wrote: > Add compatible string for brcmstb 7445 SoCs. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks! [1/4] spi: Add compatible string for brcmstb SoCs commit:

Re: [PATCH] spi: spi-geni-qcom: Don't wait to start 1st transfer if transmitting

2020-09-14 Thread Mark Brown
On Sat, 12 Sep 2020 11:17:25 -0700, Douglas Anderson wrote: > If we're sending bytes over SPI, we know the FIFO is empty at the > start of the transfer. There's no reason to wait for the interrupt > telling us to start--we can just start right away. Then if we > transmit everything in one swell

[PATCH 03/17] drm/exynos: stop setting DMA_ATTR_NON_CONSISTENT

2020-09-14 Thread Christoph Hellwig
DMA_ATTR_NON_CONSISTENT is a no-op except on PARISC and some mips configs, so don't set it in this ARM specific driver. Signed-off-by: Christoph Hellwig --- drivers/gpu/drm/exynos/exynos_drm_gem.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c

Re: [PATCH] spi: qup: remove redundant assignment to variable ret

2020-09-14 Thread Mark Brown
On Thu, 10 Sep 2020 16:04:10 +0100, Colin King wrote: > The variable ret is being initialized with a value that is > never read and it is being updated later with a new value. The > initialization is redundant and can be removed. Applied to

Re: [PATCH 1/3] spi: spi-geni-qcom: Use the FIFO even more

2020-09-14 Thread Mark Brown
On Sat, 12 Sep 2020 14:07:59 -0700, Douglas Anderson wrote: > In commit 902481a78ee4 ("spi: spi-geni-qcom: Actually use our FIFO") I > explained that the maximum size we could program the FIFO was > "mas->tx_fifo_depth - 3" but that I chose "mas->tx_fifo_depth()" > because I was worried about

Re: [PATCH 0/5] drivers/regulator: Constify static variables

2020-09-14 Thread Mark Brown
On Sun, 13 Sep 2020 10:41:09 +0200, Rikard Falkeborn wrote: > Constify a couple of static variables, most importantly regulator_ops to > allow the compiler to put them in read-only memory. > > Rikard Falkeborn (5): > regulator: dummy: Constify dummy_initdata and dummy_ops > regulator: fixed:

Re: [PATCH] ALSA: rockchip_i2s: fix a possible divide-by-zero bug in rockchip_i2s_hw_params()

2020-09-14 Thread Mark Brown
On Mon, 7 Sep 2020 21:09:37 +0800, Tuo Li wrote: > The variable bclk_rate is checked in: > if (bclk_rate && mclk_rate % bclk_rate) > > This indicates that bclk_rate can be zero. > If so, a divide-by-zero bug will occur: > div_bclk = mclk_rate / bclk_rate; > > [...] Applied to

[PATCH 02/17] mm: turn alloc_pages into an inline function

2020-09-14 Thread Christoph Hellwig
To prevent a compiler error when a method call alloc_pages is added (which I plan to for the dma_map_ops). Signed-off-by: Christoph Hellwig --- include/linux/gfp.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/linux/gfp.h b/include/linux/gfp.h index

[PATCH 01/17] media/v4l2: remove V4L2-FLAG-MEMORY-NON-CONSISTENT flag

2020-09-14 Thread Christoph Hellwig
From: Sergey Senozhatsky The patch partially reverts some of the UAPI bits of the buffer cache management hints. Namely, the queue consistency (memory coherency) user-space hint because, as it turned out, the kernel implementation of this feature was misusing DMA_ATTR_NON_CONSISTENT. The patch

Re: [PATCH v2] i2c: virtio: add a virtio i2c frontend driver

2020-09-14 Thread Dan Carpenter
Hi Jie, url: https://github.com/0day-ci/linux/commits/Jie-Deng/i2c-virtio-add-a-virtio-i2c-frontend-driver/20200911-115013 base: https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git i2c/for-next config: parisc-randconfig-m031-20200913 (attached as .config) compiler: hppa-linux-gcc

Re: [PATCH] iommu/amd: fix interrupt remapping for avic

2020-09-14 Thread Suravee Suthikulpanit
Maxim, On 9/13/2020 7:42 PM, Maxim Levitsky wrote: Commit e52d58d54a32 ("iommu/amd: Use cmpxchg_double() when updating 128-bit IRTE") accidentally removed an assumption that modify_irte_ga always set the valid bit and amd_iommu_activate_guest_mode relied on that. Side effect of this is that

Re: [PATCH v2] pinctrl: sh-pfc: r8a7790: Add VIN1-B and VIN2-G pins, groups and functions

2020-09-14 Thread Geert Uytterhoeven
Hi Prabhakar, CC Laurent, Niklas On Sun, Sep 13, 2020 at 8:29 PM Lad Prabhakar wrote: > Add pins, groups and functions for the VIN1-B [data/clk/sync] and VIN2-G > [data]. > > Signed-off-by: Lad Prabhakar > Reviewed-by: Biju Das > --- > Changes for v2: > * Added complete list of VIN1-B pins >

a saner API for allocating DMA addressable pages v2

2020-09-14 Thread Christoph Hellwig
Hi all, this series replaced the DMA_ATTR_NON_CONSISTENT flag to dma_alloc_attrs with a separate new dma_alloc_pages API, which is available on all platforms. In addition to cleaning up the convoluted code path, this ensures that other drivers that have asked for better support for non-coherent

[PATCH AUTOSEL 5.4 09/22] rapidio: Replace 'select' DMAENGINES 'with depends on'

2020-09-14 Thread Sasha Levin
From: Laurent Pinchart [ Upstream commit d2b86100245080cfdf1e95e9e07477474c1be2bd ] Enabling a whole subsystem from a single driver 'select' is frowned upon and won't be accepted in new drivers, that need to use 'depends on' instead. Existing selection of DMAENGINES will then cause circular

Re: [PATCH v3 2/3] mm/memcg: Simplify mem_cgroup_get_max()

2020-09-14 Thread Michal Hocko
On Mon 14-09-20 10:19:55, Waiman Long wrote: > The mem_cgroup_get_max() function used to get memory+swap max from > both the v1 memsw and v2 memory+swap page counters & return the maximum > of these 2 values. This is redundant and it is more efficient to just > get either the v1 or the v2 values

<    5   6   7   8   9   10   11   12   13   14   >