[PATCH v2 net-next] ibmvnic: remove default label from to_string switch

2021-05-03 Thread Michal Suchanek
This way the compiler warns when a new value is added to the enum but not to the string translation like: drivers/net/ethernet/ibm/ibmvnic.c: In function 'adapter_state_to_string': drivers/net/ethernet/ibm/ibmvnic.c:832:2: warning: enumeration value 'VNIC_FOOBAR' not handled in switch [-Wswitch]

Re: [PATCH] Raise the minimum GCC version to 5.2

2021-05-03 Thread Alexander Dahl
Hello Arnd, Am Mon, May 03, 2021 at 11:25:21AM +0200 schrieb Arnd Bergmann: > On Mon, May 3, 2021 at 9:35 AM Alexander Dahl wrote: > > > > Desktops and servers are all nice, however I just want to make you > > aware, there are embedded users forced to stick to older cross > > toolchains for

Re: [PATCH v3 1/2] KVM: PPC: Book3S HV: Sanitise vcpu registers in nested path

2021-05-03 Thread Nicholas Piggin
Excerpts from Paul Mackerras's message of May 4, 2021 2:28 pm: > On Sat, May 01, 2021 at 11:58:36AM +1000, Nicholas Piggin wrote: >> Excerpts from Fabiano Rosas's message of April 16, 2021 9:09 am: >> > As one of the arguments of the H_ENTER_NESTED hypercall, the nested >> > hypervisor (L1)

Re: [FSL P50x0] Xorg always restarts again and again after the the PowerPC updates 5.13-1

2021-05-03 Thread Christophe Leroy
Le 04/05/2021 à 00:25, Christian Zigotzky a écrit : Hello, Xorg always restarts again and again after the the PowerPC updates 5.13-1 [1] on my FSL P5040 Cyrus+ board (A-EON AmigaOne X5000) [2]. Xorg doesn't start anymore in a virtual e5500 QEMU machine [3]. I bisected today [4]. Result:

Re: [PATCH v3 1/2] KVM: PPC: Book3S HV: Sanitise vcpu registers in nested path

2021-05-03 Thread Paul Mackerras
On Sat, May 01, 2021 at 11:58:36AM +1000, Nicholas Piggin wrote: > Excerpts from Fabiano Rosas's message of April 16, 2021 9:09 am: > > As one of the arguments of the H_ENTER_NESTED hypercall, the nested > > hypervisor (L1) prepares a structure containing the values of various > >

[RFC 09/10] powerpc/rtas: convert to rtas_sched_if_busy()

2021-05-03 Thread Nathan Lynch
rtas_sched_if_busy() has better behavior for RTAS_BUSY (-2) and small extended delay values. Signed-off-by: Nathan Lynch --- arch/powerpc/kernel/rtas.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/kernel/rtas.c b/arch/powerpc/kernel/rtas.c index

[RFC 10/10] powerpc/rtas_flash: convert to rtas_sched_if_busy()

2021-05-03 Thread Nathan Lynch
rtas_sched_if_busy() has better behavior for RTAS_BUSY (-2) and small extended delay values. Signed-off-by: Nathan Lynch --- arch/powerpc/kernel/rtas_flash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/rtas_flash.c

[RFC 08/10] powerpc/pseries/dlpar: convert to rtas_sched_if_busy()

2021-05-03 Thread Nathan Lynch
rtas_sched_if_busy() has better behavior for RTAS_BUSY (-2) and small extended delay values. Signed-off-by: Nathan Lynch --- arch/powerpc/platforms/pseries/dlpar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/pseries/dlpar.c

[RFC 07/10] powerpc/pseries/iommu: convert to rtas_sched_if_busy()

2021-05-03 Thread Nathan Lynch
rtas_sched_if_busy() has better behavior for RTAS_BUSY (-2) and small extended delay values. Signed-off-by: Nathan Lynch --- arch/powerpc/platforms/pseries/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platforms/pseries/iommu.c

[RFC 06/10] powerpc/pseries/msi: convert to rtas_sched_if_busy()

2021-05-03 Thread Nathan Lynch
rtas_sched_if_busy() has better behavior for RTAS_BUSY (-2) and small extended delay values. Signed-off-by: Nathan Lynch --- arch/powerpc/platforms/pseries/msi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/pseries/msi.c

