From patchwork Wed Feb 4 14:01:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Parth Dixit X-Patchwork-Id: 44347 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-we0-f198.google.com (mail-we0-f198.google.com [74.125.82.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B16152029F for ; Wed, 4 Feb 2015 14:05:16 +0000 (UTC) Received: by mail-we0-f198.google.com with SMTP id q59sf1475059wes.1 for ; Wed, 04 Feb 2015 06:05:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:list-archive; bh=N+mkVkTj0nlTpcbPwS7DPR2LvbHlelZUChwGX2ssdHc=; b=O0Psqlb154wTLzm2+gMptt/ea0xEWuyaVJSbw+mdDjFceLdpZv0cKzEb+Gd4CIRdA6 pxcDtx7DRwLNOV2imC3pgGlXxwxvq9bDfHD2ZttOIMKsypq0oSYl+mXj4k6zoOC7EzmU EpRX/oTDsEbWW1OR+4THZ5MpBMXL6i4a8KiG0AEiOBBegtTCKXh7nOh5J/icBg7MjdoC Jue8QctsrCUXmUNu2MYIGzxZ3oeLJ7zqJJir89u4ZuVPEWyVhw7BJKp6kFfvJaCglWfs wwJ6wAcoEOqrIvtvUfoQbLcmDStIUMH5vxoFgTLR3wlTmrxoVbDfXh1k3ft7bd4qgOvB ZjhA== X-Gm-Message-State: ALoCoQl1EFWbS38IakP02iqmS1vmbjYUO2Si2CCKxXin5TM6CH7Z+Px4etP2MEZ4klGc8sUo7yWJ X-Received: by 10.112.213.72 with SMTP id nq8mr3992577lbc.18.1423058715926; Wed, 04 Feb 2015 06:05:15 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.20.132 with SMTP id n4ls39043lae.6.gmail; Wed, 04 Feb 2015 06:05:15 -0800 (PST) X-Received: by 10.152.245.44 with SMTP id xl12mr30522993lac.81.1423058715684; Wed, 04 Feb 2015 06:05:15 -0800 (PST) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com. [209.85.215.48]) by mx.google.com with ESMTPS id an4si1394854lac.99.2015.02.04.06.05.15 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Feb 2015 06:05:15 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by mail-la0-f48.google.com with SMTP id pv20so1697518lab.7 for ; Wed, 04 Feb 2015 06:05:15 -0800 (PST) X-Received: by 10.112.173.202 with SMTP id bm10mr30500181lbc.24.1423058715555; Wed, 04 Feb 2015 06:05:15 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp506840lbj; Wed, 4 Feb 2015 06:05:14 -0800 (PST) X-Received: by 10.220.91.7 with SMTP id k7mr19063955vcm.79.1423058710666; Wed, 04 Feb 2015 06:05:10 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id we5si703990vdb.86.2015.02.04.06.05.09 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 04 Feb 2015 06:05:10 -0800 (PST) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YJ0Z1-00072i-RW; Wed, 04 Feb 2015 14:04:19 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YJ0Z0-00071Q-BA for xen-devel@lists.xen.org; Wed, 04 Feb 2015 14:04:18 +0000 Received: from [85.158.139.211] by server-12.bemta-5.messagelabs.com id 78/08-02810-1E622D45; Wed, 04 Feb 2015 14:04:17 +0000 X-Env-Sender: parth.dixit@linaro.org X-Msg-Ref: server-9.tower-206.messagelabs.com!1423058656!11104436!1 X-Originating-IP: [209.85.192.182] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.13.4; banners=-,-,- X-VirusChecked: Checked Received: (qmail 31674 invoked from network); 4 Feb 2015 14:04:17 -0000 Received: from mail-pd0-f182.google.com (HELO mail-pd0-f182.google.com) (209.85.192.182) by server-9.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 4 Feb 2015 14:04:17 -0000 Received: by pdbfp1 with SMTP id fp1so875396pdb.2 for ; Wed, 04 Feb 2015 06:04:15 -0800 (PST) X-Received: by 10.70.103.162 with SMTP id fx2mr5259823pdb.117.1423058655833; Wed, 04 Feb 2015 06:04:15 -0800 (PST) Received: from parthd-ubunutu.qualcomm.com ([202.46.23.62]) by mx.google.com with ESMTPSA id kg12sm2161881pbb.44.2015.02.04.06.04.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 04 Feb 2015 06:04:14 -0800 (PST) From: parth.dixit@linaro.org To: xen-devel@lists.xen.org Date: Wed, 4 Feb 2015 19:31:56 +0530 Message-Id: <1423058539-26403-13-git-send-email-parth.dixit@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423058539-26403-1-git-send-email-parth.dixit@linaro.org> References: <1423058539-26403-1-git-send-email-parth.dixit@linaro.org> Cc: ian.campbell@citrix.com, Naresh Bhat , julien.grall@linaro.org, tim@xen.org, stefano.stabellini@citrix.com, Hanjun Guo , jbeulich@suse.com, christoffer.dall@linaro.org Subject: [Xen-devel] [PATCH RFC 12/35] ARM64: Initialization of cpu_logical_map(0) X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: parth.dixit@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: From: Naresh Bhat Initialization of cpu_logical_map(0) before acpi_boot_init() Signed-off-by: Hanjun Guo Signed-off-by: Naresh Bhat --- xen/arch/arm/setup.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xen/arch/arm/setup.c b/xen/arch/arm/setup.c index 3531d47..569b2da 100644 --- a/xen/arch/arm/setup.c +++ b/xen/arch/arm/setup.c @@ -47,6 +47,7 @@ #include #include #include +#include struct bootinfo __initdata bootinfo; @@ -749,6 +750,10 @@ void __init start_xen(unsigned long boot_phys_offset, #if defined(CONFIG_ACPI) && defined(CONFIG_ARM_64) acpi_boot_table_init(); + + /* Get the boot CPU's MPIDR before cpu logical map is built */ + cpu_logical_map(0) = read_cpuid_mpidr() & MPIDR_HWID_BITMASK; + acpi_boot_init(); #endif