[PATCH next 4/6] ARM: dts: dra7x-evm: switch to new cpsw switch drv

2020-09-07 Thread Grygorii Strashko
Switch all TI DRA7x boards to use new cpsw switch driver. Those boards configured in dual_mac mode by default. Hence, dual_mac mode has been preserved the same way between legacy and new driver it's safe to switch drivers. Signed-off-by: Grygorii Strashko --- arch/arm/boot/dts/dra7-evm.dts

[PATCH v4.14.y 3/3] vfio-pci: Invalidate mmaps and block MMIO access on disabled memory

2020-09-07 Thread Ajay Kaher
From: Alex Williamson commit abafbc551fddede3e0a08dee1dcde08fc0eb8476 upstream. Accessing the disabled memory space of a PCI device would typically result in a master abort response on conventional PCI, or an unsupported request on PCI express. The user would generally see these as a -1 respons

[PATCH v4.14.y 1/3] vfio/type1: Support faulting PFNMAP vmas

2020-09-07 Thread Ajay Kaher
From: Alex Williamson commit 41311242221e3482b20bfed10fa4d9db98d87016 upstream. With conversion to follow_pfn(), DMA mapping a PFNMAP range depends on the range being faulted into the vma. Add support to manually provide that, in the same way as done on KVM with hva_to_pfn_remapped(). Reviewed

[PATCH v4.14.y 0/3] vfio: Fix for CVE-2020-12888

2020-09-07 Thread Ajay Kaher
CVE-2020-12888 Kernel: vfio: access to disabled MMIO space of some devices may lead to DoS scenario The VFIO modules allow users (guest VMs) to enable or disable access to the devices' MMIO memory address spaces. If a user attempts to access (read/write) the devices' MMIO address space when it

[PATCH next 1/6] ARM: dts: am5729: beagleboneai: switch to new cpsw switch drv

2020-09-07 Thread Grygorii Strashko
Switch BeagleBone AI to use new cpsw switch driver. It has one Ext. port only and fits dual_mac mode with no issues. Signed-off-by: Grygorii Strashko --- arch/arm/boot/dts/am5729-beagleboneai.dts | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/arch/arm/boot/dts

[PATCH next 0/6] ARM: dts: am57xx/dra7x: switch to new cpsw switch drv

2020-09-07 Thread Grygorii Strashko
Hi Tony, Since Kernel v5.5 commits: 111cf1ab4da3 ("net: ethernet: ti: introduce cpsw switchdev based driver part 2 - switch") ed3525eda4c4 ("net: ethernet: ti: introduce cpsw switchdev based driver part 1 - dual-emac") the new CPSW driver with switchdev support has been introduced and one am57

[PATCH v4.14.y 2/3] vfio-pci: Fault mmaps to enable vma tracking

2020-09-07 Thread Ajay Kaher
From: Alex Williamson commit 11c4cd07ba111a09f49625f9e4c851d83daf0a22 upstream. Rather than calling remap_pfn_range() when a region is mmap'd, setup a vm_ops handler to support dynamic faulting of the range on access. This allows us to manage a list of vmas actively mapping the area that we can

Re: [PATCH v6 6/9] kernel: entry: Support Syscall User Dispatch for common syscall entry

2020-09-07 Thread Andy Lutomirski
On Mon, Sep 7, 2020 at 7:25 AM Christian Brauner wrote: > > On Mon, Sep 07, 2020 at 07:15:52AM -0700, Andy Lutomirski wrote: > > > > > > > On Sep 7, 2020, at 3:15 AM, Christian Brauner > > > wrote: > > > > > > On Fri, Sep 04, 2020 at 04:31:44PM -0400, Gabriel Krisman Bertazi wrote: > > >> Sysca

[PATCH] airo: switch from 'pci_' to 'dma_' API

2020-09-07 Thread Christophe JAILLET
The wrappers in include/linux/pci-dma-compat.h should go away. The patch has been generated with the coccinelle script below and has been hand modified to replace GFP_ with a correct flag. It has been compile tested. When memory is allocated in 'mpi_map_card()' GFP_KERNEL can be used because this

Re: [PATCH -next] kdb: Use newer api for tasklist scanning

2020-09-07 Thread Davidlohr Bueso
On Mon, 07 Sep 2020, Daniel Thompson wrote: No objections to the change but kdb doesn't use tsk->thread_group, it uses do_each_thread/while_each_thread. Can we change this to say that is osbsolete and racy to use while_each_thread() (that's pretty much what the description of the patch that intr

Re: [PATCH V2 5/5] DO NOT MERGE: iommu: disable list appending in dma-iommu

2020-09-07 Thread Tom Murphy
On Mon, 7 Sep 2020 at 08:00, Christoph Hellwig wrote: > > On Thu, Sep 03, 2020 at 09:18:37PM +0100, Tom Murphy wrote: > > Disable combining sg segments in the dma-iommu api. > > Combining the sg segments exposes a bug in the intel i915 driver which > > causes visual artifacts and the screen to fre

Re: [RFC PATCH] x86/mce: Make mce_rdmsrl() do a plain RDMSR only

2020-09-07 Thread Andy Lutomirski
On Sun, Sep 6, 2020 at 2:21 PM Borislav Petkov wrote: > > Hi, > > Ingo and I talked about this thing this morning and tglx has had it on > his to-fix list too so here's a first attempt at it. > > Below is just a brain dump of what we talked about so let's start with > it and see where it would tak

Re: [RFC PATCH v2 3/3] mm: make generic pXd_addr_end() macros inline functions

