Re: [PATCH] Marvell Sky2 Ethernet adapter: fix warning messages.

2021-02-23 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Thu, 18 Feb 2021 13:34:42 +0100 you wrote: > sky2.c driver uses netdev_warn() before the net device is initialized. > Fix it by using dev_warn() instead. > > Signed-off-by: Krzysztof Halasa Here is the summary with links:

Re: [RFC PATCH 4/4] i40e: don't open i40iw client for kdump

2021-02-23 Thread Jakub Kicinski
On Mon, 22 Feb 2021 15:07:01 +0800 Coiby Xu wrote: > i40iw consumes huge amounts of memory. For example, on a x86_64 machine, > i40iw consumed 1.5GB for Intel Corporation Ethernet Connection X722 for > for 1GbE while "craskernel=auto" only reserved 160M. With the module > parameter "resource_profil

Re: [PATCH v4 1/2] scsi: ufs: Enable power management for wlun

2021-02-23 Thread Adrian Hunter
On 23/02/21 1:04 am, Asutosh Das wrote: > During runtime-suspend of ufs host, the scsi devices are > already suspended and so are the queues associated with them. > But the ufs host sends SSU to wlun during its runtime-suspend. > During the process blk_queue_enter checks if the queue is not in > su

Re: [RFC PATCH 09/12] drivers: base: reintroduce find_bus()

2021-02-23 Thread Enrico Weigelt, metux IT consult
On 13.02.21 11:20, Greg KH wrote: On Mon, Feb 08, 2021 at 11:22:00PM +0100, Enrico Weigelt, metux IT consult wrote: --- drivers/base/bus.c | 14 ++ include/linux/device/bus.h | 2 ++ 2 files changed, 12 insertions(+), 4 deletions(-) Um, no. Why not ? Do you have a b

Re: [PATCH RFC 0/4] Add support for synchronous signals on perf events

2021-02-23 Thread Andy Lutomirski
> On Feb 23, 2021, at 6:34 AM, Marco Elver wrote: > > The perf subsystem today unifies various tracing and monitoring > features, from both software and hardware. One benefit of the perf > subsystem is automatically inheriting events to child tasks, which > enables process-wide events monitori

Re: [PATCH net v2 0/2] net: dsa: Learning fixes for b53/bcm_sf2

2021-02-23 Thread Jakub Kicinski
On Mon, 22 Feb 2021 14:30:08 -0800 Florian Fainelli wrote: > This patch series contains a couple of fixes for the b53/bcm_sf2 drivers > with respect to configuring learning. > > The first patch is wiring-up the necessary dsa_switch_ops operations in > order to support the offloading of bridge flag

