All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien.grall@linaro.org>
To: Vijay Kilari <vijay.kilari@gmail.com>
Cc: Ian Campbell <Ian.Campbell@citrix.com>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	Prasun Kapoor <Prasun.Kapoor@caviumnetworks.com>,
	Vijaya Kumar K <vijaya.kumar@caviumnetworks.com>,
	Tim Deegan <tim@xen.org>,
	"xen-devel@lists.xen.org" <xen-devel@lists.xen.org>,
	Stefano Stabellini <stefano.stabellini@citrix.com>,
	manish.jaggi@caviumnetworks.com
Subject: Re: [PATCH] xen/arm: Implement dynamic allocation of irq descriptors
Date: Mon, 23 Feb 2015 16:50:49 +0000	[thread overview]
Message-ID: <54EB5A69.6020000@linaro.org> (raw)
In-Reply-To: <CALicx6tYV8A_6dh5Q2r9vmLrJPOg+sD0X1AYcO9+nboBofGu0w@mail.gmail.com>

On 23/02/15 16:40, Vijay Kilari wrote:
> Hi Julien,
> 
> On Mon, Feb 23, 2015 at 9:55 PM, Julien Grall <julien.grall@linaro.org> wrote:
>> On 23/02/15 16:09, Vijay Kilari wrote:
>>> On Mon, Feb 23, 2015 at 9:10 PM, Julien Grall <julien.grall@linaro.org> wrote:
>>>> Hello Vijay,
>>>>
>>>> On 23/02/15 13:04, Vijay Kilari wrote:
>>>>> On Thu, Feb 19, 2015 at 7:33 PM, Julien Grall <julien.grall@linaro.org> wrote:
>>>>>> On 19/02/15 07:17, vijay.kilari@gmail.com wrote:
>>>>>>> From: Vijaya Kumar K <Vijaya.Kumar@caviumnetworks.com>
>>>>>>>
>>>>>>> For arm memory for 1024 irq descriptors are allocated
>>>>>>> statically irrespective of number of interrupt supported
>>>>>>> by the platform.
>>>>>>>
>>>>>>> With this patch, irq descriptors are allocated at run time
>>>>>>> and managed using red-black tree. Functions to insert, search
>>>>>>> and delete irq descriptor are implemented in xen/common/irq.c.
>>>>>>
>>>>>> I think we may want to allocate SPIs/SGIs/PPIs at boot time. This number
>>>>>> will never change. We can avoid to always to allocate 1024 IRQs by using
>>>>>> the number provided by the GIC.
>>>>>
>>>>> The irq descriptor is allocated when platform_get_irq() is called or
>>>>> route_irq_to_guest()
>>>>> only. So we are not allocating based on GIC.
>>>>
>>>> You didn't understand what I said... I was suggesting to allocate SPIs
>>>> at boot time. Using an array for them allow us to access to IRQ desc in
>>>> constant time. This may help interrupt latency.
>>>
>>> Yes, I have thought about it. May be we can choose this approach for SPIs
>>> but for LPI's, the GIC can support upto ~32K. So in this case it won't make
>>> sense for LPI's
>>
>> Again... I never said it was a bad idea for LPIs. I was only point out
>> that it may not be worth for SPIs.
>>
>> [..]
>>
>>>> I think we should consider to create a separate structure for LPI's.
>>>
>>> Yes, I have created separate structure for LPI's for ITS driver.
>>>  But as I said LPI's are to many, so cannot allocate at domain creation.
>>
>> Ditto. The new structure can be a radix tree. I never suggested to use
>> an array.
> 
> Thanks for your suggestions. Are u refering to Radix or rb tree?

Radix is better to store sparse array. I haven't really think which tree
structure is better for this use case.

Regards,

-- 
Julien Grall

      reply	other threads:[~2015-02-23 16:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-19  7:17 [PATCH] xen/arm: Implement dynamic allocation of irq descriptors vijay.kilari
2015-02-19 14:03 ` Julien Grall
2015-02-23 13:04   ` Vijay Kilari
2015-02-23 15:40     ` Julien Grall
2015-02-23 16:09       ` Vijay Kilari
2015-02-23 16:25         ` Julien Grall
2015-02-23 16:40           ` Vijay Kilari
2015-02-23 16:50             ` Julien Grall [this message]

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=54EB5A69.6020000@linaro.org \
    --to=julien.grall@linaro.org \
    --cc=Ian.Campbell@citrix.com \
    --cc=Prasun.Kapoor@caviumnetworks.com \
    --cc=manish.jaggi@caviumnetworks.com \
    --cc=stefano.stabellini@citrix.com \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=tim@xen.org \
    --cc=vijay.kilari@gmail.com \
    --cc=vijaya.kumar@caviumnetworks.com \
    --cc=xen-devel@lists.xen.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.