From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH v5 05/22] xen/arm: ITS: Port ITS driver to Xen Date: Fri, 31 Jul 2015 12:10:40 +0100 Message-ID: <55BB57B0.30605@citrix.com> References: <1437995524-19772-1-git-send-email-vijay.kilari@gmail.com> <1437995524-19772-6-git-send-email-vijay.kilari@gmail.com> <55B7B1E4.1070207@citrix.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: Ian Campbell , Stefano Stabellini , Prasun Kapoor , manish.jaggi@caviumnetworks.com, Tim Deegan , "xen-devel@lists.xen.org" , Stefano Stabellini , Vijaya Kumar K List-Id: xen-devel@lists.xenproject.org On 31/07/15 11:28, Vijay Kilari wrote: > On Tue, Jul 28, 2015 at 10:16 PM, Julien Grall wrote: >> Hi Vijay, >> >> On 27/07/15 12:11, vijay.kilari@gmail.com wrote: >>> From: Vijaya Kumar K >>> >>> The linux driver is based on 4.1 with below commit id >>> >>> 3ad2a5f57656a14d964b673a5a0e4ab0e583c870 >> >> This doesn't include commit 591e5bec13f15feb13fc445b6c9c59954711c4ac >> "irqchip/gicv3-its: Fix mapping of LPIs to collections". >> >> On the version 4 of this series, Ian [1] said that it would be very nice >> to have a similar approach in Xen. I would like to see it too. > > By storing col_id in msi_desc as below, I am already taking care of > the above commit > in this series > > struct msi_desc { > #ifdef HAS_GICV3 > unsigned int eventID; > struct its_device *dev; > u16 col_id; > #endif > }; Which requires the caller of the ITS command to explicitly pass the collection ID... It complicates the caller for nothing and requires you to have explicitely irqdesc helpers. Anyway, I don't see any reason to differ from Linux and AFAICT Ian was also in favor of using the same approach as Linux (i.e the one in the commit "irqchip/gicv3-its: Fix mapping of LPIs to collections"). Regards, -- Julien Grall