Re: [PATCH V7 4/7] sparc/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-04-13 Thread Christophe Leroy
Le 14/04/2022 à 08:21, Anshuman Khandual a écrit : > This defines and exports a platform specific custom vm_get_page_prot() via > subscribing ARCH_HAS_VM_GET_PAGE_PROT. It localizes arch_vm_get_page_prot() > as sparc_vm_get_page_prot() and moves near vm_get_page_prot(). > > Cc: "David S. Miller"

[PATCH V7 7/7] mm/mmap: Drop arch_vm_get_page_pgprot()

2022-04-13 Thread Anshuman Khandual
There are no platforms left which use arch_vm_get_page_prot(). Just drop generic arch_vm_get_page_prot(). Cc: Andrew Morton Cc: linux...@kvack.org Cc: linux-ker...@vger.kernel.org Reviewed-by: Christophe Leroy Reviewed-by: Catalin Marinas Signed-off-by: Anshuman Khandual --- include/linux/mma

[PATCH V7 6/7] mm/mmap: Drop arch_filter_pgprot()

2022-04-13 Thread Anshuman Khandual
There are no platforms left which subscribe ARCH_HAS_FILTER_PGPROT. Hence drop generic arch_filter_pgprot() and also config ARCH_HAS_FILTER_PGPROT. Cc: Andrew Morton Cc: linux...@kvack.org Cc: linux-ker...@vger.kernel.org Reviewed-by: Christophe Leroy Reviewed-by: Catalin Marinas Signed-off-by:

[PATCH V7 5/7] x86/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-04-13 Thread Anshuman Khandual
From: Christoph Hellwig This defines and exports a platform specific custom vm_get_page_prot() via subscribing ARCH_HAS_VM_GET_PAGE_PROT. This also unsubscribes from config ARCH_HAS_FILTER_PGPROT, after dropping off arch_filter_pgprot() and arch_vm_get_page_prot(). Cc: Thomas Gleixner Cc: Ingo

[PATCH V7 4/7] sparc/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-04-13 Thread Anshuman Khandual
This defines and exports a platform specific custom vm_get_page_prot() via subscribing ARCH_HAS_VM_GET_PAGE_PROT. It localizes arch_vm_get_page_prot() as sparc_vm_get_page_prot() and moves near vm_get_page_prot(). Cc: "David S. Miller" Cc: Khalid Aziz Cc: sparcli...@vger.kernel.org Cc: linux-ker

[PATCH V7 3/7] arm64/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-04-13 Thread Anshuman Khandual
This defines and exports a platform specific custom vm_get_page_prot() via subscribing ARCH_HAS_VM_GET_PAGE_PROT. It localizes arch_vm_get_page_prot() and moves it near vm_get_page_prot(). Cc: Catalin Marinas Cc: Will Deacon Cc: linux-arm-ker...@lists.infradead.org Cc: linux-ker...@vger.kernel.o

[PATCH V7 2/7] powerpc/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-04-13 Thread Anshuman Khandual
This defines and exports a platform specific custom vm_get_page_prot() via subscribing ARCH_HAS_VM_GET_PAGE_PROT. While here, this also localizes arch_vm_get_page_prot() as __vm_get_page_prot() and moves it near vm_get_page_prot(). Cc: Michael Ellerman Cc: Paul Mackerras Cc: linuxppc-dev@lists.o

[PATCH V7 1/7] mm/mmap: Add new config ARCH_HAS_VM_GET_PAGE_PROT

2022-04-13 Thread Anshuman Khandual
Add a new config ARCH_HAS_VM_GET_PAGE_PROT, which when subscribed enables a given platform to define its own vm_get_page_prot() but still utilizing the generic protection_map[] array. Cc: Andrew Morton Cc: linux...@kvack.org Cc: linux-ker...@vger.kernel.org Reviewed-by: Christophe Leroy Reviewed

[PATCH V7 0/7] mm/mmap: Drop arch_vm_get_page_prot() and arch_filter_pgprot()

2022-04-13 Thread Anshuman Khandual
protection_map[] is an array based construct that translates given vm_flags combination. This array contains page protection map, which is populated by the platform via [__S000 .. __S111] and [__P000 .. __P111] exported macros. Primary usage for protection_map[] is for vm_get_page_prot(), which is

[RESEND][PATCH] KVM: PPC: Book3S HV: fix incorrect NULL check on list iterator

2022-04-13 Thread Xiaomeng Tong
The bug is here: if (!p) return ret; The list iterator value 'p' will *always* be set and non-NULL by list_for_each_entry(), so it is incorrect to assume that the iterator value will be NULL if the list is empty or no element is found. To fix the bug, Use a new value 'iter

Re: [PATCH kernel] KVM: PPC: Fix TCE handling for VFIO

