<feed xmlns='http://www.w3.org/2005/Atom'>
<title>u-boot.git/drivers/ddr, branch v2024.10</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/u-boot.git/atom/drivers/ddr?h=v2024.10</id>
<link rel='self' href='http://cgit.235523.xyz/u-boot.git/atom/drivers/ddr?h=v2024.10'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/'/>
<updated>2024-07-22T16:53:05Z</updated>
<entry>
<title>drivers: ddr: Remove duplicate newlines</title>
<updated>2024-07-22T16:53:05Z</updated>
<author>
<name>Marek Vasut</name>
<email>marek.vasut+renesas@mailbox.org</email>
</author>
<published>2024-07-20T12:40:33Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=1528a7e56252b416b9171c41c4e0ea5b2bdcd8f1'/>
<id>urn:sha1:1528a7e56252b416b9171c41c4e0ea5b2bdcd8f1</id>
<content type='text'>
Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut &lt;marek.vasut+renesas@mailbox.org&gt;
</content>
</entry>
<entry>
<title>arm: mvebu: a38x: Add optional support for using old DDR3 training code</title>
<updated>2024-07-08T06:20:58Z</updated>
<author>
<name>Marek Behún</name>
<email>kabel@kernel.org</email>
</author>
<published>2024-06-18T15:34:38Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=aff4ea11d18d71fd5c87b5503e99284cc2927502'/>
<id>urn:sha1:aff4ea11d18d71fd5c87b5503e99284cc2927502</id>
<content type='text'>
Add optional support for using old DDR3 training code from 2017.

The code lives in drivers/ddr/marvell/a38x/old/. To prevent symbol
clashing with new DDR3 training code, a special header which renames all
clashing symbols via macros is included and the symbols are prefixed
with 'old_'.

If old DDR3 training support is selected for a board, then the SPL
initialization code calls a new function
  board_use_old_ddr3_training()
to check whether it should use old DDR3 training code. The default
weak implementation returns false, defaulting to new DDR3 training code.

Boards that wish to support this need to select the
  ARMADA_38X_SUPPORT_OLD_DDR3_TRAINING
config option and implement the old version of DDR topology provider,
ddr3_get_topology_map().

Signed-off-by: Marek Behún &lt;kabel@kernel.org&gt;
</content>
</entry>
<entry>
<title>ddr: marvell: a38x: old: Backport immutable debug settings</title>
<updated>2024-07-08T06:20:58Z</updated>
<author>
<name>Marek Behún</name>
<email>kabel@kernel.org</email>
</author>
<published>2024-06-18T15:34:37Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=667ffbfa907b45b1796bb408e77c5df56a1c1891'/>
<id>urn:sha1:667ffbfa907b45b1796bb408e77c5df56a1c1891</id>
<content type='text'>
Backport the option to compile with immutable debug settings also to
the old implementation of the DDR3 training code.

The original PR for mv-ddr-marvell can be seen at
  https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell/pull/45/

Signed-off-by: Marek Behún &lt;kabel@kernel.org&gt;
</content>
</entry>
<entry>
<title>ddr: marvell: a38x: old: Fix some compiler warning of the old code</title>
<updated>2024-07-08T06:20:58Z</updated>
<author>
<name>Marek Behún</name>
<email>kabel@kernel.org</email>
</author>
<published>2024-06-18T15:34:36Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=af6c737807ac99aed804bb93a8f15e50fc321106'/>
<id>urn:sha1:af6c737807ac99aed804bb93a8f15e50fc321106</id>
<content type='text'>
Fix some compilation warning in the old DDR training code.

