From patchwork Fri Aug 23 07:21:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 19434 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-gh0-f200.google.com (mail-gh0-f200.google.com [209.85.160.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2EDF5248E6 for ; Fri, 23 Aug 2013 07:21:37 +0000 (UTC) Received: by mail-gh0-f200.google.com with SMTP id 10sf224459ghy.7 for ; Fri, 23 Aug 2013 00:21:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=JKBM5ZPYViRGvU+AXeboY65TyhczwiO8PQMe5t5au04=; b=oCJVNMDLRvm0tVs0J5MdOkM9zddd1gnBJZHHLEeQyIYaYKhYAYGSaVpO0IufwXXvvr ICeFW63au67zqNhee4XrTTPk1oOHdEqCed8pD9vOxS4Vg/P4aqGLShJDiedqLM3Dg0ZJ jugWVBGccnplMZDQT7AC/bD2q+Yf5WdrJj13Q7fBRs84Vz3yoQj5/diqnY5DgMTZckGB ixtaAC5SEhYcFhjOC8Ggq2OYQJW3rW8QVljbot901zyQA+5sLf3DAT1+3Hafa//Dwulk /aP9fWKkgyjpi1w9YdmtiZRM0/RPUXsWpy0+6SeEK2H/8zz94LlNA+2Dmszh8qHJqCE4 WRKA== X-Received: by 10.224.173.4 with SMTP id n4mr15991014qaz.3.1377242496754; Fri, 23 Aug 2013 00:21:36 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.35.10 with SMTP id d10ls1444558qej.19.gmail; Fri, 23 Aug 2013 00:21:36 -0700 (PDT) X-Received: by 10.52.230.131 with SMTP id sy3mr23421vdc.35.1377242496628; Fri, 23 Aug 2013 00:21:36 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id jf10si5213704vdb.24.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 Aug 2013 00:21:36 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id jz10so195489veb.26 for ; Fri, 23 Aug 2013 00:21:36 -0700 (PDT) X-Gm-Message-State: ALoCoQmZyPCNa70KSZG7dpibPXl2kGsnkEkDDZBHy28aA1VoOT8WquaCkirAa7n19zOIyqf18g10 X-Received: by 10.58.237.105 with SMTP id vb9mr15194184vec.2.1377242496527; Fri, 23 Aug 2013 00:21:36 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp77419vcz; Fri, 23 Aug 2013 00:21:35 -0700 (PDT) X-Received: by 10.66.119.136 with SMTP id ku8mr9227664pab.121.1377242495504; Fri, 23 Aug 2013 00:21:35 -0700 (PDT) Received: from mail-pd0-f171.google.com (mail-pd0-f171.google.com [209.85.192.171]) by mx.google.com with ESMTPS id dw1si11065420pbc.306.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 Aug 2013 00:21:35 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.171 is neither permitted nor denied by best guess record for domain of christoffer.dall@linaro.org) client-ip=209.85.192.171; Received: by mail-pd0-f171.google.com with SMTP id g10so339947pdj.2 for ; Fri, 23 Aug 2013 00:21:34 -0700 (PDT) X-Received: by 10.66.162.136 with SMTP id ya8mr9516191pab.110.1377242494147; Fri, 23 Aug 2013 00:21:34 -0700 (PDT) Received: from localhost.localdomain (c-67-169-183-77.hsd1.ca.comcast.net. [67.169.183.77]) by mx.google.com with ESMTPSA id oj6sm21574581pab.9.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 23 Aug 2013 00:21:33 -0700 (PDT) From: Christoffer Dall To: kvmarm@lists.cs.columbia.edu Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Christoffer Dall Subject: [RFC PATCH] ARM: KVM: vgic: Bump VGIC_NR_IRQS to 256 Date: Fri, 23 Aug 2013 00:21:30 -0700 Message-Id: <1377242490-30132-1-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 1.7.10.4 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: christoffer.dall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.181 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The Versatile Express TC2 board, which we use as our main emulated platform in QEMU, defines 160+32 == 192 interrupts, so limiting the number of interrupts to 128 is not quite going to cut it for real board emulation. Note that this didn't use to be a problem because QEMU was buggy and only defined 128 interrupts until recently. [ Sending this as an RFC, because I haven't convinced myself that this is even the right short-term fix. On a longer-term we probably need a way for QEMU to tell the kernel how many IRQs it needs for a particular implementation of a CPU and a GIC, but on a shorter term we should at least support a real A15 configuration. Note that this change increases the in-kernel memory consumption quite a bit, especially due to the irq-to-lr map, which could be reversed or turned into a hash table or list, at the sacrifice of some performance during world-switches to search the data structure. ] Signed-off-by: Christoffer Dall --- include/kvm/arm_vgic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/kvm/arm_vgic.h b/include/kvm/arm_vgic.h index 343744e..7e2d158 100644 --- a/include/kvm/arm_vgic.h +++ b/include/kvm/arm_vgic.h @@ -26,7 +26,7 @@ #include #include -#define VGIC_NR_IRQS 128 +#define VGIC_NR_IRQS 256 #define VGIC_NR_SGIS 16 #define VGIC_NR_PPIS 16 #define VGIC_NR_PRIVATE_IRQS (VGIC_NR_SGIS + VGIC_NR_PPIS)