2020-09-07 Thread Mike Rapoport
Hi, Some style comments below. On Mon, Sep 07, 2020 at 08:00:58PM +0200, Gerald Schaefer wrote: > From: Alexander Gordeev > > Since pXd_addr_end() macros take pXd page-table entry as a > parameter it makes sense to check the entry type on compile. > Even though most archs do not make use of pag

Re: [PATCH] fs: align IOCB_* flags with RWF_* flags

2020-09-07 Thread Matthew Wilcox
On Mon, Aug 31, 2020 at 12:08:10PM -0600, Jens Axboe wrote: > We have a set of flags that are shared between the two and inherired > in kiocb_set_rw_flags(), but we check and set these individually. > Reorder the IOCB flags so that the bottom part of the space is synced > with the RWF flag space, a

Re: [RFC PATCH v2 0/3] mm/gup: fix gup_fast with dynamic page table folding

2020-09-07 Thread Mike Rapoport
On Mon, Sep 07, 2020 at 08:00:55PM +0200, Gerald Schaefer wrote: > This is v2 of an RFC previously discussed here: > https://lore.kernel.org/lkml/20200828140314.8556-1-gerald.schae...@linux.ibm.com/ > > Patch 1 is a fix for a regression in gup_fast on s390, after our conversion > to common gup_fas

Re: [PATCHv3] selftests: rtnetlink: load fou module for kci_test_encap_fou() test

2020-09-07 Thread Jakub Kicinski
On Mon, 7 Sep 2020 11:50:10 +0800 Po-Hsu Lin wrote: > The kci_test_encap_fou() test from kci_test_encap() in rtnetlink.sh > needs the fou module to work. Otherwise it will fail with: > > $ ip netns exec "$testns" ip fou add port ipproto 47 > RTNETLINK answers: No such file or directory >

Re: [RFC PATCH] x86/mce: Make mce_rdmsrl() do a plain RDMSR only

2020-09-07 Thread Luck, Tony
On Sun, Sep 06, 2020 at 11:21:30PM +0200, Borislav Petkov wrote: > Hi, > > Ingo and I talked about this thing this morning and tglx has had it on > his to-fix list too so here's a first attempt at it. > > Below is just a brain dump of what we talked about so let's start with > it and see where it

Re: [PATCH v3 10/15] MIPS: generic: Increase NR_IRQS to 256

2020-09-07 Thread Thomas Bogendoerfer
On Sun, Sep 06, 2020 at 09:29:30PM +0200, Paul Cercueil wrote: > 128 IRQs is not enough to support Ingenic SoCs. > > Signed-off-by: Paul Cercueil > --- > > Notes: > v2-v3: No change > > arch/mips/include/asm/mach-generic/irq.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > di

[PATCH 5/4] drivers core: Convert class uses of sprintf to sysfs_emit

2020-09-07 Thread Joe Perches
Use the sysfs_emit API. Signed-off-by: Joe Perches --- drivers/base/devcoredump.c | 2 +- drivers/base/firmware_loader/fallback.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/base/devcoredump.c b/drivers/base/devcoredump.c index e42d0b514384..924346

Re: [PATCH v2 3/3] drm: panel: add TDO tl070wsh30 panel driver

2020-09-07 Thread Sam Ravnborg
Hi Neil. On Mon, Sep 07, 2020 at 01:10:27PM +0200, Neil Armstrong wrote: > This adds support for the TDO TL070WSH30 TFT-LCD panel module. > The panel has a 1024×600 resolution and uses 24 bit RGB per pixel. > It provides a MIPI DSI interface to the host, a built-in LED backlight > and touch contro

Re: [PATCH] fs: align IOCB_* flags with RWF_* flags

2020-09-07 Thread Jens Axboe
On 8/31/20 12:08 PM, Jens Axboe wrote: > We have a set of flags that are shared between the two and inherired > in kiocb_set_rw_flags(), but we check and set these individually. > Reorder the IOCB flags so that the bottom part of the space is synced > with the RWF flag space, and then we can do the

Re: [PATCH -next] blktrace: make function blk_trace_bio_get_cgid() static

2020-09-07 Thread Jens Axboe
On 9/7/20 8:06 AM, Wang Hai wrote: > The sparse tool complains as follows: > > kernel/trace/blktrace.c:796:5: warning: > symbol 'blk_trace_bio_get_cgid' was not declared. Should it be static? > > This function is not used outside of blktrace.c, so this commit > marks it static. Applied, thanks.

[PATCH v2] rtlwifi: switch from 'pci_' to 'dma_' API

2020-09-07 Thread Christophe JAILLET
The wrappers in include/linux/pci-dma-compat.h should go away. The patch has been generated with the coccinelle script below and has been hand modified to replace GFP_ with a correct flag. It has been compile tested. The only file where some GFP_ flags are updated is 'pci.c'. When memory is allo

Re: [PATCH v2 2/3] dt-bindings: display: panel: add TDO tl070wsh30 DSI panel bindings

2020-09-07 Thread Sam Ravnborg
Hi Neil. On Mon, Sep 07, 2020 at 03:24:47PM +0200, Neil Armstrong wrote: > Hi, > > On 07/09/2020 13:45, Sam Ravnborg wrote: > > Hi Neil. > > > > On Mon, Sep 07, 2020 at 01:10:26PM +0200, Neil Armstrong wrote: > >> This add the bindings for the 1024*600 tl070wsh30 DSI panel. > > > > The binding

Re: watchdog: sp5100_tco support for AMD V/R/E series

