Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6799347pxv; Fri, 30 Jul 2021 02:40:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxH3DrCkFA+0in7OP8TjQx6icWPOfEsaQGDaGaTaQnKDJ6leRlf19I7piYjG15uvf0Vujv7 X-Received: by 2002:a05:6602:248f:: with SMTP id g15mr1793351ioe.198.1627638022778; Fri, 30 Jul 2021 02:40:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627638022; cv=none; d=google.com; s=arc-20160816; b=p73u6651LB1ekCSSSP5LhVasS0DY8Ia7XtCoWYJbY8ap9OknfsY32lv0T0AVwTikGe h0/8pjTDWcC6aV/ndxYSU+p93xxCmVytmOluqFVZ0QXC0BtcJNdgs1f7ew1aCLof/Lve 4GgA7vpoFrr0pO6UUe8MIQY2DF7O6Wfiu5pN9cIjauPWvQgKqvXvkxD6zKqaLiUji2gK GU59yjnX/X2csLxLfwUo66v6/3SgTvWXPHO+W1fODC4HDKh5btgjzb/EVOUyq5i5qGUv SxUFnkdj2PHxJts8ck/jMAfzzWX7kjstxhH7vs80AiHNG42eRGehS5sBANKKf2+idZ54 8yOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=qtpKSgcAaWCfq2vKgZydzgxT9zKNQDyik7YfOtEnwRU=; b=BkxZ+6PI+WpD1q8Z+BZ2b8EcHPW02FYCFboQamQeV664jkf+1NjyFZDylvmqsIOeP9 IB+cTUVAjG0Y8XSSgDem2+i0JrYizBzkvp/ppxmZKedTISP7AovRBudHWiYOaHQkvtzR yRNEIPYgSCkfav50s/Ir/49zAkvOttLnUfPeh3dCvEa2gIHkfIOyqArFIGbAMOCwKKbW +DZX9GjcQlhFiliSq1+qdnyw6DgXS/OXl2tg6Z0WQhX0ITfTOzglAtimAaCm9YM0Rzjm 3UV+xP5HvOi74vB1SuiX+XLD5JkpKVvj2mvVQtfBRd1WaGwp14H80WEihaM/uZ2pu0eL M+6w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w3si1417495iol.91.2021.07.30.02.40.11; Fri, 30 Jul 2021 02:40:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230359AbhG3Jjc (ORCPT + 99 others); Fri, 30 Jul 2021 05:39:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:53134 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231159AbhG3Jjc (ORCPT ); Fri, 30 Jul 2021 05:39:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9BE68603E9; Fri, 30 Jul 2021 09:39:24 +0000 (UTC) Date: Fri, 30 Jul 2021 10:39:21 +0100 From: Catalin Marinas To: Guangbin Huang Cc: davem@davemloft.net, kuba@kernel.org, will@kernel.org, maz@kernel.org, mark.rutland@arm.com, dbrazdil@google.com, qperret@google.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, lipeng321@huawei.com Subject: Re: [PATCH net-next 1/4] arm64: barrier: add DGH macros to control memory accesses merging Message-ID: <20210730093921.GA8570@arm.com> References: <1627614864-50824-1-git-send-email-huangguangbin2@huawei.com> <1627614864-50824-2-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1627614864-50824-2-git-send-email-huangguangbin2@huawei.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 30, 2021 at 11:14:21AM +0800, Guangbin Huang wrote: > From: Xiongfeng Wang > > DGH prohibits merging memory accesses with Normal-NC or Device-GRE > attributes before the hint instruction with any memory accesses > appearing after the hint instruction. Provide macros to expose it to the > arch code. > > Signed-off-by: Xiongfeng Wang > Signed-off-by: Cheng Jian > Signed-off-by: Yufeng Mo > --- > arch/arm64/include/asm/assembler.h | 7 +++++++ > arch/arm64/include/asm/barrier.h | 1 + > 2 files changed, 8 insertions(+) > > diff --git a/arch/arm64/include/asm/assembler.h b/arch/arm64/include/asm/assembler.h > index 89faca0e740d..5a3348b5e9f3 100644 > --- a/arch/arm64/include/asm/assembler.h > +++ b/arch/arm64/include/asm/assembler.h > @@ -90,6 +90,13 @@ > .endm > > /* > + * Data gathering hint > + */ > + .macro dgh > + hint #6 > + .endm Do we need this macro? It doesn't seem to be used anywhere. -- Catalin