Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp4021806rdb; Wed, 30 Aug 2023 12:58:11 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE81H4fOCnQkUr6q6GnCFUJGKMRZCN6XvouVQDce9uD25yP+jZdSwEHmIv4E8j19OyXVKYj X-Received: by 2002:ac2:5f9b:0:b0:4fd:b7fb:c9fa with SMTP id r27-20020ac25f9b000000b004fdb7fbc9famr2578671lfe.42.1693425491269; Wed, 30 Aug 2023 12:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693425491; cv=none; d=google.com; s=arc-20160816; b=PMaRzDZNrOXZAo4cFrritoKfXvb9twLM6nfcrgoVRx/5VZbrt97VCv2/XrZUX+jnqd K/bReqGEgPtiWm5vPgNLZlqc5eT0kPyPVdZtq8xNzvrHgqF3vHH4jFHeQ7LnF2hqYN5q L5rvlTPKHUA+hYWOoG395K2heWbuaKh48kHt4HuJZeUcqIOV/2koVPqHjIZ8hhH+zuub OVWT0IF+wfDLtTHqtYTLSSm7ebLNdNpMn39lNPIA7aI0wK6TVfGgq/RU1q5KRKfKfM5U kfGENtakOAt+/rrvNbe5bVN5v0aQLpHX4WMXX6gC6skiv4E70F46MBwOJKXYmi0ZoO+G 5MXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=WJ4bkN9U+zVa02EJlLzyEsUlqU/M6r8ifL1YqWNtHZI=; fh=+c7+gufMIcCf8OOEKsWsezUtOl6hNbD8a8ZPWg0ciH4=; b=DnCFumUbq1993zzgdm8LqWa1liVF4NLzFugijYonpH4xR9riwThViSmQ5H8goq5hDx 4+fnJzlukSdT3IbQ4elpVIW4/AUhR6922qsseW38IZKurJl2/tmLcDHNbNWi6JpV2EYS 29cn0WpTIN64rYu0EkOJV3m5BCRmbVNiNesztsC6rEhmF7IJ5/SGla8nwyAEbWrgSp7i P/6V7o7jb9Hy7GwBZrEYaDrpo0TP/i9MniU4Yv+RglwgzuHhN+T/kPgbw1WNSKOj04WS x93hTCI7mwKqH87TK67U/zc1yp7QUq5B9RNzCiw/GKnsu9M6Eiod/tqSBNwwoDviq9eB zceg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QyAIgZuy; 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 q21-20020a170906b29500b0097394940619si6056093ejz.984.2023.08.30.12.57.42; Wed, 30 Aug 2023 12:58:11 -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=QyAIgZuy; 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 S234612AbjH3TEI (ORCPT + 99 others); Wed, 30 Aug 2023 15:04:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244561AbjH3NUj (ORCPT ); Wed, 30 Aug 2023 09:20:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38AF9CDA; Wed, 30 Aug 2023 06:20:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CC1DD6208E; Wed, 30 Aug 2023 13:20:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id DE2DBC433BD; Wed, 30 Aug 2023 13:20:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693401634; bh=cuLPLucPgzyIA7ym72xVrHdEZINVLlHnb8WQoni9rVU=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=QyAIgZuy/C/TOqnKxD161167AISrmBTCr1WmpxsiHP9AB9WxONiSxAqsmPsdKVHUF 4OYpw5mxRottJwKTojqVJPa2C/v62LniRZjK4/e5wabj3jKPvZq4+Irz4tRpUyKO+H 0/PPE6BCIgU6UH8YxRPAn1+c5jmuOuNrpYNbrVqMLYgcn9Vetd5P8mgQCaWOD3Aq19 QwW85d/nhsNKh3ACcxwAvmyEENZ8k80nd2BNolhJp1pnDBT+F2y0nC0A7gtirpm12E bvVPAVM1ZVxROqfUicljxB4n2sY77M1HYh+Win+uNdf32y6Ej/jMc6Zjn/277UAh+3 ZY/Htaz9xw1LQ== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id C648EE29F3B; Wed, 30 Aug 2023 13:20:34 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH v2] riscv: support PREEMPT_DYNAMIC with static keys From: patchwork-bot+linux-riscv@kernel.org Message-Id: <169340163480.19859.2206176253038715452.git-patchwork-notify@kernel.org> Date: Wed, 30 Aug 2023 13:20:34 +0000 References: <20230716164925.1858-1-jszhang@kernel.org> In-Reply-To: <20230716164925.1858-1-jszhang@kernel.org> To: Jisheng Zhang Cc: linux-riscv@lists.infradead.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org X-Spam-Status: No, score=-7.1 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 Hello: This patch was applied to riscv/linux.git (for-next) by Palmer Dabbelt : On Mon, 17 Jul 2023 00:49:25 +0800 you wrote: > Currently, each architecture can support PREEMPT_DYNAMIC through > either static calls or static keys. To support PREEMPT_DYNAMIC on > riscv, we face three choices: > > 1. only add static calls support to riscv > As Mark pointed out in commit 99cf983cc8bc ("sched/preempt: Add > PREEMPT_DYNAMIC using static keys"), static keys "...should have > slightly lower overhead than non-inline static calls, as this > effectively inlines each trampoline into the start of its callee. This > may avoid redundant work, and may integrate better with CFI schemes." > So even we add static calls(without inline static calls) to riscv, > static keys is still a better choice. > > [...] Here is the summary with links: - [v2] riscv: support PREEMPT_DYNAMIC with static keys https://git.kernel.org/riscv/c/15e062726f55 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html