2020-09-07 Thread Guenter Roeck
On 9/7/20 8:46 AM, Jan Kiszka wrote: > On 07.09.20 17:31, Guenter Roeck wrote: >> On 9/7/20 4:20 AM, Jan Kiszka wrote: >>> Hi all, >>> >>> Arsalan reported that the upstream driver for sp5100_tco does not work >>> for embedded Ryzen. Meanwhile, I was able to confirm that on an R1505G: >>> >>> [ 1

Re: [PATCH 2/2] clk: mediatek: Add MT8167 clock support

2020-09-07 Thread kernel test robot
. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Fabien-Parent/dt-bindings-clock-mediatek-add-bindings-for-MT8167-clocks/20200907-210215 base: https://git.kernel.org/pub

Re: [Nouveau] pcieport 0000:00:01.0: PME: Spurious native interrupt (nvidia with nouveau and thunderbolt on thinkpad P73)

2020-09-07 Thread Karol Herbst
On Sun, Sep 6, 2020 at 8:52 PM Marc MERLIN wrote: > > Ok, I have an update to this problem. I added the nouveau list because > I can't quite tell if the issue is: > - the PCIe changes that went in 5.6 I think (or 5.5?), referenced below > > - a new issue with thunderbold on thinkpad P73, that seem

RE: [PATCH] PCI: hv: Fix hibernation in case interrupts are not re-created

2020-09-07 Thread Jake Oshins
> -Original Message- > From: Dexuan Cui > Sent: Friday, September 4, 2020 7:55 PM > To: wei@kernel.org; KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger ; > lorenzo.pieral...@arm.com; bhelg...@google.com; linux-hyp...@vger.kernel.org; > linux-...@vger.kernel.org; linux-kernel@vger.k

Re: [PATCH v16 00/20] iommu/arm-smmu + drm/msm: per-process GPU pgtables

2020-09-07 Thread Caleb Connolly
On 2020-09-01 17:46, Rob Clark wrote: > From: Rob Clark > > NOTE: I have re-ordered the series, and propose that we could merge this >series in the following order: > > 1) 01-11 - merge via drm / msm-next > 2) 12-15 - merge via iommu, no dependency on msm-next pull req >

Re: [PATCH 3/8] asm-generic: fix unaligned access hamdling in raw_copy_{from, to}_user

2020-09-07 Thread Sean Anderson
> Re: [PATCH 3/8] asm-generic: fix unaligned access hamdling in raw_copy_{from, > to}_user nit: handling --Sean

[PATCH 09/12] x86/platform/uv: Update UV5 MMR references in UV GRU

2020-09-07 Thread Mike Travis
Make modifications to the GRU mappings to accommodate changes for UV5. Signed-off-by: Mike Travis Reviewed-by: Dimitri Sivanich Reviewed-by: Steve Wahl --- arch/x86/kernel/apic/x2apic_uv_x.c | 30 -- 1 file changed, 24 insertions(+), 6 deletions(-) --- linux.orig

[PATCH 00/12] x86/platform/uv: Updates for UV5

2020-09-07 Thread Mike Travis
Subject: [PATCH 00/12] x86/platform/uv: Updates for UV5 Add changes needed for new UV5 UV architecture. Chief among the changes are 52 bits of physical memory address and 57 bits of virtual address space. 0001 Remove UV BAU TLB Shootdown Handler - removes BAU TLB code being replaced by BAU

[PATCH 03/12] x86/platform/uv: Adjust references in UV kernel modules

2020-09-07 Thread Mike Travis
There is a symbol clash from the auto-generated uv_mmrs.h file that clashes with code in the UV kernel modules (is_uv() is the symbol). Change those prior to the symbol clash so as to not cause a compile error. Signed-off-by: Mike Travis Reviewed-by: Dimitri Sivanich Reviewed-by: Steve Wahl ---

[PATCH 07/12] x86/platform/uv: Update MMIOH references based on new UV5 MMRs.

2020-09-07 Thread Mike Travis
Make modifications to the MMIOH mappings to accommodate changes for UV5. Signed-off-by: Mike Travis Reviewed-by: Steve Wahl --- arch/x86/kernel/apic/x2apic_uv_x.c | 213 + 1 file changed, 144 insertions(+), 69 deletions(-) --- linux.orig/arch/x86/kernel/api

[PATCH 02/12] x86/platform/uv: Remove SCIR MMR references for UVY systems.

2020-09-07 Thread Mike Travis
UV class systems no longer use System Controller for monitoring of CPU activity provided by this driver. Other methods have been developed for BIOS and the management controller (BMC). This patch removes that supporting code. Signed-off-by: Mike Travis Reviewed-by: Dimitri Sivanich --- arch/x

[PATCH 06/12] x86/platform/uv: Add and Decode Arch Type in UVsystab

2020-09-07 Thread Mike Travis
A patch to add and process the UV Arch Type field in the UVsystab passed from UV BIOS to the kernel. This allows the system to be recognized without relying on the OEM_ID which OEMs want to change. Signed-off-by: Mike Travis Reviewed-by: Dimitri Sivanich Reviewed-by: Steve Wahl --- arch/x86/i

[RESEND PATCH v2] KVM: fix memory leak in kvm_io_bus_unregister_dev()

2020-09-07 Thread Rustam Kovhaev
when kmalloc() fails in kvm_io_bus_unregister_dev(), before removing the bus, we should iterate over all other devices linked to it and call kvm_iodevice_destructor() for them Fixes: 90db10434b16 ("KVM: kvm_io_bus_unregister_dev() should never fail") Cc: sta...@vger.kernel.org Reported-and-tested-

[PATCH 05/12] x86/platform/uv: Add UV5 direct references

