Re: [PATCH 1/2] mm: Fix struct page layout on 32-bit systems

2021-04-20 Thread h...@lst.de
On Tue, Apr 20, 2021 at 11:20:19PM +0200, Arnd Bergmann wrote: > In that case, there should be no problem for you. > > The main issue is with system calls and ioctls that contain a misaligned > struct member like > > struct s { >u32 a; >u64 b; > }; > > Passing this structure by

Re: [PATCH 1/2] powerpc: Free fdt on error in elf64_load()

2021-04-20 Thread Santosh Sivaraj
Hi Lakshmi, Lakshmi Ramasubramanian writes: > There are a few "goto out;" statements before the local variable "fdt" > is initialized through the call to of_kexec_alloc_and_setup_fdt() in > elf64_load(). This will result in an uninitialized "fdt" being passed > to kvfree() in this function

Re: [PATCH v10 03/10] powerpc: Always define MODULES_{VADDR,END}

2021-04-20 Thread Jordan Niethe
On Wed, Apr 21, 2021 at 3:14 PM Christophe Leroy wrote: > > > > Le 21/04/2021 à 04:46, Jordan Niethe a écrit : > > On Fri, Apr 2, 2021 at 12:36 AM Christophe Leroy > > wrote: > >> > >> > >> > >> Le 30/03/2021 à 06:51, Jordan Niethe a écrit : > >>> If MODULES_{VADDR,END} are not defined set them

Re: [PATCH v2] powerpc: make ALTIVEC select PPC_FPU

2021-04-20 Thread Christophe Leroy
Le 21/04/2021 à 04:56, Randy Dunlap a écrit : On a kernel config with ALTIVEC=y and PPC_FPU not set/enabled, there are build errors: drivers/cpufreq/pmac32-cpufreq.c:262:2: error: implicit declaration of function 'enable_kernel_fp' [-Werror,-Wimplicit-function-declaration]

Re: [PATCH v10 01/10] powerpc/mm: Implement set_memory() routines

2021-04-20 Thread Jordan Niethe
On Thu, Apr 1, 2021 at 3:37 PM Aneesh Kumar K.V wrote: > > Jordan Niethe writes: > > > From: Russell Currey > > > > The set_memory_{ro/rw/nx/x}() functions are required for STRICT_MODULE_RWX, > > and are generally useful primitives to have. This implementation is > > designed to be completely

Re: [PATCH v10 06/10] powerpc/mm/ptdump: debugfs handler for W+X checks at runtime

2021-04-20 Thread Christophe Leroy
Le 21/04/2021 à 04:23, Jordan Niethe a écrit : On Wed, Mar 31, 2021 at 10:24 PM Michael Ellerman wrote: Jordan Niethe writes: From: Russell Currey Optionally run W+X checks when dumping pagetable information to debugfs' kernel_page_tables. To use: $ echo 1 >

Re: [PATCH v10 03/10] powerpc: Always define MODULES_{VADDR,END}

2021-04-20 Thread Christophe Leroy
Le 21/04/2021 à 04:46, Jordan Niethe a écrit : On Fri, Apr 2, 2021 at 12:36 AM Christophe Leroy wrote: Le 30/03/2021 à 06:51, Jordan Niethe a écrit : If MODULES_{VADDR,END} are not defined set them to VMALLOC_START and VMALLOC_END respectively. This reduces the need for special cases.

Re: [PATCH v10 01/10] powerpc/mm: Implement set_memory() routines

2021-04-20 Thread Jordan Niethe
On Wed, Mar 31, 2021 at 10:16 PM Michael Ellerman wrote: > > Hi Jordan, > > A few nits below ... > > Jordan Niethe writes: > > From: Russell Currey > > > > The set_memory_{ro/rw/nx/x}() functions are required for STRICT_MODULE_RWX, > > and are generally useful primitives to have. This

[PATCH v2] powerpc: make ALTIVEC select PPC_FPU

2021-04-20 Thread Randy Dunlap
On a kernel config with ALTIVEC=y and PPC_FPU not set/enabled, there are build errors: drivers/cpufreq/pmac32-cpufreq.c:262:2: error: implicit declaration of function 'enable_kernel_fp' [-Werror,-Wimplicit-function-declaration] enable_kernel_fp(); ../arch/powerpc/lib/sstep.c: In

