All of lore.kernel.org
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Aaron Kling <webgeek1234@gmail.com>,
	Thierry Reding <thierry.reding@gmail.com>
Cc: Jonathan Hunter <jonathanh@nvidia.com>,
	Rob Herring <robh@kernel.org>, Conor Dooley <conor+dt@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org,
	devicetree@vger.kernel.org
Subject: Re: [PATCH v2 0/4] memory: tegra210-emc: Support Device Tree EMC Tables
Date: Thu, 8 May 2025 13:47:10 +0200	[thread overview]
Message-ID: <eba00bd5-fa1a-4cad-bb41-b395011235e1@kernel.org> (raw)
In-Reply-To: <CALHNRZ-q7W9CfeD4ipmwFVqHm7oGfTgJpwNoVhfbSXFPDxF91Q@mail.gmail.com>

On 08/05/2025 13:37, Aaron Kling wrote:
> On Thu, May 8, 2025 at 2:41 AM Thierry Reding <thierry.reding@gmail.com> wrote:
>>
>> On Thu, May 08, 2025 at 01:07:37AM -0500, Aaron Kling via B4 Relay wrote:
>>> Signed-off-by: Aaron Kling <webgeek1234@gmail.com>
>>> ---
>>> Changes in v2:
>>> - Add patch to describe the emc table bindings
>>> - Add patch to allow a fallback compatible on the tegra210 emc device to
>>>   match firmware expectations
>>> - Add a patch to include the baseline emc tables on p2180
>>> - Link to v1: https://lore.kernel.org/r/20250430-tegra210-emc-dt-v1-1-99896fa69341@gmail.com
>>>
>>> ---
>>> Aaron Kling (4):
>>>       dt-bindings: memory-controllers: Describe Tegra210 EMC Tables
>>>       dt-bindings: memory-controllers: tegra210: Allow fallback compatible
>>>       arm64: tegra: Add EMC timings to P2180
>>>       memory: tegra210-emc: Support Device Tree EMC Tables
>>>
>>>  .../nvidia,tegra21-emc-table.yaml                  |  1692 +
>>>  .../memory-controllers/nvidia,tegra210-emc.yaml    |    44 +-
>>>  arch/arm64/boot/dts/nvidia/tegra210-p2180-emc.dtsi | 49749 +++++++++++++++++++
>>>  arch/arm64/boot/dts/nvidia/tegra210-p2180.dtsi     |     1 +
>>>  drivers/memory/tegra/tegra210-emc-core.c           |   246 +-
>>>  5 files changed, 51721 insertions(+), 11 deletions(-)
>>
>> We've had discussions about this in the past, and I don't think this is
>> going to go anywhere. Device tree maintainers have repeatedly said that
>> they won't accept this kind of binding, which is, admittedly, a bit non-
>> sensical. 50,000 lines of DT for EMC tables is just crazy.
>>
>> The existing binary table bindings were created to avoid the need for
>> this. I don't know how easy this is to achieve for all bootloaders, but
>> the expectation was that these tables should be passed in their native
>> format.
> 
> Mmm, this would definitely be an issue with my long term end goal of
> supporting the SHIELD t210 devices on mainline. The bootloader on
> those devices cannot be replaced due to secure boot and that variant
> of the bootloader only supports this dt table for emc. And support
> without emc reclocking would be rather unusable as a consumer media
> device. Unless the devices could get a bootloader update switching to
> the reserved memory tables before they go eol, but I don't see that as
> likely.
> 
> So I guess the question goes to Krzysztof. I didn't have the bindings

What is the question exactly?

> or a copy of the tables in v1 of this series, mostly due to a
> misunderstanding, and was fairly asked to add them. That's this
> revision. Would you consider accepting this after any fixes? Or is
> this concept entirely dead in the water?


The binding here is far away from what is in general acceptable DTS
style, so in general this won't be easy to upstream. If we allow any
crap to be sent post factum, what is the benefit for companies to
actually took to community BEFORE they ship products? None, because that
crap will be always sent after release with explanation "we cannot
change now". Old platforms with Android bootloaders are in general
encouraged to move to something decent, like U-boot.

50 kB DTS is another point - I don't even understand why do you need it
if you claim this is coming from bootloader.


Best regards,
Krzysztof

  reply	other threads:[~2025-05-08 11:47 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-08  6:07 [PATCH v2 0/4] memory: tegra210-emc: Support Device Tree EMC Tables Aaron Kling
2025-05-08  6:07 ` Aaron Kling via B4 Relay
2025-05-08  6:07 ` [PATCH v2 1/4] dt-bindings: memory-controllers: Describe Tegra210 " Aaron Kling
2025-05-08  6:07   ` Aaron Kling via B4 Relay
2025-05-08  7:09   ` Rob Herring (Arm)
2025-05-09 13:42   ` Rob Herring
2025-05-09 17:07     ` Aaron Kling
2025-05-08  6:07 ` [PATCH v2 2/4] dt-bindings: memory-controllers: tegra210: Allow fallback compatible Aaron Kling
2025-05-08  6:07   ` Aaron Kling via B4 Relay
2025-05-08  7:09   ` Rob Herring (Arm)
2025-05-08  6:07 ` [PATCH v2 3/4] arm64: tegra: Add EMC timings to P2180 Aaron Kling
2025-05-08  6:07   ` Aaron Kling via B4 Relay
2025-05-08  6:07 ` [PATCH v2 4/4] memory: tegra210-emc: Support Device Tree EMC Tables Aaron Kling
2025-05-08  6:07   ` Aaron Kling via B4 Relay
2025-05-08  7:41 ` [PATCH v2 0/4] " Thierry Reding
2025-05-08 11:37   ` Aaron Kling
2025-05-08 11:47     ` Krzysztof Kozlowski [this message]
2025-05-08 12:27       ` Aaron Kling
2025-05-08 12:48         ` Thierry Reding
2025-05-28 17:41           ` Aaron Kling
2025-06-30 19:26             ` Aaron Kling
2025-07-03 10:37               ` Thierry Reding
2025-07-03 17:11                 ` Aaron Kling
2025-05-09 14:17 ` Rob Herring (Arm)

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=eba00bd5-fa1a-4cad-bb41-b395011235e1@kernel.org \
    --to=krzk@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jonathanh@nvidia.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-tegra@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=thierry.reding@gmail.com \
    --cc=webgeek1234@gmail.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.