2020-09-07 Thread Mike Travis
Add new references to UV5 (and UVY class) system MMR addresses and fields primarily caused by the expansion from 46 to 52 bits of physical memory address. Signed-off-by: Mike Travis Reviewed-by: Dimitri Sivanich Reviewed-by: Steve Wahl --- arch/x86/include/asm/uv/uv_hub.h | 49

[PATCH 10/12] x86/platform/uv: Update Node Present Counting

2020-09-07 Thread Mike Travis
The changes in the UV5 arch shrunk the NODE PRESENT table to just 2x64 entries (128 total) so are in to 64 bit MMRs instead of a depth of 64 bits in an array. Adjust references when counting up the nodes present. Signed-off-by: Mike Travis Reviewed-by: Dimitri Sivanich Reviewed-by: Steve Wahl

[PATCH 11/12] x86/platform/uv: Update UV5 TSC Checking

2020-09-07 Thread Mike Travis
Update check of BIOS TSC sync status to include both possible "invalid" states provided by newer UV5 BIOS. Signed-off-by: Mike Travis Reviewed-by: Steve Wahl --- arch/x86/include/asm/uv/uv_hub.h |2 +- arch/x86/kernel/apic/x2apic_uv_x.c | 24 ++-- 2 files changed, 11

[PATCH 01/12] x86/platform/uv: Remove UV BAU TLB Shootdown Handler

2020-09-07 Thread Mike Travis
The Broadcast Assist Unit (BAU) TLB shootdown handler is being rewritten to become the UV BAU APIC driver. It is designed to speed up sending IPI's to selective CPUs within the system. Remove the current TLB shutdown handler (tlb_uv.c) file and a couple of kernel hooks in the interim. Signed-off

[PATCH 08/12] x86/platform/uv: Adjust GAM MMR references affected by UV5 updates

2020-09-07 Thread Mike Travis
Make modifications to the GAM MMR mappings to accommodate changes for UV5. Signed-off-by: Mike Travis Reviewed-by: Dimitri Sivanich Reviewed-by: Steve Wahl --- arch/x86/kernel/apic/x2apic_uv_x.c | 30 +- 1 file changed, 25 insertions(+), 5 deletions(-) --- linux.

[PATCH 12/12] x86/platform/uv: Update for UV5 NMI MMR changes

2020-09-07 Thread Mike Travis
The UV NMI MMR addresses and fields moved between UV4 and UV5 necessitating a rewrite of the UV NMI handler. Adjust references to accommodate those changes. Signed-off-by: Mike Travis Reviewed-by: Dimitri Sivanich Reviewed-by: Steve Wahl --- arch/x86/include/asm/uv/uv_hub.h | 13 --- ar

Re: [PATCH] arm64: dts: marvell: espressobin: Add ethernet switch aliases

2020-09-07 Thread Andrew Lunn
> As a result of this cleanup should be binary DTB file for V7 with same > structure as DTB file without such cleanup patch, right? Should be. If need be, you can decompile the DTB back to a DTS and make sure it looks correct. Andrew

Re: [PATCH v3 0/8] iommu/arm-smmu: Support maintaining bootloader mappings

2020-09-07 Thread Caleb Connolly
On 2020-09-04 16:55, Bjorn Andersson wrote: > Based on previous attempts and discussions this is the latest attempt at > inheriting stream mappings set up by the bootloader, for e.g. boot splash or > efifb. > > Per Will's request this builds on the work by Jordan and Rob for the Adreno > SMMU suppo

Re: [PATCH 2/2] clk: mediatek: Add MT8167 clock support

2020-09-07 Thread kernel test robot
. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Fabien-Parent/dt-bindings-clock-mediatek-add-bindings-for-MT8167-clocks/20200907-210215 base: https://git.kernel.org/pub

[PATCH 02/11] ARM: dts: s3c6410: move fixed clocks under root node in Mini6410

2020-09-07 Thread Krzysztof Kozlowski
The fixed clocks are kept under dedicated 'clocks' node but this causes multiple dtschema warnings: clocks: $nodename:0: 'clocks' does not match '^([a-z][a-z0-9\\-]+-bus|bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' clocks: #size-cells:0:0: 0 is not one of [1, 2] clocks: oscillator@0:reg:0: [0] is to

[PATCH 03/11] ARM: dts: s3c6410: move fixed clocks under root node in SMDK6410

2020-09-07 Thread Krzysztof Kozlowski
The fixed clocks are kept under dedicated 'clocks' node but this causes multiple dtschema warnings: clocks: $nodename:0: 'clocks' does not match '^([a-z][a-z0-9\\-]+-bus|bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' clocks: #size-cells:0:0: 0 is not one of [1, 2] clocks: oscillator@0:reg:0: [0] is to

[PATCH 09/11] ARM: dts: s3c24xx: align PWM/timer node name with dtschema

2020-09-07 Thread Krzysztof Kozlowski
Although PWM is used on S3C24xx as clocksource/timer, the dtschema expects the node to be named in certain format: timer@5100: $nodename:0: 'timer@5100' does not match '^pwm(@.*|-[0-9a-f])*$' Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s3c24xx.dtsi | 2 +- 1 file changed

[PATCH 07/11] ARM: dts: s3c24xx: fix number of PWM cells

2020-09-07 Thread Krzysztof Kozlowski
The PWM has only three cells, not four, as pointed out by dtschema: timer@5100: #pwm-cells:0:0: 3 was expected Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s3c24xx.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/s3c24xx.dtsi b/arch/ar

[PATCH 01/11] ARM: dts: s5pv210: Correct ethernet unit address in SMDKV210

