[syzbot] upstream boot error: WARNING in __context_tracking_enter

2021-03-19 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:8b12a62a Merge tag 'drm-fixes-2021-03-19' of git://anongit.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=17e815aed0 kernel config: https://syzkaller.appspot.com/x/.config?x=cfeed364fc353c32 das

[syzbot] WARNING in percpu_ref_exit (3)

2021-03-19 Thread syzbot
Hello, syzbot found the following issue on: HEAD commit:bf152b0b Merge tag 'for_linus' of git://git.kernel.org/pub.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14532c1ad0 kernel config: https://syzkaller.appspot.com/x/.config?x=e2f52d48cfe68458 das

[GIT PULL] sound fixes for 5.12-rc4

2021-03-19 Thread Takashi Iwai
Linus, please pull sound fixes for v5.12-rc4 from: git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-5.12-rc4 The topmost commit is 50b1affc891cbc103a2334ce909a026e25f4c84d sound fixes for 5.12-rc4 Majo

Re: [PATCH][next] loop: Fix missing max_active argument in alloc_workqueue call

2021-03-19 Thread Dan Carpenter
On Thu, Mar 18, 2021 at 02:42:33PM -0600, Jens Axboe wrote: > On 3/18/21 2:24 PM, Colin Ian King wrote: > > On 18/03/2021 20:12, Jens Axboe wrote: > >> On 3/18/21 9:16 AM, Colin King wrote: > >>> From: Colin Ian King > >>> > >>> The 3rd argument to alloc_workqueue should be the max_active count, >

Re: [PATCH v2 08/14] objtool: Add elf_create_reloc() helper

2021-03-19 Thread Peter Zijlstra
On Thu, Mar 18, 2021 at 08:42:46PM -0500, Josh Poimboeuf wrote: > On Thu, Mar 18, 2021 at 06:11:11PM +0100, Peter Zijlstra wrote: > > We have 4 instances of adding a relocation. Create a common helper > > to avoid growing even more. > > > > Signed-off-by: Peter Zijlstra (Intel) > > I'm not a fan

Re: [PATCH v7 13/17] media: uvcvideo: Return -EACCES to inactive controls

2021-03-19 Thread Ricardo Ribalda
Hi Hans Thanks for testing this. On Fri, Mar 19, 2021 at 10:10 AM Hans Verkuil wrote: > > On 18/03/2021 21:29, Ricardo Ribalda wrote: > > If a control is inactive return -EACCES to let the userspace know that > > the value will not be applied automatically when the control is active > > again

Re: [PATCH 1/3] dt-bindings: imx6q-pcie: specify the imx8mq pcie phy voltage

2021-03-19 Thread Lucas Stach
Am Freitag, dem 19.03.2021 um 16:24 +0800 schrieb Richard Zhu: > Both 1.8v and 3.3v power supplies can be feeded to i.MX8MQ PCIe PHY. > In default, the PCIE_VPH voltage is suggested to be 1.8v refer to data > sheet. When PCIE_VPH is supplied by 3.3v in the HW schematic design, > the VREG_BYPASS bit

Re: [PATCH 5.11 000/306] 5.11.7-rc1 review

2021-03-19 Thread Greg Kroah-Hartman
On Tue, Mar 16, 2021 at 10:45:40AM +0530, Naresh Kamboju wrote: > On Mon, 15 Mar 2021 at 19:27, wrote: > > > > From: Greg Kroah-Hartman > > > > This is the start of the stable review cycle for the 5.11.7 release. > > There are 306 patches in this series, all will be posted as a response > > to th

Re: [PATCH 5.10 000/290] 5.10.24-rc1 review

2021-03-19 Thread Greg KH
On Mon, Mar 15, 2021 at 01:36:06PM -0700, Florian Fainelli wrote: > > > On 3/15/2021 6:51 AM, gre...@linuxfoundation.org wrote: > > From: Greg Kroah-Hartman > > > > This is the start of the stable review cycle for the 5.10.24 release. > > There are 290 patches in this series, all will be posted

[PATCH V3] drm/ast: Disable fast reset after DRAM initial

2021-03-19 Thread KuoHsiang Chou
[Bug][AST2500] V1: When AST2500 acts as stand-alone VGA so that DRAM and DVO initialization have to be achieved by VGA driver with P2A (PCI to AHB) enabling. However, HW suggests disable Fast reset mode after DRAM initializaton, because fast reset mode is mainly designed for ARM ICE debugger. Once

Re: [PATCH v2 09/14] objtool: Extract elf_strtab_concat()

2021-03-19 Thread Peter Zijlstra
On Thu, Mar 18, 2021 at 09:10:38PM -0500, Josh Poimboeuf wrote: > On Thu, Mar 18, 2021 at 06:11:12PM +0100, Peter Zijlstra wrote: > > Create a common helper to append strings to a strtab. > > > > Signed-off-by: Peter Zijlstra (Intel) > > --- > > tools/objtool/elf.c | 73 > > ++

RE: [PATCH v2] exfat: speed up iterate/lookup by fixing start point of traversing cluster chain

2021-03-19 Thread Sungjong Seo
> When directory iterate and lookup is called, there's a buggy rewinding of > start point for traversing cluster chain to the parent directory entry's > first cluster. This caused repeated cluster chain traversing from the > first entry of the parent directory that would show worse performance if >

Re: [PATCH v2 10/14] objtool: Extract elf_symbol_add()

