From patchwork Wed Jan 14 18:00:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 43127 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C3F4820D60 for ; Wed, 14 Jan 2015 18:03:14 +0000 (UTC) Received: by mail-wi0-f197.google.com with SMTP id l15sf5896641wiw.0 for ; Wed, 14 Jan 2015 10:03:14 -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: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=H7LSSsSWxGJG4Aud6C3S1vGhqn0wEpJOr3YXFBNZmVA=; b=mJImgkjPChePgeB3fil5btHvek1+3Hw08FkitO+4djlW/WpWjLFwzCYwBbpv+/5hB2 ainxo85QWUUkhPZpun8JoxcbK8/WBdfDT4VbOQS0x/7lPxiCtkK8J74yCXCPYQTvF3vg B0rlik/X6ZnFKAvPYsXsHFcf8PIGBhrL3MOGsKgibtffKmnDwK1W61ZkgBFYec4EDLfk m/poaMXqldLcW7MRqEeqN3W0+Hs11kX0E+BeRhYzHYd/nQNBWv6f8L5I7n7tk1DHDJFt 3MEGg/MRShPfpanPQN//SLprSo4j9j09RQ7qUOxj/0FKWgVeRnanOvTgKePhOyFnAbB6 zh7A== X-Gm-Message-State: ALoCoQkpFiJeeQ/NuYvowAlCYPo/6syn6nAYShU576NKQZ7uf53OVm0cljhCErDJ1yJvCV6ZNb9h X-Received: by 10.194.92.34 with SMTP id cj2mr9697wjb.5.1421258594084; Wed, 14 Jan 2015 10:03:14 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.4.8 with SMTP id ca8ls158555lad.0.gmail; Wed, 14 Jan 2015 10:03:13 -0800 (PST) X-Received: by 10.152.7.229 with SMTP id m5mr5445795laa.80.1421258593905; Wed, 14 Jan 2015 10:03:13 -0800 (PST) Received: from mail-lb0-f180.google.com (mail-lb0-f180.google.com. [209.85.217.180]) by mx.google.com with ESMTPS id lu3si6660680lac.6.2015.01.14.10.03.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Jan 2015 10:03:13 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.180 as permitted sender) client-ip=209.85.217.180; Received: by mail-lb0-f180.google.com with SMTP id l4so9264866lbv.11 for ; Wed, 14 Jan 2015 10:03:13 -0800 (PST) X-Received: by 10.152.18.135 with SMTP id w7mr5187613lad.47.1421258593820; Wed, 14 Jan 2015 10:03:13 -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.9.200 with SMTP id c8csp1778000lbb; Wed, 14 Jan 2015 10:03:12 -0800 (PST) X-Received: by 10.52.247.162 with SMTP id yf2mr2966637vdc.43.1421258592072; Wed, 14 Jan 2015 10:03:12 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id gx6si2549251vdb.93.2015.01.14.10.03.11 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 14 Jan 2015 10:03:12 -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 1YBSFp-0001S9-Fq; Wed, 14 Jan 2015 18:01:17 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YBSFo-0001S4-6R for xen-devel@lists.xenproject.org; Wed, 14 Jan 2015 18:01:16 +0000 Received: from [85.158.139.211] by server-14.bemta-5.messagelabs.com id A5/3A-19763-BEEA6B45; Wed, 14 Jan 2015 18:01:15 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-5.tower-206.messagelabs.com!1421258475!18052852!1 X-Originating-IP: [209.85.212.174] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.12.5; banners=-,-,- X-VirusChecked: Checked Received: (qmail 18587 invoked from network); 14 Jan 2015 18:01:15 -0000 Received: from mail-wi0-f174.google.com (HELO mail-wi0-f174.google.com) (209.85.212.174) by server-5.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 14 Jan 2015 18:01:15 -0000 Received: by mail-wi0-f174.google.com with SMTP id h11so30011507wiw.1 for ; Wed, 14 Jan 2015 10:01:14 -0800 (PST) X-Received: by 10.180.228.37 with SMTP id sf5mr10962889wic.35.1421258473752; Wed, 14 Jan 2015 10:01:13 -0800 (PST) Received: from chilopoda.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id fm10sm4317708wib.7.2015.01.14.10.01.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 14 Jan 2015 10:01:12 -0800 (PST) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Wed, 14 Jan 2015 18:00:43 +0000 Message-Id: <1421258443-15333-1-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 2.1.4 Cc: stefano.stabellini@citrix.com, Julien Grall , tim@xen.org, ian.campbell@citrix.com Subject: [Xen-devel] [PATCH v2] xen/arm: Blacklist the memory mapped timer (armv7-timer-mem) 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: julien.grall@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.217.180 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: Some platform (such as the VFP Base AEMv8 model) has a memory mapped timer. We don't want DOM0 use this timer rather than the generic ARM timer. So blacklist it for all platforms. Signed-off-by: Julien Grall --- This patch is candidate to backport for Xen 4.5 and Xen 4.4. It may not apply correctly for Xen 4.4. Changes in v2: - Add a comment in the code to explain why we need to blacklist memory mapped timer --- xen/arch/arm/domain_build.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index bf8dc78..d5959b5 100644 --- a/xen/arch/arm/domain_build.c +++ b/xen/arch/arm/domain_build.c @@ -1047,6 +1047,8 @@ static int handle_node(struct domain *d, struct kernel_info *kinfo, DT_MATCH_COMPATIBLE("arm,psci"), DT_MATCH_PATH("/cpus"), DT_MATCH_TYPE("memory"), + /* The memory mapped timer is not supported by Xen. */ + DT_MATCH_COMPATIBLE("arm,armv7-timer-mem"), { /* sentinel */ }, }; static const struct dt_device_match gic_matches[] __initconst =