Message ID | 1415180475-8339-7-git-send-email-frediano.ziglio@huawei.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCT35ZMYVEBBB4PC46RAKGQEFT3IDGQ@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f198.google.com (mail-wi0-f198.google.com [209.85.212.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 55FFD240A6 for <linaro@patches.linaro.org>; Wed, 5 Nov 2014 09:44:18 +0000 (UTC) Received: by mail-wi0-f198.google.com with SMTP id n3sf631504wiv.1 for <linaro@patches.linaro.org>; Wed, 05 Nov 2014 01:44:17 -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:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:list-archive:content-type:content-transfer-encoding; bh=LqApqJ6+x6mFLjGf7bPxhk54F6WSJihQfEbnm8ASer8=; b=Azvp9ViPms6w44AMfnVd+985C35Wkdqv5hRqxj3TFWsZPO6IJr/OP9vBHZwJq4vZcW CY+A5bMciDPGlGIrsx5HI09mF6Fkb+9PVHFn6P6BnZS1J+Va91IsynExZCKhYoW0qab7 IHtYcZvnhTtGocCRGcZG/N1BagDN0l570n1Iw/yPDn6qfW/3jIo8TV1ydvttx2FF9mH1 Bl6YuaknKjgNYr2f/Hve85WL1b2D7AVAwTEOr0caL94PL5SokMo5ZpP+/DROVkbFaQGI QAL4mbzrRNZ/TIJF6E7kDVyN9O7DwlbL8M0bn8UHXk0Y+889eUQloPHkX4uJ0fnKvU6s dMIw== X-Gm-Message-State: ALoCoQnKATxyD4WI1AJ8MG6hgYSvBLV263QZr8VR+hSE88ztqY1S1/WZByNbGE2VMd0OKvnVoF+U X-Received: by 10.112.169.68 with SMTP id ac4mr10967lbc.24.1415180657507; Wed, 05 Nov 2014 01:44:17 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.138 with SMTP id q10ls1006405laj.83.gmail; Wed, 05 Nov 2014 01:44:17 -0800 (PST) X-Received: by 10.112.199.227 with SMTP id jn3mr41031819lbc.86.1415180657364; Wed, 05 Nov 2014 01:44:17 -0800 (PST) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id y9si5199423lal.60.2014.11.05.01.44.17 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Nov 2014 01:44:17 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by mail-lb0-f170.google.com with SMTP id z12so316871lbi.15 for <patchwork-forward@linaro.org>; Wed, 05 Nov 2014 01:44:17 -0800 (PST) X-Received: by 10.112.130.41 with SMTP id ob9mr65063232lbb.74.1415180657271; Wed, 05 Nov 2014 01:44:17 -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.184.201 with SMTP id ew9csp256376lbc; Wed, 5 Nov 2014 01:44:16 -0800 (PST) X-Received: by 10.52.64.180 with SMTP id p20mr4250378vds.8.1415180656124; Wed, 05 Nov 2014 01:44:16 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id vt9si2762876vcb.48.2014.11.05.01.44.15 for <multiple recipients> (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 05 Nov 2014 01:44:16 -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 <xen-devel-bounces@lists.xen.org>) id 1Xlx6y-0007Z8-Eq; Wed, 05 Nov 2014 09:42:44 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from <frediano.ziglio@huawei.com>) id 1Xlx6x-0007YH-1l for xen-devel@lists.xen.org; Wed, 05 Nov 2014 09:42:43 +0000 Received: from [193.109.254.147] by server-1.bemta-14.messagelabs.com id 8A/BD-02559-211F9545; Wed, 05 Nov 2014 09:42:42 +0000 X-Env-Sender: frediano.ziglio@huawei.com X-Msg-Ref: server-7.tower-27.messagelabs.com!1415180557!12624480!1 X-Originating-IP: [119.145.14.65] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTE5LjE0NS4xNC42NSA9PiA3NzQ2Mw==\n X-StarScan-Received: X-StarScan-Version: 6.12.4; banners=-,-,- X-VirusChecked: Checked Received: (qmail 27075 invoked from network); 5 Nov 2014 09:42:41 -0000 Received: from szxga02-in.huawei.com (HELO szxga02-in.huawei.com) (119.145.14.65) by server-7.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 5 Nov 2014 09:42:41 -0000 Received: from 172.24.2.119 (EHLO szxeml450-hub.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CBW70534; Wed, 05 Nov 2014 17:42:37 +0800 (CST) Received: from localhost.localdomain (10.47.71.64) by szxeml450-hub.china.huawei.com (10.82.67.193) with Microsoft SMTP Server id 14.3.158.1; Wed, 5 Nov 2014 17:42:25 +0800 From: Frediano Ziglio <frediano.ziglio@huawei.com> To: Ian Campbell <ian.campbell@citrix.com>, Stefano Stabellini <stefano.stabellini@citrix.com>, Tim Deegan <tim@xen.org>, Julien Grall <julien.grall@linaro.org>, <frediano.ziglio@huawei.com> Date: Wed, 5 Nov 2014 09:41:13 +0000 Message-ID: <1415180475-8339-7-git-send-email-frediano.ziglio@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1415180475-8339-1-git-send-email-frediano.ziglio@huawei.com> References: <1415180475-8339-1-git-send-email-frediano.ziglio@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.47.71.64] X-CFilter-Loop: Reflected Cc: zoltan.kiss@huawei.com, xen-devel@lists.xen.org Subject: [Xen-devel] [PATCH v3 6/8] xen/arm: Force dom0 to use normal GICv2 driver on Hip04 platform X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <http://lists.xen.org/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xen.org?subject=subscribe> 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: frediano.ziglio@huawei.com 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.170 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: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
diff --git a/xen/arch/arm/gic-v2.c b/xen/arch/arm/gic-v2.c index d766438..2f6bbd5 100644 --- a/xen/arch/arm/gic-v2.c +++ b/xen/arch/arm/gic-v2.c @@ -641,6 +641,12 @@ static int gicv2_make_dt_node(const struct domain *d, return -FDT_ERR_XEN(ENOENT); } + if ( is_hip04() ) + { + compatible = DT_COMPAT_GIC_CORTEX_A15; + len = strlen((char*) compatible) + 1; + } + res = fdt_begin_node(fdt, "interrupt-controller"); if ( res ) return res;
Until vGIC support is not implemented and tested, this will prevent guest kernels to use their Hip04 driver, or crash when they don't have any. Signed-off-by: Frediano Ziglio <frediano.ziglio@huawei.com> --- xen/arch/arm/gic-v2.c | 6 ++++++ 1 file changed, 6 insertions(+)