From patchwork Mon Nov 3 10:11:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frediano Ziglio X-Patchwork-Id: 40004 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 C1FED20560 for ; Mon, 3 Nov 2014 10:19:15 +0000 (UTC) Received: by mail-wg0-f72.google.com with SMTP id k14sf6022943wgh.3 for ; Mon, 03 Nov 2014 02:19: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: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=ua4KYgxq05xTteQWqZ7iDU3gyPmD7NzZn/vpBBwEbeo=; b=TJLT6t6NVGxLF3JbzSScTOO3Vr9iJ55wYJWw9Dl9dJc+V94+JjN1P2IhLS9HYRGWgn qAjuFpyr+6EEwZSQMSShyEYF1+8exccPIw0kvgOVY0Jgk3VO8i9ZCtGcVTazTN/s6T1p noGlulr+WssHzcAsvb0ynsBJgkSAn9p4U0WfNo5XdlZ1PuWqycc6PLoHFJjWKaMU0HWL CinOfsFqGmGHG+BtDAWGLyv/VAJbSjKxetjmd3KxRFQqGJ6jNy0/3QHBQp78I0oQeIt6 9i02UmtfhTsbXIVW2sgKDrfveNEseGj8S31lGjUfsoaId+EBcJSBnjKE9k4PxGGo53o6 jsww== X-Gm-Message-State: ALoCoQnp9RX/yC6zelWJ3dJugcT2axoBwGNSWN7Wq2Tqd3wTo5Ijci+/1jEBJUCGr5kmpd1VBKfq X-Received: by 10.180.72.141 with SMTP id d13mr2686508wiv.6.1415009955003; Mon, 03 Nov 2014 02:19:15 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.99 with SMTP id bf3ls468318lab.24.gmail; Mon, 03 Nov 2014 02:19:14 -0800 (PST) X-Received: by 10.152.87.131 with SMTP id ay3mr11356265lab.97.1415009954691; Mon, 03 Nov 2014 02:19:14 -0800 (PST) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id lc6si31762606lbb.129.2014.11.03.02.19.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Nov 2014 02:19:14 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by mail-la0-f45.google.com with SMTP id pn19so3857022lab.18 for ; Mon, 03 Nov 2014 02:19:14 -0800 (PST) X-Received: by 10.152.6.228 with SMTP id e4mr49726851laa.71.1415009954608; Mon, 03 Nov 2014 02:19:14 -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 c5csp212894lbz; Mon, 3 Nov 2014 02:19:13 -0800 (PST) X-Received: by 10.220.128.4 with SMTP id i4mr4170538vcs.32.1415009953452; Mon, 03 Nov 2014 02:19:13 -0800 (PST) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id y15si9333261vct.59.2014.11.03.02.19.12 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 03 Nov 2014 02:19:13 -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 1XlEhr-0008Jc-Am; Mon, 03 Nov 2014 10:17:51 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XlEdP-00087B-7E for xen-devel@lists.xen.org; Mon, 03 Nov 2014 10:13:15 +0000 Received: from [85.158.139.211] by server-8.bemta-5.messagelabs.com id 2F/3C-11581-A3557545; Mon, 03 Nov 2014 10:13:14 +0000 X-Env-Sender: frediano.ziglio@huawei.com X-Msg-Ref: server-10.tower-206.messagelabs.com!1415009589!5539123!1 X-Originating-IP: [119.145.14.66] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMTE5LjE0NS4xNC42NiA9PiA4NTI3\n X-StarScan-Received: X-StarScan-Version: 6.12.4; banners=-,-,- X-VirusChecked: Checked Received: (qmail 23026 invoked from network); 3 Nov 2014 10:13:13 -0000 Received: from szxga03-in.huawei.com (HELO szxga03-in.huawei.com) (119.145.14.66) by server-10.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 3 Nov 2014 10:13:13 -0000 Received: from 172.24.2.119 (EHLO szxeml403-hub.china.huawei.com) ([172.24.2.119]) by szxrg03-dlp.huawei.com (MOS 4.4.3-GA FastPath queued) with ESMTP id AWO17437; Mon, 03 Nov 2014 18:13:08 +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:00 +0800 From: Frediano Ziglio To: Ian Campbell , Stefano Stabellini , Tim Deegan , Julien Grall , Date: Mon, 3 Nov 2014 10:11:55 +0000 Message-ID: <1415009522-6344-4-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-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020203.54575534.0235, ss=1, re=0.001, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0, ip=0.0.0.0, so=2013-05-26 15:14:31, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: 0fb581657d1b1913b36cf6db2606ed43 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 03/10] xen/arm: Define quirk for Hip04 GICv2 divergence 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.45 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: Zoltan Kiss Signed-off-by: Zoltan Kiss --- xen/arch/arm/platforms/hip04.c | 6 ++++++ xen/include/asm-arm/platform.h | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/xen/arch/arm/platforms/hip04.c b/xen/arch/arm/platforms/hip04.c index 62d2034..024c8a0 100644 --- a/xen/arch/arm/platforms/hip04.c +++ b/xen/arch/arm/platforms/hip04.c @@ -253,12 +253,18 @@ static const struct dt_device_match hip04_blacklist_dev[] __initconst = { /* sentinel */ }, }; +static uint32_t hip04_quirks(void) +{ + return PLATFORM_QUIRK_GICV2_16_CPU; +} + PLATFORM_START(hip04, "HISILICON HIP04") .compatible = hip04_dt_compat, .smp_init = hip04_smp_init, .cpu_up = hip04_cpu_up, .reset = hip04_reset, + .quirks = hip04_quirks, .blacklist_dev = hip04_blacklist_dev, PLATFORM_END diff --git a/xen/include/asm-arm/platform.h b/xen/include/asm-arm/platform.h index eefaca6..537fba5 100644 --- a/xen/include/asm-arm/platform.h +++ b/xen/include/asm-arm/platform.h @@ -60,6 +60,11 @@ struct platform_desc { */ #define PLATFORM_QUIRK_GUEST_PIRQ_NEED_EOI (1 << 1) +/* + * Quirk for platforms where GICv2 has to handle 16 CPUs + */ +#define PLATFORM_QUIRK_GICV2_16_CPU (1 << 2) + void __init platform_init(void); int __init platform_init_time(void); int __init platform_specific_mapping(struct domain *d);