[RFC 05/10] powerpc/pseries/fadump: convert to rtas_sched_if_busy()

2021-05-03 Thread Nathan Lynch
None of these call sites need to use mdelay(); convert them to rtas_sched_if_busy(). Signed-off-by: Nathan Lynch --- arch/powerpc/platforms/pseries/rtas-fadump.c | 22 +++- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git

[RFC 04/10] powerpc/rtas-rtc: convert set-time-of-day to rtas_sched_if_busy()

2021-05-03 Thread Nathan Lynch
rtas_set_rtc_time() is called only in process context; convert this to rtas_sched_if_busy(). Signed-off-by: Nathan Lynch --- arch/powerpc/kernel/rtas-rtc.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/powerpc/kernel/rtas-rtc.c

[RFC 03/10] powerpc/rtas-rtc: convert get-time-of-day to rtas_force_spin_if_busy()

2021-05-03 Thread Nathan Lynch
The functions in rtas-rtc which call get-time-of-day can be invoked in boot, suspend, and resume paths with interrupts off. Unfortunately get-time-of-day can return an extended delay status, so we use rtas_force_spin_if_busy(). In the specific case of rtas_get_rtc_time(), it is not clear why

[RFC 01/10] powerpc/rtas: new APIs for busy and extended delay statuses

2021-05-03 Thread Nathan Lynch
Add new APIs for handling busy (-2) and extended delay hint (9900...9905) statuses from RTAS. These are intended to be drop-in replacements for existing uses of rtas_busy_delay(). A problem with rtas_busy_delay() and rtas_busy_delay_time() is that they consider -2/busy to be equivalent to 9900

[RFC 02/10] powerpc/rtas: do not schedule in rtas_os_term()

2021-05-03 Thread Nathan Lynch
rtas_os_term() is called in the panic path and should immediately re-call the RTAS ibm,os-term function as long as it returns a busy status. It's not safe to use rtas_busy_delay() in this context, which potentially can schedule away. Use rtas_spin_if_busy(). Signed-off-by: Nathan Lynch ---

[RFC 00/10] powerpc/rtas: improved busy and extended delay status handling

2021-05-03 Thread Nathan Lynch
This is an attempt at providing clearer names as discussed here: https://github.com/linuxppc/issues/issues/164 as well as providing better behavior for RTAS_BUSY (-2) and small extended delay values, which in my experience seem more common than the larger ones. In testing PREEMPT_NONE kernels

[PATCH] powerpc/pseries/dlpar: use rtas_get_sensor()

2021-05-03 Thread Nathan Lynch
Instead of making bare calls to get-sensor-state, use rtas_get_sensor(), which correctly handles busy and extended delay statuses. Fixes: ab519a011caa ("powerpc/pseries: Kernel DLPAR Infrastructure") Signed-off-by: Nathan Lynch --- arch/powerpc/platforms/pseries/dlpar.c | 9 +++-- 1 file

[powerpc:next] BUILD SUCCESS 562d1e207d322e6346e8db91bbd11d94f16427d2

2021-05-03 Thread kernel test robot
allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a003-20210503 i386 randconfig-a006-20210503 i386 randconfig-a001-20210503 i386

[powerpc:merge] BUILD SUCCESS 134b5c8a49b594ff6cfb4ea1a92400bb382b46d2

2021-05-03 Thread kernel test robot
allnoconfig x86_64 randconfig-a001-20210503 x86_64 randconfig-a005-20210503 x86_64 randconfig-a003-20210503 x86_64 randconfig-a002-20210503 x86_64 randconfig-a006-20210503 x86_64 randconfig-a004-20210503 i386

[powerpc:next-test] BUILD SUCCESS 7905dafdefe9f1238a3ca2795cf975b311b5a5f6

2021-05-03 Thread kernel test robot
defconfig mips allyesconfig mips allmodconfig powerpc allyesconfig powerpc allmodconfig powerpc allnoconfig i386 randconfig-a003-20210503 i386

Re: [PATCH] Raise the minimum GCC version to 5.2

