Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3714088rwb; Sun, 25 Sep 2022 11:15:57 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7sxhEkrF3ngIiXsCoi1CjMyF1wLBLbr0tp9fLYFLg17WOl3pbxMYt/2BpTXkUZXOhTjyyq X-Received: by 2002:a17:902:7887:b0:178:5e8a:e84e with SMTP id q7-20020a170902788700b001785e8ae84emr18723249pll.64.1664129757473; Sun, 25 Sep 2022 11:15:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664129757; cv=none; d=google.com; s=arc-20160816; b=I0iNERmKurL6btb4n5w4pdMKmxiH66b56vyl2adfo9sEHoYWlm+pzs/GUEaT7rI6p+ Djf6Fn+vdO2oXcC5BT8e1ROzLlaMhY5+Qk81Xk3vHqzV/3J6UtXExCeFJk/obJwU3kDa b1tlZ8rhomrRx+FQj1Olb7GzfZ3nDDhGQhQHuBmQPOIB8X0UkuVJgvPuAVwl7tGq1z1S urqCskIsK5BollXfQzYrw9+dzDhCOJeyOiHJ/v832jFJ15IeqafnCTCUUGbZydg6astw ur8AaJULTDMeXcfLCo6X82V1PfGm/kQdrlhtRuSYolS4eDCEIvN2v17Rg3WZCikUk99h wC7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=u3Bu6VCuiBRrC0xZ/K8g+iUHOlUW2eiyN2kb+zKudAI=; b=krxOI6lmjvUZie/Suv7EMpeDWlz0FffBPYqJNyHHnEsCSdjmsE68NoMd5kyPdIPeJ8 33pPtbLic8Qt7HE8rUOrEZCWTs6DstBgS8O4eYE7IG4oL39aDQX4+xjBZYUCQAG3igpC ej9yHs0wg2oID9vpgxWRa5VTOyrt3oOloROicRYw4V6oQXAcjKHCaIMhbTAdJ25L2Js2 XUCZAF8X360LuObBIpDTFGw383pIt3v1VwECvsHPjmqpj2cTKwIwClLlSnqpLnfPn8BG 4zcAbbIazoE7YqlxBazm5kYG2MD5qe/dj1ftsEzkrN+27MwsdKPk3u76l7Pp9v2IRokI 4pUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CEU7Vzfk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 5-20020a630f45000000b00434a8512567si15332173pgp.822.2022.09.25.11.15.45; Sun, 25 Sep 2022 11:15:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=CEU7Vzfk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232770AbiIYSDf (ORCPT + 99 others); Sun, 25 Sep 2022 14:03:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230411AbiIYSD1 (ORCPT ); Sun, 25 Sep 2022 14:03:27 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF69C2EF35 for ; Sun, 25 Sep 2022 11:03:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6929FB80D8D for ; Sun, 25 Sep 2022 18:03:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D8B5C433D6; Sun, 25 Sep 2022 18:03:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664129004; bh=9FET3PaCzmyIcog+YS95QW0L9d7rytIwKw9jtfpwb4U=; h=From:To:Cc:Subject:Date:From; b=CEU7VzfkgrOaJ8jntLWEZhx3p7CfpfWBnyichsUQeZ+6Iyx44/MGdUnawm3X/oorS HQIOuF2DqdwZl/keRDcd8uJXm+lc9qw26HhD6HJEWmRRvr76v1mjYkqrl4RKeBUNsT vyE+pxJmPKazxajf8teshPpsT/N0QcHTrPbBIshdEGb+wTLYiTGEvIgTgXlL3tSeQ/ sLvRq7m1GvbFIGw18b7cKoaBJXnGTzOtges/EucnEbwWVpOzDnFonhM15A86u3+DOO YxwQueNESlDvbKskYuEcDUGjleWf5TmqvojTF73KozxjxpWenhYZR27o5GL4X7UQ7Y pOM1QlSEBe8bw== From: Jisheng Zhang To: Paul Walmsley , Palmer Dabbelt , Albert Ou , Guo Ren , Nathan Chancellor , Nick Desaulniers Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH 0/4] riscv: entry: further clean up and VMAP_STACK fix Date: Mon, 26 Sep 2022 01:53:52 +0800 Message-Id: <20220925175356.681-1-jszhang@kernel.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I planed to do similar generic entry transaction as Guo Ren did[1], and I have some commits in local. Since Guo has sent out the series, so I dropped my version and just provide those in my local repo but missing in Guo's series. However, this doesn't mean this series depends on Guo's series, in fact except the first one, the remaining three patches are independent on generic entry. NOTE: patch4 can also clean up arch/riscv/kernel/mcount-dyn.S as well but there's a trivial difference in the context saving, I dunno whether is it better to clean up mcount-dyn.S too, any suggestions are welcome. [1]https://lore.kernel.org/linux-riscv/20220918155246.1203293-1-guoren@kernel.org/T/#t Jisheng Zhang (4): riscv: remove extra level wrappers of trace_hardirqs_{on,off} riscv: consolidate ret_from_kernel_thread into ret_from_fork riscv: fix race when vmap stack overflow and remove shadow_stack riscv: entry: consolidate general regs saving into save_gp arch/riscv/include/asm/asm-prototypes.h | 1 - arch/riscv/include/asm/thread_info.h | 4 +- arch/riscv/kernel/Makefile | 2 - arch/riscv/kernel/asm-offsets.c | 1 + arch/riscv/kernel/entry.S | 150 +++++++----------------- arch/riscv/kernel/process.c | 5 +- arch/riscv/kernel/trace_irq.c | 27 ----- arch/riscv/kernel/trace_irq.h | 11 -- arch/riscv/kernel/traps.c | 15 +-- 9 files changed, 47 insertions(+), 169 deletions(-) delete mode 100644 arch/riscv/kernel/trace_irq.c delete mode 100644 arch/riscv/kernel/trace_irq.h -- 2.34.1