Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7936073ybi; Tue, 9 Jul 2019 06:37:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzuzBNFrU39zADUWvPnNRHRyWiZQRFZ6gXSlTf1+KAz9o3zcUsFELdMv4Lkq0tb3+++BPtO X-Received: by 2002:a63:9245:: with SMTP id s5mr16043533pgn.123.1562679427650; Tue, 09 Jul 2019 06:37:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562679427; cv=none; d=google.com; s=arc-20160816; b=uEYGDMrrYOEKAT8v6BEQdOHZzFhadEKFmDExqxWRIxi6t+yxu7O+/ccH+o/22m5QkD LRuNfu1eaeD+iQW/vIt0nr5VVcPEaKudD2EsX4y0qUPp9Izx3BC5i9d95YYThutwTQBi YVkQO/JMcJ52xqWyzzDAJ2QHDWn4WMQD5yKUANoIziDOSBjjexNNs4HjUiJzqGQ6KNPu xxgEw4ycupKl7yeXeDMbFft5D0IlLKiR3bl/FNAmIMc1amhMKHnsru9M2GgPlHF6ncE7 gYFULRUBWEZBFWwJt3i+1lndOt5zvD1J/5DPKuhnSRQZo1yy9z5wPxcUDSavOTA+qHeP pt1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=AE/1v7Hm6nBvi4fkkPBd0ly3F7SsROycgLh3ROIO/4o=; b=AaV8tN5nNyldQfF7coc6+8UwHKxGNOQVnKaOAYSlWXeqFAdSmbHIfspGgGJetbVG8k 6R4pBXoUe+eq3DZXKnBbpxqA/2sfoa8YT5cl9qPkMFDqW1rWfMfAgw8bPC6o2pH32QcF caCHMXYQLUOHAPD0ZN153BvujbrwykwT1nUa0i0fqtZMll4Kgba8Q5wyKZLeZZLXZxXi jG6+eigpc0g+dbjuNUJ3JsKjbfjzA5tbqopuaSdtLuBhg9YKhjBHnhNC6mqIH9woqPNR HWb4/dmazrpMqrtTYRpMAQ3G0CxjsZQmLEJlv4IO0pv6pwfxyBC6cpwrF2jz4biAyfC9 QC6A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 95si22163745ple.51.2019.07.09.06.36.52; Tue, 09 Jul 2019 06:37:07 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726641AbfGINgK (ORCPT + 99 others); Tue, 9 Jul 2019 09:36:10 -0400 Received: from gate.crashing.org ([63.228.1.57]:57459 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725947AbfGINgK (ORCPT ); Tue, 9 Jul 2019 09:36:10 -0400 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id x69DZgCw003161; Tue, 9 Jul 2019 08:35:42 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id x69DZfPa003160; Tue, 9 Jul 2019 08:35:41 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Tue, 9 Jul 2019 08:35:40 -0500 From: Segher Boessenkool To: Christophe Leroy Cc: Nathan Chancellor , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH v2] powerpc: slightly improve cache helpers Message-ID: <20190709133540.GJ30355@gate.crashing.org> References: <45hnfp6SlLz9sP0@ozlabs.org> <20190708191416.GA21442@archlinux-threadripper> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4.2.3i Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 09, 2019 at 07:04:43AM +0200, Christophe Leroy wrote: > Le 08/07/2019 ? 21:14, Nathan Chancellor a ?crit?: > >On Mon, Jul 08, 2019 at 11:19:30AM +1000, Michael Ellerman wrote: > >>On Fri, 2019-05-10 at 09:24:48 UTC, Christophe Leroy wrote: > >>>Cache instructions (dcbz, dcbi, dcbf and dcbst) take two registers > >>>that are summed to obtain the target address. Using 'Z' constraint > >>>and '%y0' argument gives GCC the opportunity to use both registers > >>>instead of only one with the second being forced to 0. > >>> > >>>Suggested-by: Segher Boessenkool > >>>Signed-off-by: Christophe Leroy > >> > >>Applied to powerpc next, thanks. > >> > >>https://git.kernel.org/powerpc/c/6c5875843b87c3adea2beade9d1b8b3d4523900a > >> > >>cheers > > > >This patch causes a regression with clang: > > Is that a Clang bug ? I would think so, but cannot tell from the given information. > Do you have a disassembly of the code both with and without this patch > in order to compare ? That's what we need to start debugging this, yup. > Segher, any idea ? There is nothing I recognise, no. Segher