Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3847440ybi; Mon, 29 Jul 2019 13:50:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqz0RhsobnmQwZOtC2HFFSFzzHDZjvqvjKv+gM8DTKf3I5XM2jaLgRJ+4UHHQ+h99mLOY4mV X-Received: by 2002:a63:fb43:: with SMTP id w3mr7676635pgj.403.1564433435170; Mon, 29 Jul 2019 13:50:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564433435; cv=none; d=google.com; s=arc-20160816; b=BCzkv+jJ4yACtIn28gxvrwmrArYJXYkAdelQnJ8OhQo2qgvhCvY+QOC0BSN+zwUe0Q Rx5ElR/P+GuOhMpb99j+ovur9bAhxXlPTsezYJ2XoSpSCrEbkigD9ByNb1VB3Gh50/9r hlGcsPQ7aYC0xRZuY0lzJaytlu/8SLHhTZaqjEgoQD6e4sV3CVvGV9KotCibwErNa766 ktLTMhQNSB/Ljj/dSOwjaV1HXR/ln7G96vQYYsaV22xtWiT2vKUebja8yCGoD60Ns0dU diXHLVqwNHutQBic/a5kFMS8FioQtXmRc4mr0+8tijO4RAk5Tn/SANJs6dIaoNLGwGyp GCtg== 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=BeAeQDMMo4FgxNSctdMcxvraGIHZjszW+IJTyoPT1RE=; b=Iz8EzwcDew6XtFRA+QuACY1eeAmRiND5eMHoNgXSDMK2DwZ1U9L0ME/R/6GL2n1aRu PHWh3YYiZqRF1IrC6qtuhDeSWDzTmeIIjcQHTDCA9De4ROMUcyIT83ndGBpEBCaLd2Ir /qz7BbklOmuWYTm6AAcliK0ND2RaAdU3svKWTDPSk2RcPpKwaP7Gi3LnZs62x9hwzc8y OSWtsFvWYnyLGI43EUDkb+G9WBcea/QqpplunApjwWy/fw/ajIKqMYcelko+pi/pkEM7 F1S4rJqhORz3LZ06154ndGPbLpNRd212t7xLt/W+PuBPZtHwraYRWRhs5XyZuX6r96Tz 7Seg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=CWrSj4PA; 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 l68si26731121plb.416.2019.07.29.13.50.19; Mon, 29 Jul 2019 13:50:35 -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=CWrSj4PA; 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 S2388078AbfG2UtX (ORCPT + 99 others); Mon, 29 Jul 2019 16:49:23 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:33229 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387573AbfG2UtX (ORCPT ); Mon, 29 Jul 2019 16:49:23 -0400 Received: by mail-pl1-f194.google.com with SMTP id c14so27892578plo.0 for ; Mon, 29 Jul 2019 13:49:23 -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=BeAeQDMMo4FgxNSctdMcxvraGIHZjszW+IJTyoPT1RE=; b=CWrSj4PAwWTQSPVCPG3TLcwCJ3DM5xP4Shb9KQgpIvuSr2j12/FxOg1T7ynQznn8Vb NnoJJBOIUi8DMiCBZt6Os3TcHq3Kf96+Yf3FrmAt0XsXHJu8PM6ndSQPgA15IqRW6AXb y+TEYLWLvvxQ0eYANsZPVCB9hrqAH8P3aiago5gjqmovM7BypAWxlutXnhdCSRqSKMQp r0BCWme6WOS5CYNzdpmDzpJbWu8p3qeYykKCqc3sfgShr2xyiOhDXrQO/pjob6eqzvxb C8H5a8Lbs+XUJAZodZkhWNV+bG3Vk3DoGec7ycFlXxKf2TAhk/9RbbueZr1vRO+I8l99 d4Jg== 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=BeAeQDMMo4FgxNSctdMcxvraGIHZjszW+IJTyoPT1RE=; b=o7w1KjdZ6y+KWoL5kO8qsoqWzGOjLPtgUHi65yYz7c9zc+0YAwOO1bBXYGuF9kmDTW tAKUjVm/ut/0x0CQABwgOZTpnElRsPYdfHEAJYzihJsxnTioP2x1NU7srmyL5WqEsgc8 53znoM/8BjlobAsM/vcN8JWCO5KDiupbOaqLNxuYsVsL2s3DmMKhq8vSWpGFGu2D4aVm BUqbaQU2cFHo1dl48UVHx6yxJyDtWXEmSrTL/ULBZQVad/rdlGDzFtBSiJsnj8y+2HBN UrvdcN3PLZ5GLJMF13IvH3WGpzC9PT1pGJOCtf51gT2bj212kHdxG/cF4oLut3qoBm2I m5Bw== X-Gm-Message-State: APjAAAUBNOrVmcskM6MoUk2rYDh0OgE6KPL2s6aXQnfDoIZUnWHSJDk/ 4gKLe3cYDBof0Wtb9wNXSURGRzg7gu+1jkcx/20MZw== X-Received: by 2002:a17:902:e703:: with SMTP id co3mr14760295plb.119.1564433362401; Mon, 29 Jul 2019 13:49:22 -0700 (PDT) MIME-Version: 1.0 References: <20190729202542.205309-1-ndesaulniers@google.com> <20190729203246.GA117371@archlinux-threadripper> <20190729204755.GA118622@archlinux-threadripper> In-Reply-To: <20190729204755.GA118622@archlinux-threadripper> From: Nick Desaulniers Date: Mon, 29 Jul 2019 13:49:11 -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:47 PM Nathan Chancellor wrote: > > On Mon, Jul 29, 2019 at 01:45:35PM -0700, Nick Desaulniers wrote: > > 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 > > I'll try to build with various versions of GCC and compare the > disassembly of the one problematic location that I found and see > what it looks like. Also, guess I should have included the tag: Fixes: 6c5875843b87 ("powerpc: slightly improve cache helpers") -- Thanks, ~Nick Desaulniers