2021-05-03 Thread Masahiro Yamada
On Mon, May 3, 2021 at 3:17 PM Christophe Leroy wrote: > > > > Le 01/05/2021 à 17:15, Masahiro Yamada a écrit : > > The current minimum GCC version is 4.9 except ARCH=arm64 requiring > > GCC 5.1. > > > > When we discussed last time, we agreed to raise the minimum GCC version > > to 5.1 globally.

Re: [PATCH 2/3] hotplug-memory.c: enhance dlpar_memory_remove* LMB checks

2021-05-03 Thread David Gibson
On Fri, Apr 30, 2021 at 09:09:16AM -0300, Daniel Henrique Barboza wrote: > dlpar_memory_remove_by_ic() validates the amount of LMBs to be removed > by checking !DRCONF_MEM_RESERVED, and in the following loop before > dlpar_remove_lmb() a check for DRCONF_MEM_ASSIGNED is made before > removing it.

Re: [PATCH 1/3] powerpc/pseries: Set UNISOLATE on dlpar_memory_remove_by_ic() error

2021-05-03 Thread David Gibson
On Fri, Apr 30, 2021 at 09:09:15AM -0300, Daniel Henrique Barboza wrote: > As previously done in dlpar_cpu_remove() for CPUs, this patch changes > dlpar_memory_remove_by_ic() to unisolate the LMB DRC when the LMB is > failed to be removed. The hypervisor, seeing a LMB DRC that was supposed > to be

Re: [PATCH 4/4] powerpc/powernv: Remove POWER9 PVR version check for entry and uaccess flushes

2021-05-03 Thread Joel Stanley
On Mon, 3 May 2021 at 13:04, Nicholas Piggin wrote: > > These aren't necessarily POWER9 only, and it's not to say some new > vulnerability may not get discovered on other processors for which > we would like the flexibility of having the workaround enabled by > firmware. > > Remove the

Re: [PATCH] ibmvnic: remove default label from to_string switch

2021-05-03 Thread David Miller
From: Lijun Pan Date: Mon, 3 May 2021 13:21:00 -0500 > On Mon, May 3, 2021 at 5:54 AM Michal Suchanek wrote: >> >> This way the compiler warns when a new value is added to the enum but >> not the string transation like: > > s/transation/translation/ > > This trick works. > Since the original

Re: [PATCH v3] pseries/drmem: update LMBs after LPM

2021-05-03 Thread Tyrel Datwyler
On 5/3/21 10:28 AM, Laurent Dufour wrote: > Le 01/05/2021 à 01:58, Tyrel Datwyler a écrit : >> On 4/30/21 9:13 AM, Laurent Dufour wrote: >>> Le 29/04/2021 à 21:12, Tyrel Datwyler a écrit : On 4/29/21 3:27 AM, Aneesh Kumar K.V wrote: > Laurent Dufour writes: > Snip >> >> As of today

Re: [RFC] powerpc/pseries: delete scanlog

2021-05-03 Thread Tyrel Datwyler
On 5/3/21 10:18 AM, Nathan Lynch wrote: > A commit from 2008 says this driver was relevant only for "older > systems", and currently supported hardware doesn't have this > facility. Get rid of it. The only references I could find to scan log dump support are several Power 4+ systems, in

Re: [PATCH v2] powerpc/64: BE option to use ELFv2 ABI for big endian kernels

2021-05-03 Thread Michal Suchánek
On Mon, May 03, 2021 at 11:34:25AM +0200, Michal Suchánek wrote: > On Mon, May 03, 2021 at 09:11:16AM +0200, Michal Suchánek wrote: > > On Mon, May 03, 2021 at 10:58:33AM +1000, Nicholas Piggin wrote: > > > Excerpts from Michal Suchánek's message of May 3, 2021 2:57 am: > > > > On Tue, Apr 28,

Re: [PATCH] ibmvnic: remove default label from to_string switch

2021-05-03 Thread Lijun Pan
On Mon, May 3, 2021 at 5:54 AM Michal Suchanek wrote: > > This way the compiler warns when a new value is added to the enum but > not the string transation like: s/transation/translation/ This trick works. Since the original code does not generate gcc warnings/errors, should this patch be sent

Re: [PATCH 1/3] lib: early_string: allow early usage of some string functions