Re: [PATCH v10 01/10] powerpc/mm: Implement set_memory() routines

2021-04-20 Thread Jordan Niethe
On Tue, Mar 30, 2021 at 4:16 PM Christophe Leroy wrote: > > > > Le 30/03/2021 à 06:51, Jordan Niethe a écrit : > > From: Russell Currey > > > > The set_memory_{ro/rw/nx/x}() functions are required for STRICT_MODULE_RWX, > > and are generally useful primitives to have. This implementation is > >

Re: [PATCH v10 03/10] powerpc: Always define MODULES_{VADDR,END}

2021-04-20 Thread Jordan Niethe
On Fri, Apr 2, 2021 at 12:36 AM Christophe Leroy wrote: > > > > Le 30/03/2021 à 06:51, Jordan Niethe a écrit : > > If MODULES_{VADDR,END} are not defined set them to VMALLOC_START and > > VMALLOC_END respectively. This reduces the need for special cases. For > > example, powerpc's module_alloc()

Re: [PATCH v10 04/10] powerpc/kprobes: Mark newly allocated probes as ROX

2021-04-20 Thread Jordan Niethe
On Tue, Mar 30, 2021 at 4:05 PM Christophe Leroy wrote: > > > > Le 30/03/2021 à 06:51, Jordan Niethe a écrit : > > From: Russell Currey > > > > Add the arch specific insn page allocator for powerpc. This allocates > > ROX pages if STRICT_KERNEL_RWX is enabled. These pages are only written > > to

Re: [PATCH v10 08/10] powerpc/configs: Enable STRICT_MODULE_RWX in skiroot_defconfig

2021-04-20 Thread Jordan Niethe
On Tue, Mar 30, 2021 at 4:27 PM Christophe Leroy wrote: > > > > Le 30/03/2021 à 06:51, Jordan Niethe a écrit : > > From: Russell Currey > > > > skiroot_defconfig is the only powerpc defconfig with STRICT_KERNEL_RWX > > enabled, and if you want memory protection for kernel text you'd want it > >

Re: [PATCH v10 05/10] powerpc/bpf: Write protect JIT code

2021-04-20 Thread Jordan Niethe
On Wed, Mar 31, 2021 at 9:37 PM Michael Ellerman wrote: > > Jordan Niethe writes: > > > Once CONFIG_STRICT_MODULE_RWX is enabled there will be no need to > > override bpf_jit_free() because it is now possible to set images > > read-only. So use the default implementation. > > > > Also add the

Re: [PATCH v10 06/10] powerpc/mm/ptdump: debugfs handler for W+X checks at runtime

2021-04-20 Thread Jordan Niethe
On Wed, Mar 31, 2021 at 10:24 PM Michael Ellerman wrote: > > Jordan Niethe writes: > > From: Russell Currey > > > > Optionally run W+X checks when dumping pagetable information to > > debugfs' kernel_page_tables. > > > > To use: > > $ echo 1 > /sys/kernel/debug/check_wx_pages > > $ cat

[PATCH] powerpc/64s: Add load address to plt branch targets before moved to linked location for non-relocatable kernels

2021-04-20 Thread Jordan Niethe
Large branches will go through the plt which includes a stub that loads a target address from the .branch_lt section. On a relocatable kernel the targets in .branch_lt have relocations so they will be fixed up for where the kernel is running by relocate(). For a non-relocatable kernel obviously

Re: [PATCH 1/2] mm: Fix struct page layout on 32-bit systems

2021-04-20 Thread Vineet Gupta
On 4/20/21 12:07 AM, Arnd Bergmann wrote: > On Tue, Apr 20, 2021 at 5:10 AM Matthew Wilcox wrote: >> On Tue, Apr 20, 2021 at 02:48:17AM +, Vineet Gupta wrote: 32-bit architectures which expect 8-byte alignment for 8-byte integers and need 64-bit DMA addresses (arc, arm, mips, ppc)

powerpc{32,64} randconfigs

2021-04-20 Thread Randy Dunlap
|5 +++-- 4 files changed, 19 insertions(+), 10 deletions(-) --- linux-next-20210420.orig/Makefile +++ linux-next-20210420/Makefile @@ -411,6 +411,14 @@ ifeq ($(ARCH),sh64) SRCARCH := sh endif +# Additional ARCH settings for powerpc +ifeq ($(ARCH),ppc32) +SRCARCH := powerpc +endif

