Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp664654pxb; Thu, 25 Feb 2021 11:47:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJwHnVpuzficTCFyeULlUXjsDSeD7bgPuq1xQGPoB/P+zdPnNU2+TPg9r8RKXP8qs4f2OP5M X-Received: by 2002:aa7:d796:: with SMTP id s22mr4796891edq.198.1614282456584; Thu, 25 Feb 2021 11:47:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614282456; cv=none; d=google.com; s=arc-20160816; b=pt6OGijLhVQkVNbK9YSuqpfyVAPQ2ggxjDcbfee76nk6EINyPy4rRCnExPRcJ3BBaV 1bXosOzEeo0MQSeb6W9iIdirN3ny7KAPg0dvS1I1Bdmp6avvAVJht1RStUiyBRi4tOxJ fPkZhZh2jiLd5NUaqkTQRjFIG2Cmm8b4xggg/9aU3NxLPlTeq9azNfirdO6naiWVSNft 3D1E3om7NMTpxTYYroiPTmiDGkRaPFDUBlQw79I61b98+4JlE0Dm8d6ad8SUJHc/PUeV /5BCfH/cDpO/+rPWYpWS4svf4Gl2BNTFHDHx9KTB9hDTkVDqF1inonxUXN1gwh20eidr sfQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=clpugBcHbFnYtlP3QaktRgPsNOHv65iHNxhj4iG+Za0=; b=MNX2wUngqpK8DtBdeB1kx2W9QRDIpwGMkl/kbC2IXYXPbnZ7ev2M038Zn5yPCA+JRJ hmJTGyyF2DGu/cbqjBOre8XA/tJ0/OfNZkUhuO9b614p55Eq6dajkBt7ROuHj5FdsdAi G2KZF1gJCNtx9mt6T+0AfP0IAf+SFHSxYHa5rMMcTpOz5qcUng8qUPFlwJz/DqIT5PYT VY79Lr0z5VQDJmSxFRfMTfd6daz5Cw3vgseemuagIc99/Je58+xd65FQ52DBir/YTeqg oXamUVY7J/ABXSBoJr65e/z4ucO5Po9olLc8zNPVNL2HlHccomZY35g1PSgh3BRXbYlT w0DQ== 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 g9si3910140ejk.262.2021.02.25.11.47.13; Thu, 25 Feb 2021 11:47:36 -0800 (PST) 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 S233814AbhBYTnX (ORCPT + 99 others); Thu, 25 Feb 2021 14:43:23 -0500 Received: from foss.arm.com ([217.140.110.172]:48410 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234358AbhBYTje (ORCPT ); Thu, 25 Feb 2021 14:39:34 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 657311424; Thu, 25 Feb 2021 11:36:08 -0800 (PST) Received: from ewhatever.cambridge.arm.com (ewhatever.cambridge.arm.com [10.1.197.1]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 217323F70D; Thu, 25 Feb 2021 11:36:07 -0800 (PST) From: Suzuki K Poulose To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, mathieu.poirier@linaro.org, mike.leach@linaro.org, anshuman.khandual@arm.com, leo.yan@linaro.org, Suzuki K Poulose , Catalin Marinas , Will Deacon Subject: [PATCH v4 06/19] arm64: Add support for trace synchronization barrier Date: Thu, 25 Feb 2021 19:35:30 +0000 Message-Id: <20210225193543.2920532-7-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20210225193543.2920532-1-suzuki.poulose@arm.com> References: <20210225193543.2920532-1-suzuki.poulose@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tsb csync synchronizes the trace operation of instructions. The instruction is a nop when FEAT_TRF is not implemented. Cc: Mathieu Poirier Cc: Mike Leach Cc: Catalin Marinas Cc: Will Deacon Signed-off-by: Suzuki K Poulose --- New patch, split from the TRBE driver for ease of merging --- arch/arm64/include/asm/barrier.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/include/asm/barrier.h b/arch/arm64/include/asm/barrier.h index c3009b0e5239..5a8367a2b868 100644 --- a/arch/arm64/include/asm/barrier.h +++ b/arch/arm64/include/asm/barrier.h @@ -23,6 +23,7 @@ #define dsb(opt) asm volatile("dsb " #opt : : : "memory") #define psb_csync() asm volatile("hint #17" : : : "memory") +#define tsb_csync() asm volatile("hint #18" : : : "memory") #define csdb() asm volatile("hint #20" : : : "memory") #define spec_bar() asm volatile(ALTERNATIVE("dsb nsh\nisb\n", \ -- 2.24.1