2021-05-03 Thread Daniel Walker
On Mon, May 03, 2021 at 11:01:41AM -0700, Daniel Walker wrote: > On Sat, May 01, 2021 at 09:31:47AM +0200, Christophe Leroy wrote: > > > > > In fact, should be like in prom_init today: > > > > > > #ifdef __EARLY_STRING_ENABLED > > > if (dsize >= count) > > >     return count; > > >

Re: [PATCH 1/3] lib: early_string: allow early usage of some string functions

2021-05-03 Thread Daniel Walker
On Sat, May 01, 2021 at 09:31:47AM +0200, Christophe Leroy wrote: > > > In fact, should be like in prom_init today: > > > > #ifdef __EARLY_STRING_ENABLED > > if (dsize >= count) > >     return count; > > #else > > BUG_ON(dsize >= count); > > #endif > > Thinking about it once

[PATCH] powerpc/rtas-rtc: remove unused constant

2021-05-03 Thread Nathan Lynch
RTAS_CLOCK_BUSY is unused, remove it. Signed-off-by: Nathan Lynch --- arch/powerpc/kernel/rtas-rtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/rtas-rtc.c b/arch/powerpc/kernel/rtas-rtc.c index a28239b8b0c0..33c07c8af6c8 100644 ---

Re: [PATCH v3] pseries/drmem: update LMBs after LPM

2021-05-03 Thread Laurent Dufour
Le 01/05/2021 à 01:58, Tyrel Datwyler a écrit : On 4/30/21 9:13 AM, Laurent Dufour wrote: Le 29/04/2021 à 21:12, Tyrel Datwyler a écrit : On 4/29/21 3:27 AM, Aneesh Kumar K.V wrote: Laurent Dufour writes: After a LPM, the device tree node ibm,dynamic-reconfiguration-memory may be updated

[RFC] powerpc/pseries: delete scanlog

2021-05-03 Thread Nathan Lynch
A commit from 2008 says this driver was relevant only for "older systems", and currently supported hardware doesn't have this facility. Get rid of it. Signed-off-by: Nathan Lynch --- arch/powerpc/configs/ppc64_defconfig | 1 - arch/powerpc/configs/pseries_defconfig | 1 -

[PATCH 2/2] powerpc/paca: Remove mm_ctx_id and mm_ctx_slb_addr_limit

2021-05-03 Thread Christophe Leroy
mm_ctx_id and mm_ctx_slb_addr_limit are not used anymore. Remove them. Signed-off-by: Christophe Leroy --- arch/powerpc/include/asm/paca.h | 2 -- arch/powerpc/kernel/paca.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/arch/powerpc/include/asm/paca.h

[PATCH 1/2] powerpc/asm-offset: Remove unused items related to paca

2021-05-03 Thread Christophe Leroy
PACA_SIZE, PACACONTEXTID, PACALOWSLICESPSIZE, PACAHIGHSLICEPSIZE, PACA_SLB_ADDR_LIMIT, MMUPSIZEDEFSIZE, PACASLBCACHE, PACASLBCACHEPTR, PACASTABRR, PACAVMALLOCSLLP, MMUPSIZESLLP, PACACONTEXTSLLP, PACALPPACAPTR, LPPACA_DTLIDX and PACA_DTL_RIDX are not used anymore by ASM code. Remove them.

Re: [PATCH v2] powerpc/64: BE option to use ELFv2 ABI for big endian kernels

2021-05-03 Thread Segher Boessenkool
Hi! On Mon, May 03, 2021 at 10:51:41AM +1000, Nicholas Piggin wrote: > Excerpts from Segher Boessenkool's message of May 3, 2021 3:55 am: > > On Wed, Apr 29, 2020 at 10:57:16AM +1000, Nicholas Piggin wrote: > >> Excerpts from Segher Boessenkool's message of April 29, 2020 9:40 am: > >> I blame

Re: [PATCH v3] powerpc/64: Option to use ELFv2 ABI for big-endian kernels

2021-05-03 Thread Michal Suchánek
On Mon, May 03, 2021 at 01:37:57PM +0200, Andreas Schwab wrote: > Should this add a tag to the module vermagic? Would the modues link even if the vermagic was not changed? I suppose something like this might do it. Thanks Michal diff --git a/arch/powerpc/include/asm/vermagic.h

Re: [PATCH v5 14/16] dma-direct: Allocate memory from restricted DMA pool if available