Re: [PATCH 1/1] of/pci: Add IORESOURCE_MEM_64 to resource flags for 64-bit memory addresses

2021-04-20 Thread Rob Herring
On Mon, Apr 19, 2021 at 9:03 PM Leonardo Bras wrote: > > On Mon, 2021-04-19 at 20:39 -0500, Rob Herring wrote: > > On Mon, Apr 19, 2021 at 7:35 PM Leonardo Bras wrote: > > > > > > On Mon, 2021-04-19 at 10:44 -0500, Rob Herring wrote: > > > > On Fri, Apr 16, 2021 at 3:58 PM Leonardo Bras > > >

Re: [RFC v1 PATCH 1/3] drivers: soc: add support for soc_device_match returning -EPROBE_DEFER

2021-04-20 Thread Dan Carpenter
On Mon, Apr 19, 2021 at 10:20:13AM +0200, Geert Uytterhoeven wrote: > Hi Alice, > > CC Arnd (soc_device_match() author) > > On Mon, Apr 19, 2021 at 6:28 AM Alice Guo (OSS) wrote: > > From: Alice Guo > > > > In i.MX8M boards, the registration of SoC device is later than caam > > driver which

Re: [PATCH V2 net] ibmvnic: Continue with reset if set link down failed

2021-04-20 Thread Lijun Pan
> On Apr 20, 2021, at 4:35 PM, Dany Madden wrote: > > When ibmvnic gets a FATAL error message from the vnicserver, it marks > the Command Respond Queue (CRQ) inactive and resets the adapter. If this > FATAL reset fails and a transmission timeout reset follows, the CRQ is > still inactive,

[PATCH V2 net] ibmvnic: Continue with reset if set link down failed

2021-04-20 Thread Dany Madden
When ibmvnic gets a FATAL error message from the vnicserver, it marks the Command Respond Queue (CRQ) inactive and resets the adapter. If this FATAL reset fails and a transmission timeout reset follows, the CRQ is still inactive, ibmvnic's attempt to set link down will also fail. If ibmvnic

Re: [PATCH 1/2] mm: Fix struct page layout on 32-bit systems

2021-04-20 Thread Arnd Bergmann
On Tue, Apr 20, 2021 at 11:14 PM Vineet Gupta wrote: > On 4/20/21 12:07 AM, Arnd Bergmann wrote: > > > > which means that half the 32-bit architectures do this. This may > > cause more problems when arc and/or microblaze want to support > > 64-bit kernels and compat mode in the future on their

Re: [PATCH v2 2/2] powerpc/legacy_serial: Use early_ioremap()

2021-04-20 Thread Chris Packham
Hi Christophe, On 21/04/21 1:32 am, Christophe Leroy wrote: > From: Christophe Leroy > > [0.00] ioremap() called early from > find_legacy_serial_ports+0x3cc/0x474. Use early_ioremap() instead > > find_legacy_serial_ports() is called early from setup_arch(), before > paging_init().

[PATCH 2/2] powerpc: If kexec_build_elf_info() fails return immediately from elf64_load()

2021-04-20 Thread Lakshmi Ramasubramanian
Uninitialized local variable "elf_info" would be passed to kexec_free_elf_info() if kexec_build_elf_info() returns an error in elf64_load(). If kexec_build_elf_info() returns an error, return the error immediately. Signed-off-by: Lakshmi Ramasubramanian Reported-by: Dan Carpenter ---

[PATCH 1/2] powerpc: Free fdt on error in elf64_load()

2021-04-20 Thread Lakshmi Ramasubramanian
There are a few "goto out;" statements before the local variable "fdt" is initialized through the call to of_kexec_alloc_and_setup_fdt() in elf64_load(). This will result in an uninitialized "fdt" being passed to kvfree() in this function if there is an error before the call to

Re: PPC_FPU, ALTIVEC: enable_kernel_fp, put_vr, get_vr

