Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2608591iob; Mon, 16 May 2022 02:01:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4drXG0U9SphZtMr4jY4+JAFX/nxSndwGh4F6eCJ9SKFBIgvyr509nzufnsFUeONMvmBos X-Received: by 2002:a5d:560f:0:b0:20d:b24:dadb with SMTP id l15-20020a5d560f000000b0020d0b24dadbmr2086191wrv.121.1652691679420; Mon, 16 May 2022 02:01:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652691679; cv=none; d=google.com; s=arc-20160816; b=w8os0N2OSE/ZS6qvblqmI4ZPSS47vIxpxM7chg/4jt8uQeHRno34ueCcHUJC7iNX7T l1w6zTMFVGezM0tVNqGt0FFAhTgZcZKzVTREtLClYVZgnfV5iN7pfYjh0RLTCiy5NdDg /o7ZoJbhXbh9pfbYT07u6paGcylUL1SD9A1NJoBGEO4Fq0iqupNED/rLdHrxvW20u40y eqo6PhSuHf5Dqvt6dSOgW+0WSCib8Vx06WB3JO5gmlzTqK0I1ecpq354SpBRb7IZ8dfM XGzDlhzLff977Ey/nMsAzessvFRIYzOLBJZJp6BsI8aDZtXJYHpAk0nZcm8cExA3cXbV yfVA== 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:date :message-id:subject:references:in-reply-to:cc:to:from; bh=la6m9CrQHMKPSRxk9TNXO8TjzdvoEQvhG21AwlloUyY=; b=gT7KJfHCGEaCPGlzMCjXJyzp+wnEioh1ChG6n3DUfHRqttefi482DA5aXXlCfEperD OQBmjvRT9slz6PtyKqRlKPQNhHzM2lEq3sKXyY6tDl4KqB3AeZYl8ohCmyNaFsF/3wgp JY2Qxeu7c1ww/ZvRKUJ7P5UGPxWSxuDRX4EeCUh8qbWGrz4+sNWCX81q3jXfHFui8vND Agk2ijjw3NWU0SxvNxcUcKZ/9ex29Kh0GQ6+znXyyuIkh6kwjjoBvPxElab7Flw4pvw2 i5RBsd1Xur5weNKj6d17I+srherXgUDvJwGu26KlVH+a2OwjIhr69FispAI9SIo4PiDu OFyA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g6-20020a5d46c6000000b0020d03d39fd0si4100946wrs.996.2022.05.16.02.00.52; Mon, 16 May 2022 02:01:19 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236480AbiEOKbx (ORCPT + 99 others); Sun, 15 May 2022 06:31:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236262AbiEOKbK (ORCPT ); Sun, 15 May 2022 06:31:10 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F67FAE52 for ; Sun, 15 May 2022 03:31:09 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4L1JZM5ZdNz4xZq; Sun, 15 May 2022 20:31:07 +1000 (AEST) From: Michael Ellerman To: Christophe Leroy , Michael Ellerman , Paul Mackerras , Benjamin Herrenschmidt Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org In-Reply-To: References: Subject: Re: [PATCH v1 0/4] Kill the time spent in patch_instruction() Message-Id: <165261053687.1047019.4165741740473209888.b4-ty@ellerman.id.au> Date: Sun, 15 May 2022 20:28:56 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Tue, 22 Mar 2022 16:40:17 +0100, Christophe Leroy wrote: > This series reduces by 70% the time required to activate > ftrace on an 8xx with CONFIG_STRICT_KERNEL_RWX. > > Measure is performed in function ftrace_replace_code() using mftb() > around the loop. > > With the series, > - Without CONFIG_STRICT_KERNEL_RWX, 416000 TB ticks are measured. > - With CONFIG_STRICT_KERNEL_RWX, 546000 TB ticks are measured. > > [...] Patches 1, 3 and 4 applied to powerpc/next. [1/4] powerpc/code-patching: Don't call is_vmalloc_or_module_addr() without CONFIG_MODULES https://git.kernel.org/powerpc/c/cb3ac45214c03852430979a43180371a44b74596 [3/4] powerpc/code-patching: Use jump_label for testing freed initmem https://git.kernel.org/powerpc/c/b033767848c4115e486b1a51946de3bee2ac0fa6 [4/4] powerpc/code-patching: Use jump_label to check if poking_init() is done https://git.kernel.org/powerpc/c/1751289268ef959db68b0b6f798d904d6403309a cheers