From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [PATCH v2 00/12] mips: Add initial Octeon MIPS64 base support
Date: Sat, 6 Jun 2020 07:25:03 +0200 [thread overview]
Message-ID: <97c8f2d7-fd5f-c184-0b03-dfaaafc8a7fe@denx.de> (raw)
In-Reply-To: <f374b20b-8610-7da1-daa2-a0148e235866@gmail.com>
Hi Daniel,
On 05.06.20 17:40, Daniel Schwierzeck wrote:
> Hi Stefan,
>
> sorry for the delay.
>
> Am 02.06.20 um 12:59 schrieb Stefan Roese:
>> Hi Daniel,
>>
>> On 26.05.20 14:23, Stefan Roese wrote:
>>> Hi Daniel,
>>>
>>> On 14.05.20 11:59, Stefan Roese wrote:
>>>>
>>>> This patch adds very basic support for the Octeon III SoCs. Only CFI
>>>> parallel UART, reset and NOR flash are supported for now.
>>>>
>>>> Please note that the basic Octeon port does not include the DDR3/4
>>>> initialization yet. This will be added in some follow-up patches later.
>>>> To still use U-Boot on with this port, the L2 cache (4MiB on Octeon III
>>>> CN73xx) is used as RAM. This way, U-Boot can boot to the prompt on such
>>>> boards.
>>>>
>>>> Thanks,
>>>> Stefan
>>>>
>>>> Changes in v2:
>>>> - New patch
>>>> - New patch
>>>> - Restructure patch by adding empty functions to asm/cm.h instead
>>>> - New patch
>>>> - New patch
>>>> - Move bit macro definition to mipsregs.h
>>>> - Remove custom start.S and use common start.S. Minimal custom lowlevel
>>>> ?? init code is currently added in the custom lowlevel_init.S. This
>>>> needs
>>>> ?? to be extended with necessary code, like errata handling etc. But for
>>>> ?? a very first basic port, this seems to be all thats needed to boot on
>>>> ?? the EBB7304 to the prompt.
>>>> - Removed select CREATE_ARCH_SYMLINK
>>>> - Removed Octeon II support, as its currently no added in this patchset
>>>> - Added cache.c to add the platform specific cache functions as no-ops
>>>> ?? for Octeon as the platform is cache coherent
>>>> - Removed CONFIG_MIPS_CACHE_COHERENT
>>>> - Added CONFIG_CPU_CAVIUM_OCTEON to Kconfig and selected it for Octeon
>>>> ?? to enable better sync with the Linux files in the future
>>>> - Add get_tbclk() -> no need to define CONFIG_SYS_MIPS_TIMER_FREQ any
>>>> more
>>>> - Removed CONFIG_SYS_MIPS_TIMER_FREQ
>>>
>>> Daniel, do you have any comments and / or change requests to v2 of this
>>> base Octeon patchset?
>>
>> Sorry for triggering you again on this. Again my question, if you
>> have any comments on the latest patchet version.
>>
>
> I've applied some patches which are ready.
Thanks.
> Actually I wanted to do a more complete header sync with Linux and
> submit some minimal refactorings of start.S so that you have a better
> working base. Unfortuneately I hadn't time to do so in the last 3 weeks.
I understand. Is there something I can help you with, to speed this
up?
> Regarding the copying to L2 cache: could we do this later and add the
> init stuff at first? So we could have functionality at first and then
> boot time optimization later. This also would give me some more time to
> refactor the start.S hooks which would give you a better base for
> implementing such optimizations.
IIUYC, then your main reason that I should remove the L2 cache copy
is, that you would like to refactor start.S first and add some hooks
for e.g. this L2C cache copy, where it would fit better than currently
in mips_sram_init(). I definitely promise to re-work this Octeon early
boot code to fit into your refactored start.S, once its ready. This
way, you wouldn't be pressed in time to get this rework done. And we
have a chance to get this Octeon base support integrated in a "decent"
state (bootup time, please see DDR4 init below) soon.
There are other reasons, beside the boot speedup, for the L2 cache
copy:
Running from L2 cache also helps with re-mapping the CFI flash
bootmap, so that the 8 MiB flash can be fully accessed. Otherwise
the flash is too big for the initial bootmap size and things like
environement can't be accessed.
The DDR init code that I'm currently working on - I'm actually
preparing the first patchset right now - is only tested with this
configration right now.
I'm also working on other peripheral drivers for Octeon. Some have
already started (like USB) and others are on my list. All this work
is pretty painful without the boot speedup, as e.g. the DDR4 init
will take very long (many minutes compared to a few seconds, as I've
been told).
But of course this is your call. If you insist on removing the L2 cache
copy from the base Octeon port, then I will re-visit the patchet and
try to address it.
Thanks,
Stefan
next prev parent reply other threads:[~2020-06-06 5:25 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-14 9:59 [PATCH v2 00/12] mips: Add initial Octeon MIPS64 base support Stefan Roese
2020-05-14 9:59 ` [PATCH v2 01/12] mips: start.S: Add CONFIG_MIPS_INIT_JUMP_OFFSET Stefan Roese
2020-05-14 9:59 ` [PATCH v2 02/12] mips: start.S: Don't call mips_cache_reset() on ARCH_OCTEON Stefan Roese
2020-05-14 9:59 ` [PATCH v2 03/12] mips: cache: Allow using CONFIG_MIPS_L2_CACHE without CONFIG_MIPS_CM Stefan Roese
2020-06-05 15:29 ` Daniel Schwierzeck
2020-05-14 9:59 ` [PATCH v2 04/12] mips: cache: Make flush_cache() weak to enable overwrite Stefan Roese
2020-06-05 15:29 ` Daniel Schwierzeck
2020-05-14 9:59 ` [PATCH v2 05/12] mips: time: Only compile the weak get_tbclk() when needed Stefan Roese
2020-06-05 15:29 ` Daniel Schwierzeck
2020-05-14 9:59 ` [PATCH v2 06/12] mips: traps: Set WG bit in EBase register on Octeon Stefan Roese
2020-06-05 15:30 ` Daniel Schwierzeck
2020-05-14 9:59 ` [PATCH v2 07/12] mips: mipsregs.h: Add more register macros for Octeon port Stefan Roese
2020-05-14 9:59 ` [PATCH v2 08/12] mips: mipsregs.h: Sync with linux v5.7.0-rc3 version Stefan Roese
2020-05-14 9:59 ` [PATCH v2 09/12] sysreset: Add Octeon sysreset driver Stefan Roese
2020-05-14 9:59 ` [PATCH v2 10/12] mips: octeon: Initial minimal support for the Marvell Octeon SoC Stefan Roese
2020-06-16 17:42 ` Daniel Schwierzeck
2020-06-19 8:08 ` Stefan Roese
2020-05-14 9:59 ` [PATCH v2 11/12] mips: octeon: dts: Add Octeon 3 cn73xx base dtsi file Stefan Roese
2020-05-14 9:59 ` [PATCH v2 12/12] mips: octeon: Add minimal Octeon 3 EBB7304 EVK support Stefan Roese
2020-06-16 17:35 ` Daniel Schwierzeck
2020-06-19 8:06 ` Stefan Roese
2020-05-26 12:23 ` [PATCH v2 00/12] mips: Add initial Octeon MIPS64 base support Stefan Roese
2020-06-02 10:59 ` Stefan Roese
2020-06-05 15:40 ` Daniel Schwierzeck
2020-06-06 5:25 ` Stefan Roese [this message]
2020-06-15 7:49 ` Stefan Roese
2020-06-16 17:27 ` Daniel Schwierzeck
2020-06-19 7:51 ` Stefan Roese
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=97c8f2d7-fd5f-c184-0b03-dfaaafc8a7fe@denx.de \
--to=sr@denx.de \
--cc=u-boot@lists.denx.de \
/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