[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v2 15/15] xen/arm: update GIC dt node with GIC v3 information



On Fri, Apr 4, 2014 at 7:52 PM, Julien Grall <julien.grall@xxxxxxxxxx> wrote:
> Hello Vijaya,
>
> Thank you for the patch.
>
> The name of this patch is still wrong. Which GIC DT node are you updating?
>
> On 04/04/2014 12:56 PM, vijay.kilari@xxxxxxxxx wrote:
>> +    if ( hw_type == GIC_VERSION_V3 )
>> +    {
>> +        res = dt_property_read_u32(gic, "redistributor-stride", &rd_stride);
>> +        if ( !res )
>> +            rd_stride = 0;
>> +    }
>
>
> You have skipped some of my remarks on V1. I would definitely prefer to
> have a callback in your {v,}GIC structure which add the specific GIC
> properties following the version supported by DOM0.
>
Yes, I recognized your comment. My understanding is that while
creating this gic node for
dom0, we should follow the order in creating cells.
Also, the cells are allocated here and these should be passed to gic
driver to fill it.
So looks ugly.

I prefer completely move this code to gic.c and from gic.c based on
registered callback, let gic-{v2/v3}.c manage version specific dt cells update.
Is this OK?
+
> --
> Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.