From: Ian Campbell <ian.campbell@citrix.com>
To: Julien Grall <julien.grall.oss@gmail.com>
Cc: Julien Grall <julien.grall@citrix.com>,
xen-devel@lists.xenproject.org, Chen Baozi <baozich@gmail.com>,
tim@xen.org, stefano.stabellini@citrix.com
Subject: Re: [PATCH] xen/arm: gic-v3: Implement correctly the callback send_SGI
Date: Mon, 11 May 2015 09:34:02 +0100 [thread overview]
Message-ID: <1431333242.2660.555.camel@citrix.com> (raw)
In-Reply-To: <554CEA6A.30907@gmail.com>
On Fri, 2015-05-08 at 17:55 +0100, Julien Grall wrote:
> Hi Ian,
>
> On 08/05/15 16:51, Ian Campbell wrote:
> > On Fri, 2015-05-08 at 15:34 +0100, Julien Grall wrote:
> >> On 08/05/15 15:01, Ian Campbell wrote:
> >>> I think you should just cast to uint64_t and WRITE_SYSREG64.
> >>
> >> Right, I blindly re-use the WRITE_SYSREG as it was done on the previous
> >> implementation.
> >>
> >> Although, the gic-v3 code seems to always use {READ,WRITE}_SYSREG. This
> >> seems wrong too. I will send a patch for replace the calls by the the
> >> 64-bit version.
> >
> > Thanks (although do make sure each register really is 64-bit...)
>
> I looked more closely to the call of READ_SYSREG/WRITE_SYSREG in the
> GICv3 code. They are use for:
> - ICH_LR<n>: 64-bit on aarch64 and 32-bit on aarch32. Although, for
> completion we would have to read ICH_LRC<n> for aarch32.
> - ICC_SGIR1_EL1: 64-bit on both aarch64 and aarch32.
>
> So the former is valid although it won't work correctly if someone
> decide to use GICv3 on AArch32.
Right, you would need a #define in cpregs.h for the arm32 case.
> Although, I expect seen more issue than
> this one. So I will ignore it.
>
> I will take care of the later in the new version of this patch.
Thanks,
Ian.
next prev parent reply other threads:[~2015-05-11 8:34 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-27 18:31 [PATCH] xen/arm: gic-v3: Implement correctly the callback send_SGI Julien Grall
2015-04-28 10:00 ` Stefano Stabellini
2015-04-28 10:31 ` Julien Grall
2015-05-08 14:02 ` Ian Campbell
2015-05-08 14:27 ` Julien Grall
2015-05-08 15:51 ` Ian Campbell
2015-05-08 14:01 ` Ian Campbell
2015-05-08 14:34 ` Julien Grall
2015-05-08 15:51 ` Ian Campbell
2015-05-08 16:55 ` Julien Grall
2015-05-11 8:34 ` Ian Campbell [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-05-08 17:01 Julien Grall
2015-05-09 13:13 ` Chen Baozi
2015-05-21 14:50 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1431333242.2660.555.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=baozich@gmail.com \
--cc=julien.grall.oss@gmail.com \
--cc=julien.grall@citrix.com \
--cc=stefano.stabellini@citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.