2022-04-13 Thread David Gibson
On Wed, Apr 06, 2022 at 02:04:16PM +1000, Alexey Kardashevskiy wrote: > At the moment the IOMMU page size in a pseries VM is 16MB (the biggest > allowed by LoPAPR), this page size is used for an emulated TCE table. > If there is a passed though PCI device, that there are hardware IOMMU > tables wit

Re: [PATCH V3 0/2] Fix perf bench numa to work with machines having #CPUs > 1K

2022-04-13 Thread Disha Goel
-Original Message- From: Athira Rajeev To: a...@kernel.org, jo...@kernel.org, disg...@linux.vnet.ibm.com Cc: m...@ellerman.id.au, linux-perf-us...@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, ma...@linux.vnet.ibm.com, rnsas...@linux.ibm.com, kj...@linux.ibm.com, linux-ker...@vger.k

[PATCH 1/1] powerpc: Update MAINTAINERS for ibmvnic and VAS

2022-04-13 Thread Sukadev Bhattiprolu
Signed-off-by: Sukadev Bhattiprolu --- MAINTAINERS | 2 -- 1 file changed, 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 61d9f114c37f..cf96ac858cc3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -9336,14 +9336,12 @@ F: drivers/pci/hotplug/rpaphp* IBM Power SRIOV Virtual NIC

Re: [PATCH 1/2] of: Create platform devices for OF framebuffers

2022-04-13 Thread Rob Herring
eOn Wed, Apr 13, 2022 at 1:46 PM Rob Herring wrote: > > On Wed, Apr 13, 2022 at 12:58 PM Thomas Zimmermann > wrote: > > > > Hi > > > > Am 13.04.22 um 14:51 schrieb Rob Herring: > > > On Wed, Apr 13, 2022 at 4:24 AM Thomas Zimmermann > > > wrote: > > >> > > >> Create a platform device for each

Re: [PATCH 1/2] of: Create platform devices for OF framebuffers

2022-04-13 Thread Rob Herring
On Wed, Apr 13, 2022 at 12:58 PM Thomas Zimmermann wrote: > > Hi > > Am 13.04.22 um 14:51 schrieb Rob Herring: > > On Wed, Apr 13, 2022 at 4:24 AM Thomas Zimmermann > > wrote: > >> > >> Create a platform device for each OF-declared framebuffer and have > >> offb bind to these devices. Allows for

Re: [PATCH 2/2] fbdev: Remove hot-unplug workaround for framebuffers without device

2022-04-13 Thread Thomas Zimmermann
Hi Am 13.04.22 um 18:05 schrieb Daniel Vetter: On Wed, Apr 13, 2022 at 12:50:50PM +0200, Javier Martinez Canillas wrote: On 4/13/22 11:24, Thomas Zimmermann wrote: A workaround makes fbdev hot-unplugging work for framebuffers without device. The only user for this feature was offb. As each OF

Re: [PATCH 1/2] of: Create platform devices for OF framebuffers

2022-04-13 Thread Javier Martinez Canillas
On 4/13/22 19:58, Thomas Zimmermann wrote: > Hi [snip] >>> >>> /* Populate everything else. */ >>> of_platform_default_populate(NULL, NULL, NULL); >> >> I'm pretty sure it's just this call that's the problem for PPC though >> none of the above existed when adding this caused a r

Re: [PATCH 1/2] of: Create platform devices for OF framebuffers

2022-04-13 Thread Thomas Zimmermann
Hi Am 13.04.22 um 14:51 schrieb Rob Herring: On Wed, Apr 13, 2022 at 4:24 AM Thomas Zimmermann wrote: Create a platform device for each OF-declared framebuffer and have offb bind to these devices. Allows for real hot-unplugging and other drivers besides offb. Originally, offb created framebu

Re: [PATCH 2/2] fbdev: Remove hot-unplug workaround for framebuffers without device

2022-04-13 Thread Daniel Vetter
On Wed, Apr 13, 2022 at 12:50:50PM +0200, Javier Martinez Canillas wrote: > On 4/13/22 11:24, Thomas Zimmermann wrote: > > A workaround makes fbdev hot-unplugging work for framebuffers without > > device. The only user for this feature was offb. As each OF framebuffer > > now has an associated plat

Re: [PATCH V6 4/7] sparc/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-04-13 Thread Khalid Aziz
On 4/13/22 00:22, Anshuman Khandual wrote: On 4/13/22 11:43, Christophe Leroy wrote: Le 13/04/2022 à 07:58, Anshuman Khandual a écrit : This defines and exports a platform specific custom vm_get_page_prot() via subscribing ARCH_HAS_VM_GET_PAGE_PROT. It localizes arch_vm_get_page_prot() as s

Re: [PATCH] cpufreq: Prepare cleanup of powerpc's asm/prom.h

2022-04-13 Thread Rafael J. Wysocki
On Mon, Apr 4, 2022 at 8:27 AM Viresh Kumar wrote: > > On 01-04-22, 19:24, Christophe Leroy wrote: > > powerpc's asm/prom.h brings some headers that it doesn't > > need itself. > > > > In order to clean it up, first add missing headers in > > users of asm/prom.h > > > > Signed-off-by: Christophe L