2020-09-07 Thread Krzysztof Kozlowski
The SROM bank 5 is at address 0xa800, just like the one put in "reg" property of ethernet node. Fix the unit address of ethernet node. Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s5pv210-smdkv210.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/b

[PATCH 00/11] ARM: dts: s3c: dtschema fixes

2020-09-07 Thread Krzysztof Kozlowski
Hi, This is last serie of big dtschema cleanups for Samsung DTS. It fixes almost all dtschema violations, except: s3c6410-mini6410.dt.yaml: srom-cs1-bus@1800: ethernet@1800:reg:0: [402653184, 2, 402653188, 2] is too long which is similar to the case with SMDK5410 (Exynos5410). The p

[PATCH 06/11] ARM: dts: s3c6410: remove additional CPU compatible

2020-09-07 Thread Krzysztof Kozlowski
Only the specific compatible (arm,arm1176jzf-s) is allowed by dtschema: cpu@0: compatible: ['arm,arm1176jzf-s', 'arm,arm1176'] is too long cpu@0: compatible: Additional items are not allowed ('arm,arm1176' was unexpected) Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s3c64xx.dts

[PATCH 10/11] ARM: dts: s3c24xx: add address to CPU node

2020-09-07 Thread Krzysztof Kozlowski
The CPU nodes should be described as children of "cpus" bus node with appropriate "reg" properties: cpus: '#address-cells' is a required property cpus: '#size-cells' is a required property cpu: 'device_type' is a required property cpu: 'reg' is a required property Signed-off-by: Krzysztof

[PATCH 05/11] ARM: dts: s3c6410: align node SROM bus node name with dtschema in SMDK6410

2020-09-07 Thread Krzysztof Kozlowski
The SROM controller is modeled with a bus so align the device node name with dtschema to fix warning: srom-cs1@1800: $nodename:0: 'srom-cs1@1800' does not match '^([a-z][a-z0-9\\-]+-bus|bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s3

[PATCH 11/11] ARM: dts: s3c24xx: move fixed clocks under root node in SMDK2416

2020-09-07 Thread Krzysztof Kozlowski
The fixed clocks are kept under dedicated 'clocks' node but this causes multiple dtschema warnings: clocks: $nodename:0: 'clocks' does not match '^([a-z][a-z0-9\\-]+-bus|bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' clocks: #size-cells:0:0: 0 is not one of [1, 2] clocks: xti@0:reg:0: [0] is too short

[PATCH 04/11] ARM: dts: s3c6410: align node SROM bus node name with dtschema in Mini6410

2020-09-07 Thread Krzysztof Kozlowski
The SROM controller is modeled with a bus so align the device node name with dtschema to fix warning: srom-cs1@1800: $nodename:0: 'srom-cs1@1800' does not match '^([a-z][a-z0-9\\-]+-bus|bus|soc|axi|ahb|apb)(@[0-9a-f]+)?$' Signed-off-by: Krzysztof Kozlowski --- arch/arm/boot/dts/s3

[PATCH 08/11] ARM: dts: s3c24xx: override nods by label

2020-09-07 Thread Krzysztof Kozlowski
Using full paths to extend or override a device tree node is error prone. If there was a typo error, a new node will be created instead of extending the existing node. This will lead to run-time errors that could be hard to detect. A mistyped label on the other hand, will cause a dtc compile err

