Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4136904iob; Tue, 17 May 2022 15:03:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyudADp26XCvpNiF5n7NKiCp/dLrV+72AtikC6EXYUALp7mkyoKHzkVcyVR00GFORkmxeXE X-Received: by 2002:a65:4c4e:0:b0:39d:21c4:2381 with SMTP id l14-20020a654c4e000000b0039d21c42381mr21187228pgr.566.1652825002206; Tue, 17 May 2022 15:03:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652825002; cv=none; d=google.com; s=arc-20160816; b=P8Di7yULE2Y6N/wGxjNuXBCku2HzIheaqiMQwqnThI9fukuIiprRXgBEUaGbCJXomf qP3HBGf3K7eWaJGGzmitcHftrLD/oGTzMQRs/U7nR3VcrOZZb+nzXaiWTiXzvDOSMpN9 N1AuSReFBOK/HrX74YIcdFeeCayZX5QjV7rGq9DlGR5zhdK2pUFjxhQGDYthsqkFcSFw JkCQ8NDol4GsquwbAGkW1omNLi8AlunZsA7s7q+jfO+JP64pIAPsejEOgc9i2ELHrXvj YLbDtlJz0ZBRdEGpCNWwbLsSCZZmbdQeDWxJ5wKEl9vQAV1MsckYrQ4603L8mlCSM8Ri 6pJw== 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:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=FMyee9OENISgTkcRL2lDzqNzBk6D+Eq37HFU7uSV9Kw=; b=tL85B7GfPsC2bsd30KcmtQ4TrFcMk13ZhBg9h6SLqcrWN3Wl2HjJ0JCB2+9h8cXw6A WH3kapYc7p4suLKSun+TSoisSMbJDZVadzq+T2pbGj3Q7Cbvjufj2+ul1v/uZmnh7lGU R3th+k1HaB+1L+b/wFrFl4nb1SYTbNVfTbsgoJCdBcZWXS4S2qjYYTYzGPid4wao8B3c GtLSVFw2tw7FyzZj4EOUy2Y2EjjNUWdJapLY3dO/wUB4IJkxfOSu1GABNJ8FpKTwUkqY gTrm0/LmjWRgKCfHiRU7mGHhj3FBhmrMOm15/fw0LasxbLUkeoxD/oMUtdneIM2bjbwu 45Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b="C/J/2V71"; 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 q18-20020a170903205200b0015a46b52f92si302779pla.243.2022.05.17.15.03.04; Tue, 17 May 2022 15:03:21 -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=@ellerman.id.au header.s=201909 header.b="C/J/2V71"; 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 S1346133AbiEQMhq (ORCPT + 99 others); Tue, 17 May 2022 08:37:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232779AbiEQMhp (ORCPT ); Tue, 17 May 2022 08:37:45 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 253184BB95 for ; Tue, 17 May 2022 05:37:43 -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 4L2bHV08zxz4xZv; Tue, 17 May 2022 22:37:39 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1652791062; bh=FMyee9OENISgTkcRL2lDzqNzBk6D+Eq37HFU7uSV9Kw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=C/J/2V71XquPDWSFjL4+RG+V7Wb1EPOhDxFESsN9vY1L+tnh9zyXVF1ILe/9ji4oD aHzWGWm4WM0rp2hhjvthb/qcRNjSWcyLhM3oW6wGwxzysluEZW04jfbZ0AR0ESveBU sg4Mb1nA/GnKxjKrc8NR4V/MN+QMWR3Ska0JdTvrl98NAfEo4u7qXA8Mlvp+3sDWb7 ely8CzT5pD+8SHyH2xFGeh2ntJ58Pm0DtTWY8epK91VqduraNtRHjm2C7oNMmFZfhw Stb5wama/Dvb+ODb8lHr08O3xtHnAR/iTAYC4ABLxvlFj0cuwL36KpGyiXvfUulwkO G7kap7n26YJbQ== From: Michael Ellerman To: Christophe Leroy , Michael Ellerman , Paul Mackerras , Benjamin Herrenschmidt Cc: "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v1 0/4] Kill the time spent in patch_instruction() In-Reply-To: References: <165261053687.1047019.4165741740473209888.b4-ty@ellerman.id.au> Date: Tue, 17 May 2022 22:37:38 +1000 Message-ID: <874k1opc6l.fsf@mpe.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Christophe Leroy writes: > Le 15/05/2022 =C3=A0 12:28, Michael Ellerman a =C3=A9crit=C2=A0: >> 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. >>> >>> [...] >>=20 >> Patches 1, 3 and 4 applied to powerpc/next. >>=20 >> [1/4] powerpc/code-patching: Don't call is_vmalloc_or_module_addr() with= out CONFIG_MODULES >> https://git.kernel.org/powerpc/c/cb3ac45214c03852430979a43180371a= 44b74596 >> [3/4] powerpc/code-patching: Use jump_label for testing freed initmem >> https://git.kernel.org/powerpc/c/b033767848c4115e486b1a51946de3be= e2ac0fa6 >> [4/4] powerpc/code-patching: Use jump_label to check if poking_init() is= done >> https://git.kernel.org/powerpc/c/1751289268ef959db68b0b6f798d904d= 6403309a >>=20 > > Patch 2 was the keystone of this series. What happened to it ? It broke on 64-bit. I think I know why but I haven't had time to test it. Will try and get it fixed in the next day or two. cheers