From 6ce29a8c1005b749e2f1c5be4de7e6bf6349ba09 Mon Sep 17 00:00:00 2001 From: Ming Wang Date: Tue, 22 Apr 2025 11:35:59 +0800 Subject: [PATCH 1/3] LoongArch: configs: CONFIG_NR_CPUS expanded to 2048. Upstream: no Conflict: none Checkpatch: pass Increase the maximum configurable number of CPUs (CONFIG_NR_CPUS) from 256 to 2048 for the LoongArch architecture. Update the default value and the loongson3_defconfig accordingly. Signed-off-by: wanghongliang Signed-off-by: Ming Wang --- arch/loongarch/Kconfig | 5 +++-- arch/loongarch/configs/loongson3_defconfig | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig index d4b356d10224..62c1ecacb408 100644 --- a/arch/loongarch/Kconfig +++ b/arch/loongarch/Kconfig @@ -181,6 +181,7 @@ config LOONGARCH select USE_PERCPU_NUMA_NODE_ID select USER_STACKTRACE_SUPPORT select ZONE_DMA32 + select CPUMASK_OFFSTACK if NR_CPUS > 256 config 32BIT bool @@ -444,8 +445,8 @@ config HOTPLUG_CPU Say N if you want to disable CPU hotplug. config NR_CPUS - int "Maximum number of CPUs (2-256)" - range 2 256 + int "Maximum number of CPUs (2-2048)" + range 2 2048 depends on SMP default "64" help diff --git a/arch/loongarch/configs/loongson3_defconfig b/arch/loongarch/configs/loongson3_defconfig index 4e1f8e7e2e11..55e2d171ac9f 100644 --- a/arch/loongarch/configs/loongson3_defconfig +++ b/arch/loongarch/configs/loongson3_defconfig @@ -43,7 +43,7 @@ CONFIG_KEXEC=y CONFIG_CRASH_DUMP=y CONFIG_CMDLINE="vfio_iommu_type1.allow_unsafe_interrupts=1 nokaslr" CONFIG_CMDLINE_EXTEND=y -CONFIG_NR_CPUS=256 +CONFIG_NR_CPUS=2048 CONFIG_NUMA=y CONFIG_ARCH_IOREMAP=y CONFIG_CPU_HAS_LSX=y -- Gitee From bd343afd86138399fcd01d755e702750c128aab4 Mon Sep 17 00:00:00 2001 From: Ming Wang Date: Wed, 30 Apr 2025 10:32:38 +0800 Subject: [PATCH 2/3] LoongArch: configs: Enable IGC driver. Upstream: no Conflict: none Checkpatch: pass Support intel i225/i226 network card driver. Set the CONFIG_IGC configuration item to m. Signed-off-by: Ming Wang --- arch/loongarch/configs/loongson3_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/loongarch/configs/loongson3_defconfig b/arch/loongarch/configs/loongson3_defconfig index 55e2d171ac9f..5520f79e13e8 100644 --- a/arch/loongarch/configs/loongson3_defconfig +++ b/arch/loongarch/configs/loongson3_defconfig @@ -852,6 +852,7 @@ CONFIG_I40E_DCB=y CONFIG_I40EVF=m CONFIG_ICE=m CONFIG_FM10K=m +CONFIG_IGC=m # CONFIG_NET_VENDOR_MARVELL is not set CONFIG_MLX4_EN=m # CONFIG_MLX4_CORE_GEN2 is not set -- Gitee From 36a53bc9b2bde48f90c8ea5ca4e382422fdfc0b4 Mon Sep 17 00:00:00 2001 From: Ming Wang Date: Wed, 30 Apr 2025 10:46:43 +0800 Subject: [PATCH 3/3] LoongArch: configs: Enable GPIO_PCA953X driver Upstream: no Conflict: none Checkpatch: pass Set the CONFIG_GPIO_PCA953X configuration item to m to enable the gpio-pca953x driver. Signed-off-by: Ming Wang --- arch/loongarch/configs/loongson3_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/loongarch/configs/loongson3_defconfig b/arch/loongarch/configs/loongson3_defconfig index 5520f79e13e8..1cff82a8bc4d 100644 --- a/arch/loongarch/configs/loongson3_defconfig +++ b/arch/loongarch/configs/loongson3_defconfig @@ -1186,6 +1186,7 @@ CONFIG_PINCTRL_LOONGSON2=y CONFIG_GPIO_SYSFS=y CONFIG_GPIO_AMDPT=m CONFIG_GPIO_LOONGSON_64BIT=y +CONFIG_GPIO_PCA953X=m CONFIG_GPIO_VIPERBOARD=m CONFIG_POWER_RESET=y CONFIG_SENSORS_AD7414=m -- Gitee