From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1 1/4] arm: socfpga: imply SPL config instead of select
Date: Tue, 8 Jan 2019 10:11:33 -0500 [thread overview]
Message-ID: <20190108151133.GU5463@bill-the-cat> (raw)
In-Reply-To: <73d1b4be-2496-5563-dbd6-b82475996a52@gmail.com>
On Tue, Jan 08, 2019 at 04:04:12PM +0100, Simon Goldschmidt wrote:
> Am 08.01.2019 um 15:58 schrieb Tom Rini:
> >On Tue, Jan 08, 2019 at 03:50:48PM +0100, Marek Vasut wrote:
> >>On 1/8/19 3:48 PM, Tom Rini wrote:
> >>>On Tue, Jan 08, 2019 at 01:49:14PM +0100, Marek Vasut wrote:
> >>>>On 1/8/19 1:46 PM, Simon Goldschmidt wrote:
> >>>>>On Tue, Jan 8, 2019 at 1:22 PM Marek Vasut <marex@denx.de> wrote:
> >>>>>>
> >>>>>>On 1/8/19 1:09 PM, Simon Goldschmidt wrote:
> >>>>>>>On Tue, Jan 8, 2019 at 1:05 PM Marek Vasut <marex@denx.de> wrote:
> >>>>>>>>
> >>>>>>>>On 1/8/19 7:24 AM, Simon Goldschmidt wrote:
> >>>>>>>>>On Mon, Jan 7, 2019 at 11:58 PM Marek Vasut <marex@denx.de> wrote:
> >>>>>>>>>>
> >>>>>>>>>>On 1/7/19 10:14 PM, Simon Goldschmidt wrote:
> >>>>>>>>>>>In order to build a smaller SPL, let's imply SPL_DM_RESET and
> >>>>>>>>>>>SPL_WATCHDOG_SUPPORT instead of selecting them, so they can be disabled
> >>>>>>>>>>>via defconfig.
> >>>>>>>>>>>
> >>>>>>>>>>>This also seems to be required to use OF_PLATDATA, as the reset drivers
> >>>>>>>>>>>don't seem to work with it.
> >>>>>>>>>>
> >>>>>>>>>>How do you un-reset IP blocks if you disable the reset controller ?
> >>>>>>>>>
> >>>>>>>>>Here again, socfpga seems to be another bad example. Taking
> >>>>>>>>>peripherals out of reset
> >>>>>>>>>is cluttered throughout the mach-socfpga code at least in SPL. By now
> >>>>>>>>>I know socfpga is
> >>>>>>>>>lacking support for clock and reset management via devicetree. And
> >>>>>>>>>this is bad, I know,
> >>>>>>>>>but can we keep this a seperate issue from OF_PLATDATA?
> >>>>>>>>>
> >>>>>>>>>That being said, drivers/reset/reset-uclass.c fails to compile with
> >>>>>>>>>OF_PLATDATA, so I
> >>>>>>>>>guess this has not been used with OF_PLATDATA before. And given that I
> >>>>>>>>>don't seem
> >>>>>>>>>to need it for socfpga either, I don't think this would be the right
> >>>>>>>>>series to fix that.
> >>>>>>>>
> >>>>>>>>Don't you need it to unreset at least the DWMMC or CQSPI ?
> >>>>>>>
> >>>>>>>Reading the code, it seems like that's taken care of through another hack in
> >>>>>>>spl_boot_device() ;-)
> >>>>>>
> >>>>>>Sigh.
> >>>>>>
> >>>>>>>>Anyway, I'd much prefer to start cleaning up the horrorshow that
> >>>>>>>>arch/arm/mach-socfpga is in terms of clock and reset, at least like A10.
> >>>>>>>>Would that be possible ?
> >>>>>>>
> >>>>>>>I would be best, yes. I don't know when I will find the time to do that, though.
> >>>>>>>I don't know how much effort that would be, either. Is there maybe a patch
> >>>>>>>where A10 got converted from "as bad as gen5" to its current state? That
> >>>>>>>would help me to see if I can do it...
> >>>>>>
> >>>>>>A10 got switched to reset framework recently (in last 6 months or so),
> >>>>>>the reset driver is the same for Gen5 and A10 too, so it should be easy
> >>>>>>to recycle.
> >>>>>
> >>>>>Hmm, ok, let me check that... it would indeed be nice to port this to gen5.
> >>>>>
> >>>>>Since you seem kidn of opposed to OF_PLATDATA, does it make any sense
> >>>>>to continue on this? I mean, I thought I heard people here saying "use
> >>>>>OF_PLATDATA" if you're running out of space in SPL. After using it, I'm not too
> >>>>>keen on using it, either, but it does seem to give me some code space back...
> >>>>
> >>>>OF_PLATDATA is for platforms with really small SRAM, some 30k or below.
> >>>>This platform has a massive 60k of SRAM for SPL, so if we're running out
> >>>>of space, we're doing something wrong.
> >>>
> >>>It's not for "30k or below" but "needs more space to enable all desired
> >>>features inside of SPL".
> >>
> >>Which the SoCFPGA should have with 60k of SRAM. If U-Boot SPL became so
> >>bloated that even platform with so much space has issues, how can we
> >>even cater for the rest of platforms with much more limited SPL ? And if
> >>that is the case, we have a much bigger problem ...
> >
> >It depends, greatly, on what features you want within a single binary.
> >I'm not saying SoCFPGA can't fit what it wants, including verified boot,
> >inside of 60k. But what I am saying is we don't have a hard-and-fast
> >limit on when you must not use OF_PLATDATA since it's always been easy
> >to make SPL too big, once you start including all of the possible
> >kitchen sink options (lets do falcon mode, and boot count and usb gadget
> >and usb host and regular ethernet and mmc and nand and oh crap, where
> >did all of my space go?).
>
> I'm not saying this was directed to me (I'm sure it wasn't). Just to clarify
> my point: I'm really just trying to get the most basic SPL to work that
> loads U-Boot as FIT from spi-flash and verifies it. It might well be that
> it's this verified FIT offset that could be reduced...
Oh no, I'm just listing the worst case of am335x, which is my fault, and
goes well over the generous 100k+ that we have available there.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190108/22b242a0/attachment.sig>
next prev parent reply other threads:[~2019-01-08 15:11 UTC|newest]
Thread overview: 77+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-07 21:14 [U-Boot] [PATCH v1 0/4] arm: socfgpa: support of-platdata Simon Goldschmidt
2019-01-07 21:14 ` [U-Boot] [PATCH v1 1/4] arm: socfpga: imply SPL config instead of select Simon Goldschmidt
2019-01-07 22:53 ` Marek Vasut
2019-01-08 6:24 ` Simon Goldschmidt
2019-01-08 11:22 ` Marek Vasut
2019-01-08 12:09 ` Simon Goldschmidt
2019-01-08 12:22 ` Marek Vasut
2019-01-08 12:46 ` Simon Goldschmidt
2019-01-08 12:49 ` Marek Vasut
2019-01-08 14:48 ` Tom Rini
2019-01-08 14:50 ` Marek Vasut
2019-01-08 14:58 ` Tom Rini
2019-01-08 15:04 ` Simon Goldschmidt
2019-01-08 15:11 ` Tom Rini [this message]
2019-01-08 15:05 ` Marek Vasut
2019-01-08 15:01 ` Simon Goldschmidt
2019-01-08 20:52 ` Simon Goldschmidt
2019-01-08 20:54 ` Marek Vasut
2019-01-11 20:39 ` Simon Goldschmidt
2019-01-11 22:02 ` Marek Vasut
2019-01-14 15:50 ` Simon Goldschmidt
2019-01-14 15:58 ` Dinh Nguyen
2019-01-14 16:05 ` Simon Goldschmidt
2019-01-14 18:31 ` Marek Vasut
2019-01-14 18:58 ` Simon Goldschmidt
2019-01-14 19:33 ` Marek Vasut
2019-01-14 19:43 ` Simon Goldschmidt
2019-01-14 20:01 ` Marek Vasut
2019-01-14 20:12 ` Simon Goldschmidt
2019-01-14 20:23 ` Marek Vasut
2019-01-14 20:30 ` Simon Goldschmidt
2019-01-14 20:49 ` Marek Vasut
2019-01-14 20:59 ` Simon Goldschmidt
2019-01-14 21:28 ` Tom Rini
2019-01-14 21:30 ` Marek Vasut
2019-01-14 21:35 ` Simon Goldschmidt
2019-01-14 21:50 ` Tom Rini
2019-01-14 21:53 ` Simon Goldschmidt
2019-01-14 21:57 ` Marek Vasut
2019-01-14 22:26 ` Dinh Nguyen
2019-01-15 6:59 ` Simon Goldschmidt
2019-01-07 21:14 ` [U-Boot] [PATCH v1 2/4] arm: socfpga: fix compiling with OF_PLATDATA Simon Goldschmidt
2019-01-07 22:53 ` Marek Vasut
2019-01-08 6:32 ` Simon Goldschmidt
2019-01-08 11:46 ` Marek Vasut
2019-01-08 12:14 ` Simon Goldschmidt
2019-01-08 12:23 ` Marek Vasut
2019-01-07 21:14 ` [U-Boot] [PATCH v1 3/4] serial: add an of-platdata driver for "snps, dw-apb-uart" Simon Goldschmidt
2019-01-07 22:12 ` Lukasz Majewski
2019-01-08 6:06 ` Simon Goldschmidt
2019-01-08 7:30 ` Lukasz Majewski
2019-01-08 7:41 ` Simon Goldschmidt
2019-01-08 8:49 ` Lukasz Majewski
2019-01-09 8:35 ` Alexey Brodkin
2019-01-09 11:33 ` Simon Goldschmidt
2019-01-09 18:43 ` Simon Goldschmidt
2019-01-11 8:33 ` Alexey Brodkin
2019-01-11 8:41 ` Simon Goldschmidt
2019-01-11 9:03 ` Alexey Brodkin
2019-01-11 10:00 ` Simon Goldschmidt
2019-01-11 9:22 ` Andy Shevchenko
2019-01-11 10:01 ` Simon Goldschmidt
2019-01-16 21:35 ` Simon Glass
2019-01-10 12:56 ` Simon Glass
2019-01-07 21:14 ` [U-Boot] [PATCH v1 4/4] mmc: socfpga: support of-platdata Simon Goldschmidt
2019-01-07 21:59 ` [U-Boot] [PATCH v1 0/4] arm: socfgpa: " Lukasz Majewski
2019-01-08 6:53 ` Simon Goldschmidt
2019-01-07 22:57 ` Marek Vasut
2019-01-08 6:56 ` Simon Goldschmidt
2019-01-08 11:49 ` Marek Vasut
2019-01-08 12:38 ` Simon Goldschmidt
2019-01-08 12:57 ` Marek Vasut
2019-01-08 13:07 ` Simon Goldschmidt
2019-01-08 13:38 ` Marek Vasut
2019-01-08 13:51 ` Simon Goldschmidt
2019-01-08 14:43 ` Marek Vasut
2019-02-01 18:58 ` Simon Goldschmidt
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=20190108151133.GU5463@bill-the-cat \
--to=trini@konsulko.com \
--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