From patchwork Mon May 22 07:01:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayachandran C X-Patchwork-Id: 9739653 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 3C8F860388 for ; Mon, 22 May 2017 07:12:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2E6002866B for ; Mon, 22 May 2017 07:12:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2152A28675; Mon, 22 May 2017 07:12:15 +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=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9D15F2866B for ; Mon, 22 May 2017 07:12:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FeKfT3OPmTPqLlpm/1+371kJ9g1Z79QThEVsYHUXFQA=; b=DHLD5nJlEvQrkC qtSfiseMLAYt+0t0eVnkiBMQ9MAy2Ta5+nI0nc/JcLl4BVB6t4Imrr3IUywR0vXYErRZL3J+dC682 tkk7GEWosOB7HQz1WFMq0OoKQ3+JTMKmZ7zTmq+RXySyB27M+OUR0ms1RLQ2otxrALk0OqpzoaueH tslbMWaYAU5qm6dxgZlU+8hAnuHO00V9qrWYok7W7KhulURVOsBwlYvK86V7SvwJ1glDjrd8TWG+g s1wr94kwz5dO+jjB3NLiQ14oQFu6xwrxHy51gog3NdERT1gKW8UixBa+dCFgJy413EbgbdwAQT5YO r3dWhY+hQAqoIgs4Zz7A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dChVl-0003EG-Me; Mon, 22 May 2017 07:12:13 +0000 Received: from mail-cys01nam02on0072.outbound.protection.outlook.com ([104.47.37.72] helo=NAM02-CY1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dChMR-0005hE-2O for linux-arm-kernel@lists.infradead.org; Mon, 22 May 2017 07:02:46 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=dbwHhGEUkxZkCd7KUBVAFr3XpH1QRRLV/my+XwegPgc=; b=dRLnijlpbfc/lKwXVM5dPl/uTtL6RUtB4/E9sXmS90GGq3EX/gVjQXtbditOAD8zx5ikip572+nk3irC4mByn3q1GxBbK3m/bOHiZqsPJy+LY8ruyw8gjr0c8Vfaz7jvX9T8AqyR7qn3tJooKWFFb/ic77TMXZvuaEw833h27K4= Authentication-Results: arm.com; dkim=none (message not signed) header.d=none; arm.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from vulcan.caveonetworks.com (50.233.148.156) by BN6PR07MB2993.namprd07.prod.outlook.com (10.172.106.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Mon, 22 May 2017 07:02:10 +0000 From: Jayachandran C To: Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/2] arm64: add PROT_DEVICE_GRE for Device GRE mapping Date: Mon, 22 May 2017 07:01:46 +0000 Message-Id: <1495436507-81890-2-git-send-email-jnair@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1495436507-81890-1-git-send-email-jnair@caviumnetworks.com> References: <1495436507-81890-1-git-send-email-jnair@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [50.233.148.156] X-ClientProxiedBy: CY4PR13CA0032.namprd13.prod.outlook.com (10.173.156.146) To BN6PR07MB2993.namprd07.prod.outlook.com (10.172.106.11) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN6PR07MB2993: X-MS-Office365-Filtering-Correlation-Id: 75a666fd-7830-49a9-7160-08d4a0e07835 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BN6PR07MB2993; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB2993; 3:0EHuPBdFHOuhvs6jIJBti13FC3AheCcU8LVwBuc2+5m8hkYSmvO10kanP8ZXSZhd1D0Bt43bj/E/GoQRCwXpNrgZffUMSJzBFpZPEE12uAYg9ojGwbexW5bRQl32tf1y+JK2RvGjpE9eb/7vlu9DKd69BQ60rvNyXdqvme7UFP2xjQcAaADHuI0SEAbe9ZM0MDBchXNO6Bdv2bO9aGOmgiaYbKVzFpUuoTavqvs2ivY314zjo+Jv1rSLZNiwJlsL4NMgCQFmYsFSi+KMdMMumubcSHr70jT0k4381odqPUFCc4c2ZIxzdwntdDVlmdOVQJgdADxAG6qzNhM6I0vOqQ==; 25:GtLmrIjU39JSSch3roU6CfNrj65XNJoVdrs4VrBIN9gGdSuHyrgiMrvt3yrPh9kfJgJ9QPjIRHbLgfNjmrO/stlVqJo8R6CR769a92LG4HK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jgKyd1EAaXeBhawTOQG1rvlYb6IEIK40LmZz+zAwKAuI8sNKXB3Jh0eCcuAKYaOL8rgbHFFT1LVVF3FsZchXi+i/3whbqYwrlojbxBf5Fdad8qokEWc9pcp2mHvqMULNgYQz2Pe/qo4trgYmhEvqmAXiQf4AbVVZ+D9Dhq5QP42Hh13Bbg1KW+NFpERfAfnVQSJwZgg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(6041248)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123558100)(20161123560025)(20161123555025)(6072148); SRVR:BN6PR07MB2993; BCL:0; PCL:0; RULEID:; SRVR:BN6PR07MB2993; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB2993; 4:/u657er4eCYX8MFVf/6y3Kcj6oDHK54CVXlqR0CedFQ8Xcz/2U22zYoXP0zfI7lk+azwOeA+ijxeenku2nvv9O2LttKTBj6wm/UPLYhBCGGRAIhlaJ1lLhhqjCHaJlhTlGNWrmHhN4Sam51B3coBAID/rA8VpyITr5A/POqDFBr+kEV89lZwTBbZBr06r4v7AzlMtSKIShkwwm9doJFhG49XDN0sBqnOWMhXPo2M2gVml1poW7WNdsSZU9nT4svWv2RbFnmteMe1lpSSvo8KjgzqWEB9NjORlMS/1ZHE7avgJRchyjVZGUEl5Je9ETZCXa/EvCgA5u4nVSfdHNB9YZxm0zyGSFfhlPTGYQzJKYkmJS4V6EDRHtUR29H7tV3zr6Br7FvZSrXhkAY7X2ZKpl5TYFSA5hC2phAUaledlbG6OmAmNZzy9V0EeF0NPHWhcOga7dbzLraMyhLp5ha72gxNO2+CDHX3caEhFVLHCh5Dr09AWXx8PeDUngGfpe3VWj73YK07qi70ad/3W4Ay/do1SAfet6yLmbbi25rT+NWMLs8PH9k6MDw73rYc4+VGAdvgkM3Hv4VL6NVWKHB186kEsV5WHFuCdLN1zl7gTHfdkk4YjV/ajHEfw+/FLu4K+kHwvAPReNPqeXysG466qvR5ee5JIUyAPJxXKlzKu8IitgjT59JZgmYDZQ+Qw6vTp38WjrDBPlwSmA9fjUP6aacVtkAe3txtVXsJ5tcGQfICC5Z6khRr7Bo0XBapHlIbU1lfYY/Pcv15APBm2M5jxQ== X-Forefront-PRVS: 03152A99FF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39410400002)(39400400002)(39850400002)(39840400002)(39450400003)(42186005)(36756003)(4326008)(8676002)(50466002)(50226002)(7736002)(47776003)(81166006)(305945005)(48376002)(66066001)(53416004)(76176999)(2906002)(50986999)(5660300001)(25786009)(6512007)(575784001)(478600001)(33646002)(189998001)(5003940100001)(3846002)(54906002)(6116002)(72206003)(2950100002)(38730400002)(53936002)(6666003)(6486002)(42882006)(6506006); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB2993; H:vulcan.caveonetworks.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR07MB2993; 23:uzZrV9zXNK9nPdkw8XBwaQOC2ka3q6HLEXypiDOTA?= =?us-ascii?Q?0xObpn0BtC2XCACUBcWdhM10B0FoY3KjWFbN13f+9lcww0tmvLZLUrhCa6BP?= =?us-ascii?Q?nmG/lzdyRVQ8G0P02ru9lmYAmp19NiNXHHy8CcUY9wJfd6wqgEL1LeRRts2c?= =?us-ascii?Q?n3WK7LotOZeXfybgxmn4yElfnrZfQTEnHEiALzr+eXESDpEdKQXEYAz+co9r?= =?us-ascii?Q?WvXninsyS9j2oP2E3DIx8i245e44Me0J+9IDE3M7XyIsydvdfoZ47plFVzJx?= =?us-ascii?Q?K3eCf4YvgjJ8Qn95sRM2N9ebRvxwaK+VIW7bp3oszRniJP0tlc/mFcPtrFQ2?= =?us-ascii?Q?cb65QvisLuaIvxi6fayv/Ix2srfiGOg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VrZqrmzDdk19OvrickZBQhx2/B0vUdXsXzd6R6E0t/hdtHQK/2Iexh+5IrCXCpqqKXDlYWBqHe1rm5hTND8waCI+aWBA8e8R+Uc9iQgIvWo/lVhc0Tjg/zPz8pvByHdcX23nrfYGr1BSsqqFocABD+Fpe2GiYZkDhjEnytvLeNmj9VaLu8W38hYQ1tW6NuaVn3pACu0bwPZ+Kabe3OzjKMsSTSJ28E/XKMH3HBWcYISZd2aV4MiytinEB8x/fw8wiDkDkKKxkgk67hMuwD2VSEchcYwqwoV0zJK2/lkSPOajFaz8oW8DjprSHUbCjdOcBondHz615LKqACbBL/gKQeNBnjxwzH2JAcsg4gP3NLJIs+q/Tj10mPEKW2qQ==; 5:XKnRYiSguPqTKsb1Vfw/g+thdAIMHoDTKdsHpz6Q2Qlf3nVHFAT4d+2YE9PU/EYoR3dsynhyeQ/NMoZ+IzEPnJmd103GRsed0cbr4psWTTf+duHD30Zwgjh9fSmoBvUS2EYme453dXl19kCCqVwlrw==; 24:UDimj/VgKNonjysjarxgy9vnIfV+ZIPOSpCGb6V3efBD+gQ7ENvJPjdwUDU9tMNEI5wBXs+gn33lAYg2v18JvbplRgkjhfSZWujb/yEkaEA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB2993; 7:UphrF5ZfsV2uL082gLThAmeCTDwieO7XAnjVH/Fcq2ePNEidiQ3lDxUbwbevk63YtqRgfuIhVqqDF9WigpeaIClcHY8aph0HMfxsDadAdlC4xSwh51YUylkZqxPbwQ98U5PWfVtd2Z5WxIWOxeKVFM6CxSfABIyeNeDYKivkKd+gwuyUODeXSHGvEeuA+Tw9hsYMZt1qMztMkajudhHexFuxBYBxZC0qoQpp/mMVxLAVvsnHrobthhBAp0G0zCoeR43N6hf5/8xdBpnVxakYw1yR9Na6sgK+S/OSg/B8vZB5fC6XtXGT2wYcpyIYKOyqQHpQAqBUvJpLhnNALH+sRw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2017 07:02:10.6281 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB2993 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170522_000235_299531_2295C9D3 X-CRM114-Status: UNSURE ( 6.08 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Robert Richter , Jayachandran C , Alexander Graf Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The MAIR is programmed with attribute "Device GRE" (0x0C) at index 3, but there is no corresponding page protection value defined. Make the page attribute available for use by defining PROT_DEVICE_GRE. Signed-off-by: Jayachandran C --- arch/arm64/include/asm/pgtable-prot.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/include/asm/pgtable-prot.h b/arch/arm64/include/asm/pgtable-prot.h index 2142c77..216f9f9 100644 --- a/arch/arm64/include/asm/pgtable-prot.h +++ b/arch/arm64/include/asm/pgtable-prot.h @@ -39,6 +39,7 @@ #define PROT_DEVICE_nGnRnE (PROT_DEFAULT | PTE_PXN | PTE_UXN | PTE_DIRTY | PTE_WRITE | PTE_ATTRINDX(MT_DEVICE_nGnRnE)) #define PROT_DEVICE_nGnRE (PROT_DEFAULT | PTE_PXN | PTE_UXN | PTE_DIRTY | PTE_WRITE | PTE_ATTRINDX(MT_DEVICE_nGnRE)) +#define PROT_DEVICE_GRE (PROT_DEFAULT | PTE_PXN | PTE_UXN | PTE_DIRTY | PTE_WRITE | PTE_ATTRINDX(MT_DEVICE_GRE)) #define PROT_NORMAL_NC (PROT_DEFAULT | PTE_PXN | PTE_UXN | PTE_DIRTY | PTE_WRITE | PTE_ATTRINDX(MT_NORMAL_NC)) #define PROT_NORMAL_WT (PROT_DEFAULT | PTE_PXN | PTE_UXN | PTE_DIRTY | PTE_WRITE | PTE_ATTRINDX(MT_NORMAL_WT)) #define PROT_NORMAL (PROT_DEFAULT | PTE_PXN | PTE_UXN | PTE_DIRTY | PTE_WRITE | PTE_ATTRINDX(MT_NORMAL))