Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4187715pxf; Tue, 23 Mar 2021 05:08:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywWeQ1CdDTU4gl3nzWuHDCq4tYuvf9YsXPzawLrxVAD+HFwwYC1AMcEeRLQaXFVsIQquFd X-Received: by 2002:aa7:da46:: with SMTP id w6mr4390434eds.40.1616501336063; Tue, 23 Mar 2021 05:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616501336; cv=none; d=google.com; s=arc-20160816; b=ZOtLDm4cKtDOlqIHJizsAzw0zVEENgslkz580DbLXeMzv4j4cC2S7AyZNfxxYKXUZg 9hPsp+VI/DgPvt74JHErO+zVyDjqhTAsNcnP/D2MuHEbV++KAtUmih8tTD8FAi9oEbfl U21GE6OxgGnxwt/C3nBlmC4CvebjQ37Sr8sFbCs1tkIMbCyLtHhxXAU1cp6Uucy5nFcD WxiG5Qhe2y991Vfb81QS24Bsxk4pssKLcGHCJ/TagMRnAjG0da1SUHcOwTzeTkeyWLJg aOBivY7QQVNIFvVZAl+c6WrBXiV9+zpGhCXt1afQjrBI2u1HDfri2DxpbDOyQ1nNHwQm 6RPA== 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=p9WT4744svNxCA4UYcOY2cmsQyLXXcEQIrEMTJdEnRU=; b=IseER7JWSyB+5n5O9mAwjNInW9RQOWJ0UmQCT4FehduFp5xg8CKCE0gdCmN2A4ApMN GdQ6wxZuKaOPcV9P/c1d8XUyW5qJ9c1JgZsJRDc/Tg/NNrzVppob50GPWGX6zlRAg4Nt sOjG+ZPmHYaQOo9JHbSYMtSy+1NpeYW3IJjaaL/LFClvdcXNzBxPilKCWaAZhk+T/WOI bf55xerK6daRTeARFAAw66yJAvmKJZqXmS9vuDVcMcR3sKtx5V0odVs8z4BMkQQ6pyVP MOBPvezQP7Hd3kB7q6og0jNfpukbmtZRUXAFjNKqMGCe3Ka6xrL4NCr3Ea2IHRaY5UoA ugOQ== 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 a7si15355301edb.607.2021.03.23.05.08.31; Tue, 23 Mar 2021 05:08:56 -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 S230363AbhCWMHk (ORCPT + 99 others); Tue, 23 Mar 2021 08:07:40 -0400 Received: from foss.arm.com ([217.140.110.172]:45088 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229884AbhCWMHT (ORCPT ); Tue, 23 Mar 2021 08:07:19 -0400 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 251D111FB; Tue, 23 Mar 2021 05:07:19 -0700 (PDT) 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 A1B9D3F719; Tue, 23 Mar 2021 05:07:17 -0700 (PDT) From: Suzuki K Poulose To: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org, coresight@lists.linaro.org, mathieu.poirier@linaro.org, mike.leach@linaro.org, leo.yan@linaro.org, anshuman.khandual@arm.com, maz@kernel.org, catalin.marinas@arm.com, Suzuki K Poulose , Will Deacon Subject: [PATCH v5 05/19] arm64: Add support for trace synchronization barrier Date: Tue, 23 Mar 2021 12:06:33 +0000 Message-Id: <20210323120647.454211-6-suzuki.poulose@arm.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20210323120647.454211-1-suzuki.poulose@arm.com> References: <20210323120647.454211-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 --- 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