All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: u-boot@lists.denx.de
Subject: [PATCH 00/20] ppc: qemu: Add eTSEC support
Date: Wed, 3 Mar 2021 10:21:47 -0700	[thread overview]
Message-ID: <CAPnjgZ0OFm_xHYbAW-aGGeyUAq8EbOrdPtQJ2RK=zTbx1kM6RA@mail.gmail.com> (raw)
In-Reply-To: <20210303164859.GH1310@bill-the-cat>

Hi Bin,

On Wed, 3 Mar 2021 at 09:49, Tom Rini <trini@konsulko.com> wrote:
>
> On Wed, Mar 03, 2021 at 10:11:45AM +0800, Bin Meng wrote:
> > Hi Simon,
> >
> > On Wed, Mar 3, 2021 at 9:53 AM Simon Glass <sjg@chromium.org> wrote:
> > >
> > > Hi Bin,
> > >
> > > On Tue, 2 Mar 2021 at 18:08, Bin Meng <bmeng.cn@gmail.com> wrote:
> > > >
> > > > Hi Tom,
> > > >
> > > > On Tue, Mar 2, 2021 at 11:35 PM Bin Meng <bmeng.cn@gmail.com> wrote:
> > > > >
> > > > > QEMU ppce500 machine can dynamically instantiate an eTSEC device
> > > > > if "-device eTSEC" is given to QEMU.
> > > > >
> > > > > This series updates the fixed-link ethernet PHY driver as well as
> > > > > the Freescale eTSEC driver to support the QEMU ppce500 board.
> > > > >
> > > > > Based-on:
> > > > > http://patchwork.ozlabs.org/project/uboot/list/?series=230985
> > > > >
> > > > > This series is avaiable at u-boot-x86/eTSEC for testing.
> > > > >
> > > > >
> > > >
> > > > Azure results say there are several ARM boards fail to build due to
> > > > size overflow with this series.
> > > > https://dev.azure.com/bmeng/GitHub/_build/results?buildId=334&view=results
> > > >
> > > > How do we handle this?
> > >
> > > The one I looked at, imx6dl_mamoj seems to be 0xbc5 over the limit.
> > > That's a very large growth, indicating that your series is doing
> > > something odd, perhaps?
> > >
> > > I suppose you know this, but you can use:
> > >
> > > buildman -b try imx6dl_mamoj
> > > buildman -b try -sS
> > >
> > > to see which commit creates the size growth, and -B to see which functions.
> >
> > Thanks, so it's caused by this patch:
> > http://patchwork.ozlabs.org/project/uboot/patch/20210302153451.19440-17-bmeng.cn at gmail.com/
> >
> > 16: dm: core: Correctly read <ranges> of simple-bus
> >        arm:  +   imx6dl_mamoj
> >        arm: (for 1/1 boards) all +274.0 bss -32.0 spl/u-boot-spl:all
> > +3232.0 spl/u-boot-spl:data +24.0 spl/u-boot-spl:rodata +2180.0
> > spl/u-boot-spl:text +1028.0 text +306.0
> >             imx6dl_mamoj   : all +274 bss -32 spl/u-boot-spl:all +3232
> > spl/u-boot-spl:data +24 spl/u-boot-spl:rodata +2180
> > spl/u-boot-spl:text +1028 text +306
> >                spl-u-boot-spl: add: 9/-1, grow: 1/0 bytes: 1070/-24 (1046)
> >                  function                                   old     new   delta
> >                  __of_translate_address                       -     404    +404
> >                  fdt_read_range                               -     208    +208
> >                  of_bus_default_map                           -     148    +148
> >                  of_bus_default_translate                     -     114    +114
> >                  fdt_read_prop                                -      66     +66
> >                  fdt_support_default_count_cells              -      52     +52
> >                  fdt_getprop_u32_default_node                 -      36     +36
> >                  of_busses                                    -      24     +24
> >                  fdt_translate_address                        -      12     +12
> >                  simple_bus_post_bind                        52      58      +6
> >                  ofnode_read_u32_array                       24       -     -24
> >                u-boot: add: 3/-1, grow: 1/0 bytes: 316/-24 (292)
> >                  function                                   old     new   delta
> >                  fdt_read_range                               -     208    +208
> >                  fdt_read_prop                                -      66     +66
> >                  fdt_getprop_u32_default_node                 -      36     +36
> >                  simple_bus_post_bind                        52      58      +6
> >                  ofnode_read_u32_array                       24       -     -24
> >
> >
> > But this patch is a bug fix. I am not sure how we can avoid the size increase.
>
> I'd love to hear there's a clever fix we can do here for SPL, but in the
> likely case there isn't, this might get stuck until the LTO series that
> was posted today goes in as well, as that will give us some size back.
> I assume this was a bug fix your series needed and not something you
> noticed while in the code.
>

The size increase is so enormous that I'd argue for a new Kconfig that
you can select for the board that needs it.