Signed-off-by: Marek Behún &lt;kabel@kernel.org&gt;
</content>
</entry>
<entry>
<title>ddr: marvell: a38x: Import old DDR training code from 2017 version of U-Boot</title>
<updated>2024-07-08T06:20:58Z</updated>
<author>
<name>Marek Behún</name>
<email>kabel@kernel.org</email>
</author>
<published>2024-06-18T15:34:35Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=cae6e8993c8eaed7c520b1046766b658e0f97b90'/>
<id>urn:sha1:cae6e8993c8eaed7c520b1046766b658e0f97b90</id>
<content type='text'>
Import DDR training code from commit 1b69ce2fc0ec ("arm: mvebu:
ddr3_debug: remove self assignments") into
drivers/ddr/marvell/a38x/old/. The code is not used yet.

Explanation:

Since 2019, on some Turris Omnia boards we have been having problems
with newer versions of Marvell's DDR3 training code for Armada 38x,
which is ported from mv-ddr-marvell [1] to U-Boot into the
drivers/ddr/marvell/a38x/ directory:
- sometimes the DDR3 training fails on some older boards, sometime it
  fails on some newer boards
- other times it succeeds, but some boards experience crashes of the
  operating system after running for some time.

Using the stock version of Turris Omnia's U-Boot from solved these
issues, but this solution was not satisfactory, since we wanted
features from new U-Boot.

Back in 2020-2022 we have spent several months trying to debug the
issues, working with Marvell, on our own, and also with U-Boot
community, but these issues persist still.

One solution we used back in 2019 was a "hybrid U-Boot": the SPL part
(containing the DDR3 training code) was taken from the stock version,
while the proper part was current U-Boot at the time. This solution also
has its drawbacks, of which the main one is the need to glue binaries
from two separate builds.

Since then there have been some more changes to the DDR3 training code
in upstream mv-ddr-marvell that have been ported to U-Boot. We have
provided our users experimental builds of U-Boot in the TurrisOS so that
they could try upgrading the firmware and let us know if those problems
still exist. And they do.

We do not have the time nor manpower to debug this problem and fix it
properly. Marvell was also no able to provide a solution to this,
probably because they do not have the manpower as well.

I have therefore come up with this "not that pretty" solution: take the
DDR3 training code from an older version of U-Boot that is known to
work, put it into current U-Boot under old/ subdirectory within
drivers/ddr/marvell/a38x/, build into the SPL binary both the old and
new versions and make it possible to select the old version via an env
variable.

[1] https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell

Signed-off-by: Marek Behún &lt;kabel@kernel.org&gt;
</content>
</entry>
<entry>
<title>ddr: marvell: a38x: debug: Allow compiling with immutable debug settings to reduce binary size</title>
<updated>2024-07-08T06:20:58Z</updated>
<author>
<name>Marek Behún</name>
<email>kabel@kernel.org</email>
</author>
<published>2024-06-18T15:34:28Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=259556e5aa173fab679256606db494448d30418c'/>
<id>urn:sha1:259556e5aa173fab679256606db494448d30418c</id>
<content type='text'>
Allow compiling with immutable debug settings:
- DEBUG_LEVEL is always set to DEBUG_LEVEL_ERROR
- register dumps are disabled

This can save around 10 KiB of space in the resulting binary, which is a
lot in U-Boot SPL.

Signed-off-by: Marek Behún &lt;kabel@kernel.org&gt;
</content>
</entry>
<entry>
<title>ddr: marvell: a38x: debug: Define DDR_VIEWER_TOOL variables only if needed, and make them static</title>
<updated>2024-07-08T06:20:58Z</updated>
<author>
<name>Marek Behún</name>
<email>kabel@kernel.org</email>
</author>
<published>2024-06-18T15:34:27Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=411e71f7df830a896069dd96f63f8872a7231d6e'/>
<id>urn:sha1:411e71f7df830a896069dd96f63f8872a7231d6e</id>
<content type='text'>
The variables is_validate_window_per_if, is_validate_window_per_pup,
sweep_cnt and is_run_leveling_sweep_tests are only used if
DDR_VIEWER_TOOL macro is defined, so define them only in that case.

Make them static since they are only used in ddr3_debug.c.

Signed-off-by: Marek Behún &lt;kabel@kernel.org&gt;
</content>
</entry>
<entry>
<title>ddr: marvell: a38x: debug: Remove unused variables</title>
<updated>2024-07-08T06:20:58Z</updated>
<author>
<name>Marek Behún</name>
<email>kabel@kernel.org</email>
</author>
<published>2024-06-18T15:34:26Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c813b29e3ecc894695f620064f68890608b67b05'/>
<id>urn:sha1:c813b29e3ecc894695f620064f68890608b67b05</id>
<content type='text'>
The variables is_default_centralization, is_tune_result and
is_bist_reset_bit are never used.

Signed-off-by: Marek Behún &lt;kabel@kernel.org&gt;
</content>
</entry>
<entry>
<title>ddr: marvell: a38x: debug: return from ddr3_tip_print_log() early if we won't print anything</title>
<updated>2024-07-08T06:20:58Z</updated>
<author>
<name>Marek Behún</name>
<email>kabel@kernel.org</email>
</author>
<published>2024-06-18T15:34:25Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=c173f6268d405c0cc83d286192dfdd66bad25368'/>
<id>urn:sha1:c173f6268d405c0cc83d286192dfdd66bad25368</id>
<content type='text'>
Return from ddr3_tip_print_log() early if we won't print anything
anyway.

This way the compiler can optimize away the VALIDATE_IF_ACTIVE() calls
in the for-loop, so if the SILENT_LIB macro is defined, no code is
generated for the rest of the function, which saves some space.

Signed-off-by: Marek Behún &lt;kabel@kernel.org&gt;
</content>
</entry>
<entry>
<title>Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet"</title>
<updated>2024-05-20T19:35:03Z</updated>
<author>
<name>Tom Rini</name>
<email>trini@konsulko.com</email>
</author>
<published>2024-05-20T19:35:03Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/u-boot.git/commit/?id=03de305ec48b0bb28554372abb40ccd46dbe0bf9'/>
<id>urn:sha1:03de305ec48b0bb28554372abb40ccd46dbe0bf9</id>
<content type='text'>
As part of bringing the master branch back in to next, we need to allow
for all of these changes to exist here.

Reported-by: Jonas Karlman &lt;jonas@kwiboo.se&gt;
Signed-off-by: Tom Rini &lt;trini@konsulko.com&gt;
</content>
</entry>
</feed>