5.9-rc4: modpost undefined symbols + relocation in read-only section `.head.text'

2020-09-07 Thread Meelis Roos
This is 5.9-rc4 git on a specific amd64 machine with Debian unstable and custom kernel config. 5.8 compiled and worked fine, I hav seen something like this with different 5.9-git commits. I made sure my binutils and gcc-10 are up to date in Debian unstable and retried with 5.9-rc4. Still I see

Re: [PATCH v11 00/11] PCI: brcmstb: enable PCIe for STB chips

2020-09-07 Thread Florian Fainelli
On 9/7/2020 10:43 AM, Jim Quinlan wrote: On Mon, Sep 7, 2020 at 5:16 AM Lorenzo Pieralisi wrote: On Thu, Aug 27, 2020 at 09:29:59AM -0400, Jim Quinlan wrote: On Thu, Aug 27, 2020 at 2:35 AM Christoph Hellwig wrote: On Tue, Aug 25, 2020 at 10:40:27AM -0700, Florian Fainelli wrote: Hi,

Re: [PATCH v5 00/80] drm/vc4: Support BCM2711 Display Pipeline

2020-09-07 Thread Nicolas Saenz Julienne
Hi Maxime, On Mon, 2020-09-07 at 18:22 +0200, Maxime Ripard wrote: > Hi, > > On Thu, Sep 03, 2020 at 10:00:32AM +0200, Maxime Ripard wrote: > > Hi everyone, > > > > Here's a (pretty long) series to introduce support in the VC4 DRM driver > > for the display pipeline found in the BCM2711 (and thu

Re: [PATCH 1/3] net: ax88796c: ASIX AX88796C SPI Ethernet Adapter Driver

2020-09-07 Thread Andrew Lunn
> > On Tue, Aug 25, 2020 at 07:03:09PM +0200, Łukasz Stelmach wrote: > >> +++ b/drivers/net/ethernet/asix/ax88796c_ioctl.c > > > > This is an odd filename. The ioctl code is wrong anyway, but there is > > a lot more than ioctl in here. I suggest you give it a new name. > > > > Sure, any suggestion

Re: [PATCH] drm: mxsfb: check framebuffer pitch

2020-09-07 Thread Daniel Vetter
On Mon, Sep 07, 2020 at 07:17:12PM +0300, Laurent Pinchart wrote: > Hi Stefan, > > Thank you for the patch. > > On Mon, Sep 07, 2020 at 06:03:43PM +0200, Stefan Agner wrote: > > The lcdif IP does not support a framebuffer pitch (stride) other than > > the CRTC width. Check for equality and reject

Re: [PATCH] fs/nsfs.c: fix ioctl support of compat processes

2020-09-07 Thread Dmitry V. Levin
Hi, On Fri, Jul 24, 2020 at 02:31:19PM -0500, Eric W. Biederman wrote: > Michael, > > As the original author of NS_GET_OWNER_UID can you take a look at this? This is a gentle reminder that my patch hasn't been applied, the problem reported by Ákos Uzonyi hasn't been fixed, and the example in ioc

Re: [PATCH] gpu/drm: cleanup coding style a bit

2020-09-07 Thread Daniel Vetter
On Mon, Sep 07, 2020 at 05:31:29AM -0700, Bernard Zhao wrote: > Remove first assignment to info which is meaningless. > Put the width and higth check first. > This change is to make the code a bit readable. > > Signed-off-by: Bernard Zhao Looks reasonable, thanks for your patch. Applied to drm-m

Re: [PATCH RFC 09/10] kfence, Documentation: add KFENCE documentation

2020-09-07 Thread Marco Elver
On Mon, 7 Sep 2020 at 19:55, Andrey Konovalov wrote: > On Mon, Sep 7, 2020 at 6:33 PM Marco Elver wrote: [...] > > > > +Guarded allocations are set up based on the sample interval. After > > > > expiration > > > > +of the sample interval, a guarded allocation from the KFENCE object > > > > pool

Re: [PATCH AUTOSEL 4.14 17/33] net: usb: qmi_wwan: add Telit 0x1050 composition

2020-09-07 Thread Sasha Levin
On Mon, Sep 07, 2020 at 11:36:37AM +0200, Kristian Evensen wrote: Hi, On Sat, Oct 26, 2019 at 3:27 PM Sasha Levin wrote: From: Daniele Palmas [ Upstream commit e0ae2c578d3909e60e9448207f5d83f785f1129f ] This patch adds support for Telit FN980 0x1050 composition 0x1050: tty, adb, rmnet, tt

[tip:master] BUILD SUCCESS 7f6aae3e054f8d36ac90812db4ffd78796a487d1

2020-09-07 Thread kernel test robot
fig x86_64 randconfig-a006-20200907 x86_64 randconfig-a004-20200907 x86_64 randconfig-a003-20200907 x86_64 randconfig-a005-20200907 x86_64 randconfig-a001-20200907 x86_64 randconfig-a002-20200907 i386 randc

Re: [PATCH 1/3] net: ax88796c: ASIX AX88796C SPI Ethernet Adapter Driver

2020-09-07 Thread Lukasz Stelmach
It was <2020-08-26 śro 15:06>, when David Laight wrote: > From: Lukasz Stelmach >> Sent: 26 August 2020 15:59 >> >> It was <2020-08-25 wto 20:44>, when Krzysztof Kozlowski wrote: >> > On Tue, Aug 25, 2020 at 07:03:09PM +0200, Łukasz Stelmach wrote: >> >> ASIX AX88796[1] is a versatile ethernet ada

Re: [PATCH 0/9] ASoC: sun8i-codec driver cleanup

2020-09-07 Thread Mark Brown
On Sun, 30 Aug 2020 22:48:43 -0500, Samuel Holland wrote: > Now that the fixes series is merged, here is a series of small cleanups > to the sun8i-codec driver. These help shorten the patch stack for the > next series, which will add support for the other two DAIs in this > codec: AIF2 and AIF3. >

Re: [PATCH] spi: qup: Allow for compile-testing on !ARM

2020-09-07 Thread Mark Brown
On Fri, 4 Sep 2020 17:37:10 +0100, Alex Dewar wrote: > There seems no reason to restrict testing to ARM, so remove this > constraint to improve test coverage. > > Build-tested with allyesconfig on x86. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next Thanks

Re: [PATCH v3 0/3] ASoC: Add sdw stream operations to dailink ops.

2020-09-07 Thread Mark Brown
On Sat, 5 Sep 2020 02:28:51 +0800, Bard Liao wrote: > Sdw stream operation APIs can be called once per stream. Move these > operations to dailink ops. The linked series is "soundwire: Remove sdw > stream operations from Intel soundwire dai". > > Reviewed-by: Vinod Koul > > Changes in v3: > - s/

Re: [PATCH] regulator: lochnagar: Add additional VDDCORE range

2020-09-07 Thread Mark Brown
On Fri, 4 Sep 2020 13:25:06 +0100, Charles Keepax wrote: > In the case of an unrecognised mini-card the Lochnagar will not > initialise the VDDCORE voltage register leading to a value outside of the > current range. Add an additional range to cover these values, initially > this wasn't done since t

[PATCH] net: sched: skip an unnecessay check

2020-09-07 Thread trix
From: Tom Rix Reviewing the error handling in tcf_action_init_1() most of the early handling uses err_out: if (cookie) { kfree(cookie->data); kfree(cookie); } before cookie could ever be set. So skip the unnecessay check. Signed-off-by: Tom Rix

[RFC PATCH v2 2/3] mm: make pXd_addr_end() functions page-table entry aware

2020-09-07 Thread Gerald Schaefer
From: Alexander Gordeev Unlike all other page-table abstractions pXd_addr_end() do not take into account a particular table entry in which context the functions are called. On architectures with dynamic page-tables folding that might lead to lack of necessary information that is difficult to obta

[RFC PATCH v2 0/3] mm/gup: fix gup_fast with dynamic page table folding

2020-09-07 Thread Gerald Schaefer
This is v2 of an RFC previously discussed here: https://lore.kernel.org/lkml/20200828140314.8556-1-gerald.schae...@linux.ibm.com/ Patch 1 is a fix for a regression in gup_fast on s390, after our conversion to common gup_fast code. It will introduce special helper functions pXd_addr_end_folded(), w

[RFC PATCH v2 1/3] mm/gup: fix gup_fast with dynamic page table folding

2020-09-07 Thread Gerald Schaefer
From: Alexander Gordeev Commit 1a42010cdc26 ("s390/mm: convert to the generic get_user_pages_fast code") introduced a subtle but severe bug on s390 with gup_fast, due to dynamic page table folding. The question "What would it require for the generic code to work for s390" has already been discus

[RFC PATCH v2 3/3] mm: make generic pXd_addr_end() macros inline functions

2020-09-07 Thread Gerald Schaefer
From: Alexander Gordeev Since pXd_addr_end() macros take pXd page-table entry as a parameter it makes sense to check the entry type on compile. Even though most archs do not make use of page-table entries in pXd_addr_end() calls, checking the type in traversal code paths could help to avoid subtl

Re: [PATCH 6/6] drm/meson: add support for MIPI-DSI transceiver

2020-09-07 Thread Daniel Vetter
On Mon, Sep 07, 2020 at 11:03:29AM +0200, Neil Armstrong wrote: > On 07/09/2020 10:44, Daniel Vetter wrote: > > On Mon, Sep 07, 2020 at 10:43:51AM +0200, Daniel Vetter wrote: > >> On Mon, Sep 07, 2020 at 10:18:25AM +0200, Neil Armstrong wrote: > >>> The Amlogic AXg SoCs embeds a Synopsys DW-MIPI-DS

Re: [PATCH net-next RFC v3 01/14] devlink: Add reload action option to devlink reload command

2020-09-07 Thread Jakub Kicinski
On Mon, 7 Sep 2020 16:46:01 +0300 Moshe Shemesh wrote: > > In that sense I don't like --live because it doesn't really say much. > > AFAIU it means 1) no link flap; 2) < 2 sec datapath downtime; 3) no > > configuration is lost in kernel or device (including netdev config, > > link config, flow rule

[PATCH 3/4] drivers core: Reindent a couple uses around sysfs_emit

2020-09-07 Thread Joe Perches
Just a couple of whitespace realignment to open parenthesis for multi-line statements. Signed-off-by: Joe Perches --- drivers/base/node.c| 4 ++-- drivers/base/power/sysfs.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/base/node.c b/drivers/base/node.c i

[PATCH 2/4] drivers core: Remove strcat uses around sysfs_emit and neaten

2020-09-07 Thread Joe Perches
strcat is no longer necessary for sysfs_emit and sysfs_emit_at uses. Convert the strcat uses to sysfs_emit calls and neaten other block uses of direct returns to use an intermediate const char *. Signed-off-by: Joe Perches --- drivers/base/cacheinfo.c | 26 ++--- drivers/base/

[PATCH 1/4] drivers core: Use sysfs_emit and sysfs_emit_at for show(device *...) functions

2020-09-07 Thread Joe Perches
Convert the various sprintf fmaily calls in sysfs device show functions to sysfs_emit and sysfs_emit_at for PAGE_SIZE buffer safety. Done with: $ spatch -sp-file sysfs_emit_dev.cocci --in-place --max-width=80 . And cocci script: $ cat sysfs_emit_dev.cocci @@ identifier d_show; identifier dev, a

[PATCH 4/4] drivers core: Miscellaneous changes for sysfs_emit

2020-09-07 Thread Joe Perches
Change a few additional instances that could use sysfs_emit that the coccinelle script could not convert. Signed-off-by: Joe Perches --- drivers/base/class.c| 2 +- drivers/base/cpu.c | 18 +- drivers/base/node.c | 15 +++ drivers/base/platform.c | 4 +-

[PATCH 0/4] drivers core: Use sysfs_emit functions

2020-09-07 Thread Joe Perches
This is a sample block of conversions for drivers/base from next-20200903. It requires the suggested patch that adds sysfs_emit pafunctions from https://lore.kernel.org/lkml/a9054fb521e65f2809671fa9c18e2453061e9d91.1598744610.git@perches.com/ Convert and neaten the various uses of sprintf fami

Re: [PATCH v1 0/2] video: fbdev: radeonfb: PCI PM framework upgrade and fix-ups.

2020-09-07 Thread Daniel Vetter
On Mon, Sep 07, 2020 at 02:46:21PM +0530, Vaibhav Gupta wrote: > On Mon, Sep 07, 2020 at 09:55:59AM +0200, Daniel Vetter wrote: > > On Thu, Aug 06, 2020 at 12:52:54PM +0530, Vaibhav Gupta wrote: > > > Linux Kernel Mentee: Remove Legacy Power Management. > > > > > > The original goal of the patch

[PATCH v3 2/5] PCI: aardvark: Check for errors from pci_bridge_emul_init() call

2020-09-07 Thread Pali Rohár
Function pci_bridge_emul_init() may fail so correctly check for errors. Fixes: 8a3ebd8de328 ("PCI: aardvark: Implement emulated root PCI bridge config space") Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- drivers/pci/controller/pci-aardvark.c | 11 +++ 1 file changed, 7 insert

Re: [PATCH v3] perf: arm_dsu: Support DSU ACPI devices

2020-09-07 Thread Will Deacon
[+ Suzuki as I'd like his Ack on this] On Fri, Aug 14, 2020 at 05:39:40PM -0700, Tuan Phan wrote: > Add support for probing device from ACPI node. > Each DSU ACPI node and its associated cpus are inside a cluster node. > > Signed-off-by: Tuan Phan > --- > Changes in v3: > - Based on the latest A

Re: [PATCH v2 0/5] PCIe aardvark controller improvements

2020-09-07 Thread Pali Rohár
On Monday 07 September 2020 10:40:32 Lorenzo Pieralisi wrote: > can you rebase it on top of v5.9-rc1 and resend, thanks. Done!

Re: [PATCH v2] sched/debug: Add new tracepoint to track cpu_capacity

2020-09-07 Thread Qais Yousef
On 09/02/20 09:54, Phil Auld wrote: > > > > I think this decoupling is not necessary. The natural place for those > > scheduler trace_event based on trace_points extension files is > > kernel/sched/ and here the internal sched.h can just be included. > > > > If someone really wants to build this

[PATCH v3 3/5] PCI: pci-bridge-emul: Export API functions

2020-09-07 Thread Pali Rohár
It allows kernel modules which are not compiled into kernel image to use pci-bridge-emul API functions. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- drivers/pci/pci-bridge-emul.c | 4 1 file changed, 4 insertions(+) diff --git a/drivers/pci/pci-bridge-emul.c b/drivers/pci/pci-br

[PATCH v3 1/5] PCI: aardvark: Fix compilation on s390

2020-09-07 Thread Pali Rohár
Include linux/gpio/consumer.h instead of linux/gpio.h, as is said in the latter file. This was reported by kernel test bot when compiling for s390. drivers/pci/controller/pci-aardvark.c:350:2: error: implicit declaration of function 'gpiod_set_value_cansleep' [-Werror,-Wimplicit-function-decla

Re: [PATCH] x86/msr: do not warn on writes to OC_MAILBOX

2020-09-07 Thread Jason A. Donenfeld
On Mon, Sep 7, 2020 at 1:11 PM Borislav Petkov wrote: > > Hi, > > On Mon, Sep 07, 2020 at 12:46:35PM +0200, Jason A. Donenfeld wrote: > > Are you sure that intel-undervolt using OC_MAILBOX from userspace is > > actually a "misuse"? Should the kernel or kernel drivers actually be > > involved with

Re: [PATCH 10/23] gpio: mockup: fix resource leak in error path

2020-09-07 Thread Bartosz Golaszewski
On Fri, Sep 4, 2020 at 7:00 PM Andy Shevchenko wrote: > > On Fri, Sep 04, 2020 at 05:45:34PM +0200, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > If the module init function fails after creating the debugs directory, > > it's never removed. Add proper cleanup calls to avoid thi

[PATCH v3] dt-bindings: crypto: Specify that allwinner,sun8i-a33-crypto needs reset

2020-09-07 Thread Corentin Labbe
When adding allwinner,sun8i-a33-crypto, I forgot to add that it needs reset. Furthermore, there are no need to use items to list only one compatible in compatible list. Fixes: f81547ba7a98 ("dt-bindings: crypto: add new compatible for A33 SS") Signed-off-by: Corentin Labbe --- Change since v2: -

Re: [PATCH RFC 09/10] kfence, Documentation: add KFENCE documentation

2020-09-07 Thread Andrey Konovalov
On Mon, Sep 7, 2020 at 6:33 PM Marco Elver wrote: > > On Mon, 7 Sep 2020 at 17:34, Andrey Konovalov wrote: > > > > On Mon, Sep 7, 2020 at 3:41 PM Marco Elver wrote: > > > > > > Add KFENCE documentation in dev-tools/kfence.rst, and add to index. > > > > > > Co-developed-by: Alexander Potapenko >

Re: [PATCH v2] sched/debug: Add new tracepoint to track cpu_capacity

2020-09-07 Thread peterz
On Mon, Sep 07, 2020 at 11:48:45AM +0100, Qais Yousef wrote: > IMHO the above is a hack. Out-of-tree modules should rely on public headers > and > exported functions only. What you propose means that people who want to use > these tracepoints in meaningful way must have a prebuilt kernel handy. Wh

Re: [PATCH 15/23] gpio: mockup: use dynamic device IDs

2020-09-07 Thread Bartosz Golaszewski
On Fri, Sep 4, 2020 at 6:49 PM Andy Shevchenko wrote: > > On Fri, Sep 04, 2020 at 05:45:39PM +0200, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > We're currently creating chips at module init time only so using a > > static index for dummy devices is fine. We want to support dy

[PATCH v3 0/5] PCIe aardvark controller improvements

2020-09-07 Thread Pali Rohár
Hi, we have some more improvements for PCIe aardvark controller (Armada 3720 SOC - EspressoBIN and Turris MOX). The main improvement is that with these patches the driver can be compiled as a module, and can be reloaded at runtime. Marek & Pali Changes in V3: * Rebased on top of the v5.9-rc1 r

Re: [PATCH 16/23] gpio: mockup: refactor the module init function

2020-09-07 Thread Bartosz Golaszewski
On Fri, Sep 4, 2020 at 6:57 PM Andy Shevchenko wrote: > > On Fri, Sep 04, 2020 at 05:45:40PM +0200, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > This is in preparation for dynamically created chips. > > > > Let's split out the code that can be reused when creating chips at > >

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