Regards,
Simon

  reply	other threads:[~2021-03-03 17:21 UTC|newest]

Thread overview: 55+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-02 15:34 [PATCH 00/20] ppc: qemu: Add eTSEC support Bin Meng
2021-03-02 15:34 ` Bin Meng
2021-03-02 15:34 ` [PATCH 01/20] net: phy: xilinx: Remove non-DM prototype of phy_connect_gmii2rgmii() Bin Meng
2021-03-02 15:40   ` Michal Simek
2021-03-02 17:52   ` Ramon Fried
2021-03-02 15:34 ` [PATCH 02/20] net: phy: xilinx: Convert to use APIs which support live DT Bin Meng
2021-03-02 15:40   ` Vladimir Oltean
2021-03-04  5:36     ` Bin Meng
2021-03-04 23:05       ` Vladimir Oltean
2021-03-11 10:33         ` Bin Meng
2021-03-11 10:37           ` Vladimir Oltean
2021-03-11 10:58             ` Bin Meng
2021-03-11 11:02               ` Vladimir Oltean
2021-03-02 17:51   ` Ramon Fried
2021-03-02 15:34 ` [PATCH 03/20] net: phy: fixed: Remove non-DM prototype of phy_connect_fixed() Bin Meng
2021-03-02 17:42   ` Ramon Fried
2021-03-02 15:34 ` [PATCH 04/20] net: phy: fixed: Convert to use APIs which support live DT Bin Meng
2021-03-02 17:42   ` Ramon Fried
2021-03-02 15:34 ` [PATCH 05/20] dt-bindings: net: Add the old DT bindings for "fixed-link" Bin Meng
2021-03-02 17:50   ` Ramon Fried
2021-03-02 15:34 ` [PATCH 06/20] of: extra: Introduce ofnode_phy_is_fixed_link() API Bin Meng
2021-03-05  4:08   ` Simon Glass
2021-03-09  2:41     ` Bin Meng
2021-03-02 15:34 ` [PATCH 07/20] test: dm: Add a case to test ofnode_phy_is_fixed_link() Bin Meng
2021-03-05  4:08   ` Simon Glass
2021-03-02 15:34 ` [PATCH 08/20] dm: mdio: Use ofnode_phy_is_fixed_link() API Bin Meng
2021-03-02 17:41   ` Ramon Fried
2021-03-02 15:34 ` [PATCH 09/20] net: tsec: " Bin Meng
2021-03-02 17:42   ` Ramon Fried
2021-03-02 15:34 ` [PATCH 10/20] net: phy: Simplify the logic of phy_connect_fixed() Bin Meng
2021-03-02 17:46   ` Ramon Fried
2021-03-02 15:34 ` [PATCH 11/20] net: phy: fixed: Make driver ops static Bin Meng
2021-03-02 17:47   ` Ramon Fried
2021-03-02 15:34 ` [PATCH 12/20] net: phy: fixed: Add the missing ending newline Bin Meng
2021-03-02 17:48   ` Ramon Fried
2021-03-02 15:34 ` [PATCH 13/20] net: phy: fixed: Support the old DT binding Bin Meng
2021-03-02 17:49   ` Ramon Fried
2021-03-02 15:34 ` [PATCH 14/20] dt-bindings: net: Update Freescale TSEC to support "queue-group" Bin Meng
2021-03-02 17:50   ` Ramon Fried
2021-03-02 15:34 ` [PATCH 15/20] net: tsec: Support <reg> property from the subnode "queue-group" Bin Meng
2021-03-02 17:50   ` Ramon Fried
2021-03-02 15:34 ` [PATCH 16/20] dm: core: Correctly read <ranges> of simple-bus Bin Meng
2021-03-03 13:23   ` Tom Rini
2021-03-02 15:34 ` [PATCH 17/20] test: dm: Add a test case for simple-bus <ranges> Bin Meng
2021-03-05  4:08   ` Simon Glass
2021-03-02 15:34 ` [PATCH 18/20] ppc: qemu: Create a virtual memory mapping of the platform bus Bin Meng
2021-03-02 15:34 ` [PATCH 19/20] ppc: qemu: Enable eTSEC support Bin Meng
2021-03-02 15:34 ` [PATCH 20/20] doc: board: qemu-ppce500: Document eTSEC usage Bin Meng
2021-03-03  1:08 ` [PATCH 00/20] ppc: qemu: Add eTSEC support Bin Meng
2021-03-03  1:53   ` Simon Glass
2021-03-03  2:11     ` Bin Meng
2021-03-03 16:48       ` Tom Rini
2021-03-03 17:21         ` Simon Glass [this message]
2021-03-04  1:57           ` Bin Meng
2021-03-04  2:16             ` Simon Glass

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='CAPnjgZ0OFm_xHYbAW-aGGeyUAq8EbOrdPtQJ2RK=zTbx1kM6RA@mail.gmail.com' \
    --to=sjg@chromium.org \
    --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 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.