Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp77239rwe; Tue, 23 Aug 2022 18:50:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR4uvwP9fMd9VxAtKKJvi0Bm7YK3HogPKtndefG3DDylugF9fRW4p3/9k7vKKg4qaopQFJnB X-Received: by 2002:a17:907:3d8e:b0:73d:13d8:61fb with SMTP id he14-20020a1709073d8e00b0073d13d861fbmr1404674ejc.731.1661305817470; Tue, 23 Aug 2022 18:50:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661305817; cv=none; d=google.com; s=arc-20160816; b=iYquLWL8cUgrPY5eS5Ih/z4TagD/Eyigl+Y+jFE51UumwwQ0A4EoTyDLiJT+WziDag BGX+8NfkaXJMyXaUa/ESk1nIt4HaQpapnJNn1T11nTu0v5YRnLo6T3/eoCP5LplkPJab s1k2zoTHyUnQAI5dbbCSLnAnTu7oHJ0MKc7oWp80Vs6hdzWYbctH2Dur0VA6SF54o0hX og4Y8f45IigKDlwOsZ/D0YZ7EbUNr3g2eEzz6tFHWja1WsMJ2ZQeYJi0JmhfMovdMDFR QOl9ovdiceKd5qdC8JSCr+u+ihyJwL1ypRfrt4Te0ZS8O6j/VGiRnt28y3WsdPyMw3Rc r0Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=uUmdHBpzbriSuoiotw31C+sqS36Q04kPztFqTxJQriw=; b=kVlt7UFpS661oITz6P2dnEZSo4YhnBmQfzHal4EFH3bwPL5nuukUUy9vHOb7Yl94Pr IfLyJ6GRtgG2ZZ4wC12M8h1vh0UyyUlx4kd8lEXDGIqYV0XuP/EYinmufpJ1TsUMKBGK +YxSBtAV51CZLSxqFiVtDpDs8W91OkW3hziSAu8alKGC9/9ESwfnNWxnQItSBPtVv0RZ EcUxBdc+OnzfrHVBOcR8AeBfmFfi/xxQdC2i//s+ehQggeRKHsGRTqwvrMs6j93U5TwU la6e+FrA439ajMBYQUZdKhiYHFQo2i4RQ6JNP8iyZh14Nky49RO5gWfzLrPV3FkCyGRC FJjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="dpb/yMlo"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gj36-20020a170907742400b0072b4b197fa4si912733ejc.88.2022.08.23.18.49.51; Tue, 23 Aug 2022 18:50:17 -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=@gmail.com header.s=20210112 header.b="dpb/yMlo"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231638AbiHXBZ7 (ORCPT + 99 others); Tue, 23 Aug 2022 21:25:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbiHXBZ5 (ORCPT ); Tue, 23 Aug 2022 21:25:57 -0400 Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24CC52B60B; Tue, 23 Aug 2022 18:25:57 -0700 (PDT) Received: by mail-pl1-x62f.google.com with SMTP id 20so14342804plo.10; Tue, 23 Aug 2022 18:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc; bh=uUmdHBpzbriSuoiotw31C+sqS36Q04kPztFqTxJQriw=; b=dpb/yMlot+zmKLKXIjN6Lvob6LhNAAMCj/+/Os1pajANbCivi3fer2r0Fmqkba5q5j mbVtDCeEkBqAxJA3Jwlcnmc1UGiPMfco0NiKCUraZVvrh30cMjKwZxOY9GGgVhthe9Ba 9YnAbqk5d/0N1mR8i2cUsV7gh4GHg62DdyrbY8WR+VFMR8zadMzS98Xqp6+Rt14tDot6 pPYnphfWLxgQrJveBRXJbcJ65Cl48WyQilgLXE7j4egkKdSNlm0kFrmVKaakvi1wWVxf fPS6XZsZsSycgRBMgX8F1jZmlqbGON/rJYkPsA+k23m1N6Yq7vijy6NkAS6mIBkCqrXR D+0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=uUmdHBpzbriSuoiotw31C+sqS36Q04kPztFqTxJQriw=; b=GPNj+g7jpkJARxsmHFEPO3PW5Qgs4TkPO1QuL8hmr1d44q2AyiEEYkaHd2UY4Zwdmo Nni63aX0MBR0UJdmKD1XAutHRS42C1C7joFqxQaCj37xINdB1G71NRcxoOkUsAg9E1W2 4Zv8pGRey91RYpT1P+g80nJ3gxW5B4IZc4JWMypBlkw7He1H5axSUJM5C/Eua554bJzN 1dVtfDBSMuQasDQhK843E9/MmRS9oXfsfdC+OIZjyarv7vdaQke3S/9y2ayWzbrVR/R+ aAbsZmymkNnaNv1x4vNCTl6j6RqHbmb4KOlDWOeMZF0AaHpTeT4/jn6WL8j2iS4IYSKG HCBg== X-Gm-Message-State: ACgBeo1ph3rDgF6DE46Qy1BZTPmvR4U5dtK/lHDzqap2C7Ho0pr9VNqb JZhPqv9XYMML7S3/L+al4Hy/d8XQpseH4iZND6U= X-Received: by 2002:a17:90b:4a05:b0:1f5:62d5:4155 with SMTP id kk5-20020a17090b4a0500b001f562d54155mr6063079pjb.6.1661304356632; Tue, 23 Aug 2022 18:25:56 -0700 (PDT) MIME-Version: 1.0 References: <20220821010030.97539-1-zhouzhouyi@gmail.com> <87edx7l5px.fsf@mpe.ellerman.id.au> <0d7b55bc-4dd2-7de1-8ca5-353b1a044caf@csgroup.eu> <3756ad84-a5b0-b404-7962-86f77d6f38b3@csgroup.eu> In-Reply-To: <3756ad84-a5b0-b404-7962-86f77d6f38b3@csgroup.eu> From: Zhouyi Zhou Date: Wed, 24 Aug 2022 09:25:45 +0800 Message-ID: Subject: Re: [PATCH linux-next] powerpc: disable sanitizer in irq_soft_mask_set To: Christophe Leroy Cc: Michael Ellerman , Nicholas Piggin , atrajeev@linux.vnet.ibm.com, linuxppc-dev , linux-kernel , lance@osuosl.org, "Paul E. McKenney" , rcu 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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 On Wed, Aug 24, 2022 at 12:50 AM Christophe Leroy wrote: > > > > Le 23/08/2022 =C3=A0 10:47, Christophe Leroy a =C3=A9crit : > > > > > > Le 23/08/2022 =C3=A0 10:33, Michael Ellerman a =C3=A9crit : > >> Zhouyi Zhou writes: > >> > >> My worry is that this will force irq_soft_mask_set() out of line, whic= h > >> we would rather avoid. It's meant to be a fast path. > >> > >> In fact with this applied I see nearly 300 out-of-line copies of the > >> function when building a defconfig, and ~1700 calls to it. > >> > >> Normally it is inlined at every call site. > >> > >> > >> So I think I'm inclined to revert ef5b570d3700 ("powerpc/irq: Don't op= en > >> code irq_soft_mask helpers"). > > > > Could you revert it only partially ? In extenso, revert the > > READ/WRITE_ONCE and bring back the inline asm in irq_soft_mask_return() > > and irq_soft_mask_set(), but keep other changes. > > I sent a patch doing that. Thank Christophe for the fix. I am very glad to be of benefit to the community ;-) Also thank Michael and Paul for your constant encouragement and guidance, I learned to use objdump to count the number of failed inline function calls today ;-) By the way, from my experiments, both gcc-11 and clang-14 behave the same as Michael has described. Cheers Zhouyi > > Christophe