From patchwork Sat May 13 00:26:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Feng Kan X-Patchwork-Id: 9724955 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 233E860325 for ; Sat, 13 May 2017 00:28:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 06CC928888 for ; Sat, 13 May 2017 00:28:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB7B828894; Sat, 13 May 2017 00:28:44 +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=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DA5B528888 for ; Sat, 13 May 2017 00:28:43 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9Ksy-0003TR-1A; Sat, 13 May 2017 00:26:16 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d9Ksx-0003TK-3A for xen-devel@lists.xenproject.org; Sat, 13 May 2017 00:26:15 +0000 Received: from [193.109.254.147] by server-2.bemta-6.messagelabs.com id 08/A4-03058-6A256195; Sat, 13 May 2017 00:26:14 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprMIsWRWlGSWpSXmKPExsVyMfTAGt2lQWK RBm/X6Vl83zKZyYHR4/CHKywBjFGsmXlJ+RUJrBnbe1+yFVxiq5h0YA1TA+MKli5GLg4hgVmM Em/e72bvYuTkYBFoZJboeasIkpAQeMcisWXbOxaQhIRAnMSWw/sZIexyiYbZr1lBbCEBaYntT 94xQkz6zCjx8VkDG0iCTUBWYt6nQ2ANIgJBEj+3vQdrYAZqON97D2gbB4ewQLRE03I1iMWqEj uW3gQr5xWwkbiz/CMzxC45iZvnOpknMPItYGRYxahRnFpUllqka2Sgl1SUmZ5RkpuYmaNraGC ml5taXJyYnpqTmFSsl5yfu4kRGCgMQLCD8deygEOMkhxMSqK8l1hFI4X4kvJTKjMSizPii0pz UosPMcpwcChJ8GYGikUKCRalpqdWpGXmAEMWJi3BwaMkwssNkuYtLkjMLc5Mh0idYrTkeHH5/ Xsmjjn3vgLJJyt/vGcSYsnLz0uVEuedBNIgANKQUZoHNw4WV5cYZaWEeRmBDhTiKUgtys0sQZ V/xSjOwagkzHsPZApPZl4J3NZXQAcxAR3U/0cY5KCSRISUVAOjnX3+xS9fv9r13bD9sc5MR+V 22NZGAcuLe+bP8zL9ErrRUJt34Tkey6qTDar7uHgfPX/EZGOa2/E0ZWqxAktf91xpQyfOo47c HHw2R7e86/j9U2/XgmlpK+fdLL8c9OuVvvXNTaWtQjt3OCd8sa9rzKx+cP2y0sHKsI0rPW2C0 vfNX3Msn11CiaU4I9FQi7moOBEAC4CFpKYCAAA= X-Env-Sender: fkan@apm.com X-Msg-Ref: server-15.tower-27.messagelabs.com!1494635172!49062517!1 X-Originating-IP: [209.85.192.172] X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG X-StarScan-Received: X-StarScan-Version: 9.4.12; banners=-,-,- X-VirusChecked: Checked Received: (qmail 6249 invoked from network); 13 May 2017 00:26:13 -0000 Received: from mail-pf0-f172.google.com (HELO mail-pf0-f172.google.com) (209.85.192.172) by server-15.tower-27.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 13 May 2017 00:26:13 -0000 Received: by mail-pf0-f172.google.com with SMTP id e193so37103951pfh.0 for ; Fri, 12 May 2017 17:26:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apm.com; s=apm; h=from:to:cc:subject:date:message-id; bh=/lJrtyj1cVseMjo367mwHYB2QgV1bgatMDbCZmBz3FI=; b=B1Y8dAYvGPjcCSwZOQLAQEOMSyrlB31wrgHe38Vz2FDaQN2vLZ3mHvQwPoqzYHSms9 3zN3EueMnJA1Tw9YG241TcBrvt1vajkTXdR038F3mbTJkand1KhMSc3bYWssQJwOgmDg RkM0oB+l3Lv8dX+X3/gsKaLl4YbuBnIzLE5ew= 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; bh=/lJrtyj1cVseMjo367mwHYB2QgV1bgatMDbCZmBz3FI=; b=StRL6vOG0dz331E8Z50byvw8kSwxeaWUCD78iiQxSyxtjymObGMJZIcm2lhnMozFBY G1HYQ7lVc68zVp20OYMcONiMk/TBqo+EML4vDjkXsQ/exhyktHRwdFtjRqC1JxPj1eq5 4BkEpaJowMZrZt2RT/hsE9ioEa1Rixf7u6DxAiJRxJjw0HKsEsL7DlPiU67bEx112Me5 XUuLUgCm5Qe8hrGC5SA0YV5aAxxJEQxMNMFM89fHW6Cs8Hb3+CeXQlEiE8hZkoai6Okn IaZI2Mc8EvS1qRrJ7jjDZLHQhdJ55e+lBTLr0FOtL/CqeVIMsSZRaKU8yaL+ZdTB+xSN Nqng== X-Gm-Message-State: AODbwcDS/Q2UEuQoAPV5sMpGwhsBEd25u+I8XeD8sruS5luLB1304F9r 6S34TCyl/1gOSfEc X-Received: by 10.84.236.67 with SMTP id h3mr9163981pln.86.1494635172200; Fri, 12 May 2017 17:26:12 -0700 (PDT) Received: from goldengate.amcc.com ([206.80.4.98]) by smtp.gmail.com with ESMTPSA id x5sm8477155pfi.94.2017.05.12.17.26.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 12 May 2017 17:26:11 -0700 (PDT) From: Feng Kan To: xen-devel@lists.xenproject.org, sstabellini@kernel.org, julien.grall@arm.com Date: Fri, 12 May 2017 17:26:08 -0700 Message-Id: <1494635168-27062-1-git-send-email-fkan@apm.com> X-Mailer: git-send-email 2.7.4 Cc: Feng Kan Subject: [Xen-devel] [XEN-devel] arm64: fix incorrect pa_range_info table to support 42 bit PA systems. X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP The pa_range_info table contain incorrect root_order and t0sz which prevent 42 bit PA systems from booting dom0. Signed-off-by: Feng Kan --- xen/arch/arm/p2m.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c index 34d5776..cbb8675 100644 --- a/xen/arch/arm/p2m.c +++ b/xen/arch/arm/p2m.c @@ -1479,7 +1479,7 @@ void __init setup_virt_paging(void) [0] = { 32, 32/*32*/, 0, 1 }, [1] = { 36, 28/*28*/, 0, 1 }, [2] = { 40, 24/*24*/, 1, 1 }, - [3] = { 42, 24/*22*/, 1, 1 }, + [3] = { 42, 22/*22*/, 3, 1 }, [4] = { 44, 20/*20*/, 0, 2 }, [5] = { 48, 16/*16*/, 0, 2 }, [6] = { 0 }, /* Invalid */