2021-05-03 Thread Claire Chang
On Fri, Apr 23, 2021 at 9:46 PM Robin Murphy wrote: > > On 2021-04-22 09:15, Claire Chang wrote: > > The restricted DMA pool is preferred if available. > > > > The restricted DMA pools provide a basic level of protection against the > > DMA overwriting buffer contents at unexpected times.

Re: [PATCH] Raise the minimum GCC version to 5.2

2021-05-03 Thread Miguel Ojeda
On Mon, May 3, 2021 at 2:20 PM David Laight wrote: > > It would be nice to be able to build current kernels (for local > use) on the 'new' system - but gcc is already too old. I have seen such environments too... However, for the kernel in particular, you could install a newer GCC in the 'new'

[PATCH 4/4] powerpc/powernv: Remove POWER9 PVR version check for entry and uaccess flushes

2021-05-03 Thread Nicholas Piggin
These aren't necessarily POWER9 only, and it's not to say some new vulnerability may not get discovered on other processors for which we would like the flexibility of having the workaround enabled by firmware. Remove the restriction that they only apply to POWER9. Signed-off-by: Nicholas Piggin

[PATCH 3/4] powerpc/pesries: Get STF barrier requirement from H_GET_CPU_CHARACTERISTICS

2021-05-03 Thread Nicholas Piggin
This allows the hypervisor / firmware to describe this workarounds to the guest. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/hvcall.h | 1 + arch/powerpc/platforms/pseries/setup.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/arch/powerpc/include/asm/hvcall.h

[PATCH 2/4] powerpc/security: Add a security feature for STF barrier

2021-05-03 Thread Nicholas Piggin
Rather than tying this mitigation to RFI L1D flush requirement, add a new bit for it. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/security_features.h | 4 arch/powerpc/kernel/security.c | 7 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git

[PATCH 1/4] powerpc/pseries: Get entry and uaccess flush required bits from H_GET_CPU_CHARACTERISTICS

2021-05-03 Thread Nicholas Piggin
This allows the hypervisor / firmware to describe these workarounds to the guest. Signed-off-by: Nicholas Piggin --- arch/powerpc/include/asm/hvcall.h | 2 ++ arch/powerpc/platforms/pseries/setup.c | 6 ++ 2 files changed, 8 insertions(+) diff --git a/arch/powerpc/include/asm/hvcall.h

[PATCH 0/4] powerpc/security mitigation updates

2021-05-03 Thread Nicholas Piggin
This series adds a few missing bits added to recent pseries H_GET_CPU_CHARACTERISTICS and implements them, also removes a restriction from powernv for some of the flushes. This is tested mianly in qemu where I just submitted a patch that adds support for these bits (not upstream yet). Nicholas

Re: [PATCH] Raise the minimum GCC version to 5.2

2021-05-03 Thread David Sterba
On Sun, May 02, 2021 at 12:15:38AM +0900, Masahiro Yamada wrote: > The current minimum GCC version is 4.9 except ARCH=arm64 requiring > GCC 5.1. > > When we discussed last time, we agreed to raise the minimum GCC version > to 5.1 globally. [1] There are still a lot of comment references to old

RE: [PATCH] Raise the minimum GCC version to 5.2

2021-05-03 Thread David Laight
From: Arnd Bergmann > Sent: 03 May 2021 10:25 ... > One scenario that I've seen previously is where user space and > kernel are built together as a source based distribution (OE, buildroot, > openwrt, ...), and the compiler is picked to match the original sources > of the user space because that

Re: [PATCH v3] powerpc/64: Option to use ELFv2 ABI for big-endian kernels

2021-05-03 Thread Andreas Schwab
Should this add a tag to the module vermagic? Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."

Re: [PATCH] Raise the minimum GCC version to 5.2

2021-05-03 Thread Arnd Bergmann
On Mon, May 3, 2021 at 12:32 AM Matthew Wilcox wrote: > On Sun, May 02, 2021 at 02:08:31PM -0700, Linus Torvalds wrote: > > What is relevant is what version of gcc various distributions actually > > have reasonably easily available, and how old and relevant the > > distributions are. We did

[PATCH] powerpc/pseries: Enable hardlockup watchdog for PowerVM partitions

