devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Sudeep Holla <sudeep.holla-5wv7dgnIgG8@public.gmane.org>
To: Daniel Thompson
	<daniel.thompson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	Mark Rutland <mark.rutland-5wv7dgnIgG8@public.gmane.org>,
	Rob Herring <robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: Liviu Dudau <liviu.dudau-5wv7dgnIgG8@public.gmane.org>,
	Lorenzo Pieralisi
	<lorenzo.pieralisi-5wv7dgnIgG8@public.gmane.org>,
	Sudeep Holla <sudeep.holla-5wv7dgnIgG8@public.gmane.org>,
	Catalin Marinas <catalin.marinas-5wv7dgnIgG8@public.gmane.org>,
	Will Deacon <will.deacon-5wv7dgnIgG8@public.gmane.org>,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	patches-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org
Subject: Re: [PATCH v2] arm64: dts: foundation-v8: Enable PSCI mode
Date: Mon, 2 Oct 2017 18:26:04 +0100	[thread overview]
Message-ID: <e49177f9-a9a8-e322-3743-5c58277c46ea@arm.com> (raw)
In-Reply-To: <9a542b9a-3c37-ed8a-04e6-de41493f4b0d-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>

Sorry for late response, I thought I had sent this mail out long back
but was sitting in my draft :(

On 20/09/17 12:17, Daniel Thompson wrote:
> On 20/09/17 10:42, Sudeep Holla wrote:
>>
>>
>> On 19/09/17 19:32, Daniel Thompson wrote:
>>> Currently if the Foundation model is running ARM Trusted Firmware then
>>> the kernel, which is configured to use spin tables, cannot start
>>> secondary
>>> processors or "power off" the simulation.
>>>
>>> After adding a couple of labels to the include file and splitting out
>>> the
>>> spin-table configuration into a header, we add a couple of new headers
>>> together with two new DTs (GICv2+PSCI and GICv3+PSCI).
>>>
>>> The new GICv3+PSCI DT has been boot tested, the remaining three (two of
>>> which existed prior to this patch) have been "tested" by decompiling the
>>> blobs and comparing them against a reference.
>>>
>>
>> How different are these from the ones hosted in [1] ?
> 
> They look like they were either independently written or diverged a long
> time ago. The existing kernel DTs describe hardware absent from the ARM
> TF ones and vice versa.
> 

OK.

> With specific reference to PSCI it looks like my patches could perhaps
> be improved by adding idle-state support.
> 
> 

Yes I know.

>> On argument is that we want to take the DTS out of device tree as
>> firmware is responsible for generating them. Alternatively, we may be
>> duplicating resulting in discrepancies over time by coping it into
>> kernel.
> 
> The general problem is copying from where?
> 
> The kernel DTs are a well maintained centralized repository which is
> *really* useful. git grep across the kernel DTs is a hugely powerful
> tool when trying to better understand an ecosystem as sprawling and
> diverse as ARMs. In fact I've even seen those sort of searchs used as a
> basis to clean up unused code. Seeing that centralized repository
> splinter into separate per-vendor silos would be a huge loss for kernel
> developers.
> 

Agreed. But models are configurable and last time this discussion came
up, some argued that the DTs must be modified based on the configuration
automatically by models or some external scripts.
> 
>> Since users of ARM TF must be able to access these, I am not sure if it
>> makes sense to merge these. Or we remove it from ARM TF to avoid any
>> conflicts/discrepancies. >
>> Thoughts ?
> 
> I kind of agree that maintaining DTs and DT documentation in the kernel
> is a little odd given that the kernel is not the only player here
> (FreeBSD, u-boot, etc). However it is sufficiently well maintained that
> projects are content(ish) to regard the kernel as the canonical source
> for these things (u-boot, for example, seeks to shadow kernel DTs
> without modifying them).
> 

No argument there.

> However regardless of the above I'd say they should be removed from ARM
> TF. ARM TF does not use, modify, pass on or in any way consume DT... it
> has no skin in the game here. Why does it want to own a few of blobs for
> a small subset of the platforms it supports? I'm afraid that makes no
> sense to me, to the extent that it didn't even occur to me to *look* in
> the ARM TF sources to find any DTs for FVP until you pointed them out.
> 

Agreed, I can talk to TF guys if required.

> In other words, whilst people could discuss alternative ways to manage
> DTs[1], I can't see any universe where ARM TF would be a logical place
> to keep them.
> 
> [1] ... and I'd further suggest that only perhaps people who are
>     prepared to put resources into fixing it should convene such a
>     discussion.

While I agree with you, I am worried on the scalability. Models provide
tons of options(may not be foundation platform but for sure the base AEM
ones). It may so get unmanageable if we keep adding one DTS per
configuration.

If we are OK restricting the set of configurations to what you have
proposed, then it seems fine.

I will try to push this for v4.15, but I still want to hear more
opinions on the scalability part here.

-- 
Regards,
Sudeep
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2017-10-02 17:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-18 15:38 [PATCH] arm64: dts: foundation-v8: Enable PSCI mode Daniel Thompson
     [not found] ` <20170918153832.16356-1-daniel.thompson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2017-09-18 16:12   ` Mark Rutland
2017-09-19 15:59     ` Daniel Thompson
     [not found]       ` <f0710af4-d414-1f2a-7d86-dd559a50171f-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2017-09-19 16:20         ` Mark Rutland
2017-09-19 18:32 ` [PATCH v2] " Daniel Thompson
2017-09-20  9:42   ` Sudeep Holla
     [not found]     ` <da8a0cf5-3c1e-1398-b5c3-ac489ae955fa-5wv7dgnIgG8@public.gmane.org>
2017-09-20 11:17       ` Daniel Thompson
     [not found]         ` <9a542b9a-3c37-ed8a-04e6-de41493f4b0d-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2017-10-02 17:26           ` Sudeep Holla [this message]
     [not found]             ` <e49177f9-a9a8-e322-3743-5c58277c46ea-5wv7dgnIgG8@public.gmane.org>
2017-10-03  9:12               ` Daniel Thompson
2017-10-03 10:15                 ` Ard Biesheuvel
     [not found]                 ` <8c4a4114-b7f7-301e-20b8-960e6234b661-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2017-10-03 14:09                   ` Sudeep Holla

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=e49177f9-a9a8-e322-3743-5c58277c46ea@arm.com \
    --to=sudeep.holla-5wv7dgnigg8@public.gmane.org \
    --cc=catalin.marinas-5wv7dgnIgG8@public.gmane.org \
    --cc=daniel.thompson-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=liviu.dudau-5wv7dgnIgG8@public.gmane.org \
    --cc=lorenzo.pieralisi-5wv7dgnIgG8@public.gmane.org \
    --cc=mark.rutland-5wv7dgnIgG8@public.gmane.org \
    --cc=patches-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=will.deacon-5wv7dgnIgG8@public.gmane.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).