[PATCH] powerpc/xive: remove unused parameter

2022-04-13 Thread Deming
From: Deming Wang the parameter xc balongng to xive_cleanup_single_escalation is unused,so we need to remove it. Signed-off-by: Deming Wang --- arch/powerpc/kvm/book3s_xive.c| 5 ++--- arch/powerpc/kvm/book3s_xive.h| 3 +-- arch/powerpc/kvm/book3s_xive_native.c | 2 +- 3 files

Re: [PATCH 2/2] fbdev: Remove hot-unplug workaround for framebuffers without device

2022-04-13 Thread Javier Martinez Canillas
On 4/13/22 11:24, Thomas Zimmermann wrote: > A workaround makes fbdev hot-unplugging work for framebuffers without > device. The only user for this feature was offb. As each OF framebuffer > now has an associated platform device, the workaround is no longer > needed. Remove it. Effectively reverts

Re: [PATCH 1/2] of: Create platform devices for OF framebuffers

2022-04-13 Thread Javier Martinez Canillas
Hello Thomas, Thanks for working on this. On 4/13/22 11:24, Thomas Zimmermann wrote: > Create a platform device for each OF-declared framebuffer and have > offb bind to these devices. Allows for real hot-unplugging and other > drivers besides offb. > > Originally, offb created framebuffer device

Re: [PATCH 1/2] of: Create platform devices for OF framebuffers

2022-04-13 Thread Rob Herring
On Wed, Apr 13, 2022 at 4:24 AM Thomas Zimmermann wrote: > > Create a platform device for each OF-declared framebuffer and have > offb bind to these devices. Allows for real hot-unplugging and other > drivers besides offb. > > Originally, offb created framebuffer devices while initializing its > m

Re: [PATCH 2/4] ELF: Remove elf_core_copy_kernel_regs()

2022-04-13 Thread Borislav Petkov
+ PPC ML as an FYI that this change will come through tip. On Fri, Mar 25, 2022 at 11:39:51AM -0400, Brian Gerst wrote: > x86-32 was the last architecture that implemented separate user and > kernel registers. > > Signed-off-by: Brian Gerst > --- > arch/powerpc/kernel/fadump.c | 2

Re: [PATCH V5 4/7] sparc/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT

2022-04-13 Thread David Miller
From: Anshuman Khandual Date: Tue, 12 Apr 2022 10:08:45 +0530 > This defines and exports a platform specific custom vm_get_page_prot() via > subscribing ARCH_HAS_VM_GET_PAGE_PROT. It localizes arch_vm_get_page_prot() > as sparc_vm_get_page_prot() and moves near vm_get_page_prot(). > > Cc: "David

Re: [PATCH 1/2] of: Create platform devices for OF framebuffers

2022-04-13 Thread Thomas Zimmermann
Hi Am 13.04.22 um 12:45 schrieb Javier Martinez Canillas: Hello Thomas, Thanks for working on this. On 4/13/22 11:24, Thomas Zimmermann wrote: Create a platform device for each OF-declared framebuffer and have offb bind to these devices. Allows for real hot-unplugging and other drivers beside

[PATCH 0/2] of: Register platform device for each framebuffer

2022-04-13 Thread Thomas Zimmermann
Move the detection of OF framebuffers from fbdev into of platform code and register a Linux platform device for each framebuffer. Allows for DRM-based OF drivers and real hot-unplugging of the framebuffer. This patchset has been tested with qemu's ppc64le emulation, which provides a framebuffer vi

[PATCH 2/2] fbdev: Remove hot-unplug workaround for framebuffers without device

2022-04-13 Thread Thomas Zimmermann
A workaround makes fbdev hot-unplugging work for framebuffers without device. The only user for this feature was offb. As each OF framebuffer now has an associated platform device, the workaround is no longer needed. Remove it. Effectively reverts commit 0f525289ff0d ("fbdev: Fix unregistering of f

[PATCH 1/2] of: Create platform devices for OF framebuffers

2022-04-13 Thread Thomas Zimmermann
Create a platform device for each OF-declared framebuffer and have offb bind to these devices. Allows for real hot-unplugging and other drivers besides offb. Originally, offb created framebuffer devices while initializing its module by parsing the OF device tree. No actual Linux device was set up.

Re: [PATCH net-next v3 14/18] sfc: Remove usage of list iterator for list_add() after the loop body

2022-04-13 Thread Jakob Koschel
> On 12. Apr 2022, at 23:29, Jakub Kicinski wrote: > > On Tue, 12 Apr 2022 14:15:53 +0200 Jakob Koschel wrote: >> -struct list_head *head = &efx->rss_context.list; >> +struct list_head *head = *pos = &efx->rss_context.list; > > ENOTBUILT, please wait with the reposting. Since you post