2021-05-03 Thread Nicholas Piggin
PowerVM will not arbitrarily oversubscribe or stop guests, page out the guest kernel text to a NFS volume connected by carrier pigeon to abacus based storage, etc., as a KVM host might. So PowerVM guests are not likely to be killed by the hard lockup watchdog in normal operation, even with shared

[PATCH] powerpc/64s: Make NMI record implicitly soft-masked code as irqs disabled

2021-05-03 Thread Nicholas Piggin
scv support introduced the notion of code that implicitly soft-masks irqs due to the instruction addresses. This is required because scv enters the kernel with MSR[EE]=1. If a NMI (including soft-NMI) interrupt hits when we are implicitly soft-masked then its regs->softe does not reflect this

[PATCH v3] powerpc/64: Option to use ELFv2 ABI for big-endian kernels

2021-05-03 Thread Nicholas Piggin
Provide an option to build big-endian kernels using the ELFv2 ABI. This works on GCC only so far, although it is rumored to work with clang that's not been tested yet. This can give big-endian kernels some useful advantages of the ELFv2 ABI (e.g., less stack usage, -mprofile-kernel, better

[PATCH] ibmvnic: remove default label from to_string switch

2021-05-03 Thread Michal Suchanek
This way the compiler warns when a new value is added to the enum but not the string transation like: drivers/net/ethernet/ibm/ibmvnic.c: In function 'adapter_state_to_string': drivers/net/ethernet/ibm/ibmvnic.c:832:2: warning: enumeration value 'VNIC_FOOBAR' not handled in switch [-Wswitch]

Re: [PATCH] Raise the minimum GCC version to 5.2

2021-05-03 Thread Arnd Bergmann
On Mon, May 3, 2021 at 2:44 AM Segher Boessenkool wrote: > > On Sun, May 02, 2021 at 02:23:01PM -0700, Joe Perches wrote: > > On Sun, 2021-05-02 at 15:32 -0500, Segher Boessenkool wrote: > > > On Sun, May 02, 2021 at 01:00:28PM -0700, Joe Perches wrote: > > [] > > > > Perhaps 8 might be best as

Re: [PATCH] Raise the minimum GCC version to 5.2

2021-05-03 Thread Kirill A. Shutemov
On Sun, May 02, 2021 at 02:08:31PM -0700, Linus Torvalds wrote: > Last year, Arnd and Kirill (maybe others were involved too) made a > list of distros and older gcc versions. But I don't think anybody > actually _maintains_ such a list. Distrowatch does. I used it for checking. But you need to

Re: [PATCH v2] powerpc/64: BE option to use ELFv2 ABI for big endian kernels

2021-05-03 Thread Michal Suchánek
On Mon, May 03, 2021 at 09:11:16AM +0200, Michal Suchánek wrote: > On Mon, May 03, 2021 at 10:58:33AM +1000, Nicholas Piggin wrote: > > Excerpts from Michal Suchánek's message of May 3, 2021 2:57 am: > > > On Tue, Apr 28, 2020 at 09:25:17PM +1000, Nicholas Piggin wrote: > > >> Provide an option to

Re: [PATCH] Raise the minimum GCC version to 5.2

2021-05-03 Thread Arnd Bergmann
On Mon, May 3, 2021 at 9:35 AM Alexander Dahl wrote: > > Desktops and servers are all nice, however I just want to make you > aware, there are embedded users forced to stick to older cross > toolchains for different reasons as well, e.g. in industrial > environment. :-) > > This is no show

Re: [PATCH v3] powerpc/64s/radix: Enable huge vmalloc mappings

2021-05-03 Thread Christophe Leroy
Le 03/05/2021 à 11:17, Nicholas Piggin a écrit : This reduces TLB misses by nearly 30x on a `git diff` workload on a 2-node POWER9 (59,800 -> 2,100) and reduces CPU cycles by 0.54%, due to vfs hashes being allocated with 2MB pages. Acked-by: Michael Ellerman Signed-off-by: Nicholas Piggin

[PATCH v3] powerpc/64s/radix: Enable huge vmalloc mappings

2021-05-03 Thread Nicholas Piggin
This reduces TLB misses by nearly 30x on a `git diff` workload on a 2-node POWER9 (59,800 -> 2,100) and reduces CPU cycles by 0.54%, due to vfs hashes being allocated with 2MB pages. Acked-by: Michael Ellerman Signed-off-by: Nicholas Piggin --- Since v2: - Fix ppc32 compile bug. Since v1: -

