From patchwork Wed Apr 15 16:02:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Bellows X-Patchwork-Id: 47218 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 022F42121F for ; Wed, 15 Apr 2015 16:06:43 +0000 (UTC) Received: by layy10 with SMTP id y10sf11208334lay.0 for ; Wed, 15 Apr 2015 09:06:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=wYeYzbd/wtJWKdP8AtFtWbnYC/UjLG595jXKjk1LmDo=; b=fE+BZ31CgrQRcCNn65axBdy2YvMmiKKwY26UqCY7wSp28n1rU32ZTK8ii2hGVEdBIU aok0CSZjRHfZe4UXcv56Ri1Z5jrH+pVoyoNf1i/tbhw5p+zVQkydM0gvaYtTFAUttUFp KzPIpXpTG5fGKNBp7vALTSFOTG8pk5L7mRFTTBo6OKGiqkEzuMsjp48xXjpdmTbr3BHN ufMjHHlh/wUFPj6MYbcw2ZrPnphzuolOUdH6ws1jFX7Dx4M6NW28AJ9TZABpBcj4JV1v AOXtuUKJPVv1PrN+zlH/JXxJmlP+Z2CYqGLW0QRAIP4yjVOYPqp8jRGJdKBrooYoUWp0 W69w== X-Gm-Message-State: ALoCoQnCZ7D/Wns475JZ1HKx7pymQN326iRT2mB9eaMxO+4A/qUdqaBwxflJB2ZrHrP6MeFrRwUe X-Received: by 10.112.138.2 with SMTP id qm2mr3729691lbb.19.1429114001580; Wed, 15 Apr 2015 09:06:41 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.197 with SMTP id o5ls206672laf.66.gmail; Wed, 15 Apr 2015 09:06:41 -0700 (PDT) X-Received: by 10.152.26.130 with SMTP id l2mr24644340lag.20.1429114001272; Wed, 15 Apr 2015 09:06:41 -0700 (PDT) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id oc2si4249387lbb.1.2015.04.15.09.06.41 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Apr 2015 09:06:41 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by lagv1 with SMTP id v1so36402652lag.3 for ; Wed, 15 Apr 2015 09:06:41 -0700 (PDT) X-Received: by 10.112.16.196 with SMTP id i4mr24171126lbd.72.1429114001189; Wed, 15 Apr 2015 09:06:41 -0700 (PDT) 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.67.65 with SMTP id l1csp2607716lbt; Wed, 15 Apr 2015 09:06:40 -0700 (PDT) X-Received: by 10.140.89.37 with SMTP id u34mr25107768qgd.15.1429113999922; Wed, 15 Apr 2015 09:06:39 -0700 (PDT) Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id o16si5078444qko.28.2015.04.15.09.06.39 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 15 Apr 2015 09:06:39 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Received: from localhost ([::1]:32968 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiPpm-0006sO-7f for patch@linaro.org; Wed, 15 Apr 2015 12:06:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52231) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiPmW-0002Uq-T7 for qemu-devel@nongnu.org; Wed, 15 Apr 2015 12:03:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YiPmR-0001xb-SM for qemu-devel@nongnu.org; Wed, 15 Apr 2015 12:03:16 -0400 Received: from mail-oi0-f42.google.com ([209.85.218.42]:33151) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiPmR-0001xF-OA for qemu-devel@nongnu.org; Wed, 15 Apr 2015 12:03:11 -0400 Received: by oica37 with SMTP id a37so26929527oic.0 for ; Wed, 15 Apr 2015 09:03:11 -0700 (PDT) X-Received: by 10.202.76.66 with SMTP id z63mr14042685oia.15.1429113752748; Wed, 15 Apr 2015 09:02:32 -0700 (PDT) Received: from gbellows-linaro.gateway.pace.com (99-179-1-214.lightspeed.austtx.sbcglobal.net. [99.179.1.214]) by mx.google.com with ESMTPSA id x142sm2567707oie.19.2015.04.15.09.02.31 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 15 Apr 2015 09:02:31 -0700 (PDT) From: Greg Bellows To: qemu-devel@nongnu.org, peter.maydell@linaro.org Date: Wed, 15 Apr 2015 11:02:07 -0500 Message-Id: <1429113742-8371-2-git-send-email-greg.bellows@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1429113742-8371-1-git-send-email-greg.bellows@linaro.org> References: <1429113742-8371-1-git-send-email-greg.bellows@linaro.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.218.42 Cc: Fabian Aggeler , Greg Bellows Subject: [Qemu-devel] [PATCH v3 01/16] hw/intc/arm_gic: Request FIQ sources X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: greg.bellows@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.215.43 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 From: Fabian Aggeler Preparing for FIQ lines from GIC to CPUs, which is needed for GIC Security Extensions. Signed-off-by: Fabian Aggeler Signed-off-by: Greg Bellows --- hw/intc/arm_gic.c | 3 +++ include/hw/intc/arm_gic_common.h | 1 + 2 files changed, 4 insertions(+) diff --git a/hw/intc/arm_gic.c b/hw/intc/arm_gic.c index a04c822..e9fb8b9 100644 --- a/hw/intc/arm_gic.c +++ b/hw/intc/arm_gic.c @@ -790,6 +790,9 @@ void gic_init_irqs_and_distributor(GICState *s) for (i = 0; i < NUM_CPU(s); i++) { sysbus_init_irq(sbd, &s->parent_irq[i]); } + for (i = 0; i < NUM_CPU(s); i++) { + sysbus_init_irq(sbd, &s->parent_fiq[i]); + } memory_region_init_io(&s->iomem, OBJECT(s), &gic_dist_ops, s, "gic_dist", 0x1000); } diff --git a/include/hw/intc/arm_gic_common.h b/include/hw/intc/arm_gic_common.h index f6887ed..01c6f24 100644 --- a/include/hw/intc/arm_gic_common.h +++ b/include/hw/intc/arm_gic_common.h @@ -50,6 +50,7 @@ typedef struct GICState { /*< public >*/ qemu_irq parent_irq[GIC_NCPU]; + qemu_irq parent_fiq[GIC_NCPU]; bool enabled; bool cpu_enabled[GIC_NCPU];