devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: Daniel Thompson <daniel.thompson@linaro.org>
Cc: Mark Rutland <mark.rutland@arm.com>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>,
	Patch Tracking <patches@linaro.org>,
	Catalin Marinas <catalin.marinas@arm.com>,
	Liviu Dudau <liviu.dudau@arm.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Will Deacon <will.deacon@arm.com>,
	Rob Herring <robh+dt@kernel.org>,
	Sudeep Holla <sudeep.holla@arm.com>,
	"linux-arm-kernel@lists.infradead.org"
	<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH v2] arm64: dts: foundation-v8: Enable PSCI mode
Date: Tue, 3 Oct 2017 11:15:35 +0100	[thread overview]
Message-ID: <CAKv+Gu9dN8173b5cqBAw2kMNQvmf+qTO8Z=sJQveJQ_DgTOuDg@mail.gmail.com> (raw)
In-Reply-To: <8c4a4114-b7f7-301e-20b8-960e6234b661@linaro.org>

On 3 October 2017 at 10:12, Daniel Thompson <daniel.thompson@linaro.org> wrote:
> On 02/10/17 18:26, Sudeep Holla wrote:
>>
>> Sorry for late response, I thought I had sent this mail out long back
>> but was sitting in my draft :(
>
>
> No worries. I've been at Linaro connect this last week anyway.
>
>
>> 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.
>
>
> You want a v3 with it added?
>
>
>>>> 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.
>
>
> Indeed. I can definitely understand why the *models* might want
> to be bundled with DTs (or a DT generator, or a
> --just-give-me-a-working-dt-for-my-command-line-options-option).
>
>

The UEFI firmware for the FVP models does implement automatic
selection between a variety of builtin DTBs. I.e., FVP base or
foundation model, with either GICv2 for GICv3. I think the maintainer
of the binary releases chose not to enable this in the builds he
distributes, but it is certainly unnecessary to fiddle with DT images
if you build the firmware yourself (but you need to set DTB_DIR when
building)

  reply	other threads:[~2017-10-03 10:15 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
     [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 [this message]
     [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='CAKv+Gu9dN8173b5cqBAw2kMNQvmf+qTO8Z=sJQveJQ_DgTOuDg@mail.gmail.com' \
    --to=ard.biesheuvel@linaro.org \
    --cc=catalin.marinas@arm.com \
    --cc=daniel.thompson@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=liviu.dudau@arm.com \
    --cc=lorenzo.pieralisi@arm.com \
    --cc=mark.rutland@arm.com \
    --cc=patches@linaro.org \
    --cc=robh+dt@kernel.org \
    --cc=sudeep.holla@arm.com \
    --cc=will.deacon@arm.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 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).