2021-03-19 Thread Peter Zijlstra
On Thu, Mar 18, 2021 at 09:14:03PM -0500, Josh Poimboeuf wrote: > On Thu, Mar 18, 2021 at 06:11:13PM +0100, Peter Zijlstra wrote: > > Create a common helper to add symbols. > > > > Signed-off-by: Peter Zijlstra (Intel) > > --- > > tools/objtool/elf.c | 57 > > ++---

Re: [syzbot] upstream boot error: WARNING in __context_tracking_enter

2021-03-19 Thread Dmitry Vyukov
.On Fri, Mar 19, 2021 at 10:44 AM syzbot wrote: > > Hello, > > syzbot found the following issue on: > > HEAD commit:8b12a62a Merge tag 'drm-fixes-2021-03-19' of git://anongit.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=17e815aed0 > kernel config

Re: [PATCH 01/19] drm/nouveau/nvkm/subdev/bios/init: Demote obvious abuse of kernel-doc

2021-03-19 Thread Karol Herbst
Reviewed-by: Karol Herbst On Fri, Mar 19, 2021 at 9:24 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c:584: warning: Function > parameter or member 'init' not described in 'init_reserved' > drivers/gpu/drm/nouveau/nv

[PATCH][next] octeontx2-pf: Fix spelling mistake "ratelimitter" -> "ratelimiter"

2021-03-19 Thread Colin King
From: Colin Ian King There is a spelling mistake in an error message. Fix it. Signed-off-by: Colin Ian King --- drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_tc.c b/drive

Re: [PATCH 05/19] drm/nouveau/nvkm/subdev/volt/gk20a: Demote non-conformant kernel-doc headers

2021-03-19 Thread Karol Herbst
On Fri, Mar 19, 2021 at 9:24 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk20a.c:53: warning: Function > parameter or member 'speedo' not described in 'gk20a_volt_get_cvb_voltage' > drivers/gpu/drm/nouveau/nvkm/subdev/vol

Re: [PATCH 09/19] drm/nouveau/nvkm/engine/gr/gf100: Demote non-conformant kernel-doc header

2021-03-19 Thread Karol Herbst
On Fri, Mar 19, 2021 at 9:25 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c:992: warning: Function > parameter or member 'gr' not described in 'gf100_gr_wait_idle' > > Cc: Ben Skeggs > Cc: David Airlie > Cc: Daniel Ve

Re: [PATCH 10/19] drm/nouveau/nouveau_bo: Remove unused variables 'dev'

