Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2EBA533F7 for ; Fri, 24 Feb 2023 10:10:47 +0000 (UTC) Received: from loongson.cn (unknown [111.9.175.10]) by gateway (Coremail) with SMTP id _____8CxC9oljfhjeaQEAA--.9423S3; Fri, 24 Feb 2023 18:10:46 +0800 (CST) Received: from localhost.localdomain (unknown [111.9.175.10]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxX+QjjfhjNH86AA--.6368S2; Fri, 24 Feb 2023 18:10:44 +0800 (CST) From: Jinyang He To: Huacai Chen , WANG Xuerui Cc: Xi Ruoyao , Youling Tang , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 0/6] Drop the per-node-mode exception handlers Date: Fri, 24 Feb 2023 18:10:07 +0800 Message-Id: <20230224101013.26971-1-hejinyang@loongson.cn> X-Mailer: git-send-email 2.20.1 Precedence: bulk X-Mailing-List: loongarch@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID:AQAAf8AxX+QjjfhjNH86AA--.6368S2 X-CM-SenderInfo: pkhmx0p1dqwqxorr0wxvrqhubq/ X-Coremail-Antispam: 1Uk129KBjvJXoW7Ww1DJrW3AFy5ZF48Xw45GFg_yoW8Zr48pr 9xZF93Jr48Gr9avw13t34Uurn8Jrn7Kr12qanFk348Cw12vr1UWr18JrWkXFyjq3y8Jr40 qF1rJw1jgF1Dt37anT9S1TB71UUUUjUqnTZGkaVYY2UrUUUUj1kv1TuYvTs0mT0YCTnIWj qI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUIcSsGvfJTRUUU b3kYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20xvaj40_Wr0E3s 1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxSw2x7M28EF7xv wVC0I7IYx2IY67AKxVW8JVW5JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxVW8JVWxJwA2z4 x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v26r4UJVWxJr1l n4kS14v26r1Y6r17M2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6x ACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r126r1DMcIj6I8E 87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82 IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1l4IxYO2xFxVAFwI0_Jrv_JF1lx2Iq xVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r 126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_JFI_Gr1lIxAIcVC0I7IYx2IY 6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67 AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxhVjvjDU0xZFpf9x 07jjWlkUUUUU= This series drops the per-node-mode exception handlers. The UnixBench test results are as follows, Loongson-3C5000L-LL, CLFS7.1, a, DYNAMIC_FTRACE enabled, KASLR disabled, no-pernode b, DYNAMIC_FTRACE enabled, KASLR disabled, pernode c, DYNAMIC_FTRACE enabled, KASLR enabled, no-pernode 1 cpu 16 cpus a-1, 782.6 4025.1 a-2, 783.3 3994.5 a-3, 784.2 4045.5 b-1, 775.5 3913.0 b-2, 763.9 3833.8 b-3, 777.7 3930.4 c-1, 811.0 3950.4 c-2, 795.7 3952.9 The results were almost identical, as Huacai said, the performance difference between pernode and nopernode is negligible Jinyang He (6): LoongArch: Rename handle_syscall to handle_sys LoongArch: Move the content defined by SYM_DATA to data or rodata section LoongArch: Create a exception handlers section LoongArch: Drop pernode exception handlers LoongArch: Fix up the prologue unwinder unwind exception frame LoongArch: Clean up la_abs macro arch/loongarch/include/asm/asmmacro.h | 17 ----- arch/loongarch/include/asm/setup.h | 14 ---- arch/loongarch/include/asm/stackframe.h | 2 +- arch/loongarch/include/asm/traps.h | 81 ++++++++++++++++++++++ arch/loongarch/include/asm/unwind.h | 2 +- arch/loongarch/kernel/entry.S | 16 +++-- arch/loongarch/kernel/genex.S | 73 +++++++++++++------- arch/loongarch/kernel/head.S | 2 + arch/loongarch/kernel/mcount_dyn.S | 2 + arch/loongarch/kernel/relocate.c | 28 -------- arch/loongarch/kernel/traps.c | 74 +------------------- arch/loongarch/kernel/unwind_prologue.c | 91 +++---------------------- arch/loongarch/kernel/vmlinux.lds.S | 37 +++++++--- arch/loongarch/mm/cache.c | 6 -- arch/loongarch/mm/tlb.c | 40 ----------- arch/loongarch/mm/tlbex.S | 67 +++++++++++------- arch/loongarch/power/suspend.c | 5 +- 17 files changed, 231 insertions(+), 326 deletions(-) create mode 100644 arch/loongarch/include/asm/traps.h -- 2.34.3