2021-04-20 Thread Randy Dunlap
On 4/20/21 6:15 AM, Michael Ellerman wrote: > Christophe Leroy writes: >> Le 19/04/2021 à 23:39, Randy Dunlap a écrit : >>> On 4/19/21 6:16 AM, Michael Ellerman wrote: Randy Dunlap writes: >>> > Sure. I'll post them later today. > They keep FPU and ALTIVEC as independent (build)

Re: [PATCH 2/2] powerpc/sstep: Add tests for setb instruction

2021-04-20 Thread Naveen N. Rao
Sathvika Vasireddy wrote: This adds selftests for setb instruction. Signed-off-by: Sathvika Vasireddy --- arch/powerpc/include/asm/ppc-opcode.h | 1 + arch/powerpc/lib/test_emulate_step.c | 28 +++ 2 files changed, 29 insertions(+) diff --git

Re: [PATCH v4] pseries: prevent free CPU ids to be reused on another node

2021-04-20 Thread Laurent Dufour
Le 07/04/2021 à 17:38, Laurent Dufour a écrit : When a CPU is hot added, the CPU ids are taken from the available mask from the lower possible set. If that set of values was previously used for CPU attached to a different node, this seems to application like if these CPUs have migrated from a

Re: [PATCH v4 19/20] mips: Convert to GENERIC_CMDLINE

2021-04-20 Thread Christophe Leroy
Le 09/04/2021 à 03:23, Daniel Walker a écrit : On Thu, Apr 08, 2021 at 02:04:08PM -0500, Rob Herring wrote: On Tue, Apr 06, 2021 at 10:38:36AM -0700, Daniel Walker wrote: On Fri, Apr 02, 2021 at 03:18:21PM +, Christophe Leroy wrote: -config CMDLINE_BOOL - bool "Built-in kernel

Re: [PATCH] powerpc: Initialize local variable fdt to NULL in elf64_load()

2021-04-20 Thread Lakshmi Ramasubramanian
On 4/20/21 8:47 AM, Rob Herring wrote: On Tue, Apr 20, 2021 at 10:04 AM Lakshmi Ramasubramanian wrote: On 4/20/21 7:42 AM, Lakshmi Ramasubramanian wrote: On 4/20/21 6:06 AM, Rob Herring wrote: On Tue, Apr 20, 2021 at 12:20 AM Lakshmi Ramasubramanian wrote: On 4/19/21 10:00 PM, Dan

Re: [PATCH] powerpc: Initialize local variable fdt to NULL in elf64_load()

2021-04-20 Thread Rob Herring
On Tue, Apr 20, 2021 at 10:04 AM Lakshmi Ramasubramanian wrote: > > On 4/20/21 7:42 AM, Lakshmi Ramasubramanian wrote: > > On 4/20/21 6:06 AM, Rob Herring wrote: > >> On Tue, Apr 20, 2021 at 12:20 AM Lakshmi Ramasubramanian > >> wrote: > >>> > >>> On 4/19/21 10:00 PM, Dan Carpenter wrote: >

Re: [PATCH] powerpc: Initialize local variable fdt to NULL in elf64_load()

2021-04-20 Thread Lakshmi Ramasubramanian
On 4/20/21 7:42 AM, Lakshmi Ramasubramanian wrote: On 4/20/21 6:06 AM, Rob Herring wrote: On Tue, Apr 20, 2021 at 12:20 AM Lakshmi Ramasubramanian wrote: On 4/19/21 10:00 PM, Dan Carpenter wrote: On Tue, Apr 20, 2021 at 09:30:16AM +1000, Michael Ellerman wrote: Lakshmi Ramasubramanian

Re: [PATCH] powerpc: Initialize local variable fdt to NULL in elf64_load()

2021-04-20 Thread Lakshmi Ramasubramanian
On 4/20/21 6:06 AM, Rob Herring wrote: On Tue, Apr 20, 2021 at 12:20 AM Lakshmi Ramasubramanian wrote: On 4/19/21 10:00 PM, Dan Carpenter wrote: On Tue, Apr 20, 2021 at 09:30:16AM +1000, Michael Ellerman wrote: Lakshmi Ramasubramanian writes: On 4/16/21 2:05 AM, Michael Ellerman wrote:

[PATCH v2 2/2] powerpc: Enable OPTPROBES on PPC32

2021-04-20 Thread Christophe Leroy
For that, create a 32 bits version of patch_imm64_load_insns() and create a patch_imm_load_insns() which calls patch_imm32_load_insns() on PPC32 and patch_imm64_load_insns() on PPC64. Adapt optprobes_head.S for PPC32. Use PPC_LL/PPC_STL macros instead of raw ld/std, opt out things linked to paca

[PATCH v2 1/2] powerpc/inst: ppc_inst_as_u64() becomes ppc_inst_as_ulong()

2021-04-20 Thread Christophe Leroy
In order to simplify use on PPC32, change ppc_inst_as_u64() into ppc_inst_as_ulong() that returns the 32 bits instruction on PPC32. Will be used when porting OPTPROBES to PPC32. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/inst.h | 13 +++--

Re: swiotlb cleanups v3

2021-04-20 Thread Tom Lendacky
On 4/20/21 4:23 AM, Christoph Hellwig wrote: > On Sat, Apr 17, 2021 at 11:39:22AM -0500, Tom Lendacky wrote: >> Somewhere between the 1st and 2nd patch, specifying a specific swiotlb >> for an SEV guest is no longer honored. For example, if I start an SEV >> guest with 16GB of memory and specify

Re: [PATCH v2 2/2] powerpc/legacy_serial: Use early_ioremap()

2021-04-20 Thread Christophe Leroy
Le 20/04/2021 à 15:32, Christophe Leroy a écrit : From: Christophe Leroy Oops, I forgot to reset the Author. Michael if you apply this patch please update the author and remove the old Signed-off-by Thanks [0.00] ioremap() called early from

Re: [PATCH v1 2/2] powerpc: Enable OPTPROBES on PPC32

2021-04-20 Thread Christophe Leroy
Le 20/04/2021 à 08:51, Naveen N. Rao a écrit : Christophe Leroy wrote: For that, create a 32 bits version of patch_imm64_load_insns() and create a patch_imm_load_insns() which calls patch_imm32_load_insns() on PPC32 and patch_imm64_load_insns() on PPC64. Adapt optprobes_head.S for PPC32.

[PATCH v2 1/2] powerpc/64: Fix the definition of the fixmap area

2021-04-20 Thread Christophe Leroy
At the time being, the fixmap area is defined at the top of the address space or just below KASAN. This definition is not valid for PPC64. For PPC64, use the top of the I/O space. Because of circular dependencies, it is not possible to include asm/fixmap.h in asm/book3s/64/pgtable.h , so define

[PATCH v2 2/2] powerpc/legacy_serial: Use early_ioremap()

2021-04-20 Thread Christophe Leroy
From: Christophe Leroy [0.00] ioremap() called early from find_legacy_serial_ports+0x3cc/0x474. Use early_ioremap() instead find_legacy_serial_ports() is called early from setup_arch(), before paging_init(). vmalloc is not available yet, ioremap shouldn't be used that early. Use

Re: PPC_FPU, ALTIVEC: enable_kernel_fp, put_vr, get_vr

2021-04-20 Thread Michael Ellerman
Christophe Leroy writes: > Le 19/04/2021 à 23:39, Randy Dunlap a écrit : >> On 4/19/21 6:16 AM, Michael Ellerman wrote: >>> Randy Dunlap writes: >> Sure. I'll post them later today. They keep FPU and ALTIVEC as independent (build) features. >>> >>> Those patches look OK. >>> >>> But

Re: [PATCH] powerpc: Initialize local variable fdt to NULL in elf64_load()

2021-04-20 Thread Rob Herring
On Tue, Apr 20, 2021 at 12:20 AM Lakshmi Ramasubramanian wrote: > > On 4/19/21 10:00 PM, Dan Carpenter wrote: > > On Tue, Apr 20, 2021 at 09:30:16AM +1000, Michael Ellerman wrote: > >> Lakshmi Ramasubramanian writes: > >>> On 4/16/21 2:05 AM, Michael Ellerman wrote: > >>> > Daniel Axtens

Re: [PATCH] powerpc/mce: save ignore_event flag unconditionally for UE

2021-04-20 Thread Santosh Sivaraj
Ganesh writes: > On 4/20/21 12:54 PM, Santosh Sivaraj wrote: > >> Hi Ganesh, >> >> Ganesh Goudar writes: >> >>> When we hit an UE while using machine check safe copy routines, >>> ignore_event flag is set and the event is ignored by mce handler, >>> And the flag is also saved for defered

