Re: [Xen-devel] [PATCH v4 06/27] ARM: GICv3 ITS: introduce ITS command handling

2017-04-03 Thread Julien Grall
Hi Andre, On 04/03/2017 09:28 PM, Andre Przywara wrote: +#define BUFPTR_MASK GENMASK_ULL(19, 5) +static int its_send_command(struct host_its *hw_its, const void *its_cmd) +{ +/* Some small grace period in case the command queue is congested. */ This comment is a nice

[Xen-devel] [PATCH v4 06/27] ARM: GICv3 ITS: introduce ITS command handling

2017-04-03 Thread Andre Przywara
To be able to easily send commands to the ITS, create the respective wrapper functions, which take care of the ring buffer. The first two commands we implement provide methods to map a collection to a redistributor (aka host core) and to flush the command queue (SYNC). Start using these commands