Message ID | 1415268731-6519-7-git-send-email-frediano.ziglio@huawei.com |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCT35ZMYVEBBB74T5WRAKGQE4YVPUDI@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5FDA024237 for <linaro@patches.linaro.org>; Thu, 6 Nov 2014 10:14:24 +0000 (UTC) Received: by mail-wi0-f199.google.com with SMTP id r20sf451399wiv.2 for <linaro@patches.linaro.org>; Thu, 06 Nov 2014 02:14:23 -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=Qj4cBoKhDCJKeUHQPV7UX91FdJ3BDJPpva+Uqg7EzvRk6N8aZ8M285wvihhpu7IKWD afeqrqVrszSsgq2G0B0bDPdvqt3u9tBAFOohNzc4FGNMDrSHMf0J7eiXtIN7x3OV1be8 zpv+Yj+bjbsfdnWBH5X3Ib8OUNdLHewLwJILtHDsi5+FV0jiY3/2bSRaPv2//+DYobji Yy5o8cGLEiBV8DFyAWhUn9d1MhvDpfczlu/lX1MV7jdlpbNjWXEIusDC4f1KGecDuCrK 79mfCOrJTHqWXJuDTdcEwhKkhpkUo3IG7VukWxTzRiBGek7EHAlc/U318HBWSKjAHlXb NmuQ== X-Gm-Message-State: ALoCoQkqHznQlFI0zR0tNZV6EZUMxejW5p10rcqHjPjDiaavbN63y9wnEZ9ifXj5aO32mFguDpzy X-Received: by 10.152.6.4 with SMTP id w4mr245089law.7.1415268863685; Thu, 06 Nov 2014 02:14:23 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.25.165 with SMTP id d5ls67002lag.1.gmail; Thu, 06 Nov 2014 02:14:23 -0800 (PST) X-Received: by 10.112.144.228 with SMTP id sp4mr4009579lbb.58.1415268863475; Thu, 06 Nov 2014 02:14:23 -0800 (PST) Received: from mail-lb0-f176.google.com (mail-lb0-f176.google.com. [209.85.217.176]) by mx.google.com with ESMTPS id lv8si11000298lac.4.2014.11.06.02.14.23 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 06 Nov 2014 02:14:23 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.176 as permitted sender) client-ip=209.85.217.176; Received: by mail-lb0-f176.google.com with SMTP id 10so627393lbg.35 for <patchwork-forward@linaro.org>; Thu, 06 Nov 2014 02:14:23 -0800 (PST) X-Received: by 10.152.42.226 with SMTP id r2mr3990521lal.29.1415268863333; Thu, 06 Nov 2014 02:14:23 -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 ew9csp21651lbc; Thu, 6 Nov 2014 02:14:22 -0800 (PST) X-Received: by 10.220.174.193 with SMTP id u1mr2364953vcz.28.1415268862011; Thu, 06 Nov 2014 02:14:22 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id bd8si4616761vdd.62.2014.11.06.02.14.21 for <multiple recipients> (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 06 Nov 2014 02:14:22 -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 1XmK4O-0008Td-NG; Thu, 06 Nov 2014 10:13:36 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from <frediano.ziglio@huawei.com>) id 1XmK4L-0008SJ-QB for xen-devel@lists.xen.org; Thu, 06 Nov 2014 10:13:35 +0000 Received: from [85.158.137.68] by server-1.bemta-3.messagelabs.com id 8B/70-18267-DC94B545; Thu, 06 Nov 2014 10:13:33 +0000 X-Env-Sender: frediano.ziglio@huawei.com X-Msg-Ref: server-7.tower-31.messagelabs.com!1415268808!10802005!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 27421 invoked from network); 6 Nov 2014 10:13:32 -0000 Received: from szxga02-in.huawei.com (HELO szxga02-in.huawei.com) (119.145.14.65) by server-7.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 6 Nov 2014 10:13:32 -0000 Received: from 172.24.2.119 (EHLO szxeml460-hub.china.huawei.com) ([172.24.2.119]) by szxrg02-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id CBY67018; Thu, 06 Nov 2014 18:13:27 +0800 (CST) Received: from localhost.localdomain (10.47.67.20) by szxeml460-hub.china.huawei.com (10.82.67.203) with Microsoft SMTP Server id 14.3.158.1; Thu, 6 Nov 2014 18:13:18 +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: Thu, 6 Nov 2014 10:12:10 +0000 Message-ID: <1415268731-6519-7-git-send-email-frediano.ziglio@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1415268731-6519-1-git-send-email-frediano.ziglio@huawei.com> References: <1415268731-6519-1-git-send-email-frediano.ziglio@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.47.67.20] X-CFilter-Loop: Reflected Cc: zoltan.kiss@huawei.com, xen-devel@lists.xen.org Subject: [Xen-devel] [PATCH v3 6/7] 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.176 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(+)