Re: [PATCH 04/21] mm: free_area_init: use maximal zone PFNs rather than zone sizes

2020-06-14 Thread Greg Ungerer
Hi Mike, From: Mike Rapoport Currently, architectures that use free_area_init() to initialize memory map and node and zone structures need to calculate zone and hole sizes. We can use free_area_init_nodes() instead and let it detect the zone boundaries while the architectures will only have to

[PATCH V3 4/4] Documentation/mm: Add descriptions for arch page table helpers

2020-06-14 Thread Anshuman Khandual
This adds a specific description file for all arch page table helpers which is in sync with the semantics being tested via CONFIG_DEBUG_VM_PGTABLE. All future changes either to these descriptions here or the debug test should always remain in sync. Cc: Jonathan Corbet Cc: Andrew Morton Cc: Mike

[PATCH V3 3/4] mm/debug_vm_pgtable: Add debug prints for individual tests

2020-06-14 Thread Anshuman Khandual
This adds debug print information that enlists all tests getting executed on a given platform. With dynamic debug enabled, the following information will be splashed during boot. For compactness purpose, dropped both time stamp and prefix (i.e debug_vm_pgtable) from this sample output.

[PATCH V3 2/4] mm/debug_vm_pgtable: Add tests validating advanced arch page table helpers

2020-06-14 Thread Anshuman Khandual
This adds new tests validating for these following arch advanced page table helpers. These tests create and test specific mapping types at various page table levels. 1. pxxp_set_wrprotect() 2. pxxp_get_and_clear() 3. pxxp_set_access_flags() 4. pxxp_get_and_clear_full() 5.

[PATCH V3 1/4] mm/debug_vm_pgtable: Add tests validating arch helpers for core MM features

2020-06-14 Thread Anshuman Khandual
This adds new tests validating arch page table helpers for these following core memory features. These tests create and test specific mapping types at various page table levels. 1. SPECIAL mapping 2. PROTNONE mapping 3. DEVMAP mapping 4. SOFTDIRTY mapping 5. SWAP mapping 6. MIGRATION mapping 7.

[PATCH V3 0/4] mm/debug_vm_pgtable: Add some more tests

