2024-02-02 18:52:25

by Jiaxun Yang

[permalink] [raw]
Subject: [PATCH 0/8] MIPS: Aggregate build fixes

Hi all,

This series is a collection of build fixes that have been lying
at my local trees for a while, some of them are for Clang built
linux and others are for some wiredo configurations.

Please review.

Thanks

Signed-off-by: Jiaxun Yang <[email protected]>
---
Jiaxun Yang (8):
MIPS: Probe toolchain support of -msym32
MIPS: Remove cc-option checks for -march=octeon
MIPS: Fallback CPU -march flag to ISA level if unsupported
MIPS: BMIPS: Drop unnecessary assembler flag
MIPS: Loongson64: test for -march=loongson3a cflag
MIPS: Limit MIPS_MT_SMP support by ISA reversion
MIPS: Implement microMIPS MT ASE helpers
MIPS: mipsregs: Set proper ISA level for virt extensions

arch/mips/Kconfig | 3 +-
arch/mips/Makefile | 46 ++++---
arch/mips/include/asm/asmmacro.h | 22 ++--
arch/mips/include/asm/mipsmtregs.h | 256 ++++++++++++++++++++++---------------
arch/mips/include/asm/mipsregs.h | 22 +++-
arch/mips/kernel/vpe-mt.c | 4 +-
6 files changed, 211 insertions(+), 142 deletions(-)
---
base-commit: 076d56d74f17e625b3d63cf4743b3d7d02180379
change-id: 20240202-llvm-msym32-6392d410f650

Best regards,
--
Jiaxun Yang <[email protected]>



2024-02-02 18:53:31

by Jiaxun Yang

[permalink] [raw]
Subject: [PATCH 2/8] MIPS: Remove cc-option checks for -march=octeon

Nowadays our minimal supported GCC/Clang all support -march=octeon.
Remove cc-option checks to simplify code.

Signed-off-by: Jiaxun Yang <[email protected]>
---
v0: https://lore.kernel.org/all/[email protected]/
---
arch/mips/Makefile | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 0888074f4dfe..daa569ca4372 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -174,10 +174,7 @@ cflags-$(CONFIG_CPU_SB1) += $(call cc-option,-mno-mdmx)
cflags-$(CONFIG_CPU_SB1) += $(call cc-option,-mno-mips3d)
cflags-$(CONFIG_CPU_R10000) += $(call cc-option,-march=r10000,-march=r8000) \
-Wa,--trap
-cflags-$(CONFIG_CPU_CAVIUM_OCTEON) += $(call cc-option,-march=octeon) -Wa,--trap
-ifeq (,$(findstring march=octeon, $(cflags-$(CONFIG_CPU_CAVIUM_OCTEON))))
-cflags-$(CONFIG_CPU_CAVIUM_OCTEON) += -Wa,-march=octeon
-endif
+cflags-$(CONFIG_CPU_CAVIUM_OCTEON) += -march=octeon -Wa,--trap
cflags-$(CONFIG_CAVIUM_CN63XXP1) += -Wa,-mfix-cn63xxp1
cflags-$(CONFIG_CPU_BMIPS) += -march=mips32 -Wa,-mips32 -Wa,--trap


--
2.43.0


2024-02-20 18:26:20

by Jiaxun Yang

[permalink] [raw]
Subject: Re: [PATCH 0/8] MIPS: Aggregate build fixes



在 2024/2/2 18:21, Jiaxun Yang 写道:
> Hi all,
>
> This series is a collection of build fixes that have been lying
> at my local trees for a while, some of them are for Clang built
> linux and others are for some wiredo configurations.

A gentle ping on this series :-)

Thanks
- Jiaxun

>
> Please review.
>
> Thanks
>
> Signed-off-by: Jiaxun Yang <[email protected]>
> ---
> Jiaxun Yang (8):
> MIPS: Probe toolchain support of -msym32
> MIPS: Remove cc-option checks for -march=octeon
> MIPS: Fallback CPU -march flag to ISA level if unsupported
> MIPS: BMIPS: Drop unnecessary assembler flag
> MIPS: Loongson64: test for -march=loongson3a cflag
> MIPS: Limit MIPS_MT_SMP support by ISA reversion
> MIPS: Implement microMIPS MT ASE helpers
> MIPS: mipsregs: Set proper ISA level for virt extensions
>
> arch/mips/Kconfig | 3 +-
> arch/mips/Makefile | 46 ++++---
> arch/mips/include/asm/asmmacro.h | 22 ++--
> arch/mips/include/asm/mipsmtregs.h | 256 ++++++++++++++++++++++---------------
> arch/mips/include/asm/mipsregs.h | 22 +++-
> arch/mips/kernel/vpe-mt.c | 4 +-
> 6 files changed, 211 insertions(+), 142 deletions(-)
> ---
> base-commit: 076d56d74f17e625b3d63cf4743b3d7d02180379
> change-id: 20240202-llvm-msym32-6392d410f650
>
> Best regards,

--
---
Jiaxun Yang


2024-02-23 09:19:35

by Thomas Bogendoerfer

[permalink] [raw]
Subject: Re: [PATCH 0/8] MIPS: Aggregate build fixes

On Fri, Feb 02, 2024 at 06:21:39PM +0000, Jiaxun Yang wrote:
> Hi all,
>
> This series is a collection of build fixes that have been lying
> at my local trees for a while, some of them are for Clang built
> linux and others are for some wiredo configurations.
>
> Please review.
>
> Thanks
>
> Signed-off-by: Jiaxun Yang <[email protected]>
> ---
> Jiaxun Yang (8):
> MIPS: Probe toolchain support of -msym32
> MIPS: Remove cc-option checks for -march=octeon
> MIPS: Fallback CPU -march flag to ISA level if unsupported
> MIPS: BMIPS: Drop unnecessary assembler flag
> MIPS: Loongson64: test for -march=loongson3a cflag
> MIPS: Limit MIPS_MT_SMP support by ISA reversion
> MIPS: Implement microMIPS MT ASE helpers
> MIPS: mipsregs: Set proper ISA level for virt extensions
>
> arch/mips/Kconfig | 3 +-
> arch/mips/Makefile | 46 ++++---
> arch/mips/include/asm/asmmacro.h | 22 ++--
> arch/mips/include/asm/mipsmtregs.h | 256 ++++++++++++++++++++++---------------
> arch/mips/include/asm/mipsregs.h | 22 +++-
> arch/mips/kernel/vpe-mt.c | 4 +-
> 6 files changed, 211 insertions(+), 142 deletions(-)
> ---
> base-commit: 076d56d74f17e625b3d63cf4743b3d7d02180379
> change-id: 20240202-llvm-msym32-6392d410f650

applied to mips-next.

Thomas.

--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]