Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2682452yba; Mon, 6 May 2019 09:55:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsBCkWs0KLp6yjKfmLSCO1m1DQiS+JwHtz0XmQriDro9IrdEzcT6ucDP5VurFigUuTo0bl X-Received: by 2002:a63:e550:: with SMTP id z16mr33594678pgj.329.1557161701444; Mon, 06 May 2019 09:55:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557161701; cv=none; d=google.com; s=arc-20160816; b=QkM0dgdSAmSPxQZlpvsNcQ5Hv5wBmtO6mGnRTjrO4DYve75kj8V+PH7LiRqrm5n+0U /+p9K96ZHm/MDgsVlTWuOwioRVcU2PzO0Ls1QlzmduoZPHdeUBvoIqYL60JjxpJoEylm DJ4S2wbob/qUcw/WB6iNjn0kZe5UBJKUXyXUJic9yL2Qf9Rj+4n3+8kX0x0uvgUJHMzo OPNiuPQE7GMiiZzpS0FnQNFYdczC0RvZqMgkQYDIPyLHDUyvnhaH5dD1AXPQbriQzcBd XvAzC1rtpFpGgOf9qr/L6cxE9qGsRbLrT1mpQNUqXnO4idYAk9+8mkmMv5yEbgZxaClN iHZw== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=qr8eMIJX1G15t86wPHP2mi9gxRuGbRo05Tt82N+Msr0=; b=eHcmJCBdDDHfXqPkIN8VCG9ACgxUcRYXQvRJYUiL2qcPQqs6eZpD0azoqk0A2gwjmA 97g71vi6RrLZEST1fLx08XV1cXxDN/KgYIvrihubC9vAdnKbxwg3TqPZWxjhLrC/3c20 JPsRz9XeXOpkpoXKk9oN7GXE2yR3XZPe7IjkgVfAEivFifVnTCDGgGQwTmIdjU1HFlu1 XUbLMUX9+11RfWpU5nZMrwSw+aiKafI4oqfcHgAD7DNlZY+OXhxuNQ1VDvaWBC6Mca+l bWP0E8i31kzukocMz8kr9wINKWIHIwkCpHACO7I02cUU+L+Bbdy2+dfeAnPs34iWftmj 4HQQ== 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 j7si15847927pgi.416.2019.05.06.09.54.45; Mon, 06 May 2019 09:55:01 -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 S1726669AbfEFQxk (ORCPT + 99 others); Mon, 6 May 2019 12:53:40 -0400 Received: from gate.crashing.org ([63.228.1.57]:46602 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726321AbfEFQxk (ORCPT ); Mon, 6 May 2019 12:53:40 -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 x46GrE4M001810; Mon, 6 May 2019 11:53:14 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id x46GrEon001809; Mon, 6 May 2019 11:53:14 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Mon, 6 May 2019 11:53:14 -0500 From: Segher Boessenkool To: Christophe Leroy Cc: linux-kernel@vger.kernel.org, Scott Wood , Paul Mackerras , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] powerpc/32: Remove memory clobber asm constraint on dcbX() functions Message-ID: <20190506165314.GC8599@gate.crashing.org> References: <20180109065759.4E54B6C73D@localhost.localdomain> <20190503181508.GQ8599@gate.crashing.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Hi! On Mon, May 06, 2019 at 04:31:38PM +0000, Christophe Leroy wrote: > However, I've tried your suggestion below and get unnexpected result. > >you can do > > > > __asm__ __volatile__ ("dcbf %0" : : "Z"(addr) : "memory"); > > > >to save some insns here and there. ] This should be "dcbf %y0". Sorry. And not addr -- it needs a mem there, so deref addr as usual. Segher