2020-06-14 Thread Anshuman Khandual
This series adds some more arch page table helper validation tests which are related to core and advanced memory functions. This also creates a documentation, enlisting expected semantics for all page table helpers as suggested by Mike Rapoport previously (https://lkml.org/lkml/2020/1/30/40).

[PATCH v2] powerpc/powernv/pci: use ifdef to avoid dead code

2020-06-14 Thread Greg Thelen
Commit dc3d8f85bb57 ("powerpc/powernv/pci: Re-work bus PE configuration") removed a couple pnv_ioda_setup_bus_dma() calls. The only remaining calls are behind CONFIG_IOMMU_API. Thus builds without CONFIG_IOMMU_API see: arch/powerpc/platforms/powernv/pci-ioda.c:1888:13: error:

Re: [PATCH v2 11/12] x86/mmu: Allocate/free PASID

2020-06-14 Thread Lu Baolu
Hi Fenghua, On 6/13/20 8:41 AM, Fenghua Yu wrote: A PASID is allocated for an "mm" the first time any thread attaches to an SVM capable device. Later device attachments (whether to the same device or another SVM device) will re-use the same PASID. The PASID is freed when the process exits (so

Re: [PATCH v2] powerpc/powernv/pci: use ifdef to avoid dead code

2020-06-14 Thread Oliver O'Halloran
On Mon, Jun 15, 2020 at 9:33 AM Greg Thelen wrote: > > Commit dc3d8f85bb57 ("powerpc/powernv/pci: Re-work bus PE > configuration") removed a couple pnv_ioda_setup_bus_dma() calls. The > only remaining calls are behind CONFIG_IOMMU_API. Thus builds without > CONFIG_IOMMU_API see: >

Re: [PATCH] powerpc/fsl_booke/32: fix build with CONFIG_RANDOMIZE_BASE

2020-06-14 Thread Jason Yan
在 2020/6/14 0:28, Arseny Solokha 写道: Building the current 5.8 kernel for a e500 machine with CONFIG_RANDOMIZE_BASE set yields the following failure: arch/powerpc/mm/nohash/kaslr_booke.c: In function 'kaslr_early_init': arch/powerpc/mm/nohash/kaslr_booke.c:387:2: error: implicit

Re: PowerPC KVM-PR issue

2020-06-14 Thread Christian Zigotzky
On 14 June 2020 at 04:52 pm, Christian Zigotzky wrote: On 14 June 2020 at 02:53 pm, Nicholas Piggin wrote: Excerpts from Christian Zigotzky's message of June 12, 2020 11:01 pm: On 11 June 2020 at 04:47 pm, Christian Zigotzky wrote: On 10 June 2020 at 01:23 pm, Christian Zigotzky wrote: On 10

Re: [PATCH] scsi: target/sbp: remove firewire SBP target driver

2020-06-14 Thread Finn Thain
On Sun, 14 Jun 2020, Chris Boot wrote: > I expect that if someone finds this useful it can stick around (but > that's not my call). Who's call is that? If the patch had said "From: Martin K. Petersen" and "This driver is being removed because it has the following defects..." that would be

Re: [PATCH] SUNRPC: Add missing asm/cacheflush.h

2020-06-14 Thread Chuck Lever
Hi Christophe - > On Jun 14, 2020, at 1:07 PM, Christophe Leroy > wrote: > > Even if that's only a warning, not including asm/cacheflush.h > leads to svc_flush_bvec() being empty allthough powerpc defines > ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE. > > CC net/sunrpc/svcsock.o >

[PATCH] SUNRPC: Add missing asm/cacheflush.h

2020-06-14 Thread Christophe Leroy
Even if that's only a warning, not including asm/cacheflush.h leads to svc_flush_bvec() being empty allthough powerpc defines ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE. CC net/sunrpc/svcsock.o net/sunrpc/svcsock.c:227:5: warning: "ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE" is not defined [-Wundef] #if

Re: PowerPC KVM-PR issue

2020-06-14 Thread Christian Zigotzky
On 14 June 2020 at 02:53 pm, Nicholas Piggin wrote: Excerpts from Christian Zigotzky's message of June 12, 2020 11:01 pm: On 11 June 2020 at 04:47 pm, Christian Zigotzky wrote: On 10 June 2020 at 01:23 pm, Christian Zigotzky wrote: On 10 June 2020 at 11:06 am, Christian Zigotzky wrote: On 10

Re: PowerPC KVM-PR issue

2020-06-14 Thread Nicholas Piggin
Excerpts from Christian Zigotzky's message of June 12, 2020 11:01 pm: > On 11 June 2020 at 04:47 pm, Christian Zigotzky wrote: >> On 10 June 2020 at 01:23 pm, Christian Zigotzky wrote: >>> On 10 June 2020 at 11:06 am, Christian Zigotzky wrote: On 10 June 2020 at 00:18 am, Christian Zigotzky

Re: [PATCH] scsi: target/sbp: remove firewire SBP target driver

2020-06-14 Thread Chris Boot
On 14/06/2020 01:03, Finn Thain wrote: > On Sat, 13 Jun 2020, Chris Boot wrote: > >> I no longer have the time to maintain this subsystem nor the hardware to >> test patches with. > > Then why not patch MAINTAINERS, and orphan it, as per usual practice? > > $ git log --oneline MAINTAINERS |

Re: [PATCH v2 1/4] powerpc/64s: implement probe_kernel_read/write without touching AMR

2020-06-14 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of June 10, 2020 10:41 pm: > Hi Nick > > Le 03/04/2020 à 11:35, Nicholas Piggin a écrit : >> There is no need to allow user accesses when probing kernel addresses. > > You should have a look at >

Re: Linux powerpc new system call instruction and ABI

2020-06-14 Thread Nicholas Piggin
Excerpts from Segher Boessenkool's message of June 12, 2020 7:02 am: > Hi! > > On Thu, Jun 11, 2020 at 06:12:01PM +1000, Nicholas Piggin wrote: >> Calling convention >> -- >> The proposal is for scv 0 to provide the standard Linux system call ABI >> with the following differences

Re: [PATCH] powerpc/64: indirect function call use bctrl rather than blrl in ret_from_kernel_thread

2020-06-14 Thread Nicholas Piggin
Excerpts from Christophe Leroy's message of June 11, 2020 10:26 pm: > > > Le 11/06/2020 à 14:11, Nicholas Piggin a écrit : >> blrl is not recommended to use as an indirect function call, as it may >> corrupt the link stack predictor. >> >> This is not a performance critical path but this should

Re: PowerPC KVM-PR issue

2020-06-14 Thread Nicholas Piggin
Excerpts from Christian Zigotzky's message of June 12, 2020 11:01 pm: > On 11 June 2020 at 04:47 pm, Christian Zigotzky wrote: >> On 10 June 2020 at 01:23 pm, Christian Zigotzky wrote: >>> On 10 June 2020 at 11:06 am, Christian Zigotzky wrote: On 10 June 2020 at 00:18 am, Christian Zigotzky

[PATCH] powerpc/perf: fix missing is_sier_aviable() during build

2020-06-14 Thread Madhavan Srinivasan
Compilation error: arch/powerpc/perf/perf_regs.c:80:undefined reference to `.is_sier_available' Currently is_sier_available() is part of core-book3s.c. But then, core-book3s.c is added to build based on CONFIG_PPC_PERF_CTRS. A config with CONFIG_PERF_EVENTS and without CONFIG_PPC_PERF_CTRS will

Re: [PATCH] powerpc/powernv/pci: add ifdef to avoid dead code

2020-06-14 Thread Christophe Leroy
Hi, Le 14/06/2020 à 07:54, Greg Thelen a écrit : Commit dc3d8f85bb57 ("powerpc/powernv/pci: Re-work bus PE configuration") removed a couple pnv_ioda_setup_bus_dma() calls. The only remaining calls are behind CONFIG_IOMMU_API. Thus builds without CONFIG_IOMMU_API see: