Re: [powerpc][next-20210621] WARNING at kernel/sched/fair.c:3277 during boot

2021-06-23 Thread Vincent Guittot
Hi Sachin, Le mardi 22 juin 2021 à 21:29:36 (+0530), Sachin Sant a écrit : > >> On Tue, 22 Jun 2021 at 09:39, Sachin Sant > >> wrote: > >>> > >>> While booting 5.13.0-rc7-next-20210621 on a PowerVM LPAR following warning > >>> is seen > >>> > >>> [ 30.922154] [ cut here ]

Re: [powerpc][next-20210621] WARNING at kernel/sched/fair.c:3277 during boot

2021-06-23 Thread Sachin Sant
>>> Could you try the patch below ? I have been able to reproduce the problem >>> locally and this >>> fix it on my system: >>> >> I can recreate the issue with this patch. > > ok, so your problem seem to be different from my assumption. Could you try > the patch below on top of the previous o

Re: [PATCH v3 0/4] Add perf interface to expose nvdimm

2021-06-23 Thread kajoljain
On 6/22/21 6:44 PM, Peter Zijlstra wrote: > On Thu, Jun 17, 2021 at 06:56:13PM +0530, Kajol Jain wrote: >> --- >> Kajol Jain (4): >> drivers/nvdimm: Add nvdimm pmu structure >> drivers/nvdimm: Add perf interface to expose nvdimm performance stats >> powerpc/papr_scm: Add perf interface sup

Re: [PATCH v3 0/4] Add perf interface to expose nvdimm

2021-06-23 Thread Peter Zijlstra
On Wed, Jun 23, 2021 at 01:40:38PM +0530, kajoljain wrote: > > > On 6/22/21 6:44 PM, Peter Zijlstra wrote: > > On Thu, Jun 17, 2021 at 06:56:13PM +0530, Kajol Jain wrote: > >> --- > >> Kajol Jain (4): > >> drivers/nvdimm: Add nvdimm pmu structure > >> drivers/nvdimm: Add perf interface to exp

Re: [PATCH v14 00/12] Restricted DMA

2021-06-23 Thread Konrad Rzeszutek Wilk
On Sat, Jun 19, 2021 at 11:40:31AM +0800, Claire Chang wrote: > This series implements mitigations for lack of DMA access control on > systems without an IOMMU, which could result in the DMA accessing the > system memory at unexpected times and/or unexpected addresses, possibly > leading to data le

Re: [PATCH v14 00/12] Restricted DMA

2021-06-23 Thread Claire Chang
On Wed, Jun 23, 2021 at 4:38 PM Konrad Rzeszutek Wilk wrote: > > On Sat, Jun 19, 2021 at 11:40:31AM +0800, Claire Chang wrote: > > This series implements mitigations for lack of DMA access control on > > systems without an IOMMU, which could result in the DMA accessing the > > system memory at une

Re: [PATCH v15 2/4] kasan: allow architectures to provide an outline readiness check

2021-06-23 Thread Daniel Axtens
>> diff --git a/mm/kasan/common.c b/mm/kasan/common.c >> index 10177cc26d06..0ad615f3801d 100644 >> --- a/mm/kasan/common.c >> +++ b/mm/kasan/common.c >> @@ -331,6 +331,10 @@ static inline bool kasan_slab_free(struct >> kmem_cache *cache, void *object, >> u8 tag; >> void *tagge

Re: nand: WARNING: a0000000.nand: the ECC used on your system (1b/256B) is too weak compared to the one required by the NAND chip (4b/512B)

2021-06-23 Thread Christophe Leroy
Le 19/06/2021 à 20:40, Miquel Raynal a écrit : Hi Christophe, Now and then I'm using one of the latest kernels (Today is 5.13-rc6), and sometime in one of the 5.x releases, I started to get errors like: [5.098265] ecc_sw_hamming_correct: uncorrectable ECC error [5.103859] ubi0 warn

Re: [powerpc][next-20210621] WARNING at kernel/sched/fair.c:3277 during boot

2021-06-23 Thread Sachin Sant
> On 23-Jun-2021, at 1:28 PM, Sachin Sant wrote: > > Could you try the patch below ? I have been able to reproduce the problem locally and this fix it on my system: >>> I can recreate the issue with this patch. >> >> ok, so your problem seem to be different from my assu

Re: [PATCH v3 0/4] Add perf interface to expose nvdimm

2021-06-23 Thread Michael Ellerman
Peter Zijlstra writes: > On Wed, Jun 23, 2021 at 01:40:38PM +0530, kajoljain wrote: >> >> On 6/22/21 6:44 PM, Peter Zijlstra wrote: >> > On Thu, Jun 17, 2021 at 06:56:13PM +0530, Kajol Jain wrote: >> >> --- >> >> Kajol Jain (4): >> >> drivers/nvdimm: Add nvdimm pmu structure >> >> drivers/nvd

kernel panic with "Unrecoverable FP Unavailable Exception 800 at c00000000009e308"

2021-06-23 Thread Ryan Wong
Hi, Recently I encountered a kernel panic announcing "Unrecoverable FP Unavailable Exception 800 at c009e308". I have attached the panic log at the end of the mail. As I known, this exception occured when the hard floating-point instruction was executed with FPU disabled, and if the instru

[powerpc:topic/ppc-kvm 9/41] arch/powerpc/kvm/book3s_xive.c:151:41: sparse: sparse: incorrect type in assignment (different base types)

2021-06-23 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git topic/ppc-kvm head: 51696f39cbee5bb684e7959c0c98b5f54548aa34 commit: 023c3c96ca4d196c09d554d5a98900406e4d7ecb [9/41] KVM: PPC: Book3S HV P9: implement kvmppc_xive_pull_vcpu in C config: powerpc-allyesconfig (attached as .

Re: [PATCH 2/3] powerpc: Define swapper_pg_dir[] in C

2021-06-23 Thread Daniel Axtens
Hi Christophe, This breaks booting a radix KVM guest with 4k pages for me: make pseries_le_defconfig scripts/config -d CONFIG_PPC_64K_PAGES scripts/config -e CONFIG_PPC_4K_PAGES make vmlinux sudo qemu-system-ppc64 -enable-kvm -M pseries -m 1G -nographic -vga none -smp 4 -cpu host -kernel vmlinux

Re: [powerpc][next-20210621] WARNING at kernel/sched/fair.c:3277 during boot

2021-06-23 Thread Vincent Guittot
Le mercredi 23 juin 2021 à 15:52:59 (+0530), Sachin Sant a écrit : > > > > On 23-Jun-2021, at 1:28 PM, Sachin Sant wrote: > > > > > Could you try the patch below ? I have been able to reproduce the > problem locally and this > fix it on my system: > > >>> I can recreate t

Re: [powerpc][next-20210621] WARNING at kernel/sched/fair.c:3277 during boot

2021-06-23 Thread Odin Ugedal
Hi, Wouldn't the attached diff below also help when load is removed, Vincent? Isn't there a theoretical chance that x_sum ends up at zero while x_load ends up as a positive value (without this patch)? Can post as a separate patch if it works for Sachin. diff --git a/kernel/sched/fair.c b/kernel/

Re: [powerpc][next-20210621] WARNING at kernel/sched/fair.c:3277 during boot

2021-06-23 Thread Vincent Guittot
On Wed, 23 Jun 2021 at 14:18, Odin Ugedal wrote: > > Hi, > > Wouldn't the attached diff below also help when load is removed, > Vincent? Isn't there a theoretical chance that x_sum ends up at zero > while x_load ends up as a positive value (without this patch)? Can > post as a separate patch if it

Re: [powerpc][next-20210621] WARNING at kernel/sched/fair.c:3277 during boot

2021-06-23 Thread Odin Ugedal
ons. 23. jun. 2021 kl. 14:22 skrev Vincent Guittot : > > In theory it should not because _sum should be always larger or equal > to _avg * divider. Otherwise, it means that we have something wrong > somewhere else Yeah, that might be the case. Still trying to wrap my head around this. I might be w

Re: [PATCH 2/3] powerpc: Define swapper_pg_dir[] in C

2021-06-23 Thread Michael Ellerman
Daniel Axtens writes: > Hi Christophe, > > This breaks booting a radix KVM guest with 4k pages for me: > > make pseries_le_defconfig > scripts/config -d CONFIG_PPC_64K_PAGES > scripts/config -e CONFIG_PPC_4K_PAGES > make vmlinux > sudo qemu-system-ppc64 -enable-kvm -M pseries -m 1G -nographic -vga

[PATCH] powerpc/64s: Make prom_init require RELOCATABLE

2021-06-23 Thread Michael Ellerman
When we boot from open firmware (OF) using PPC_OF_BOOT_TRAMPOLINE, aka. prom_init, we run parts of the kernel at an address other than the link address. That happens because OF loads the kernel above zero (OF is at zero) and we run prom_init before copying the kernel down to zero. Currently that w

[PATCH] powerpc: Fix is_kvm_guest() / kvm_para_available()

2021-06-23 Thread Michael Ellerman
Commit a21d1becaa3f ("powerpc: Reintroduce is_kvm_guest() as a fast-path check") added is_kvm_guest() and changed kvm_para_available() to use it. is_kvm_guest() checks a static key, kvm_guest, and that static key is set in check_kvm_guest(). The problem is check_kvm_guest() is only called on pser

[powerpc:topic/ppc-kvm 26/41] arch/powerpc/kvm/book3s_hv_builtin.c:419:22: sparse: sparse: incorrect type in assignment (different base types)

2021-06-23 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git topic/ppc-kvm head: 51696f39cbee5bb684e7959c0c98b5f54548aa34 commit: 2ce008c8b25467ceacf45bcf0e183d660edb82f2 [26/41] KVM: PPC: Book3S HV: Remove unused nested HV tests in XICS emulation config: powerpc-allyesconfig (atta

Re: nand: WARNING: a0000000.nand: the ECC used on your system (1b/256B) is too weak compared to the one required by the NAND chip (4b/512B)

2021-06-23 Thread Miquel Raynal
Hi Christophe, Christophe Leroy wrote on Wed, 23 Jun 2021 11:41:46 +0200: > Le 19/06/2021 à 20:40, Miquel Raynal a écrit : > > Hi Christophe, > > > Now and then I'm using one of the latest kernels (Today is 5.13-rc6), > and sometime in one of the 5.x releases, I started to get erro

Re: [powerpc][next-20210621] WARNING at kernel/sched/fair.c:3277 during boot

2021-06-23 Thread Vincent Guittot
On Wed, 23 Jun 2021 at 14:37, Odin Ugedal wrote: > > ons. 23. jun. 2021 kl. 14:22 skrev Vincent Guittot > : > > > > In theory it should not because _sum should be always larger or equal > > to _avg * divider. Otherwise, it means that we have something wrong > > somewhere else > > Yeah, that might

[powerpc:next-test 164/170] arch/powerpc/kernel/interrupt.c:36:20: error: unused function 'exit_must_hard_disable'

2021-06-23 Thread kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next-test head: a23408e2575e49c4394f8733c78dce907286ac8e commit: 63369fa0176120a0db94e95c3aea3b2e6bd3fe54 [164/170] powerpc/64: use interrupt restart table to speed up return from interrupt config: powerpc-randconfig-r004

Re: [powerpc][next-20210621] WARNING at kernel/sched/fair.c:3277 during boot

2021-06-23 Thread Odin Ugedal
ons. 23. jun. 2021 kl. 15:56 skrev Vincent Guittot : > > > The pelt value of sched_entity is synced with cfs and its contrib > before being removed. Hmm. Not sure what you mean by sched_entity here, since this is only taking the "removed" load_avg and removing it from cfs_rq, together with (remo

Re: [powerpc][next-20210621] WARNING at kernel/sched/fair.c:3277 during boot

2021-06-23 Thread Vincent Guittot
On Wed, 23 Jun 2021 at 17:13, Odin Ugedal wrote: > > ons. 23. jun. 2021 kl. 15:56 skrev Vincent Guittot > : > > > > > > The pelt value of sched_entity is synced with cfs and its contrib > > before being removed. > > > Hmm. Not sure what you mean by sched_entity here, since this is only > taking

Re: [PATCH 1/1] ASoC: fsl: remove unnecessary oom message

2021-06-23 Thread Mark Brown
On Thu, 17 Jun 2021 18:31:41 +0800, Zhen Lei wrote: > Fixes scripts/checkpatch.pl warning: > WARNING: Possible unnecessary 'out of memory' message > > Remove it can help us save a bit of memory. Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1

Re: [PATCH v14 06/12] swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncing

2021-06-23 Thread Qian Cai
re_class [ 22.362512][ T256] igb 0006:01:00.0: eth0: PBA No: G69016-004 [ 22.372287][T7] CPU: 13 PID: 7 Comm: kworker/u64:0 Not tainted 5.13.0-rc7-next-20210623+ #47 [ 22.372293][T7] Hardware name: MiTAC RAPTOR EV-883832-X3-0001/RAPTOR, BIOS 1.6 06/28/2020 [ 22.372298][T7] Workq

Re: [powerpc][next-20210621] WARNING at kernel/sched/fair.c:3277 during boot

2021-06-23 Thread Vincent Guittot
On Wed, 23 Jun 2021 at 18:46, Sachin Sant wrote: > > > > Ok. This becomes even more weird. Could you share your config file and more > > details about > > you setup ? > > > > Have you applied the patch below ? > > https://lore.kernel.org/lkml/20210621174330.11258-1-vincent.guit...@linaro.org/ > >

Re: [powerpc][next-20210621] WARNING at kernel/sched/fair.c:3277 during boot

2021-06-23 Thread Vincent Guittot
On Wed, 23 Jun 2021 at 18:55, Vincent Guittot wrote: > > On Wed, 23 Jun 2021 at 18:46, Sachin Sant wrote: > > > > > > > Ok. This becomes even more weird. Could you share your config file and > > > more details about > > > you setup ? > > > > > > Have you applied the patch below ? > > > https://l

Re: [powerpc][next-20210621] WARNING at kernel/sched/fair.c:3277 during boot

2021-06-23 Thread Odin Ugedal
ons. 23. jun. 2021 kl. 19:27 skrev Vincent Guittot : > > On Wed, 23 Jun 2021 at 18:55, Vincent Guittot > wrote: > > > > On Wed, 23 Jun 2021 at 18:46, Sachin Sant > > wrote: > > > > > > > > > > Ok. This becomes even more weird. Could you share your config file and > > > > more details about > >

Re: [PATCH v14 06/12] swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncing

2021-06-23 Thread Will Deacon
On Wed, Jun 23, 2021 at 12:39:29PM -0400, Qian Cai wrote: > > > On 6/18/2021 11:40 PM, Claire Chang wrote: > > Propagate the swiotlb_force into io_tlb_default_mem->force_bounce and > > use it to determine whether to bounce the data or not. This will be > > useful later to allow for different pool

Re: [PATCH v14 06/12] swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncing

2021-06-23 Thread Qian Cai
On 6/23/2021 2:37 PM, Will Deacon wrote: > On Wed, Jun 23, 2021 at 12:39:29PM -0400, Qian Cai wrote: >> >> >> On 6/18/2021 11:40 PM, Claire Chang wrote: >>> Propagate the swiotlb_force into io_tlb_default_mem->force_bounce and >>> use it to determine whether to bounce the data or not. This will

Re: [PATCH 2/3] powerpc: Define swapper_pg_dir[] in C

2021-06-23 Thread Daniel Axtens
Michael Ellerman writes: > Daniel Axtens writes: >> Hi Christophe, >> >> This breaks booting a radix KVM guest with 4k pages for me: >> >> make pseries_le_defconfig >> scripts/config -d CONFIG_PPC_64K_PAGES >> scripts/config -e CONFIG_PPC_4K_PAGES >> make vmlinux >> sudo qemu-system-ppc64 -enabl

Re: [PATCH v4 1/7] powerpc/pseries: rename min_common_depth to primary_domain_index

2021-06-23 Thread David Gibson
On Thu, Jun 17, 2021 at 10:20:59PM +0530, Aneesh Kumar K.V wrote: > No functional change in this patch. > > Signed-off-by: Aneesh Kumar K.V Reviewed-by: David Gibson > --- > arch/powerpc/mm/numa.c | 38 +++--- > 1 file changed, 19 insertions(+), 19 deletions(-)

Re: [PATCH v4 7/7] powerpc/pseries: Add support for FORM2 associativity

2021-06-23 Thread David Gibson
On Thu, Jun 17, 2021 at 10:21:05PM +0530, Aneesh Kumar K.V wrote: > PAPR interface currently supports two different ways of communicating resource > grouping details to the OS. These are referred to as Form 0 and Form 1 > associativity grouping. Form 0 is the older format and is now considered > de

Re: [PATCH v4 2/7] powerpc/pseries: rename distance_ref_points_depth to max_associativity_domain_index

2021-06-23 Thread David Gibson
On Thu, Jun 17, 2021 at 10:21:00PM +0530, Aneesh Kumar K.V wrote: > No functional change in this patch I've been convinced of your other rename, but I'm not yet convinced this one actually clarifies anything. > > Signed-off-by: Aneesh Kumar K.V > --- > arch/powerpc/mm/numa.c | 20 ++---

Re: [PATCH v4 4/7] powerpc/pseries: Consolidate DLPAR NUMA distance update

2021-06-23 Thread David Gibson
On Thu, Jun 17, 2021 at 10:21:02PM +0530, Aneesh Kumar K.V wrote: > The associativity details of the newly added resourced are collected from > the hypervisor via "ibm,configure-connector" rtas call. Update the numa > distance details of the newly added numa node after the above call. In > later pa

Re: [RFC PATCH 8/8] powerpc/papr_scm: Use FORM2 associativity details

2021-06-23 Thread David Gibson
On Thu, Jun 17, 2021 at 04:29:01PM +0530, Aneesh Kumar K.V wrote: > On 6/17/21 1:16 PM, David Gibson wrote: > > On Tue, Jun 15, 2021 at 12:35:17PM +0530, Aneesh Kumar K.V wrote: > > > David Gibson writes: > > > > > > > On Tue, Jun 15, 2021 at 11:27:50AM +0530, Aneesh Kumar K.V wrote: > > > > > Da

[PATCH v16 0/4] KASAN core changes for ppc64 radix KASAN

2021-06-23 Thread Daniel Axtens
Building on the work of Christophe, Aneesh and Balbir, I've ported KASAN to 64-bit Book3S kernels running on the Radix MMU. I've been trying this for a while, but we keep having collisions between the kasan code in the mm tree and the code I want to put in to the ppc tree. This series just contain

[PATCH v16 1/4] kasan: allow an architecture to disable inline instrumentation

2021-06-23 Thread Daniel Axtens
For annoying architectural reasons, it's very difficult to support inline instrumentation on powerpc64.* Add a Kconfig flag to allow an arch to disable inline. (It's a bit annoying to be 'backwards', but I'm not aware of any way to have an arch force a symbol to be 'n', rather than 'y'.) We also

[PATCH v16 2/4] kasan: allow architectures to provide an outline readiness check

2021-06-23 Thread Daniel Axtens
Allow architectures to define a kasan_arch_is_ready() hook that bails out of any function that's about to touch the shadow unless the arch says that it is ready for the memory to be accessed. This is fairly uninvasive and should have a negligible performance penalty. This will only work in outline

[PATCH v16 3/4] mm: define default MAX_PTRS_PER_* in include/pgtable.h

2021-06-23 Thread Daniel Axtens
Commit c65e774fb3f6 ("x86/mm: Make PGDIR_SHIFT and PTRS_PER_P4D variable") made PTRS_PER_P4D variable on x86 and introduced MAX_PTRS_PER_P4D as a constant for cases which need a compile-time constant (e.g. fixed-size arrays). powerpc likewise has boot-time selectable MMU features which can cause o

[PATCH v16 4/4] kasan: use MAX_PTRS_PER_* for early shadow tables

2021-06-23 Thread Daniel Axtens
powerpc has a variable number of PTRS_PER_*, set at runtime based on the MMU that the kernel is booted under. This means the PTRS_PER_* are no longer constants, and therefore breaks the build. Switch to using MAX_PTRS_PER_*, which are constant. Suggested-by: Christophe Leroy Suggested-by: Balbir

[PATCH 0/6] KVM: Remove uses of struct page from x86 and arm64 MMU

2021-06-23 Thread David Stevens
KVM supports mapping VM_IO and VM_PFNMAP memory into the guest by using follow_pte in gfn_to_pfn. However, the resolved pfns may not have assoicated struct pages, so they should not be passed to pfn_to_page. This series removes such calls from the x86 and arm64 secondary MMU. To do this, this serie

[PATCH 1/6] KVM: x86/mmu: release audited pfns

2021-06-23 Thread David Stevens
From: David Stevens Signed-off-by: David Stevens --- arch/x86/kvm/mmu/mmu_audit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/kvm/mmu/mmu_audit.c b/arch/x86/kvm/mmu/mmu_audit.c index cedc17b2f60e..97ff184084b4 100644 --- a/arch/x86/kvm/mmu/mmu_audit.c +++ b/arch/x86/kvm/mmu/m

[PATCH 2/6] KVM: mmu: also return page from gfn_to_pfn

2021-06-23 Thread David Stevens
From: David Stevens Return a struct kvm_pfn_page containing both a pfn and an optional struct page from the gfn_to_pfn family of functions. This differentiates the gup and follow_fault_pfn cases, which allows callers that only need a pfn to avoid touching the page struct in the latter case. For c

[PATCH 3/6] KVM: x86/mmu: avoid struct page in MMU

2021-06-23 Thread David Stevens
From: David Stevens Avoid converting pfns returned by follow_fault_pfn to struct pages to transiently take a reference. The reference was originally taken to match the reference taken by gup. However, pfns returned by follow_fault_pfn may not have a struct page set up for reference counting. Sig

[PATCH 4/6] KVM: arm64/mmu: avoid struct page in MMU

2021-06-23 Thread David Stevens
From: David Stevens Avoid converting pfns returned by follow_fault_pfn to struct pages to transiently take a reference. The reference was originally taken to match the reference taken by gup. However, pfns returned by follow_fault_pfn may not have a struct page set up for reference counting. Sig

[PATCH 5/6] KVM: mmu: remove over-aggressive warnings

2021-06-23 Thread David Stevens
From: David Stevens Remove two warnings that require ref counts for pages to be non-zero, as mapped pfns from follow_pfn may not have an initialized ref count. Signed-off-by: David Stevens --- arch/x86/kvm/mmu/mmu.c | 7 --- virt/kvm/kvm_main.c| 2 +- 2 files changed, 1 insertion(+), 8

[PATCH 6/6] drm/i915/gvt: use gfn_to_pfn's page instead of pfn

2021-06-23 Thread David Stevens
Return struct page instead of pfn from gfn_to_mfn. This function is only used to determine if the page is a transparent hugepage, to enable 2MB huge gtt shadowing. Returning the page directly avoids the risk of calling pfn_to_page on a VM_IO|VM_PFNMAP pfn. This change also properly releases the re

Re: [PATCH 6/6] drm/i915/gvt: use gfn_to_pfn's page instead of pfn

2021-06-23 Thread David Stevens
Please ignore this last patch. It was put together as an afterthought and wasn't properly tested. -David On Thu, Jun 24, 2021 at 12:59 PM David Stevens wrote: > > Return struct page instead of pfn from gfn_to_mfn. This function is only > used to determine if the page is a transparent hugepage, t

Re: [PATCH v14 06/12] swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncing

2021-06-23 Thread Christoph Hellwig
On Wed, Jun 23, 2021 at 02:44:34PM -0400, Qian Cai wrote: > is_swiotlb_force_bounce at /usr/src/linux-next/./include/linux/swiotlb.h:119 > > is_swiotlb_force_bounce() was the new function introduced in this patch here. > > +static inline bool is_swiotlb_force_bounce(struct device *dev) > +{ > +

Re: [PATCH v14 06/12] swiotlb: Use is_swiotlb_force_bounce for swiotlb data bouncing

2021-06-23 Thread Claire Chang
On Thu, Jun 24, 2021 at 1:43 PM Christoph Hellwig wrote: > > On Wed, Jun 23, 2021 at 02:44:34PM -0400, Qian Cai wrote: > > is_swiotlb_force_bounce at /usr/src/linux-next/./include/linux/swiotlb.h:119 > > > > is_swiotlb_force_bounce() was the new function introduced in this patch > > here. > > > >

[PATCH] crypto: scatterwalk - Remove obsolete PageSlab check

2021-06-23 Thread Herbert Xu
On Fri, Jun 18, 2021 at 11:12:58AM -0700, Ira Weiny wrote: > > Interesting! Thanks! > > Digging around a bit more I found: > > https://lore.kernel.org/patchwork/patch/439637/ Nice find. So we can at least get rid of the PageSlab call from the Crypto API. ---8<--- As it is now legal to call fl

[PATCH] powerpc: ps3: remove unneeded semicolon

2021-06-23 Thread 13145886936
From: gushengxian Remove unneeded semocolons. Signed-off-by: gushengxian --- arch/powerpc/platforms/ps3/system-bus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/ps3/system-bus.c b/arch/powerpc/platforms/ps3/system-bus.c index 1a5665875165..f5

[PATCH] powerpc/sysfs: Replace sizeof(arr)/sizeof(arr[0]) with ARRAY_SIZE

2021-06-23 Thread Jason Wang
The ARRAY_SIZE macro is more compact and more formal in linux source. Signed-off-by: Jason Wang --- arch/powerpc/kernel/sysfs.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/kernel/sysfs.c b/arch/powerpc/kernel/sysfs.c index 2e08640bb3b4..5ff0e55d0

Re: [PATCH 0/6] KVM: Remove uses of struct page from x86 and arm64 MMU

2021-06-23 Thread Paolo Bonzini
On 24/06/21 05:57, David Stevens wrote: KVM supports mapping VM_IO and VM_PFNMAP memory into the guest by using follow_pte in gfn_to_pfn. However, the resolved pfns may not have assoicated struct pages, so they should not be passed to pfn_to_page. This series removes such calls from the x86 and a