From patchwork Tue Jul 18 16:58:38 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jintack Lim X-Patchwork-Id: 9849123 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 671CE600CC for ; Tue, 18 Jul 2017 17:10:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B0B728577 for ; Tue, 18 Jul 2017 17:10:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3FDFB285C9; Tue, 18 Jul 2017 17:10:43 +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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM autolearn=unavailable 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 02CA0285C2 for ; Tue, 18 Jul 2017 17:10:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752219AbdGRRKd (ORCPT ); Tue, 18 Jul 2017 13:10:33 -0400 Received: from mail-io0-f170.google.com ([209.85.223.170]:33448 "EHLO mail-io0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752082AbdGRQ7z (ORCPT ); Tue, 18 Jul 2017 12:59:55 -0400 Received: by mail-io0-f170.google.com with SMTP id 5so16500606iow.0 for ; Tue, 18 Jul 2017 09:59:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=qFO2nYoh8D4OMIvdEfNQNJxTIMOtELHgPWAZPezcI9A=; b=Xyi/zhHydp5H15LIzKDBt20PuKAoW/sPaOz84cBm/yVDKjoG4F/SE0js8piN0RTBXC /uC6/LlxxJlqTYKJrXgPnMsdB6ZmrVlBbvwxk147dzA5tG4I0Be2wi29kEkAfGBK3pZT 8bxiJrYLNtmdjACTjrcQmH/lqHSXn4Wgbifow= 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=qFO2nYoh8D4OMIvdEfNQNJxTIMOtELHgPWAZPezcI9A=; b=uXfrPpPoKIm0CFXytXANOxBys9CtB0XgONOGuDzvkkhfsCqvu5NiqrgRA9nXRpEdgG dzYfsnhasbQDr9Y0ahMOdOFWRRgjp3luRO2tcyI8nJXcNnPz7Td2ULOAxTEW4wC9ePKP WZ51UjJaxJ4ut6n2FsZbIgql7dnRP2b2GoEn8FLLFZQ+lkq16aQ7nMOl0adgtIORSp6o N+Ae56Jo/zxiBdeWnWHzb4BjM5CTaV1dWhoH1SoCD4Gutaed7jAtxvJKeuf0Onc2DKAd DuHiUdolcefL8+rxJHBXVtljWCaNezuba3nQDKW31doYEdV46umlBKF5P3U7lVRFWchi q/Gg== X-Gm-Message-State: AIVw113DHE689DbR7WK/AwZ8InfqpnNY9mhgeSjbUUoy62seBbQFhyGP ZialyFS3boHESEJ5 X-Received: by 10.107.178.214 with SMTP id b205mr2862569iof.68.1500397194753; Tue, 18 Jul 2017 09:59:54 -0700 (PDT) Received: from node.jintackl-qv26972.kvmarm-pg0.wisc.cloudlab.us (c220g1-030822.wisc.cloudlab.us. [128.104.222.82]) by smtp.gmail.com with ESMTPSA id j96sm1413075ioo.49.2017.07.18.09.59.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Jul 2017 09:59:54 -0700 (PDT) From: Jintack Lim To: kvmarm@lists.cs.columbia.edu, christoffer.dall@linaro.org, marc.zyngier@arm.com Cc: corbet@lwn.net, pbonzini@redhat.com, rkrcmar@redhat.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com, akpm@linux-foundation.org, mchehab@kernel.org, cov@codeaurora.org, daniel.lezcano@linaro.org, david.daney@cavium.com, mark.rutland@arm.com, suzuki.poulose@arm.com, stefan@hello-penguin.com, andy.gross@linaro.org, wcohen@redhat.com, ard.biesheuvel@linaro.org, shankerd@codeaurora.org, vladimir.murzin@arm.com, james.morse@arm.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH v2 12/38] arm64: Add missing TCR hw defines Date: Tue, 18 Jul 2017 11:58:38 -0500 Message-Id: <1500397144-16232-13-git-send-email-jintack.lim@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1500397144-16232-1-git-send-email-jintack.lim@linaro.org> References: <1500397144-16232-1-git-send-email-jintack.lim@linaro.org> 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 --- 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