2021-03-19 Thread Karol Herbst
On Fri, Mar 19, 2021 at 9:25 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/nouveau/nouveau_bo.c: In function ‘nouveau_ttm_tt_populate’: > drivers/gpu/drm/nouveau/nouveau_bo.c:1228:17: warning: variable ‘dev’ set > but not used [-Wunused-but-set-var

Re: [PATCH 15/19] drm/nouveau/nv50_display: Remove superfluous prototype for local static functions

2021-03-19 Thread Karol Herbst
On Fri, Mar 19, 2021 at 9:25 AM Lee Jones wrote: > > Fixes the following build error: > > drivers/gpu/drm/nouveau/dispnv50/disp.c:2530:1: error: conflicting types for > ‘nv50_display_fini’ > In file included from drivers/gpu/drm/nouveau/dispnv50/disp.c:71: > drivers/gpu/drm/nouveau/nv50_displa

Re: [PATCH 17/19] drm/nouveau/nouveau_ioc32: File headers are not good candidates for kernel-doc

2021-03-19 Thread Karol Herbst
On Fri, Mar 19, 2021 at 9:25 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/nouveau/nouveau_ioc32.c:2: warning: Cannot understand * > file mga_ioc32.c > > Cc: Ben Skeggs > Cc: David Airlie > Cc: Daniel Vetter > Cc: dri-de...@lists.freedesktop.org

Re: [PATCH 19/19] drm/nouveau/nouveau_ioc32: Demote kernel-doc abuse to standard comment block

2021-03-19 Thread Karol Herbst
On Fri, Mar 19, 2021 at 9:25 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/nouveau/nouveau_ioc32.c:52: warning: Function parameter or > member 'filp' not described in 'nouveau_compat_ioctl' > drivers/gpu/drm/nouveau/nouveau_ioc32.c:52: warning: Fun

Re: [PATCH 12/19] drm/nouveau/dispnv04/crtc: Demote non-conforming kernel-doc headers

2021-03-19 Thread Karol Herbst
On Fri, Mar 19, 2021 at 9:25 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/nouveau/dispnv04/crtc.c:462: warning: Function parameter or > member 'crtc' not described in 'nv_crtc_mode_set_regs' > drivers/gpu/drm/nouveau/dispnv04/crtc.c:462: warning:

[PATCH][next] iommu: Fix spelling mistake "sixe" -> "size"

2021-03-19 Thread Colin King
From: Colin Ian King There is a spelling mistake in a dev_err message. Fix it. Signed-off-by: Colin Ian King --- drivers/iommu/sprd-iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/sprd-iommu.c b/drivers/iommu/sprd-iommu.c index 7100ed17dcce..e1dc2f7d56

Re: [PATCH v5 2/5] mm,compaction: Let isolate_migratepages_{range,block} return error codes

2021-03-19 Thread Oscar Salvador
On Thu, Mar 18, 2021 at 12:36:52PM +0100, Michal Hocko wrote: > Yeah, makes sense. I am not a fan of the above form of documentation. > Btw. maybe renaming the field would be even better, both from the > intention and review all existing users. I would go with pfn_iter or > something that wouldn't

Re: include/linux/unaligned/be_byteshift.h:46:19: error: redefinition of 'get_unaligned_be32'

2021-03-19 Thread Andy Shevchenko
On Fri, Mar 19, 2021 at 9:05 AM kernel test robot wrote: > > Hi Linus, > > FYI, the error/warning still remains. > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 8b12a62a4e3ed4ae99c715034f557eb391d6b196 > commit: de8860b1ed4701ea7e6f760f02d79ca6a3b

Re: [PATCH 14/19] drm/nouveau/dispnv50/headc57d: Make local function 'headc57d_olut' static

2021-03-19 Thread Karol Herbst
On Fri, Mar 19, 2021 at 9:25 AM Lee Jones wrote: > > Fixes the following W=1 kernel build warning(s): > > drivers/gpu/drm/nouveau/dispnv50/headc57d.c:173:1: warning: no previous > prototype for ‘headc57d_olut’ [-Wmissing-prototypes] > > Cc: Ben Skeggs > Cc: David Airlie > Cc: Daniel Vetter >

Re: Patch "arm64: Unconditionally set virtual cpu id registers" has been added to the 4.14-stable tree

2021-03-19 Thread Greg KH
On Fri, Mar 19, 2021 at 10:52:29AM +0100, gre...@linuxfoundation.org wrote: > > This is a note to let you know that I've just added the patch titled > > arm64: Unconditionally set virtual cpu id registers > > to the 4.14-stable tree which can be found at: > > http://www.kernel.org/git/?

Re: [PATCH V4 05/18] iommu/ioasid: Redefine IOASID set and allocation APIs

2021-03-19 Thread Jean-Philippe Brucker
Hi Jacob, On Thu, Mar 18, 2021 at 05:22:34PM -0700, Jacob Pan wrote: > Hi Jean, > > Slightly off the title. As we are moving to use cgroup to limit PASID > allocations, it would be much simpler if we enforce on the current task. Yes I think we should do that. Is there a problem with charging the

Re: [PATCH][next] loop: Fix missing max_active argument in alloc_workqueue call

2021-03-19 Thread Krzysztof Kozlowski
On 18/03/2021 21:42, Jens Axboe wrote: > On 3/18/21 2:24 PM, Colin Ian King wrote: >> On 18/03/2021 20:12, Jens Axboe wrote: >>> On 3/18/21 9:16 AM, Colin King wrote: From: Colin Ian King The 3rd argument to alloc_workqueue should be the max_active count, however currently it i

Re: include/linux/unaligned/be_byteshift.h:41:19: error: redefinition of 'get_unaligned_be16'

2021-03-19 Thread Andy Shevchenko
On Fri, Mar 19, 2021 at 10:49 AM kernel test robot wrote: > > Hi Linus, > > FYI, the error/warning still remains. > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git > master > head: 8b12a62a4e3ed4ae99c715034f557eb391d6b196 > commit: de8860b1ed4701ea7e6f760f02d79ca6a3

Re: [PATCH RFC 2/2] genirq/matrix: WARN_ON_ONCE() when cm->allocated/m->total_allocated go negative

2021-03-19 Thread Vitaly Kuznetsov
Thomas Gleixner writes: > On Thu, Mar 18 2021 at 08:58, Vitaly Kuznetsov wrote: >> Thomas Gleixner writes: >>> There is a way more useful way to handle this. In such a case the bit is >>> NOT set in the alloc map. So: >>> >>> if (!WARN_ON_ONCE(test_and_clear_bit(bit, cm->alloc_map))) >>>

Re: [RESEND PATCH v2] perf stat: improve readability of shadow stats

2021-03-19 Thread Jiri Olsa
On Thu, Mar 18, 2021 at 11:12:40PM +0800, Changbin Du wrote: > On Tue, Mar 16, 2021 at 02:53:41PM +0100, Jiri Olsa wrote: > > On Mon, Mar 15, 2021 at 10:30:47PM +0800, Changbin Du wrote: > > > > SNIP > > > > > diff --git a/tools/perf/util/stat-shadow.c b/tools/perf/util/stat-shadow.c > > > index

Re: [PATCH v6 4/6] mfd: ahc1ec0: Add support for Advantech embedded controller

2021-03-19 Thread Campion Kang
Please check [Campion] text in below as my reply. Sorry, due to the mail was rejected by vger.kernel.org as SPAM before so I reply the mail late and had some test email before. - Date: Tue, 9 Mar 2021 1

Re: [PATCH v1 1/5] mfd: intel_quark_i2c_gpio: revert "Constify static struct resources"

2021-03-19 Thread Andy Shevchenko
On Fri, Mar 19, 2021 at 10:41 AM Lee Jones wrote: > On Thu, 18 Mar 2021, Andy Shevchenko wrote: > > On Tue, Mar 02, 2021 at 09:59:03PM +0100, Rikard Falkeborn wrote: > > > On Tue, Mar 02, 2021 at 03:56:16PM +0200, Andy Shevchenko wrote: ... > > > Sorry about that :( > > > > > > Reviewed-by: Rika

[PATCH v6 02/38] KVM: arm64: Link position-independent string routines into .hyp.text

2021-03-19 Thread Quentin Perret
From: Will Deacon Pull clear_page(), copy_page(), memcpy() and memset() into the nVHE hyp code and ensure that we always execute the '__pi_' entry point on the offchance that it changes in future. [ qperret: Commit title nits and added linker script alias ] Signed-off-by: Will Deacon Signed-of

[PATCH v6 04/38] KVM: arm64: Initialize kvm_nvhe_init_params early

2021-03-19 Thread Quentin Perret
Move the initialization of kvm_nvhe_init_params in a dedicated function that is run early, and only once during KVM init, rather than every time the KVM vectors are set and reset. This also opens the opportunity for the hypervisor to change the init structs during boot, hence simplifying the repla

[PATCH v6 03/38] arm64: kvm: Add standalone ticket spinlock implementation for use at hyp

2021-03-19 Thread Quentin Perret
From: Will Deacon We will soon need to synchronise multiple CPUs in the hyp text at EL2. The qspinlock-based locking used by the host is overkill for this purpose and relies on the kernel's "percpu" implementation for the MCS nodes. Implement a simple ticket locking scheme based heavily on the c

[PATCH v6 00/38] KVM: arm64: Stage-2 for the host

2021-03-19 Thread Quentin Perret
Hi all, This is the v6 of the series previously posted here: https://lore.kernel.org/r/20210315143536.214621-1-qper...@google.com/ This basically allows us to wrap the host with a stage 2 when running in nVHE, hence paving the way for protecting guest memory from the host in the future (among

Re: [RFC PATCH v5 1/4] topology: Represent clusters of CPUs within a die

2021-03-19 Thread Greg KH
On Fri, Mar 19, 2021 at 09:36:16AM +, Jonathan Cameron wrote: > On Fri, 19 Mar 2021 06:57:08 + > "Song Bao Hua (Barry Song)" wrote: > > > > -Original Message- > > > From: Greg KH [mailto:gre...@linuxfoundation.org] > > > Sent: Friday, March 19, 2021 7:35 PM > > > To: Song Bao Hua

[PATCH v6 01/38] arm64: lib: Annotate {clear,copy}_page() as position-independent

2021-03-19 Thread Quentin Perret
From: Will Deacon clear_page() and copy_page() are suitable for use outside of the kernel address space, so annotate them as position-independent code. Signed-off-by: Will Deacon Signed-off-by: Quentin Perret --- arch/arm64/lib/clear_page.S | 4 ++-- arch/arm64/lib/copy_page.S | 4 ++-- 2 fi

[PATCH v6 07/38] KVM: arm64: Introduce a BSS section for use at Hyp

2021-03-19 Thread Quentin Perret
Currently, the hyp code cannot make full use of a bss, as the kernel section is mapped read-only. While this mapping could simply be changed to read-write, it would intermingle even more the hyp and kernel state than they currently are. Instead, introduce a __hyp_bss section, that uses reserved pa

[PATCH v6 08/38] KVM: arm64: Make kvm_call_hyp() a function call at Hyp

2021-03-19 Thread Quentin Perret
kvm_call_hyp() has some logic to issue a function call or a hypercall depending on the EL at which the kernel is running. However, all the code compiled under __KVM_NVHE_HYPERVISOR__ is guaranteed to only run at EL2 which allows us to simplify. Add ifdefery to kvm_host.h to simplify kvm_call_hyp()

[PATCH v6 09/38] KVM: arm64: Allow using kvm_nvhe_sym() in hyp code

2021-03-19 Thread Quentin Perret
In order to allow the usage of code shared by the host and the hyp in static inline library functions, allow the usage of kvm_nvhe_sym() at EL2 by defaulting to the raw symbol name. Acked-by: Will Deacon Signed-off-by: Quentin Perret --- arch/arm64/include/asm/hyp_image.h | 4 1 file chang

[PATCH v6 10/38] KVM: arm64: Introduce an early Hyp page allocator

2021-03-19 Thread Quentin Perret
With nVHE, the host currently creates all stage 1 hypervisor mappings at EL1 during boot, installs them at EL2, and extends them as required (e.g. when creating a new VM). But in a world where the host is no longer trusted, it cannot have full control over the code mapped in the hypervisor. In pre

[PATCH v6 13/38] KVM: arm64: Enable access to sanitized CPU features at EL2

2021-03-19 Thread Quentin Perret
Introduce the infrastructure in KVM enabling to copy CPU feature registers into EL2-owned data-structures, to allow reading sanitised values directly at EL2 in nVHE. Given that only a subset of these features are being read by the hypervisor, the ones that need to be copied are to be listed under

[PATCH v6 15/38] KVM: arm64: Factor out vector address calculation

2021-03-19 Thread Quentin Perret
In order to re-map the guest vectors at EL2 when pKVM is enabled, refactor __kvm_vector_slot2idx() and kvm_init_vector_slot() to move all the address calculation logic in a static inline function. Acked-by: Will Deacon Signed-off-by: Quentin Perret --- arch/arm64/include/asm/kvm_mmu.h | 8 +

[PATCH v6 17/38] KVM: arm64: Prepare the creation of s1 mappings at EL2

2021-03-19 Thread Quentin Perret
When memory protection is enabled, the EL2 code needs the ability to create and manage its own page-table. To do so, introduce a new set of hypercalls to bootstrap a memory management system at EL2. This leads to the following boot flow in nVHE Protected mode: 1. the host allocates memory for th

[PATCH v6 05/38] KVM: arm64: Avoid free_page() in page-table allocator

2021-03-19 Thread Quentin Perret
Currently, the KVM page-table allocator uses a mix of put_page() and free_page() calls depending on the context even though page-allocation is always achieved using variants of __get_free_page(). Make the code consistent by using put_page() throughout, and reduce the memory management API surface

[PATCH v6 11/38] KVM: arm64: Stub CONFIG_DEBUG_LIST at Hyp

2021-03-19 Thread Quentin Perret
In order to use the kernel list library at EL2, introduce stubs for the CONFIG_DEBUG_LIST out-of-lines calls. Acked-by: Will Deacon Signed-off-by: Quentin Perret --- arch/arm64/kvm/hyp/nvhe/Makefile | 2 +- arch/arm64/kvm/hyp/nvhe/stub.c | 22 ++ 2 files changed, 23 inser

[PATCH v6 14/38] KVM: arm64: Provide __flush_dcache_area at EL2

2021-03-19 Thread Quentin Perret
We will need to do cache maintenance at EL2 soon, so compile a copy of __flush_dcache_area at EL2, and provide a copy of arm64_ftr_reg_ctrel0 as it is needed by the read_ctr macro. Signed-off-by: Quentin Perret --- arch/arm64/include/asm/kvm_cpufeature.h | 2 ++ arch/arm64/kvm/hyp/nvhe/Makefile

[PATCH v6 12/38] KVM: arm64: Introduce a Hyp buddy page allocator

2021-03-19 Thread Quentin Perret
When memory protection is enabled, the hyp code will require a basic form of memory management in order to allocate and free memory pages at EL2. This is needed for various use-cases, including the creation of hyp mappings or the allocation of stage 2 page tables. To address these use-case, introd

[PATCH v6 06/38] KVM: arm64: Factor memory allocation out of pgtable.c

2021-03-19 Thread Quentin Perret
In preparation for enabling the creation of page-tables at EL2, factor all memory allocation out of the page-table code, hence making it re-usable with any compatible memory allocator. No functional changes intended. Acked-by: Will Deacon Signed-off-by: Quentin Perret --- arch/arm64/include/as

[PATCH v6 16/38] arm64: asm: Provide set_sctlr_el2 macro

2021-03-19 Thread Quentin Perret
We will soon need to turn the EL2 stage 1 MMU on and off in nVHE protected mode, so refactor the set_sctlr_el1 macro to make it usable for that purpose. Acked-by: Will Deacon Suggested-by: Will Deacon Signed-off-by: Quentin Perret --- arch/arm64/include/asm/assembler.h | 14 +++--- 1 f

[PATCH v6 18/38] KVM: arm64: Elevate hypervisor mappings creation at EL2

2021-03-19 Thread Quentin Perret
Previous commits have introduced infrastructure to enable the EL2 code to manage its own stage 1 mappings. However, this was preliminary work, and none of it is currently in use. Put all of this together by elevating the mapping creation at EL2 when memory protection is enabled. In this case, the

[PATCH v6 19/38] KVM: arm64: Use kvm_arch for stage 2 pgtable

2021-03-19 Thread Quentin Perret
In order to make use of the stage 2 pgtable code for the host stage 2, use struct kvm_arch in lieu of struct kvm as the host will have the former but not the latter. Acked-by: Will Deacon Signed-off-by: Quentin Perret --- arch/arm64/include/asm/kvm_pgtable.h | 5 +++-- arch/arm64/kvm/hyp/pgtabl

[PATCH v6 20/38] KVM: arm64: Use kvm_arch in kvm_s2_mmu

2021-03-19 Thread Quentin Perret
In order to make use of the stage 2 pgtable code for the host stage 2, change kvm_s2_mmu to use a kvm_arch pointer in lieu of the kvm pointer, as the host will have the former but not the latter. Acked-by: Will Deacon Signed-off-by: Quentin Perret --- arch/arm64/include/asm/kvm_host.h | 2 +- a

[PATCH v6 22/38] KVM: arm64: Refactor kvm_arm_setup_stage2()

2021-03-19 Thread Quentin Perret
In order to re-use some of the stage 2 setup code at EL2, factor parts of kvm_arm_setup_stage2() out into separate functions. No functional change intended. Acked-by: Will Deacon Signed-off-by: Quentin Perret --- arch/arm64/include/asm/kvm_pgtable.h | 26 + arch/arm64/kvm/hyp/p

[PATCH v6 28/38] KVM: arm64: Always zero invalid PTEs

2021-03-19 Thread Quentin Perret
kvm_set_invalid_pte() currently only clears bit 0 from a PTE because stage2_map_walk_table_post() needs to be able to follow the anchor. In preparation for re-using bits 63-01 from invalid PTEs, make sure to zero it entirely by ensuring to cache the anchor's child upfront. Acked-by: Will Deacon S

[PATCH v6 29/38] KVM: arm64: Use page-table to track page ownership

2021-03-19 Thread Quentin Perret
As the host stage 2 will be identity mapped, all the .hyp memory regions and/or memory pages donated to protected guestis will have to marked invalid in the host stage 2 page-table. At the same time, the hypervisor will need a way to track the ownership of each physical page to ensure memory sharin

[PATCH v6 21/38] KVM: arm64: Set host stage 2 using kvm_nvhe_init_params

2021-03-19 Thread Quentin Perret
Move the registers relevant to host stage 2 enablement to kvm_nvhe_init_params to prepare the ground for enabling it in later patches. Acked-by: Will Deacon Signed-off-by: Quentin Perret --- arch/arm64/include/asm/kvm_asm.h | 3 +++ arch/arm64/kernel/asm-offsets.c| 3 +++ arch/arm64/kvm

[PATCH v6 26/38] KVM: arm64: Reserve memory for host stage 2

2021-03-19 Thread Quentin Perret
Extend the memory pool allocated for the hypervisor to include enough pages to map all of memory at page granularity for the host stage 2. While at it, also reserve some memory for device mappings. Acked-by: Will Deacon Signed-off-by: Quentin Perret --- arch/arm64/kvm/hyp/include/nvhe/mm.h | 27

[PATCH v6 23/38] KVM: arm64: Refactor __load_guest_stage2()

2021-03-19 Thread Quentin Perret
Refactor __load_guest_stage2() to introduce __load_stage2() which will be re-used when loading the host stage 2. Acked-by: Will Deacon Signed-off-by: Quentin Perret --- arch/arm64/include/asm/kvm_mmu.h | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/arm64/inclu

[PATCH v6 25/38] KVM: arm64: Make memcache anonymous in pgtable allocator

2021-03-19 Thread Quentin Perret
The current stage2 page-table allocator uses a memcache to get pre-allocated pages when it needs any. To allow re-using this code at EL2 which uses a concept of memory pools, make the memcache argument of kvm_pgtable_stage2_map() anonymous, and let the mm_ops zalloc_page() callbacks use it the way

[PATCH v6 24/38] KVM: arm64: Refactor __populate_fault_info()

2021-03-19 Thread Quentin Perret
Refactor __populate_fault_info() to introduce __get_fault_info() which will be used once the host is wrapped in a stage 2. Acked-by: Will Deacon Signed-off-by: Quentin Perret --- arch/arm64/kvm/hyp/include/hyp/switch.h | 28 +++-- 1 file changed, 17 insertions(+), 11 deletio

[PATCH v6 27/38] KVM: arm64: Sort the hypervisor memblocks

2021-03-19 Thread Quentin Perret
We will soon need to check if a Physical Address belongs to a memblock at EL2, so make sure to sort them so this can be done efficiently. Acked-by: Will Deacon Signed-off-by: Quentin Perret --- arch/arm64/kvm/hyp/reserved_mem.c | 19 +++ 1 file changed, 19 insertions(+) diff --

[PATCH v6 30/38] KVM: arm64: Refactor the *_map_set_prot_attr() helpers

2021-03-19 Thread Quentin Perret
In order to ease their re-use in other code paths, refactor the *_map_set_prot_attr() helpers to not depend on a map_data struct. No functional change intended. Acked-by: Will Deacon Signed-off-by: Quentin Perret --- arch/arm64/kvm/hyp/pgtable.c | 16 1 file changed, 8 insertio

[PATCH v6 31/38] KVM: arm64: Add kvm_pgtable_stage2_find_range()

2021-03-19 Thread Quentin Perret
Since the host stage 2 will be identity mapped, and since it will own most of memory, it would preferable for performance to try and use large block mappings whenever that is possible. To ease this, introduce a new helper in the KVM page-table code which allows to search for large ranges of availab

Re: [PATCH][next] loop: Fix missing max_active argument in alloc_workqueue call

2021-03-19 Thread Krzysztof Kozlowski
On 19/03/2021 10:47, Dan Carpenter wrote: > On Thu, Mar 18, 2021 at 02:42:33PM -0600, Jens Axboe wrote: >> On 3/18/21 2:24 PM, Colin Ian King wrote: >>> On 18/03/2021 20:12, Jens Axboe wrote: On 3/18/21 9:16 AM, Colin King wrote: > From: Colin Ian King > > The 3rd argument to allo

[PATCH v6 36/38] KVM: arm64: Page-align the .hyp sections

2021-03-19 Thread Quentin Perret
We will soon unmap the .hyp sections from the host stage 2 in Protected nVHE mode, which obviously works with at least page granularity, so make sure to align them correctly. Acked-by: Will Deacon Signed-off-by: Quentin Perret --- arch/arm64/kernel/vmlinux.lds.S | 22 +- 1 f

[PATCH v6 37/38] KVM: arm64: Disable PMU support in protected mode

2021-03-19 Thread Quentin Perret
The host currently writes directly in EL2 per-CPU data sections from the PMU code when running in nVHE. In preparation for unmapping the EL2 sections from the host stage 2, disable PMU support in protected mode as we currently do not have a use-case for it. Acked-by: Will Deacon Signed-off-by: Qu

[PATCH v6 38/38] KVM: arm64: Protect the .hyp sections from the host

2021-03-19 Thread Quentin Perret
When KVM runs in nVHE protected mode, use the host stage 2 to unmap the hypervisor sections by marking them as owned by the hypervisor itself. The long-term goal is to ensure the EL2 code can remain robust regardless of the host's state, so this starts by making sure the host cannot e.g. write to t

[PATCH v6 32/38] KVM: arm64: Introduce KVM_PGTABLE_S2_NOFWB stage 2 flag

2021-03-19 Thread Quentin Perret
In order to further configure stage 2 page-tables, pass flags to the init function using a new enum. The first of these flags allows to disable FWB even if the hardware supports it as we will need to do so for the host stage 2. Signed-off-by: Quentin Perret --- arch/arm64/include/asm/kvm_pgtabl

[PATCH v6 35/38] KVM: arm64: Wrap the host with a stage 2

2021-03-19 Thread Quentin Perret
When KVM runs in protected nVHE mode, make use of a stage 2 page-table to give the hypervisor some control over the host memory accesses. The host stage 2 is created lazily using large block mappings if possible, and will default to page mappings in absence of a better solution. >From this point o

[PATCH v6 33/38] KVM: arm64: Introduce KVM_PGTABLE_S2_IDMAP stage 2 flag

2021-03-19 Thread Quentin Perret
Introduce a new stage 2 configuration flag to specify that all mappings in a given page-table will be identity-mapped, as will be the case for the host. This allows to introduce sanity checks in the map path and to avoid programming errors. Suggested-by: Will Deacon Signed-off-by: Quentin Perret

[PATCH v6 34/38] KVM: arm64: Provide sanitized mmfr* registers at EL2

2021-03-19 Thread Quentin Perret
We will need to read sanitized values of mmfr{0,1}_el1 at EL2 soon, so add them to the list of copied variables. Acked-by: Will Deacon Signed-off-by: Quentin Perret --- arch/arm64/include/asm/kvm_cpufeature.h | 2 ++ arch/arm64/kvm/hyp/nvhe/hyp-smp.c | 2 ++ arch/arm64/kvm/sys_regs.c

Re: [PATCH v3 3/3] pinctrl: pinctrl-single: fix pcs_pin_dbg_show() when bits_per_mux is not zero

2021-03-19 Thread Andy Shevchenko
On Fri, Mar 19, 2021 at 9:53 AM Hawa, Hanna wrote: > On 3/18/2021 2:15 PM, Andy Shevchenko wrote: > > On Wed, Mar 17, 2021 at 11:42 PM Hanna Hawa wrote: > >> An SError was detected when trying to print the supported pins in a > > What is SError? Yes, I have read a discussion, but here is the hint

Re: seccomp: Delay filter activation

2021-03-19 Thread Rodrigo Campos
On Thu, Mar 18, 2021 at 9:39 PM Sargun Dhillon wrote: > I believe that the OCI spec[2] is going to run into this class of problem > unless > we introduce an out of band signaling mechanism. I think a valid way to handle > this is do a send() of the fd number (literal), and wait for the other side

[PATCH v2 0/3] drivers/perf: convert sysfs sprintf/snprintf/scnprintf to sysfs_emit

2021-03-19 Thread Qi Liu
Use the generic sysfs_emit() and sysfs_emit_at() function to take place of sprintf/snprintf/scnprintf, to avoid buffer overrun. Qi Liu (2): drivers/perf: convert sysfs scnprintf family to sysfs_emit_at() and sysfs_emit() drivers/perf: convert sysfs sprintf family to sysfs_emit Zihao Tang (1)

[PATCH v2 2/3] drivers/perf: convert sysfs scnprintf family to sysfs_emit_at() and sysfs_emit()

2021-03-19 Thread Qi Liu
Use the generic sysfs_emit_at() and sysfs_emit() function to take place of scnprintf() Signed-off-by: Qi Liu --- drivers/perf/arm-ccn.c | 27 +++ 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/drivers/perf/arm-ccn.c b/drivers/perf/arm-ccn.c index 3a2ddc0.

[PATCH v2 1/3] drivers/perf: convert sysfs snprintf family to sysfs_emit

2021-03-19 Thread Qi Liu
From: Zihao Tang Fix the following coccicheck warning: ./drivers/perf/hisilicon/hisi_uncore_pmu.c:128:8-16: WARNING: use scnprintf or sprintf. ./drivers/perf/fsl_imx8_ddr_perf.c:173:8-16: WARNING: use scnprintf or sprintf. ./drivers/perf/arm_spe_pmu.c:129:8-16: WARNING: use scnprintf or sprintf

[PATCH v2 3/3] drivers/perf: convert sysfs sprintf family to sysfs_emit

2021-03-19 Thread Qi Liu
sprintf does not know the PAGE_SIZE maximum of the temporary buffer used for sysfs content and it's possible to overrun the buffer length. Use sysfs_emit() function to ensures that no overrun is done. Signed-off-by: Qi Liu --- drivers/perf/arm_dmc620_pmu.c| 2 +- drivers/perf/arm_sm

[PATCH 1/2] clk: zynqmp: pll: add set_pll_mode to check condition in zynqmp_pll_enable

2021-03-19 Thread quanyang . wang
From: Quanyang Wang If there is a IOCTL_SET_PLL_FRAC_MODE request sent to ATF ever, we shouldn't skip invoking PM_CLOCK_ENABLE fn even though this pll has been enabled. In ATF implementation, it will only assign the mode to the variable (struct pm_pll *)pll->mode when handling IOCTL_SET_PLL_FRAC_

Re: [PATCH] ALSA: hda: Fix spelling mistakes

2021-03-19 Thread Takashi Iwai
On Fri, 19 Mar 2021 02:38:54 +0100, huangjianghui wrote: > > Signed-off-by: huangjianghui Thanks, applied. Takashi

Re: [PATCH] tty: serial: samsung_tty: remove spinlock flags in interrupt handlers

2021-03-19 Thread Andy Shevchenko
On Fri, Mar 19, 2021 at 10:09 AM Johan Hovold wrote: > > On Fri, Mar 19, 2021 at 06:36:39AM +, Song Bao Hua (Barry Song) wrote: > > > > > > > -Original Message- > > > From: Andy Shevchenko [mailto:andy.shevche...@gmail.com] > > > Sent: Tuesday, March 16, 2021 10:41 PM > > > To: Johan H

[PATCH v2] staging: rtl8723bs: remove unnecessary logging in os_dep/ioctl_cfg80211.c

2021-03-19 Thread Fabio Aiuto
fix the following checkpatch.pl issues: WARNING: Unnecessary ftrace-like logging - prefer using ftrace 239: FILE: drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c:239: + /* DBG_8192C("%s\n", __func__); */ -- WARNING: Unnecessary ftrace-like logging - prefer using ftrace 569: FILE: drivers/s

Re: [PATCH] drm: i915: Fix a typo

2021-03-19 Thread Jani Nikula
On Fri, 19 Mar 2021, Bhaskar Chowdhury wrote: > s/nothign/nothing/ > > Signed-off-by: Bhaskar Chowdhury Thanks, pushed. BR, Jani. > --- > drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/i915/display/intel_d

Re: Re: [PATCH] futex: use wake_up_process() instead of wake_up_state()

2021-03-19 Thread Mike Galbraith
On Fri, 2021-03-19 at 17:15 +0800, 王擎 wrote: > >> On Fri, 2021-03-19 at 10:59 +0800, Wang Qing wrote: > >> > Using wake_up_process() is more simpler and friendly, > >> > and it is more convenient for analysis and statistics > >> > >> I likely needn't bother, and don't have a NAK to paste on this th

Re: [syzbot] upstream boot error: WARNING in __context_tracking_enter

2021-03-19 Thread Russell King - ARM Linux admin
On Fri, Mar 19, 2021 at 10:54:48AM +0100, Dmitry Vyukov wrote: > .On Fri, Mar 19, 2021 at 10:44 AM syzbot > wrote: > > syzbot found the following issue on: > > > > HEAD commit:8b12a62a Merge tag 'drm-fixes-2021-03-19' of git://anongit.. > > git tree: upstream > > console output: https://

[PATCH v2] I2C: JZ4780: Fix bug for Ingenic X1000.

2021-03-19 Thread Zhou Yanjie
Only send "X1000_I2C_DC_STOP" when last byte, or it will cause error when I2C write operation. Fixes: 21575a7a8d4c ("I2C: JZ4780: Add support for the X1000.") Reported-by: 杨文龙 (Yang Wenlong) Tested-by: 杨文龙 (Yang Wenlong) Signed-off-by: 周琰杰 (Zhou Yanjie) --- Notes: v1->v2: 1.Add missin

RE: [PATCH 04/11] i2c: imx-lpi2c: manage irq resource request/release in runtime pm

2021-03-19 Thread Aisheng Dong
> > > @@ -665,6 +659,14 @@ static int __maybe_unused > > > lpi2c_runtime_resume(struct device *dev) > > > dev_err(dev, "can't enable I2C ipg clock, ret=%d\n", ret); > > > } > > > > > > + ret = devm_request_irq(dev, lpi2c_imx->irq, lpi2c_imx_isr, > > > > I guess unnecessary to use devm i

Fix bug for Ingenic X1000 v2.

2021-03-19 Thread Zhou Yanjie
For SoCs after X1000, only send "X1000_I2C_DC_STOP" when last byte, or it will cause error when I2C write operation. v1->v2: 1.Add missing Reported-by and Tested-by. 2.Remove change which not related to the bugfix. 周琰杰 (Zhou Yanjie) (1): I2C: JZ4780: Fix bug for Ingenic X1000. drivers/i2c/bus

[PATCH v6 resend 0/3] mm, vsprintf: dump full information of page flags in pGp

2021-03-19 Thread Yafang Shao
The existed pGp shows the names of page flags only, rather than the full information including section, node, zone, last cpuipid and kasan tag. While it is not easy to parse these information manually because there are so many flavors. We'd better interpret them in printf. To be compitable with th

[PATCH v6 resend 3/3] vsprintf: dump full information of page flags in pGp

2021-03-19 Thread Yafang Shao
Currently the pGp only shows the names of page flags, rather than the full information including section, node, zone, last cpupid and kasan tag. While it is not easy to parse these information manually because there're so many flavors. Let's interpret them in pGp as well. To be compitable with the

[PATCH v6 resend 2/3] mm, slub: don't combine pr_err with INFO

2021-03-19 Thread Yafang Shao
It is strange to combine "pr_err" with "INFO", so let's remove the prefix completely. This patch is motivated by David's comment[1]. - before the patch [ 8846.517809] INFO: Slab 0xf42a2c60 objects=33 used=3 fp=0x60d32ca8 flags=0x17c0010200(slab|head) - after the patch [ 6343.

[PATCH v6 resend 1/3] mm, slub: use pGp to print page flags

2021-03-19 Thread Yafang Shao
As pGp has been already introduced in printk, we'd better use it to make the output human readable. Before this change, the output is, [ 6155.716018] INFO: Slab 0x4027dd4f objects=33 used=3 fp=0x8cd1579c flags=0x17c0010200 While after this change, the output is, [ 8846.517809

Re: [PATCH v5 2/5] mm,compaction: Let isolate_migratepages_{range,block} return error codes

2021-03-19 Thread Vlastimil Babka
On 3/19/21 10:57 AM, Oscar Salvador wrote: > On Thu, Mar 18, 2021 at 12:36:52PM +0100, Michal Hocko wrote: >> Yeah, makes sense. I am not a fan of the above form of documentation. >> Btw. maybe renaming the field would be even better, both from the >> intention and review all existing users. I woul

Re: [PATCH v6 resend 0/3] mm, vsprintf: dump full information of page flags in pGp

2021-03-19 Thread Yafang Shao
On Fri, Mar 19, 2021 at 6:13 PM Yafang Shao wrote: > > The existed pGp shows the names of page flags only, rather than the full > information including section, node, zone, last cpuipid and kasan tag. > While it is not easy to parse these information manually because there > are so many flavors. W

[PATCH 2/2] remoteproc: imx_rproc: support remote cores booted before Linux Kernel

2021-03-19 Thread Peng Fan (OSS)
From: Peng Fan Support remote cores booted before Linux Kernel booting. Add rsc_table to hold the resource table published by remote cores Add attach hook Add imx_rproc_detect_mode to detect remote cores' working mode, and if remote cores are booted before booting Linux Kernel, parse the memory

[PATCH 1/2] remoteproc: imx_rproc: enlarge IMX7D_RPROC_MEM_MAX

2021-03-19 Thread Peng Fan (OSS)
From: Peng Fan 8 is not enough when we need more, so enlarge IMX7D_RPROC_MEM_MAX to 32, and also rename it to IMX_RPROC_MEM_MAX which make more sense. Signed-off-by: Peng Fan --- drivers/remoteproc/imx_rproc.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drive

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