Re: [PATCH] Raise the minimum GCC version to 5.2

2021-05-03 Thread Joe Perches
On Mon, 2021-05-03 at 09:34 +0200, Alexander Dahl wrote: > Desktops and servers are all nice, however I just want to make you > aware, there are embedded users forced to stick to older cross > toolchains for different reasons as well, e.g. in industrial > environment. :-) In your embedded case,

Re: [PATCH] Raise the minimum GCC version to 5.2

2021-05-03 Thread Alexander Dahl
Hei hei, Am Sun, May 02, 2021 at 11:30:07PM +0100 schrieb Matthew Wilcox: > On Sun, May 02, 2021 at 02:08:31PM -0700, Linus Torvalds wrote: > > What is relevant is what version of gcc various distributions actually > > have reasonably easily available, and how old and relevant the > >

Re: [PATCH v2] powerpc/64: BE option to use ELFv2 ABI for big endian kernels

2021-05-03 Thread Michal Suchánek
On Mon, May 03, 2021 at 10:58:33AM +1000, Nicholas Piggin wrote: > Excerpts from Michal Suchánek's message of May 3, 2021 2:57 am: > > On Tue, Apr 28, 2020 at 09:25:17PM +1000, Nicholas Piggin wrote: > >> Provide an option to use ELFv2 ABI for big endian builds. This works on > >> GCC and clang

Re: [PATCH v11 3/9] powerpc: Always define MODULES_{VADDR,END}

2021-05-03 Thread Christophe Leroy
Le 03/05/2021 à 08:26, Jordan Niethe a écrit : On Mon, May 3, 2021 at 4:22 PM Christophe Leroy wrote: Le 03/05/2021 à 08:16, Jordan Niethe a écrit : On Mon, May 3, 2021 at 3:57 PM Christophe Leroy wrote: Le 03/05/2021 à 07:39, Jordan Niethe a écrit : On Thu, Apr 29, 2021 at 3:04

Re: [PATCH v11 3/9] powerpc: Always define MODULES_{VADDR,END}

2021-05-03 Thread Jordan Niethe
On Mon, May 3, 2021 at 4:22 PM Christophe Leroy wrote: > > > > Le 03/05/2021 à 08:16, Jordan Niethe a écrit : > > On Mon, May 3, 2021 at 3:57 PM Christophe Leroy > > wrote: > >> > >> > >> > >> Le 03/05/2021 à 07:39, Jordan Niethe a écrit : > >>> On Thu, Apr 29, 2021 at 3:04 PM Christophe Leroy >

Re: [PATCH v11 3/9] powerpc: Always define MODULES_{VADDR,END}

2021-05-03 Thread Christophe Leroy
Le 03/05/2021 à 08:16, Jordan Niethe a écrit : On Mon, May 3, 2021 at 3:57 PM Christophe Leroy wrote: Le 03/05/2021 à 07:39, Jordan Niethe a écrit : On Thu, Apr 29, 2021 at 3:04 PM Christophe Leroy wrote: Le 29/04/2021 à 05:15, Jordan Niethe a écrit : If MODULES_{VADDR,END} are

Re: [PATCH] Raise the minimum GCC version to 5.2

2021-05-03 Thread Christophe Leroy
Le 01/05/2021 à 17:15, Masahiro Yamada a écrit : The current minimum GCC version is 4.9 except ARCH=arm64 requiring GCC 5.1. When we discussed last time, we agreed to raise the minimum GCC version to 5.1 globally. [1] I'd like to propose GCC 5.2 to clean up arch/powerpc/Kconfig as well.

Re: [PATCH v11 3/9] powerpc: Always define MODULES_{VADDR,END}

2021-05-03 Thread Jordan Niethe
On Mon, May 3, 2021 at 3:57 PM Christophe Leroy wrote: > > > > Le 03/05/2021 à 07:39, Jordan Niethe a écrit : > > On Thu, Apr 29, 2021 at 3:04 PM Christophe Leroy > > wrote: > >> > >> > >> > >> Le 29/04/2021 à 05:15, Jordan Niethe a écrit : > >>> If MODULES_{VADDR,END} are not defined set them