Re: [Xen-devel] [PATCH v6 09/31] xen/arm: ITS: Add APIs to add and assign device

2015-09-09 Thread Julien Grall
On 09/09/15 16:07, Ian Campbell wrote: >> In the ITS, discard means removing the mapping from the MSI (eventID) to >> the LPI. > > Table 6-6 in the gic arch spec (ARM IHI 0069A (ID060315)) says about the > discard ITS command "Translates the event defined by EventID and DeviceID > and instructs th

Re: [Xen-devel] [PATCH v6 09/31] xen/arm: ITS: Add APIs to add and assign device

2015-09-09 Thread Ian Campbell
On Wed, 2015-09-09 at 14:44 +0100, Julien Grall wrote: > On 09/09/15 14:28, Ian Campbell wrote: > > On Thu, 2015-09-03 at 18:34 +0100, Julien Grall wrote: > > > @@ -522,6 +535,205 @@ static void its_lpi_free(struct its_device > > > *dev) > > > > xfree(dev->event_map.lpi_map); > > > > } > > >

Re: [Xen-devel] [PATCH v6 09/31] xen/arm: ITS: Add APIs to add and assign device

2015-09-09 Thread Julien Grall
On 09/09/15 14:28, Ian Campbell wrote: > On Thu, 2015-09-03 at 18:34 +0100, Julien Grall wrote: >> @@ -522,6 +535,205 @@ static void its_lpi_free(struct its_device *dev) >>> xfree(dev->event_map.lpi_map); >>> } >>> >>> +static void its_discard_lpis(struct its_device *dev, u32 ids) >>> +{ >>

Re: [Xen-devel] [PATCH v6 09/31] xen/arm: ITS: Add APIs to add and assign device

2015-09-09 Thread Ian Campbell
On Thu, 2015-09-03 at 18:34 +0100, Julien Grall wrote: > @@ -522,6 +535,205 @@ static void its_lpi_free(struct its_device *dev) > > xfree(dev->event_map.lpi_map); > > } > > > > +static void its_discard_lpis(struct its_device *dev, u32 ids) > > +{ > > +int i; > > + > > I would have expe

Re: [Xen-devel] [PATCH v6 09/31] xen/arm: ITS: Add APIs to add and assign device

2015-09-03 Thread Julien Grall
Hi Vijay, On 31/08/15 12:06, vijay.kil...@gmail.com wrote: > From: Vijaya Kumar K > > Add APIs to add devices to RB-tree, assign and remove > devices to domain. > > Signed-off-by: Vijaya Kumar K > --- > v6: - Moved this patch #19 to patch #8 > - Used col_map to store collection id > -

[Xen-devel] [PATCH v6 09/31] xen/arm: ITS: Add APIs to add and assign device

2015-08-31 Thread vijay . kilari
From: Vijaya Kumar K Add APIs to add devices to RB-tree, assign and remove devices to domain. Signed-off-by: Vijaya Kumar K --- v6: - Moved this patch #19 to patch #8 - Used col_map to store collection id - Use helper functions to update msi_desc members v5: - Removed its_detach_device