From: Zoltan Kiss <zoltan.kiss@linaro.org>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
Julien Grall <julien.grall@linaro.org>
Cc: zoltan.kiss@huawei.com, Ian Campbell <ian.campbell@citrix.com>,
Tim Deegan <tim@xen.org>,
xen-devel@lists.xen.org,
Frediano Ziglio <frediano.ziglio@huawei.com>,
Stefano Stabellini <stefano.stabellini@citrix.com>
Subject: Re: [PATCH v3 4/8] xen/arm: Add support for DTBs with strange names of Hip04 GICv2
Date: Thu, 06 Nov 2014 09:46:40 +0000 [thread overview]
Message-ID: <545B4380.3050209@linaro.org> (raw)
In-Reply-To: <alpine.DEB.2.02.1411051443130.22875@kaball.uk.xensource.com>
On 05/11/14 14:52, Stefano Stabellini wrote:
> On Wed, 5 Nov 2014, Julien Grall wrote:
>> Hi Frediano,
>>
>> On 11/05/2014 09:41 AM, Frediano Ziglio wrote:
>>> This name can appear in some Linux kernel repos. Not very fortunate,
>>> but to avoid others spending an hour to spot that few characters
>>> difference it worth to work around it.
>>
>> Linux upstream is using "hisilicon,hip04-intc" to detect the hisilicon
>> interrupt controller. So it's not a workaround.
>>
>> Which kernel is using the "*,hip04-gic"?
>
> Good question, but what really matters is the string that u-boot (or any
> other firmware/bootloader) is going to use, right? So, which one is it?
We are using the DTB from the kernel source, even when loading a bare
metal kernel. I've looked around, the *gic version seems to exist only
in internal repos, as far as I can see. Including the one Frediano
started to use for porting. Therefore, I don't insist to keep both, but
as I mentioned in the commit message, it would still provide some
benefit, and given that it's just a 3 line change which just extend a
few listings, I think we should keep it.
Of course with a different commit message, which clears that this is the
official name of it.
Zoli
>
>
>
>>> Signed-off-by: Zoltan Kiss <zoltan.kiss@huawei.com>
>>> ---
>>> xen/arch/arm/gic-v2.c | 1 +
>>> xen/include/asm-arm/gic.h | 4 +++-
>>> 2 files changed, 4 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/xen/arch/arm/gic-v2.c b/xen/arch/arm/gic-v2.c
>>> index 3cb59dd..9ab30ce 100644
>>> --- a/xen/arch/arm/gic-v2.c
>>> +++ b/xen/arch/arm/gic-v2.c
>>> @@ -823,6 +823,7 @@ DT_DEVICE_END
>>> static const char * const hip04_gicv2_dt_compat[] __initconst =
>>> {
>>> DT_COMPAT_GIC_HIP04,
>>> + DT_COMPAT_GIC_HIP04_2,
>>> NULL
>>> };
>>>
>>> diff --git a/xen/include/asm-arm/gic.h b/xen/include/asm-arm/gic.h
>>> index 5adb628..3d2b3db 100644
>>> --- a/xen/include/asm-arm/gic.h
>>> +++ b/xen/include/asm-arm/gic.h
>>> @@ -156,11 +156,13 @@
>>> #define DT_COMPAT_GIC_CORTEX_A15 "arm,cortex-a15-gic"
>>> #define DT_COMPAT_GIC_CORTEX_A7 "arm,cortex-a7-gic"
>>> #define DT_COMPAT_GIC_HIP04 "hisilicon,hip04-gic"
>>> +#define DT_COMPAT_GIC_HIP04_2 "hisilicon,hip04-intc"
>>>
>>> #define DT_MATCH_GIC_V2 DT_MATCH_COMPATIBLE(DT_COMPAT_GIC_CORTEX_A15), \
>>> DT_MATCH_COMPATIBLE(DT_COMPAT_GIC_CORTEX_A7), \
>>> DT_MATCH_COMPATIBLE(DT_COMPAT_GIC_400), \
>>> - DT_MATCH_COMPATIBLE(DT_COMPAT_GIC_HIP04)
>>> + DT_MATCH_COMPATIBLE(DT_COMPAT_GIC_HIP04), \
>>> + DT_MATCH_COMPATIBLE(DT_COMPAT_GIC_HIP04_2)
>>>
>>> #define DT_COMPAT_GIC_V3 "arm,gic-v3"
>>>
>>>
>>
>>
>> --
>> Julien Grall
>>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
>
next prev parent reply other threads:[~2014-11-06 9:46 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-05 9:41 [PATCH v3] xen/arm: Add support for Huawei hip04-d01 platform Frediano Ziglio
2014-11-05 9:41 ` [PATCH v3 1/8] xen/device_tree: Add new helper to read arrays from a DTB Frediano Ziglio
2014-11-05 9:41 ` [PATCH v3 2/8] xen/arm: Implement hip04-d01 platform Frediano Ziglio
2014-11-05 9:41 ` [PATCH v3 3/8] xen/arm: Make gic-v2 code handle " Frediano Ziglio
2014-11-05 9:41 ` [PATCH v3 4/8] xen/arm: Add support for DTBs with strange names of Hip04 GICv2 Frediano Ziglio
2014-11-05 13:48 ` Julien Grall
2014-11-05 14:52 ` Stefano Stabellini
2014-11-06 9:46 ` Zoltan Kiss [this message]
2014-11-06 9:54 ` Julien Grall
2014-11-06 10:13 ` Frediano Ziglio
2014-11-07 13:36 ` Julien Grall
2014-11-07 14:34 ` Frediano Ziglio
2014-11-05 9:41 ` [PATCH v3 5/8] xen/arm: handle GICH register changes for hip04-d01 platform Frediano Ziglio
2014-11-05 9:41 ` [PATCH v3 6/8] xen/arm: Force dom0 to use normal GICv2 driver on Hip04 platform Frediano Ziglio
2014-11-05 9:41 ` [PATCH v3 7/8] xen/device_tree: Add dt_device_get_address_raw Frediano Ziglio
2014-11-05 14:18 ` Julien Grall
2014-11-05 9:41 ` [PATCH v3 8/8] xen/arm: Handle translated addresses for hardware domains Frediano Ziglio
2014-11-05 14:18 ` Julien Grall
2014-11-05 14:54 ` Zoltan Kiss
2014-11-05 14:58 ` Julien Grall
2014-11-05 15:13 ` Frediano Ziglio
2014-11-05 15:28 ` Julien Grall
2014-11-05 15:46 ` Frediano Ziglio
2014-11-05 15:51 ` Julien Grall
2014-11-05 15:52 ` Julien Grall
2014-11-05 16:02 ` Frediano Ziglio
2014-11-05 13:38 ` [PATCH v3] xen/arm: Add support for Huawei hip04-d01 platform Julien Grall
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=545B4380.3050209@linaro.org \
--to=zoltan.kiss@linaro.org \
--cc=frediano.ziglio@huawei.com \
--cc=ian.campbell@citrix.com \
--cc=julien.grall@linaro.org \
--cc=stefano.stabellini@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.org \
--cc=zoltan.kiss@huawei.com \
/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.