From patchwork Mon Jan 9 06:23:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jintack Lim X-Patchwork-Id: 9504055 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7248160757 for ; Mon, 9 Jan 2017 06:40:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 62278280DE for ; Mon, 9 Jan 2017 06:40:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 56A812817F; Mon, 9 Jan 2017 06:40:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DD736280DE for ; Mon, 9 Jan 2017 06:40:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760647AbdAIGZi (ORCPT ); Mon, 9 Jan 2017 01:25:38 -0500 Received: from outprodmail01.cc.columbia.edu ([128.59.72.39]:37920 "EHLO outprodmail01.cc.columbia.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760520AbdAIGZe (ORCPT ); Mon, 9 Jan 2017 01:25:34 -0500 Received: from hazelnut (hazelnut.cc.columbia.edu [128.59.213.250]) by outprodmail01.cc.columbia.edu (8.14.4/8.14.4) with ESMTP id v096PW88017317 for ; Mon, 9 Jan 2017 01:25:33 -0500 Received: from hazelnut (localhost.localdomain [127.0.0.1]) by hazelnut (Postfix) with ESMTP id BCA3089 for ; Mon, 9 Jan 2017 01:25:32 -0500 (EST) Received: from sendprodmail03.cc.columbia.edu (sendprodmail03.cc.columbia.edu [128.59.72.15]) by hazelnut (Postfix) with ESMTP id 8663E8D for ; Mon, 9 Jan 2017 01:25:32 -0500 (EST) Received: from mail-qt0-f200.google.com (mail-qt0-f200.google.com [209.85.216.200]) by sendprodmail03.cc.columbia.edu (8.14.4/8.14.4) with ESMTP id v096PWK3056398 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Mon, 9 Jan 2017 01:25:32 -0500 Received: by mail-qt0-f200.google.com with SMTP id f4so58592334qte.1 for ; Sun, 08 Jan 2017 22:25:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=6gqeSOQej9XH8EZMYKvHj8xoONyor8s2PyXgFC/82VQ=; b=aR3vsAmx1I1skrtDoJkeMZWzkubjzhIspr47/r0eG9uvQSvtcgQRDsla6iD9junjfQ sIood8H+uvKuJxAWKpnjnlZ1i5pXxOb6pQZk8ldddHzSH9+sQ8ehHX8w0IvosbQO2DxA vrWpmiLMx4yamTuIZYUQwIk1sudZrNx+8nFpK6CRV//SYbO70M8fxUBzFVQqmUzJkmkP ZHm4AyP4tTbOW+/l5jt481ikZHFNfSEHdmZ+3srnRRoOhxUaEiNBpxCdv0xpvIvh4n+P egyokKi7o5/tBhghWZQOOu1bCXHEjgi9k2/YC0Siq+5yl2tcUHlXiOQH7QKiiOSXv5Mp H0UA== X-Gm-Message-State: AIkVDXKTRm5KVTZHfAb9Fk9hEIVx3isF+AzzyymvAvYPPZrGeIvi7g3ydqzZ2a7O8KH4s51htfK5TNENwgF38P985kMojygJ46LbFdjDcSKHOsEPdQqWs6iIEWQsQy0dVkSyQhVA2CiIkBE= X-Received: by 10.237.34.167 with SMTP id p36mr79089867qtc.286.1483943132167; Sun, 08 Jan 2017 22:25:32 -0800 (PST) X-Received: by 10.237.34.167 with SMTP id p36mr79089850qtc.286.1483943132033; Sun, 08 Jan 2017 22:25:32 -0800 (PST) Received: from jintack.cs.columbia.edu ([2001:18d8:ffff:16:21a:4aff:feaa:f900]) by smtp.gmail.com with ESMTPSA id h3sm8623257qtc.6.2017.01.08.22.25.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 08 Jan 2017 22:25:31 -0800 (PST) From: Jintack Lim To: christoffer.dall@linaro.org, marc.zyngier@arm.com, pbonzini@redhat.com, rkrcmar@redhat.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com, vladimir.murzin@arm.com, suzuki.poulose@arm.com, mark.rutland@arm.com, james.morse@arm.com, lorenzo.pieralisi@arm.com, kevin.brodsky@arm.com, wcohen@redhat.com, shankerd@codeaurora.org, geoff@infradead.org, andre.przywara@arm.com, eric.auger@redhat.com, anna-maria@linutronix.de, shihwei@cs.columbia.edu, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: jintack@cs.columbia.edu Subject: [RFC 01/55] arm64: Add missing TCR hw defines Date: Mon, 9 Jan 2017 01:23:57 -0500 Message-Id: <1483943091-1364-2-git-send-email-jintack@cs.columbia.edu> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1483943091-1364-1-git-send-email-jintack@cs.columbia.edu> References: <1483943091-1364-1-git-send-email-jintack@cs.columbia.edu> X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.78 on 128.59.72.15 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Christoffer Dall Some bits of the TCR weren't defined and since we're about to use these in KVM, add these defines. Signed-off-by: Christoffer Dall Signed-off-by: Jintack Lim --- arch/arm64/include/asm/pgtable-hwdef.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/include/asm/pgtable-hwdef.h b/arch/arm64/include/asm/pgtable-hwdef.h index eb0c2bd..d26cab7 100644 --- a/arch/arm64/include/asm/pgtable-hwdef.h +++ b/arch/arm64/include/asm/pgtable-hwdef.h @@ -272,9 +272,15 @@ #define TCR_TG1_4K (UL(2) << TCR_TG1_SHIFT) #define TCR_TG1_64K (UL(3) << TCR_TG1_SHIFT) +#define TCR_IPS_SHIFT 32 +#define TCR_IPS_MASK (UL(7) << TCR_IPS_SHIFT) + #define TCR_ASID16 (UL(1) << 36) #define TCR_TBI0 (UL(1) << 37) #define TCR_HA (UL(1) << 39) #define TCR_HD (UL(1) << 40) +#define TCR_EPD1 (UL(1) << 23) +#define TCR_EPD0 (UL(1) << 7) + #endif