Re: [PATCH 00/33] Network fs helper library & fscache kiocb API [ver #3]

2021-02-23 Thread Matthew Wilcox
On Mon, Feb 15, 2021 at 11:22:20PM -0600, Steve French wrote: > On Mon, Feb 15, 2021 at 8:10 PM Matthew Wilcox wrote: > > The switch from readpages to readahead does help in a couple of corner > > cases. For example, if you have two processes reading the same file at > > the same time, one will n

[PATCH 1/2] units: Add the HZ_PER_KHZ macro

2021-02-23 Thread Daniel Lezcano
The macro for the unit conversion for frequency is duplicated in different places. Provide this macro in the 'units' header, so it can be reused. Signed-off-by: Daniel Lezcano --- include/linux/units.h | 4 1 file changed, 4 insertions(+) diff --git a/include/linux/units.h b/include/linux

[PATCH 2/2] units: Use the HZ_PER_KHZ macro

2021-02-23 Thread Daniel Lezcano
The HZ_PER_KHZ macro definition is duplicated in different subsystems. The macro now exists in include/linux/units.h, make use of it and remove all the duplicated ones. Signed-off-by: Daniel Lezcano --- drivers/devfreq/devfreq.c | 2 +- drivers/iio/light/as73211.c | 3 +-- drivers

Re: [PATCH v4 net-next] net: socket: use BIT() for MSG_*

2021-02-23 Thread Jakub Kicinski
On Wed, 17 Feb 2021 14:54:27 +0800 menglong8.d...@gmail.com wrote: > From: Menglong Dong > > The bit mask for MSG_* seems a little confused here. Replace it > with BIT() to make it clear to understand. > > Signed-off-by: Menglong Dong # Form letter - net-next is closed We have already sent th

Re: [GIT PULL] clang-lto for v5.12-rc1

2021-02-23 Thread pr-tracker-bot
The pull request you sent on Tue, 16 Feb 2021 12:34:37 -0800: > https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git > tags/clang-lto-v5.12-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/2b8689520520175075ca97bc4eaf51ff3f7253aa Thank you! -- Deet-doot

Re: [GIT PULL v2] clang-lto for v5.12-rc1

2021-02-23 Thread pr-tracker-bot
The pull request you sent on Mon, 22 Feb 2021 15:11:19 -0800: > https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git > tags/clang-lto-v5.12-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/79db4d2293eba2ce6265a341bedf6caecad5eeb3 Thank you! -- Deet-doot

Re: [GIT PULL] arch/microblaze patches for 5.12-rc1

2021-02-23 Thread pr-tracker-bot
The pull request you sent on Tue, 23 Feb 2021 15:22:27 +0100: > git://git.monstr.eu/linux-2.6-microblaze.git tags/microblaze-v5.12 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/74268693e0f751381688743a48e37cf63a45deef Thank you! -- Deet-doot-dot, I am a bot. https:

Re: [GIT pull] objtool/core for 5.12

2021-02-23 Thread pr-tracker-bot
The pull request you sent on Tue, 23 Feb 2021 15:02:22 -: > git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git > objtool-core-2021-02-23 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/a56ff24efbba18f4361415597f145f4b5773be3e Thank you! -- Deet-doot-dot,

Re: [GIT PULL] Modules updates for v5.12

2021-02-23 Thread pr-tracker-bot
The pull request you sent on Tue, 23 Feb 2021 16:42:36 +0100: > git://git.kernel.org/pub/scm/linux/kernel/git/jeyu/linux.git > tags/modules-for-v5.12 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/21a6ab2131ab0644eeef70507e20273338bf065c Thank you! -- Deet-doot-dot

Re: [GIT PULL v2] clang-lto for v5.12-rc1

2021-02-23 Thread Linus Torvalds
On Tue, Feb 23, 2021 at 9:49 AM Linus Torvalds wrote: > > On Mon, Feb 22, 2021 at 3:11 PM Kees Cook wrote: > > > > While x86 LTO enablement is done[1], it depends on some objtool > > clean-ups[2], though it appears those actually have been in linux-next > > (via tip/objtool/core), so it's possibl

Re: [PATCH] drivers: infiniband: sw: rxe: fix kconfig dependency on CRYPTO

2021-02-23 Thread Arnd Bergmann
On Mon, Feb 22, 2021 at 5:53 PM Randy Dunlap wrote: > On 2/22/21 8:46 AM, Jason Gunthorpe wrote: > > > There is nearly 1000 places that use a 'select CRYPTO_*' in the > > kernel. > > > > I see only 60 'select CRYPTO' statements. I think most of these are correct, as you typically have a single 's

[PATCH 1/1] KVM: x86: remove incorrect comment on active_mmu_pages

2021-02-23 Thread Dongli Zhang
The 'mmu_page_hash' is used as hash table while 'active_mmu_pages' is a list. This patch removes the incorrect comment on active_mmu_pages. Signed-off-by: Dongli Zhang --- arch/x86/include/asm/kvm_host.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/arch/x86/include/asm/kvm_host.h b/arch

Re: [PATCH] drivers: infiniband: sw: rxe: fix kconfig dependency on CRYPTO

2021-02-23 Thread Arnd Bergmann
On Tue, Feb 23, 2021 at 9:36 PM Arnd Bergmann wrote: > > For the specific case of CRC32, it might actually a good idea to change > the code to call into the CRC32 code directly instead of the CRYPTO_CRC32 > abstraction. Would that work for RDMA_RXE? On the more general question of whether a drive

[PATCH] dts: drop dangling c6x symlink

2021-02-23 Thread Michal Kubecek
With c6x architecture removal, scripts/dtc/include-prefixes/c6x symlink lost its target. Drop the dangling symlink which triggers some distribution check scripts. Fixes: a579fcfa8e49 ("c6x: remove architecture") Signed-off-by: Michal Kubecek --- scripts/dtc/include-prefixes/c6x | 1 - 1 file cha

Re: [PATCH net-next 0/4] r8152: minor adjustments

2021-02-23 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net.git (refs/heads/master): On Fri, 19 Feb 2021 17:04:39 +0800 you wrote: > These patches are used to adjust the code. > > Hayes Wang (4): > r8152: enable U1/U2 for USB_SPEED_SUPER > r8152: check if the pointer of the function exists > r8152: repla

Re: [RFC PATCH 11/12] platform/x86: skeleton for oftree based board device initialization

2021-02-23 Thread Enrico Weigelt, metux IT consult
On 15.02.21 02:18, Frank Rowand wrote: The RCAR use of overlays that are built into the driver are a known pattern that is explicitly not to be repeated. Well, that driver indeed looks quite complex - if belive unnecessarily. But can't judge on these devices, don't have one of them. In my ca

Re: [PATCH v3 2/2] hwrng: bcm2835: add reset support

2021-02-23 Thread Florian Fainelli
On 2/23/2021 9:00 AM, Álvaro Fernández Rojas wrote: > BCM6368 devices need to reset the in order to generate true random numbers. > This is what BCM6368 produces without a reset: > root@OpenWrt:/# cat /dev/hwrng | rngtest -c 1000 > rngtest 6.10 > Copyright (c) 2004 by Henrique de Moraes Holschuh

Re: [GIT PULL v2] clang-lto for v5.12-rc1

2021-02-23 Thread Kees Cook
On Tue, Feb 23, 2021 at 12:33:05PM -0800, Linus Torvalds wrote: > On Tue, Feb 23, 2021 at 9:49 AM Linus Torvalds > wrote: > > > > On Mon, Feb 22, 2021 at 3:11 PM Kees Cook wrote: > > > > > > While x86 LTO enablement is done[1], it depends on some objtool > > > clean-ups[2], though it appears thos

[PATCH v2 0/2] irqchip: add support for BCM6345 interrupt controller

2021-02-23 Thread Álvaro Fernández Rojas
This interrupt controller is present on bcm63xx SoCs in order to generate interrupts based on GPIO status changes. v2: fix documentation title typo. Álvaro Fernández Rojas (2): dt-bindings: interrupt-controller: document BCM6345 external interrupt controller irqchip: add support for BCM63

[PATCH v2 2/2] irqchip: add support for BCM6345 external interrupt controller

2021-02-23 Thread Álvaro Fernández Rojas
This interrupt controller is present on bcm63xx SoCs in order to generate interrupts based on GPIO status changes. Signed-off-by: Álvaro Fernández Rojas Signed-off-by: Jonas Gorski --- v2: no changes. drivers/irqchip/Kconfig | 4 + drivers/irqchip/Makefile | 1 + driver

[PATCH] memcg: enable memcg oom-kill for __GFP_NOFAIL

2021-02-23 Thread Shakeel Butt
In the era of async memcg oom-killer, the commit a0d8b00a3381 ("mm: memcg: do not declare OOM from __GFP_NOFAIL allocations") added the code to skip memcg oom-killer for __GFP_NOFAIL allocations. The reason was that the __GFP_NOFAIL callers will not enter aync oom synchronization path and will keep

[PATCH v2 1/2] dt-bindings: interrupt-controller: document BCM6345 external interrupt controller

2021-02-23 Thread Álvaro Fernández Rojas
Document the binding for the BCM6345 external interrupt controller. Signed-off-by: Álvaro Fernández Rojas Signed-off-by: Jonas Gorski --- v2: fix title typo. .../brcm,bcm6345-ext-intc.yaml| 61 +++ 1 file changed, 61 insertions(+) create mode 100644 Documenta

Re: [PATCH v3 3/8] securtiy/brute: Detect a brute force attack

2021-02-23 Thread Randy Dunlap
On 2/23/21 10:20 AM, John Wood wrote: > Hi, > > On Sun, Feb 21, 2021 at 06:47:16PM -0800, Randy Dunlap wrote: >> Hi-- >> >> scripts/kernel-doc does not like these items to be marked >> as being in kernel-doc notation. scripts/kernel-doc does not >> recognize them as one of: struct, union, enum, ty

[PATCH 01/13] staging: rtl8192e: remove blank line in bss_ht struct

2021-02-23 Thread William Durand
Fixes a checkpatch CHECK issue. Signed-off-by: William Durand --- drivers/staging/rtl8192e/rtl819x_HT.h | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl8192e/rtl819x_HT.h index 11269fe6b395..1bbb9ed18e6d 100644 --- a/drivers/staging/

[PATCH 00/13] bss_ht struct cleanups

2021-02-23 Thread William Durand
This patchset fixes the checkpatch issues related to the `bss_ht` struct defined in `rtl8192e/rtl819x_HT.h` (avoid camelcase). The first patch removes a blank line and the last patch reformats the struct a bit to be more consistent with the other types defined in the same file. William Durand (13)

[PATCH 02/13] staging: rtl8192e: rename bdSupportHT to bd_support_ht in bss_ht struct

2021-02-23 Thread William Durand
Fixes a checkpatch CHECK issue. Signed-off-by: William Durand --- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++-- drivers/staging/rtl8192e/rtllib_rx.c | 14 +++--- drivers/staging/rtl8192e/rtllib_softmac.c | 4 ++-- 4 files ch

[PATCH 03/13] staging: rtl8192e: rename bdHTCapBuf to bd_ht_cap_buf in bss_ht struct

2021-02-23 Thread William Durand
Fixes a checkpatch CHECK issue. Signed-off-by: William Durand --- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++-- drivers/staging/rtl8192e/rtllib_rx.c | 17 + drivers/staging/rtl8192e/rtllib_softmac.c | 2 +- drivers/s

[PATCH 04/13] staging: rtl8192e: rename bdHTCapLen to bd_ht_cap_len in bss_ht struct

2021-02-23 Thread William Durand
Fixes a checkpatch CHECK issue. Signed-off-by: William Durand --- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 8 drivers/staging/rtl8192e/rtllib_rx.c | 12 ++-- drivers/staging/rtl8192e/rtllib_softmac.c | 2 +- 4 files ch

[PATCH 06/13] staging: rtl8192e: rename bdHTInfoLen to bd_ht_info_len in bss_ht struct

2021-02-23 Thread William Durand
Fixes a checkpatch CHECK issue. Signed-off-by: William Durand --- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 10 +- drivers/staging/rtl8192e/rtllib_rx.c | 14 +++--- drivers/staging/rtl8192e/rtllib_softmac.c | 2 +- 4 file

[PATCH 08/13] staging: rtl8192e: rename bdBandWidth to bd_bandwidth in bss_ht struct

2021-02-23 Thread William Durand
Fixes a checkpatch CHECK issue. Signed-off-by: William Durand --- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtllib_rx.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl8192e/rtl819x

Re: [PATCH v3 1/2] dt-bindings: rng: bcm2835: document reset support

2021-02-23 Thread Álvaro Fernández Rojas
Hi Rob, > El 23 feb 2021, a las 20:34, Rob Herring escribió: > > On Tue, 23 Feb 2021 18:00:05 +0100, Álvaro Fernández Rojas wrote: >> Some devices may need to perform a reset before using the RNG, such as the >> BCM6368. >> >> Signed-off-by: Álvaro Fernández Rojas >> --- >> v3: make resets req

[PATCH 05/13] staging: rtl8192e: rename bdHTInfoBuf to bd_ht_info_buf in bss_ht struct

2021-02-23 Thread William Durand
Fixes a checkpatch CHECK issue. Signed-off-by: William Durand --- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 6 +++--- drivers/staging/rtl8192e/rtllib_rx.c | 13 +++-- drivers/staging/rtl8192e/rtllib_softmac.c | 2 +- 4 files cha

[PATCH 13/13] staging: rtl8192e: reformat bss_ht struct

2021-02-23 Thread William Durand
This change uses a space instead of tabs between the type and name of each member of the struct. Signed-off-by: William Durand --- drivers/staging/rtl8192e/rtl819x_HT.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b

[PATCH 12/13] staging: rtl8192e: rename bdHT1R to bd_ht_1r in bss_ht struct

2021-02-23 Thread William Durand
Fixes a checkpatch CHECK issue. Signed-off-by: William Durand --- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtllib_rx.c | 8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/staging/rtl8192e/rtl819x_HT.h b/drivers/staging/rtl8192e/rtl

[PATCH 09/13] staging: rtl8192e: rename bdRT2RTAggregation to bd_rt2rt_aggregation in bss_ht struct

2021-02-23 Thread William Durand
Fixes a checkpatch CHECK issue. Signed-off-by: William Durand --- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 10 +- drivers/staging/rtl8192e/rtllib_rx.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/dr

[PATCH 07/13] staging: rtl8192e: rename bdHTSpecVer to bd_ht_spec_ver in bss_ht struct

2021-02-23 Thread William Durand
Fixes a checkpatch CHECK issue. Signed-off-by: William Durand --- drivers/staging/rtl8192e/rtl819x_HT.h | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 4 ++-- drivers/staging/rtl8192e/rtllib_rx.c | 10 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/driv

[PATCH 10/13] staging: rtl8192e: rename bdRT2RTLongSlotTime to bd_rt2rt_long_slot_time in bss_ht struct

2021-02-23 Thread William Durand
Fixes a checkpatch CHECK issue. Signed-off-by: William Durand --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 3 +-- drivers/staging/rtl8192e/rtl819x_HT.h| 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c| 4 ++-- drivers/staging/rtl8192e/rtllib_rx.c | 4 ++-- 4 files chang

[PATCH 11/13] staging: rtl8192e: rename RT2RT_HT_Mode to rt2rt_ht_mode in bss_ht struct

2021-02-23 Thread William Durand
Fixes a checkpatch CHECK issue. Signed-off-by: William Durand --- drivers/staging/rtl8192e/rtl8192e/rtl_core.c | 2 +- drivers/staging/rtl8192e/rtl819x_HT.h| 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c| 8 drivers/staging/rtl8192e/rtllib_rx.c | 4 ++-- 4 files ch

Re: [GIT PULL v2] clang-lto for v5.12-rc1

2021-02-23 Thread Alexander Lobakin
From: Linus Torvalds Date: Tue, 23 Feb 2021 12:33:05 -0800 > On Tue, Feb 23, 2021 at 9:49 AM Linus Torvalds > wrote: > > > > On Mon, Feb 22, 2021 at 3:11 PM Kees Cook wrote: > > > > > > While x86 LTO enablement is done[1], it depends on some objtool > > > clean-ups[2], though it appears those a

Re: [PATCH v4 bpf-next 2/6] bpf: prevent deadlock from recursive bpf_task_storage_[get|delete]

2021-02-23 Thread Song Liu
> On Feb 23, 2021, at 3:06 AM, Peter Zijlstra wrote: > > On Mon, Feb 22, 2021 at 05:20:10PM -0800, Song Liu wrote: >> BPF helpers bpf_task_storage_[get|delete] could hold two locks: >> bpf_local_storage_map_bucket->lock and bpf_local_storage->lock. Calling >> these helpers from fentry/fexit pr

Re: [PATCH v4 bpf-next 1/6] bpf: enable task local storage for tracing programs

2021-02-23 Thread Song Liu
> On Feb 23, 2021, at 11:23 AM, Martin Lau wrote: > > On Mon, Feb 22, 2021 at 05:20:09PM -0800, Song Liu wrote: > [ ... ] > >> diff --git a/kernel/bpf/bpf_task_storage.c b/kernel/bpf/bpf_task_storage.c >> index e0da0258b732d..2034019966d44 100644 >> --- a/kernel/bpf/bpf_task_storage.c >> +++

Re: [REGRESSION] "split bio_kmalloc from bio_alloc_bioset" causing crash shortly after bootup

2021-02-23 Thread Chaitanya Kulkarni
On 2/23/21 07:09, Christoph Hellwig wrote: > I assume you are sending this patch, let me know otherwise. > If you do please add, looks good. I'll split the gfp_mask cleanup out, and will submit it with your as the author if that is ok. I'll need a signoff, though. Okay, here it is :- Signed-off

[PATCH] memcg: cleanup root memcg checks

2021-02-23 Thread Shakeel Butt
Replace the implicit checking of root memcg with explicit root memcg checking i.e. !css->parent with mem_cgroup_is_root(). Signed-off-by: Shakeel Butt --- mm/memcontrol.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/memcontrol.c b/mm/memcontrol.c index dcb5665aeb69.

[PATCH v14 00/13] SMMUv3 Nested Stage Setup (IOMMU part)

2021-02-23 Thread Eric Auger
This series brings the IOMMU part of HW nested paging support in the SMMUv3. The VFIO part is submitted separately. This is based on Jean-Philippe's [PATCH v12 00/10] iommu: I/O page faults for SMMUv3 https://lore.kernel.org/linux-arm-kernel/YBfij71tyYvh8LhB@myrica/T/ The IOMMU API is extended to

[PATCH v14 03/13] iommu/smmuv3: Allow s1 and s2 configs to coexist

2021-02-23 Thread Eric Auger
In true nested mode, both s1_cfg and s2_cfg will coexist. Let's remove the union and add a "set" field in each config structure telling whether the config is set and needs to be applied when writing the STE. In legacy nested mode, only the second stage is used. In true nested mode, both stages are

[PATCH v14 02/13] iommu: Introduce bind/unbind_guest_msi

2021-02-23 Thread Eric Auger
On ARM, MSI are translated by the SMMU. An IOVA is allocated for each MSI doorbell. If both the host and the guest are exposed with SMMUs, we end up with 2 different IOVAs allocated by each. guest allocates an IOVA (gIOVA) to map onto the guest MSI doorbell (gDB). The Host allocates another IOVA (h

[PATCH v14 01/13] iommu: Introduce attach/detach_pasid_table API

2021-02-23 Thread Eric Auger
In virtualization use case, when a guest is assigned a PCI host device, protected by a virtual IOMMU on the guest, the physical IOMMU must be programmed to be consistent with the guest mappings. If the physical IOMMU supports two translation stages it makes sense to program guest mappings onto the

[PATCH v14 04/13] iommu/smmuv3: Get prepared for nested stage support

2021-02-23 Thread Eric Auger
When nested stage translation is setup, both s1_cfg and s2_cfg are set. We introduce a new smmu_domain abort field that will be set upon guest stage1 configuration passing. If no guest stage1 config has been attached, it is ignored when writing the STE. arm_smmu_write_strtab_ent() is modified to

[PATCH v14 06/13] iommu/smmuv3: Allow stage 1 invalidation with unmanaged ASIDs

2021-02-23 Thread Eric Auger
With nested stage support, soon we will need to invalidate S1 contexts and ranges tagged with an unmanaged asid, this latter being managed by the guest. So let's introduce 2 helpers that allow to invalidate with externally managed ASIDs Signed-off-by: Eric Auger --- v13 -> v14 - Actually send t

[PATCH v14 05/13] iommu/smmuv3: Implement attach/detach_pasid_table

2021-02-23 Thread Eric Auger
On attach_pasid_table() we program STE S1 related info set by the guest into the actual physical STEs. At minimum we need to program the context descriptor GPA and compute whether the stage1 is translated/bypassed or aborted. On detach, the stage 1 config is unset and the abort flag is unset. Sig

[PATCH v14 10/13] iommu/smmuv3: Enforce incompatibility between nested mode and HW MSI regions

2021-02-23 Thread Eric Auger
Nested mode currently is not compatible with HW MSI reserved regions. Indeed MSI transactions targeting this MSI doorbells bypass the SMMU. Let's check nested mode is not attempted in such configuration. Signed-off-by: Eric Auger --- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 23

[PATCH v14 09/13] iommu/smmuv3: Nested mode single MSI doorbell per domain enforcement

2021-02-23 Thread Eric Auger
In nested mode we enforce the rule that all devices belonging to the same iommu_domain share the same msi_domain. Indeed if there were several physical MSI doorbells being used within a single iommu_domain, it becomes really difficult to resolve the nested stage mapping translating into the correc

[PATCH v14 07/13] iommu/smmuv3: Implement cache_invalidate

2021-02-23 Thread Eric Auger
Implement domain-selective, pasid selective and page-selective IOTLB invalidations. Signed-off-by: Eric Auger --- v13 -> v14: - Add domain invalidation - do global inval when asid is not provided with addr granularity v7 -> v8: - ASID based invalidation using iommu_inv_pasid_info - check ARC

[PATCH v14 11/13] iommu/smmuv3: Implement bind/unbind_guest_msi

2021-02-23 Thread Eric Auger
The bind/unbind_guest_msi() callbacks check the domain is NESTED and redirect to the dma-iommu implementation. Signed-off-by: Eric Auger --- v6 -> v7: - remove device handle argument --- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 43 + 1 file changed, 43 insertions(+) d

[PATCH v14 13/13] iommu/smmuv3: Accept configs with more than one context descriptor

2021-02-23 Thread Eric Auger
In preparation for vSVA, let's accept userspace provided configs with more than one CD. We check the max CD against the host iommu capability and also the format (linear versus 2 level). Signed-off-by: Eric Auger Signed-off-by: Shameer Kolothum --- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c |

[PATCH v14 12/13] iommu/smmuv3: report additional recoverable faults

2021-02-23 Thread Eric Auger
Up to now we have only reported translation faults. Now that the guest can induce some configuration faults, let's report them too. Add propagation for BAD_SUBSTREAMID, CD_FETCH, BAD_CD, WALK_EABT. We also fix the transcoding for some existing translation faults. Signed-off-by: Eric Auger --- dr

[PATCH v14 08/13] dma-iommu: Implement NESTED_MSI cookie

2021-02-23 Thread Eric Auger
Up to now, when the type was UNMANAGED, we used to allocate IOVA pages within a reserved IOVA MSI range. If both the host and the guest are exposed with SMMUs, each would allocate an IOVA. The guest allocates an IOVA (gIOVA) to map onto the guest MSI doorbell (gDB). The Host allocates another IOVA

[PATCH] dt-bindings: media: Use graph and video-interfaces schemas, round 2

2021-02-23 Thread Rob Herring
A couple of media schemas got applied without using or incorrectly using the video-interfaces.yaml and graph.yaml schemas. Fix them up before we have more copy-n-paste errors. Fixes: 41b3e23376e9 ("media: dt-bindings: media: Add bindings for imx334") Fixes: d899e5f1db7a ("media: dt-bindings: media

Re: [PATCH 5.11 00/12] 5.11.1-rc1 review

2021-02-23 Thread Shuah Khan
On 2/22/21 5:12 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.11.1 release. There are 12 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made b

Re: mainline/master bisection: baseline.login on meson-sm1-khadas-vim3l

2021-02-23 Thread Guillaume Tucker
On 23/02/2021 14:18, Marc Zyngier wrote: > Hi Guillaume, > > On Tue, 23 Feb 2021 09:46:30 +, > Guillaume Tucker wrote: >> >> Hello Marc, >> >> Please see the bisection report below about a boot failure on >> meson-sm1-khadas-vim3l on mainline. It seems to only be >> affecting kernels built w

Re: [PATCH 5.10 00/29] 5.10.18-rc1 review

2021-02-23 Thread Shuah Khan
On 2/22/21 5:12 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.10.18 release. There are 29 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

[PATCH v12 01/13] vfio: VFIO_IOMMU_SET_PASID_TABLE

2021-02-23 Thread Eric Auger
From: "Liu, Yi L" This patch adds an VFIO_IOMMU_SET_PASID_TABLE ioctl which aims to pass the virtual iommu guest configuration to the host. This latter takes the form of the so-called PASID table. Signed-off-by: Jacob Pan Signed-off-by: Liu, Yi L Signed-off-by: Eric Auger --- v11 -> v12: - u

Re: [PATCH 2/2] units: Use the HZ_PER_KHZ macro

2021-02-23 Thread Christian Eggers
On Tuesday, 23 February 2021, 21:30:02 CET, Daniel Lezcano wrote: > The HZ_PER_KHZ macro definition is duplicated in different subsystems. > > The macro now exists in include/linux/units.h, make use of it and > remove all the duplicated ones. > > Signed-off-by: Daniel Lezcano > --- > drivers/de

[PATCH v12 02/13] vfio: VFIO_IOMMU_CACHE_INVALIDATE

2021-02-23 Thread Eric Auger
From: "Liu, Yi L" When the guest "owns" the stage 1 translation structures, the host IOMMU driver has no knowledge of caching structure updates unless the guest invalidation requests are trapped and passed down to the host. This patch adds the VFIO_IOMMU_CACHE_INVALIDATE ioctl with aims at prop

[PATCH v12 03/13] vfio: VFIO_IOMMU_SET_MSI_BINDING

2021-02-23 Thread Eric Auger
This patch adds the VFIO_IOMMU_SET_MSI_BINDING ioctl which aim to (un)register the guest MSI binding to the host. This latter then can use those stage 1 bindings to build a nested stage binding targeting the physical MSIs. Signed-off-by: Eric Auger --- v11 -> v12: - Share VFIO_BASE + 20 with VF

[PATCH v12 04/13] vfio/pci: Add VFIO_REGION_TYPE_NESTED region type

2021-02-23 Thread Eric Auger
Add a new specific DMA_FAULT region aiming to exposed nested mode translation faults. This region only is exposed if the device is attached to a nested domain. The region has a ring buffer that contains the actual fault records plus a header allowing to handle it (tail/head indices, max capacity,

[PATCH v12 05/13] vfio/pci: Register an iommu fault handler

2021-02-23 Thread Eric Auger
Register an IOMMU fault handler which records faults in the DMA FAULT region ring buffer. In a subsequent patch, we will add the signaling of a specific eventfd to allow the userspace to be notified whenever a new fault has shown up. Signed-off-by: Eric Auger --- v11 -> v12: - take the fault_que

[PATCH v12 09/13] vfio: Add new IRQ for DMA fault reporting

2021-02-23 Thread Eric Auger
Add a new IRQ type/subtype to get notification on nested stage DMA faults. Signed-off-by: Eric Auger --- include/uapi/linux/vfio.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/vfio.h b/include/uapi/linux/vfio.h index 3688215843fe..f0eea0f9305a 100644 --- a/include/ua

[PATCH v12 11/13] vfio: Document nested stage control

2021-02-23 Thread Eric Auger
The VFIO API was enhanced to support nested stage control: a bunch of new iotcls, one DMA FAULT region and an associated specific IRQ. Let's document the process to follow to set up nested mode. Signed-off-by: Eric Auger --- v11 -> v12: s/VFIO_REGION_INFO_CAP_PRODUCER_FAULT/VFIO_REGION_INFO_CA

[PATCH v12 08/13] vfio/pci: Add framework for custom interrupt indices

2021-02-23 Thread Eric Auger
Implement IRQ capability chain infrastructure. All interrupt indexes beyond VFIO_PCI_NUM_IRQS are handled as extended interrupts. They are registered with a specific type/subtype and supported flags. Signed-off-by: Eric Auger --- v11 -> v12: - check !vdev->num_ext_irqs in vfio_pci_set_ext_irq_t

[PATCH v12 13/13] vfio/pci: Inject page response upon response region fill

2021-02-23 Thread Eric Auger
When the userspace increments the head of the page response buffer ring, let's push the response into the iommu layer. This is done through a workqueue that pops the responses from the ring buffer and increment the tail. Signed-off-by: Eric Auger --- drivers/vfio/pci/vfio_pci.c | 40

[PATCH v12 12/13] vfio/pci: Register a DMA fault response region

2021-02-23 Thread Eric Auger
In preparation for vSVA, let's register a DMA fault response region, where the userspace will push the page responses and increment the head of the buffer. The kernel will pop those responses and inject them on iommu side. Signed-off-by: Eric Auger --- v11 -> v12: - use DMA_FAULT_RESPONSE cap [

[PATCH v12 00/13] SMMUv3 Nested Stage Setup (VFIO part)

2021-02-23 Thread Eric Auger
This series brings the VFIO part of HW nested paging support in the SMMUv3. This is a rebase on top of v5.11 The series depends on: [PATCH v14 00/13] SMMUv3 Nested Stage Setup (IOMMU part) 3 new IOCTLs are introduced that allow the userspace to 1) pass the guest stage 1 configuration 2) pass sta

[PATCH v12 06/13] vfio/pci: Allow to mmap the fault queue

2021-02-23 Thread Eric Auger
The DMA FAULT region contains the fault ring buffer. There is benefit to let the userspace mmap this area. Expose this mmappable area through a sparse mmap entry and implement the mmap operation. Signed-off-by: Eric Auger --- v8 -> v9: - remove unused index local variable in vfio_pci_fault_mmap

[PATCH v12 07/13] vfio: Use capability chains to handle device specific irq

2021-02-23 Thread Eric Auger
From: Tina Zhang Caps the number of irqs with fixed indexes and uses capability chains to chain device specific irqs. Signed-off-by: Tina Zhang Signed-off-by: Eric Auger [Eric: Put cap_offset at the end of the vfio_irq_info struct, remove GFX IRQ at the moment and remove any reference to this

[PATCH] scripts/dtc: Add missing fdtoverlay to gitignore

2021-02-23 Thread Rob Herring
Commit 0da6bcd9fcc0 ("scripts: dtc: Build fdtoverlay tool") enabled building fdtoverlay, but failed to add it to .gitignore. Also add a note to keep hostprogs in sync with .gitignore. Fixes: 0da6bcd9fcc0 ("scripts: dtc: Build fdtoverlay tool") Reported-by: Linus Torvalds Cc: Viresh Kumar Signed

Re: [PATCH 5.4 00/13] 5.4.100-rc1 review

2021-02-23 Thread Shuah Khan
On 2/22/21 5:13 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 5.4.100 release. There are 13 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

[PATCH v12 10/13] vfio/pci: Register and allow DMA FAULT IRQ signaling

2021-02-23 Thread Eric Auger
Register the VFIO_IRQ_TYPE_NESTED/VFIO_IRQ_SUBTYPE_DMA_FAULT IRQ that allows to signal a nested mode DMA fault. Signed-off-by: Eric Auger --- v10 -> v11: - the irq now is registered in vfio_pci_dma_fault_init() in case the domain is nested --- drivers/vfio/pci/vfio_pci.c | 21 +++

Hello

2021-02-23 Thread Ms. Reem
Hello, My name is Ms. Reem Ebrahim Al-Hashimi, I am the "Minister of state and Petroleum" also "Minister of State for International Cooperation" in UAE. I write to you on behalf of my other "two (2) colleagues" who has approved me to solicit for your "partnership in claiming of {us$47=Million}" fr

Re: [PATCH v2] leds: apu: extend support for PC Engines APU1 with newer firmware

2021-02-23 Thread Zbyněk Kocur
Hello, I checked my stock and I have following models: - apu2e2 - apu2e4 - apu3d4 - apu4c4 The bios in all models can be upgraded from version 4.0.6 to higher. The latest is 4.13.0.3. Zbyněk --- email: zbynek.ko...@fel.cvut.cz mobile: +420 728 946 803 phone: +420 224 354 054 web: https://comte

Re: [PATCH 4.19 00/50] 4.19.177-rc1 review

2021-02-23 Thread Shuah Khan
On 2/22/21 5:12 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.19.177 release. There are 50 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

Re: [PATCH 4.9 00/49] 4.9.258-rc1 review

2021-02-23 Thread Shuah Khan
On 2/22/21 5:35 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.9.258 release. There are 49 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

Re: [PATCH] dts: drop dangling c6x symlink

2021-02-23 Thread Rob Herring
On Tue, 23 Feb 2021 21:41:14 +0100, Michal Kubecek wrote: > With c6x architecture removal, scripts/dtc/include-prefixes/c6x symlink > lost its target. Drop the dangling symlink which triggers some distribution > check scripts. > > Fixes: a579fcfa8e49 ("c6x: remove architecture") > Signed-off-by: M

[GIT] Sparc

2021-02-23 Thread David Miller
A host of mall cleanups and adjustments that have accumulated while I was away, nothing major. Please pull, thanks a lot! The following changes since commit dd0d718152e4c65b173070d48ea9dfc06894c3e5: Merge tag 'spi-fix-v5.8-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi (2

Re: [PATCH] dt-bindings: media: Use graph and video-interfaces schemas, round 2

2021-02-23 Thread Sakari Ailus
Hi Rob, On Tue, Feb 23, 2021 at 03:01:27PM -0600, Rob Herring wrote: > A couple of media schemas got applied without using or incorrectly > using the video-interfaces.yaml and graph.yaml schemas. Fix them up > before we have more copy-n-paste errors. > > Fixes: 41b3e23376e9 ("media: dt-bindings:

Re: [PATCH 0/7] PCI support for UML

2021-02-23 Thread Johannes Berg
On Tue, 2021-02-23 at 16:27 +0100, Johannes Berg wrote: > In order to simulate some devices and write tests completely > independent of real PCI devices, we continued the development > of time-travel and related bits, and are adding PCI support > here now. > > The way it works is that it communica

Re: [PATCH v4 bpf-next 5/6] bpf: runqslower: prefer using local vmlimux to generate vmlinux.h

2021-02-23 Thread Martin KaFai Lau
On Mon, Feb 22, 2021 at 05:20:13PM -0800, Song Liu wrote: > Update the Makefile to prefer using $(O)/mvlinux, $(KBUILD_OUTPUT)/vmlinux s/mvlinux/vmlinux/

Re: [PATCH 4.4 00/35] 4.4.258-rc1 review

2021-02-23 Thread Shuah Khan
On 2/22/21 5:35 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.4.258 release. There are 35 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be made

Re: [PATCH] mm, kasan: don't poison boot memory

2021-02-23 Thread George Kennedy
On 2/23/2021 3:09 PM, Mike Rapoport wrote: On Tue, Feb 23, 2021 at 01:05:05PM -0500, George Kennedy wrote: On 2/23/2021 10:47 AM, Mike Rapoport wrote: It now crashes here: [    0.051019] ACPI: Early table checksum verification disabled [    0.056721] ACPI: RSDP 0xBFBFA014 24 (v0

Re: [PATCH] drivers: infiniband: sw: rxe: fix kconfig dependency on CRYPTO

2021-02-23 Thread Arnd Bergmann
On Tue, Feb 23, 2021 at 9:46 PM Julian Braha wrote: > > I have other similar patches that I intend to submit. What should I do, > going forward? Should I use "depends on CRYPTO" for cases like these? > Should I resubmit this patch with that change? No, we should not mix the two methods, that just

Re: [PATCH 1/2] usb: gadget: s3c: Fix incorrect resources releasing

2021-02-23 Thread Christophe JAILLET
Le 22/02/2021 à 07:03, Dan Carpenter a écrit : On Sun, Feb 21, 2021 at 08:41:17AM +0100, Christophe JAILLET wrote: Since commit fe0f8e5c9ba8 ("usb: gadget: s3c: use platform resources"), This the wrong hash. It should be 188db4435ac6 from the URL you posted below. regards, dan carpenter O

RE: [PATCH] scripts/gdb: document lx_current is only supported by x86

2021-02-23 Thread Song Bao Hua (Barry Song)
> -Original Message- > From: Song Bao Hua (Barry Song) > Sent: Tuesday, February 23, 2021 9:30 PM > To: 'Jan Kiszka' ; kieran.bing...@ideasonboard.com; > cor...@lwn.net; linux-...@vger.kernel.org > Cc: linux-kernel@vger.kernel.org; linux...@openeuler.org > Subject: RE: [PATCH] scripts/gdb

ERROR: modpost: "mipi_dsi_attach" undefined!

2021-02-23 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 3b9cdafb5358eb9f3790de2f728f765fef100731 commit: 0cbbd5b1a012cdc324187889956ff2632025cb17 drm: bridge: add support for lontium LT9611UXC bridge date: 4 months ago config: s390-randconfig-r022-20210223

Re: [PATCH v4 bpf-next 6/6] bpf: runqslower: use task local storage

2021-02-23 Thread Martin KaFai Lau
On Mon, Feb 22, 2021 at 05:20:14PM -0800, Song Liu wrote: > Replace hashtab with task local storage in runqslower. This improves the > performance of these BPF programs. The following table summarizes average > runtime of these programs, in nanoseconds: > > task-local h

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