Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp128286iog; Fri, 24 Jun 2022 00:18:07 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vo36il9koqNdRKJ/eG3/qiMKozk/EF3ZyjZjvx3PxdisIiNEAZsPVTYSaN2px0SB2+ujkl X-Received: by 2002:a05:6402:2999:b0:434:edcc:f12c with SMTP id eq25-20020a056402299900b00434edccf12cmr15440754edb.96.1656055087253; Fri, 24 Jun 2022 00:18:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656055087; cv=none; d=google.com; s=arc-20160816; b=wHCsvk8GUYh67WYxbMFeTrCGjOuQXXxp2ZepDeeqBrLIn4C8emnOe20Gcief8+WcU2 kTF/3MRigA9mjldHbN5bOtysZaZh3TvPAr8r9nygtg30c3Ur52N+90TPhH27T0e2FmQv TwN2FkZktP/sSzsyR1oiMh9Zouqs0ykaiSko5cik0Lhdb+bJtu43qePA/tCoyCcwtsE8 0Qazr75HjQMr5qwi7Mjw7N25dwSJqz1712njvHtIW/p9/Tj2goPwtz6ByiEtEofOchPC JNNig4GKq5DyoO+a2UbTTj6LJx14/SciHF21LFt4d0/aFHkvWcsuWWk52jawi8QLh5ZL /Vyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id; bh=jR+BE7Xi9ehek2e58gaSxSRgxq8of/J9vFOkTRLSjmU=; b=YMrq7SLEHAgyPIl+dFqX8vvaytw8xNkXMGXVV6BSp1csacjgRnm7/EoCZJa9vQVs/g PoOqyRn1ZnbtgnBHxUqVKTM2VednSjXZ/1dmEeRWcbG/iUDoUjT/88PZ6WrWADmIGEfe FAF1y9oF6HEh4dBGmKSlyQ5X+caL5T93B/VwmeLVOAA0KZz1ZF0P+VhRx/4/bT5m7iLy g/giMX09cQs3npgJkWD/EySKvvfTjYm9bKi6HzvHrH91Ke3ouWEAHl189nU3lOq5a0p6 GTq/XaKjdWX+NeHEMd6HmVcQJ5n3W/fVtlZo0sdZ0L3LqlcQz6tigEOalVWtbNOgngHw axFA== 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 x6-20020a05640226c600b0042e126aa656si2534702edd.136.2022.06.24.00.17.42; Fri, 24 Jun 2022 00:18:07 -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 S229970AbiFXHGt (ORCPT + 99 others); Fri, 24 Jun 2022 03:06:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbiFXHGs (ORCPT ); Fri, 24 Jun 2022 03:06:48 -0400 Received: from pegase2.c-s.fr (pegase2.c-s.fr [93.17.235.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63A546808E for ; Fri, 24 Jun 2022 00:06:47 -0700 (PDT) Received: from localhost (mailhub3.si.c-s.fr [172.26.127.67]) by localhost (Postfix) with ESMTP id 4LTp855ZHpz9tKq; Fri, 24 Jun 2022 09:06:45 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from pegase2.c-s.fr ([172.26.127.65]) by localhost (pegase2.c-s.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kD-3xgQ0uNKM; Fri, 24 Jun 2022 09:06:45 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase2.c-s.fr (Postfix) with ESMTP id 4LTp854pJHz9t8B; Fri, 24 Jun 2022 09:06:45 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 959748B78F; Fri, 24 Jun 2022 09:06:45 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id b8XY4EGIdD-e; Fri, 24 Jun 2022 09:06:45 +0200 (CEST) Received: from [192.168.232.54] (unknown [192.168.232.54]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 277A78B763; Fri, 24 Jun 2022 09:06:45 +0200 (CEST) Message-ID: <5489627e-b8c6-c024-808b-7de0a515882f@csgroup.eu> Date: Fri, 24 Jun 2022 09:06:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v1 0/4] Kill the time spent in patch_instruction() Content-Language: fr-FR From: Christophe Leroy To: Michael Ellerman , Michael Ellerman , Paul Mackerras , Benjamin Herrenschmidt Cc: "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" References: <165261053687.1047019.4165741740473209888.b4-ty@ellerman.id.au> <874k1opc6l.fsf@mpe.ellerman.id.au> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,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 Michael ? Le 31/05/2022 à 08:24, Christophe Leroy a écrit : > > > Le 17/05/2022 à 14:37, Michael Ellerman a écrit : >> Christophe Leroy writes: >>> Le 15/05/2022 à 12:28, Michael Ellerman a écrit : >>>> 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 >>>> >>>> >>> >>> 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. >> > > You didn't find any solution at the end, or didn't have time ? > > What was the problem exactly ? I made a quick try on QEMU and it was > working as expected. > Should I make it a ppc32-only change ?