Message ID | 20180412111138.40990-2-mark.rutland@arm.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.84.29 with SMTP id i29csp1570977ljb; Thu, 12 Apr 2018 04:11:53 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/8JcwNhJjMjcHUNT0SLIGNXElWTZivjkoNKM6a6cXYg8o8BYM8jYmgdoreiUAVGWulrF0z X-Received: by 10.98.87.150 with SMTP id i22mr7341767pfj.119.1523531513173; Thu, 12 Apr 2018 04:11:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523531513; cv=none; d=google.com; s=arc-20160816; b=n8y5N29oTzI+CmsBEasgkn1l+IKttyDy9JA7aluDwstVwuUXN6l00lIMdzykOYncW+ xtsTffWNEXy1iIsMxYjC79XlC8tLQCgix2JHCyUQt8maDyVnzghwBSVy5MvuPCsubv55 ENmVYhglVJP7Mxr7Fp7rTy/9uHZvR+jFs7xvlZRwuV452jbmuhvqVSVvatbuHMKykkOr ImT37WYTuxGV8OBjFJ9wq0lX2fmD2JQgdkI902dEl+/6Xl0f2dZfEthGfsX1eQriE3S9 ty7RFFdYTido3kN4D/dnq3JFzNRN+GYJQ07cPb5e5TZYqy4EbNfCO1dGJ0NvGjX6sn1Y B8AA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=TIKN50o4yALAgqAYrgHAtfCmw+UvUiqv6ktteN78STU=; b=MSlZKKWGX6fZ4y4qwoIGXzS8rlk00STn1cWEUTFV43zXoF85K4NKVcCQ5bbPh+egIb 82RfChwZcJZuNrZ4liwWhvt8I06FMPo6U9qRm5JbMJ387X8FFbO7RZtaBRnmLtyHVnnL 0v/X1c3L3tzwgoKPkd5KKRKHTj3ySvLSLlUlMBnDcWtB8WgjzSPzpg0c6ThRNdMfsgpm tdH2kczUE1purJb/D98Tc30zz9KPCyDe5Ki8lOA5rcExTSgKHC1FJUEnrV1od+4rco4c qepgXLhvnx6S1fj+8cNYAWcxqBy0gLN1V2MGDl+zpP59G2wFd8fXzKgUp6Og+6wCHUfn EnOg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bg3-v6si3001807plb.118.2018.04.12.04.11.52; Thu, 12 Apr 2018 04:11:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of stable-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 stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752530AbeDLLLw (ORCPT <rfc822;semen.protsenko@linaro.org> + 11 others); Thu, 12 Apr 2018 07:11:52 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:59294 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752428AbeDLLLv (ORCPT <rfc822;stable@vger.kernel.org>); Thu, 12 Apr 2018 07:11:51 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BE90080D; Thu, 12 Apr 2018 04:11:51 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 139D03F24A; Thu, 12 Apr 2018 04:11:49 -0700 (PDT) From: Mark Rutland <mark.rutland@arm.com> To: stable@vger.kernel.org Cc: mark.brown@linaro.org, ard.biesheuvel@linaro.org, marc.zyngier@arm.com, will.deacon@arm.com, catalin.marinas@arm.com, ghackmann@google.com, shankerd@codeaurora.org Subject: [PATCH v4.9.y 01/42] arm64: barrier: Add CSDB macros to control data-value prediction Date: Thu, 12 Apr 2018 12:10:57 +0100 Message-Id: <20180412111138.40990-2-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180412111138.40990-1-mark.rutland@arm.com> References: <20180412111138.40990-1-mark.rutland@arm.com> Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
arm64 spectre patches
|
expand
|
diff --git a/arch/arm64/include/asm/assembler.h b/arch/arm64/include/asm/assembler.h index 7193bf97b8da..b223b1b4d5cd 100644 --- a/arch/arm64/include/asm/assembler.h +++ b/arch/arm64/include/asm/assembler.h @@ -87,6 +87,13 @@ .endm /* + * Value prediction barrier + */ + .macro csdb + hint #20 + .endm + +/* * NOP sequence */ .macro nops, num diff --git a/arch/arm64/include/asm/barrier.h b/arch/arm64/include/asm/barrier.h index 0fe7e43b7fbc..c68fdc5707ed 100644 --- a/arch/arm64/include/asm/barrier.h +++ b/arch/arm64/include/asm/barrier.h @@ -31,6 +31,8 @@ #define dmb(opt) asm volatile("dmb " #opt : : : "memory") #define dsb(opt) asm volatile("dsb " #opt : : : "memory") +#define csdb() asm volatile("hint #20" : : : "memory") + #define mb() dsb(sy) #define rmb() dsb(ld) #define wmb() dsb(st)