From patchwork Mon Nov 3 10:11:59 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frediano Ziglio X-Patchwork-Id: 40000 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f72.google.com (mail-wg0-f72.google.com [74.125.82.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 34D0120560 for ; Mon, 3 Nov 2014 10:18:43 +0000 (UTC) Received: by mail-wg0-f72.google.com with SMTP id k14sf6039743wgh.7 for ; Mon, 03 Nov 2014 02:18:42 -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=8tHhqQ1oGRIgLTFG6BaC4LZQ+Whx1XhSLqb6AfIzvok=; b=jxFj1jBJH1ZAl7cgODCJQ7mltCcVric2aPJzdgpxP8rJg18oJv/25fj6+NHO77SgMO HILJoAbdrBEWFzOVzCcIk56yW6OKBEBlIYzbPePAG1Bh5ODaRIGOFzrXScaG710ZC5l0 2AZk4nyrbpxjedEQMTV0i7In36TsEc4Tf3hjEzS6dKeVKCOl7v046OipuypOnws73bXU OKBtEkpUJWaTlyxokRl4VTjUdXVdadGhI4Gx8VqJNZ+dqMHf1fQ0cz+dU/XeYVuZiZN4 x9HjtsxuGUEc8kfCRSBnaEfLiiXQayPZvNt0VT/kRKi6hEgtRyWRbCRx8ctDliK4QT/r BjjQ== X-Gm-Message-State: ALoCoQm3QoujBirmOgBvFKB76rf7FZuX+DgUHO08XiFZ0hv2tNrdYw3iBNk3Pgs6SWKTHF5HAHKn X-Received: by 10.180.39.66 with SMTP id n2mr2687257wik.6.1415009922425; Mon, 03 Nov 2014 02:18:42 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.228.140 with SMTP id si12ls104426lac.25.gmail; Mon, 03 Nov 2014 02:18:42 -0800 (PST) X-Received: by 10.152.21.135 with SMTP id v7mr50621054lae.65.1415009922272; Mon, 03 Nov 2014 02:18:42 -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 pa3si31759186lbb.132.2014.11.03.02.18.42 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Nov 2014 02:18:42 -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 gq15so9007989lab.7 for ; Mon, 03 Nov 2014 02:18:42 -0800 (PST) X-Received: by 10.112.218.101 with SMTP id pf5mr13450017lbc.46.1415009922105; Mon, 03 Nov 2014 02:18:42 -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.84.229 with SMTP id c5csp212831lbz; Mon, 3 Nov 2014 02:18:41 -0800 (PST) X-Received: by 10.224.88.134 with SMTP id a6mr62376124qam.28.1415009920994; Mon, 03 Nov 2014 02:18:40 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id b10si28965709qce.21.2014.11.03.02.18.40 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 03 Nov 2014 02:18:40 -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 1XlEht-0008MG-1k; Mon, 03 Nov 2014 10:17:53 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XlEdi-00089X-HS for xen-devel@lists.xen.org; Mon, 03 Nov 2014 10:13:34 +0000 Received: from [85.158.137.68] by server-6.bemta-3.messagelabs.com id A2/AC-17694-D4557545; Mon, 03 Nov 2014 10:13:33 +0000 X-Env-Sender: frediano.ziglio@huawei.com X-Msg-Ref: server-4.tower-31.messagelabs.com!1415009609!11180600!1 X-Originating-IP: [119.145.14.64] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTE5LjE0NS4xNC42NCA9PiA4MDE5MQ==\n X-StarScan-Received: X-StarScan-Version: 6.12.4; banners=-,-,- X-VirusChecked: Checked Received: (qmail 19036 invoked from network); 3 Nov 2014 10:13:33 -0000 Received: from szxga01-in.huawei.com (HELO szxga01-in.huawei.com) (119.145.14.64) by server-4.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 3 Nov 2014 10:13:33 -0000 Received: from 172.24.2.119 (EHLO szxeml403-hub.china.huawei.com) ([172.24.2.119]) by szxrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CDW38098; Mon, 03 Nov 2014 18:13:28 +0800 (CST) Received: from localhost.localdomain (10.47.73.48) by szxeml403-hub.china.huawei.com (10.82.67.35) with Microsoft SMTP Server id 14.3.158.1; Mon, 3 Nov 2014 18:13:18 +0800 From: Frediano Ziglio To: Ian Campbell , Stefano Stabellini , Tim Deegan , Julien Grall , Date: Mon, 3 Nov 2014 10:11:59 +0000 Message-ID: <1415009522-6344-8-git-send-email-frediano.ziglio@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1415009522-6344-1-git-send-email-frediano.ziglio@huawei.com> References: <1415009522-6344-1-git-send-email-frediano.ziglio@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.47.73.48] X-CFilter-Loop: Reflected X-Mailman-Approved-At: Mon, 03 Nov 2014 10:17:48 +0000 Cc: zoltan.kiss@huawei.com, xen-devel@lists.xen.org Subject: [Xen-devel] [PATCH 07/10] xen/arm: Force domains 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: List-Unsubscribe: , List-Post: , List-Help: , List-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.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: 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 --- xen/arch/arm/gic-v2.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xen/arch/arm/gic-v2.c b/xen/arch/arm/gic-v2.c index e7bf331..d92e2c0 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 ( platform_has_quirk(PLATFORM_QUIRK_GICV2_16_CPU) ) + { + compatible = DT_COMPAT_GIC_CORTEX_A15; + len = strlen((char*) compatible) + 1; + } + res = fdt_begin_node(fdt, "interrupt-controller"); if ( res ) return res;