Re: [PATCH 1/2] mm: Fix struct page layout on 32-bit systems

2021-04-20 Thread Matthew Wilcox
On Tue, Apr 20, 2021 at 09:39:54AM +0200, Geert Uytterhoeven wrote: > > +++ b/include/linux/mm_types.h > > @@ -97,10 +97,10 @@ struct page { > > }; > > struct {/* page_pool used by netstack */ > > /** > > -*

Re: [PATCH] powerpc/mce: save ignore_event flag unconditionally for UE

2021-04-20 Thread Ganesh
On 4/20/21 12:54 PM, Santosh Sivaraj wrote: Hi Ganesh, Ganesh Goudar writes: When we hit an UE while using machine check safe copy routines, ignore_event flag is set and the event is ignored by mce handler, And the flag is also saved for defered handling and printing of mce event

Re: [RFC v1 PATCH 3/3] driver: update all the code that use soc_device_match

2021-04-20 Thread Péter Ujfalusi
Hi Alice, On 4/19/21 7:27 AM, Alice Guo (OSS) wrote: > From: Alice Guo > > Update all the code that use soc_device_match because add support for > soc_device_match returning -EPROBE_DEFER. > > Signed-off-by: Alice Guo > --- > drivers/bus/ti-sysc.c | 2 +- >

Re: [RFC v1 PATCH 3/3] driver: update all the code that use soc_device_match

2021-04-20 Thread Arnd Bergmann
On Tue, Apr 20, 2021 at 1:44 AM Dominique MARTINET wrote: > Arnd Bergmann wrote on Mon, Apr 19, 2021 at 02:16:36PM +0200: > > For built-in drivers, load order depends on the initcall level and > > link order (how things are lined listed in the Makefile hierarchy). > > > > For loadable modules,

Re: [RFC v1 PATCH 3/3] driver: update all the code that use soc_device_match

2021-04-20 Thread Arnd Bergmann
On Tue, Apr 20, 2021 at 1:44 AM Dominique MARTINET wrote: > Arnd Bergmann wrote on Mon, Apr 19, 2021 at 02:16:36PM +0200: > > For built-in drivers, load order depends on the initcall level and > > link order (how things are lined listed in the Makefile hierarchy). > > > > For loadable modules,

Re: swiotlb cleanups v3

2021-04-20 Thread Christoph Hellwig
On Sat, Apr 17, 2021 at 11:39:22AM -0500, Tom Lendacky wrote: > Somewhere between the 1st and 2nd patch, specifying a specific swiotlb > for an SEV guest is no longer honored. For example, if I start an SEV > guest with 16GB of memory and specify swiotlb=131072 I used to get a > 256MB SWIOTLB.

Re: [PATCH V2] mm/page_alloc: Ensure that HUGETLB_PAGE_ORDER is less than MAX_ORDER

2021-04-20 Thread David Hildenbrand
Hi Christoph, thanks for your insight. You can have larger blocks but you would need to allocate multiple contigous max order blocks or do it at boot time before the buddy allocator is active. What IA64 did was to do this at boot time thereby avoiding the buddy lists. And it had a separate

RE: [PATCH 1/2] mm: Fix struct page layout on 32-bit systems

2021-04-20 Thread David Laight
From: Geert Uytterhoeven > Sent: 20 April 2021 08:40 > > Hi Willy, > > On Sat, Apr 17, 2021 at 4:49 AM Matthew Wilcox wrote: > > Replacement patch to fix compiler warning. > > > > 32-bit architectures which expect 8-byte alignment for 8-byte integers > > and need 64-bit DMA addresses (arc, arm,

Re: [PATCH] powerpc/legacy_serial: Use early_ioremap()

2021-04-20 Thread Christophe Leroy
Hi Chris, Le 10/08/2020 à 04:01, Chris Packham a écrit : On 24/03/20 10:54 am, Chris Packham wrote: Hi Christophe, On Wed, 2020-02-05 at 12:03 +, Christophe Leroy wrote: [0.00] ioremap() called early from find_legacy_serial_ports+0x3cc/0x474. Use early_ioremap() instead I was

Re: [PATCH 1/2] mm: Fix struct page layout on 32-bit systems

2021-04-20 Thread Geert Uytterhoeven
Hi Willy, On Sat, Apr 17, 2021 at 4:49 AM Matthew Wilcox wrote: > Replacement patch to fix compiler warning. > > From: "Matthew Wilcox (Oracle)" > Date: Fri, 16 Apr 2021 16:34:55 -0400 > Subject: [PATCH 1/2] mm: Fix struct page layout on 32-bit systems > To: bro...@redhat.com > Cc:

Re: [PATCH] powerpc/mce: save ignore_event flag unconditionally for UE

2021-04-20 Thread Santosh Sivaraj
Hi Ganesh, Ganesh Goudar writes: > When we hit an UE while using machine check safe copy routines, > ignore_event flag is set and the event is ignored by mce handler, > And the flag is also saved for defered handling and printing of > mce event information, But as of now saving of this flag

Re: [PATCH] powerpc/mce: save ignore_event flag unconditionally for UE

2021-04-20 Thread Santosh Sivaraj
Hi Ganesh, Ganesh Goudar writes: > When we hit an UE while using machine check safe copy routines, > ignore_event flag is set and the event is ignored by mce handler, > And the flag is also saved for defered handling and printing of > mce event information, But as of now saving of this flag

Re: [PATCH 1/2] mm: Fix struct page layout on 32-bit systems

2021-04-20 Thread Rasmus Villemoes
On 17/04/2021 01.07, Matthew Wilcox (Oracle) wrote: > 32-bit architectures which expect 8-byte alignment for 8-byte integers > and need 64-bit DMA addresses (arc, arm, mips, ppc) had their struct > page inadvertently expanded in 2019. When the dma_addr_t was added, > it forced the alignment of

Re: [PATCH 1/2] mm: Fix struct page layout on 32-bit systems

2021-04-20 Thread Arnd Bergmann
On Tue, Apr 20, 2021 at 5:10 AM Matthew Wilcox wrote: > > On Tue, Apr 20, 2021 at 02:48:17AM +, Vineet Gupta wrote: > > > 32-bit architectures which expect 8-byte alignment for 8-byte integers > > > and need 64-bit DMA addresses (arc, arm, mips, ppc) had their struct > > > page inadvertently

Re: [PATCH v1 2/2] powerpc: Enable OPTPROBES on PPC32

2021-04-20 Thread Naveen N. Rao
Christophe Leroy wrote: For that, create a 32 bits version of patch_imm64_load_insns() and create a patch_imm_load_insns() which calls patch_imm32_load_insns() on PPC32 and patch_imm64_load_insns() on PPC64. Adapt optprobes_head.S for PPC32. Use PPC_LL/PPC_STL macros instead of raw ld/std, opt

Re: [PATCH 1/2] mm: Fix struct page layout on 32-bit systems

2021-04-20 Thread Vineet Gupta
Hi Matthew, On 4/16/21 7:45 PM, Matthew Wilcox wrote: > Replacement patch to fix compiler warning. > > From: "Matthew Wilcox (Oracle)" > Date: Fri, 16 Apr 2021 16:34:55 -0400 > Subject: [PATCH 1/2] mm: Fix struct page layout on 32-bit systems > To: bro...@redhat.com > Cc:

Re: [PATCH 1/2] powerpc/sstep: Add emulation support for ‘setb’ instruction

2021-04-20 Thread Naveen N. Rao
Daniel Axtens wrote: Sathvika Vasireddy writes: This adds emulation support for the following instruction: * Set Boolean (setb) Signed-off-by: Sathvika Vasireddy --- arch/powerpc/lib/sstep.c | 12 1 file changed, 12 insertions(+) diff --git a/arch/powerpc/lib/sstep.c

Re: [PATCH bpf-next 1/2] bpf: Remove bpf_jit_enable=2 debugging mode

2021-04-20 Thread Alexei Starovoitov
On Sat, Apr 17, 2021 at 1:16 AM Christophe Leroy wrote: > > > > Le 16/04/2021 à 01:49, Alexei Starovoitov a écrit : > > On Thu, Apr 15, 2021 at 8:41 AM Quentin Monnet > > wrote: > >> > >> 2021-04-15 16:37 UTC+0200 ~ Daniel Borkmann > >>> On 4/15/21 11:32 AM, Jianlin Lv wrote: > For