From: Ian Campbell Subject: Re: [PATCH v2 14/15] xen/arm: Add vgic support for GIC v3 Date: Thu, 10 Apr 2014 12:26:35 +0100 Message-ID: <1397129195.9862.135.camel@kazak.uk.xensource.com> References: <1396612593-443-1-git-send-email-vijay.kilari@gmail.com> <1396612593-443-15-git-send-email-vijay.kilari@gmail.com> <1397125402.9862.102.camel@kazak.uk.xensource.com> <1397127066.9862.123.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Vijay Kilari Cc: Stefano Stabellini , Prasun Kapoor , Vijaya Kumar K , Julien Grall , xen-devel@lists.xen.org, Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Thu, 2014-04-10 at 16:49 +0530, Vijay Kilari wrote: > I mean, I don't have V2 hardware to test any trivial changes that I do to > GIC v2. In all my patches, I am not making any changes to functionality of > v2 except code movement and changing names I can test it if necessary. Do you have access to fast models or anything similar? > >> >> + case GICR_SETLPIR: > >> > I think you should either register two mmio handlers or maybe just > >> > handle this all at once in a single callback. > >> > > >> There is only one address rdistributore base and size extracted from dt. > >> So we register one handle for this entire region and this single callback will > >> take access either GICR or SGI's GICR region. > > > > Having a single region in DT doesn't stop you from doing the same > > calculation you do now in the callback at init time and registering two > > regions. > > > SGI GICR region is per cpu, there is no single address with which > we can register a callback. So we register one callback for entire > re-distributor region and if it falls in that region we consider it > re-distributor > access. Ah ok, that makes sense. Thanks. > This callback will take re-distributor stride offset and finds offset. > > Also, this reduces the additional check for sgi re-distributor region > > >> > I didn't see any system register handling, I suppose that is all handled > >> > by the hardware GICV stuff? > >> For all system register accesses in Dom's, HW treats are virtual access. > >> The memory mapped GICD & GICR registers are virtualized by VGIC > > > > I was looking for some register configuration which causes EL1 accesses > > to the system registers to go to the "GICV" equivalent, but I didn't see > > it. Can you point me to it please? > > > You mean ICC_SRE_EL2 register. GICv3 by default enables SRE bit. Excellent, thanks.