Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp4342373ybi; Tue, 30 Jul 2019 00:16:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvoQTB2SghngxorkbwF9IImOi+KLU+5aGND63+SgAgB6X9naRRQ5XgxTG+KGQnd08zcOiy X-Received: by 2002:a62:764d:: with SMTP id r74mr42120725pfc.110.1564471009001; Tue, 30 Jul 2019 00:16:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564471008; cv=none; d=google.com; s=arc-20160816; b=q9PnNo6Z41IQIDyveiBKk4ev4wx+qmdRXblcEOiw4UcA9cfCu0Y7Qo5ieHWmloak9U lUukSNMGjCBnrIf5c6b2JRECDScPuIg9+P9jT3ZCzTlJUyDVl0fS28PxdMgRvXko08jP 3lH+YKJF5CLu3wnCPiCK9GjppRRNr+G640boC2Mdnr95IJI/VZ2IqZLYxhdb0jhYb6al 81MuZOFUcsPpfAxCLaTi8GsOFyAkJXlr2nCazruxTMwGceKxHPhvKLl9HG2gq+ab6RWq 9Se6mvRuD+PWLT7NiOnAje+pu/dr/zA5O0kds9BuwExOxY+YkesEIWZwpp22HzIzdmLC O/Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=lMrEHRmz/SUwhMpEhzoL0Mw6xHn5eIa1ccchwHTfCGg=; b=EoapaEffoLwrgYb2q84Lkr8qlxUypCXr9c/kDksf3N43QP1VIKTxae+KNuXGSfswqf E3Bep/f7mfaJ39vWsFyWru+HD8tZUKKWzxterLpD0in/QAVyEzrCUJMu1jRGurnDOKjy JuHOgn5mKuvVoct8pAa0o6aIM4m0WEX0v+3Hx74gnB9deUyIkWemGA1IevJesIhvbPyW a4MQKKoGpyCEXnp4WB0CZplX841GC8h8t3sXoCdz/eWXW1p3d5ry4rpnYngdiCZw7gqz sWKElK/5BVoM+6KiQYDTnYbZ0i/i0JlcaOIqhB3Wce5telmOWMfEq+OZUoCtkcMJU1in bCJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=WPJlgbNE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a191si28787562pge.93.2019.07.30.00.16.33; Tue, 30 Jul 2019 00:16:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=WPJlgbNE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729555AbfG2Upr (ORCPT + 99 others); Mon, 29 Jul 2019 16:45:47 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:47049 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729298AbfG2Upr (ORCPT ); Mon, 29 Jul 2019 16:45:47 -0400 Received: by mail-pf1-f195.google.com with SMTP id c3so5474735pfa.13 for ; Mon, 29 Jul 2019 13:45:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lMrEHRmz/SUwhMpEhzoL0Mw6xHn5eIa1ccchwHTfCGg=; b=WPJlgbNETipOyujtvKlH6HINt+YFjSa9gIvaQ65HBAN1terVNMqFdGfYjK9JTqalZP CTfan8DoLaM9dEydbVrYnrw3wyespEYa/zlntrZle7b4z2W09X/wDDCuqWS2UUqbhJJg 1Zx4tSK7eXqtwpKxKBNvBgPc7uMUUD/ijctUCPOVT4sSd5lUf4kXTZuo6iHyEpLA3vU7 dZAdaweB0GNydgKkVAGwGo149b+embU5Riiavkl9V0ax1ElqlMOOkxN8jS6N6/JoXH6n 34Fujg9hV2KQNRr8s70fbftl5r9c+zb9K7PaC4Wo5aAdsI2ot3DR17Ied4PU9bUvBqbB EFWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lMrEHRmz/SUwhMpEhzoL0Mw6xHn5eIa1ccchwHTfCGg=; b=W5iFnxVmnzx6zGVJ5XfxgI5NJc9zufjymQOL5wESp2KQ7NI/OEGkLaF1iL2JNSHNqf WxP5uJgU9aXCYaM97VATi3TA9yQoKcs6CZq/xd/49wwKroKT7fYC6bqpVcr9Nyn7GOah uHaO1EMdf4bpWgkfr2GM3Y48+gEq7RlwZY/YZTmX37vm8Z+vEOankQAiMNC35pTDW81Y E/s8BLZzyzThdOKfNrJs747d0ecyx2vNeaKA70gUgZI975ZNhFBxHXIwLcVgBVHxMTmi J3Bauwr+PsWJG9201pHHaZTOEk8B3YcqkcIrdS5UGxssO7/d+Lnpux5/7ngdlxdMzng3 HXdQ== X-Gm-Message-State: APjAAAWMY3wY8p7ci/s9zwLyXuJo9PIFfgmutPwRbnD9j+68ZUOtyCuR nh5R1Qy4lgRpp7xpBdtFl3jxBcp28nGz7dwSid9IUA== X-Received: by 2002:a17:90a:ac11:: with SMTP id o17mr115215537pjq.134.1564433146243; Mon, 29 Jul 2019 13:45:46 -0700 (PDT) MIME-Version: 1.0 References: <20190729202542.205309-1-ndesaulniers@google.com> <20190729203246.GA117371@archlinux-threadripper> In-Reply-To: <20190729203246.GA117371@archlinux-threadripper> From: Nick Desaulniers Date: Mon, 29 Jul 2019 13:45:35 -0700 Message-ID: Subject: Re: [PATCH] powerpc: workaround clang codegen bug in dcbz To: Nathan Chancellor Cc: Michael Ellerman , Christophe Leroy , Segher Boessenkool , Arnd Bergmann , kbuild test robot , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, LKML , clang-built-linux Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 29, 2019 at 1:32 PM Nathan Chancellor wrote: > > On Mon, Jul 29, 2019 at 01:25:41PM -0700, Nick Desaulniers wrote: > > But I'm not sure how the inlined code generated would be affected. > > For the record: > > https://godbolt.org/z/z57VU7 > > This seems consistent with what Michael found so I don't think a revert > is entirely unreasonable. Thanks for debugging/reporting/testing and the Godbolt link which clearly shows that the codegen for out of line versions is no different. The case I can't comment on is what happens when those `static inline` functions get inlined (maybe the original patch improves those cases?). -- Thanks, ~Nick Desaulniers