From: Ian Campbell <ian.campbell@citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: zoltan.kiss@huawei.com, Julien Grall <julien.grall@linaro.org>,
Tim Deegan <tim@xen.org>,
xen-devel@lists.xen.org,
Frediano Ziglio <frediano.ziglio@huawei.com>,
Stefano Stabellini <stefano.stabellini@citrix.com>
Subject: Re: [PATCH v5.99.1 RFC 1/4] xen/arm: Duplicate gic-v2.c file to support hip04 platform version
Date: Thu, 26 Feb 2015 17:39:53 +0000 [thread overview]
Message-ID: <1424972393.14641.109.camel@citrix.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1502251616550.23507@kaball.uk.xensource.com>
On Wed, 2015-02-25 at 16:34 +0000, Stefano Stabellini wrote:
> I think we should disable the build of all drivers in Xen by default,
> except for the ARM standard compliant ones (for aarch64 the SBSA is a
> nice summary of what is considered compliant), to keep the size of the
> binary small.
I think this last statement was based on information that the gic-v2
driver was of the order of 70-100K in size, but I think that information
was wrong (I suspect it was the raw .o size, which includes debug info
and other extraneous bits). Here I see:
$ du -h xen/arch/arm/gic-v2.o
148K xen/arch/arm/gic-v2.o
$ aarch64-linux-gnu-size xen/arch/arm/gic-v2.o
text data bss dec hex filename
6619 0 97 6716 1a3c xen/arch/arm/gic-v2.o
IOW the actual binary size is on the order of 6K (gic-v3.o is around the
same). This is arm64, I can't be bothered to rebuild for arm32, it'll be
similar.
Given that then I really don't think it is worth introducing a two tier
build over it.
If we really cared about these sorts of savings we would arrange to
discard all of the unused GIC/SMMU/UART driver's .text/.data/.bss after
boot (easy enough to achieve by putting each in a dedicated segment).
But I don't think we have enough such drivers to start worrying about
doing that just now. We have that opportunity in our back pocket if we
ever get to that point, which is good enough I think.
> Could you please introduce a Xen build time option in
> xen/arch/arm/Rules.mk, called HAS_NON_STANDARD_DRIVERS, that by default
> is n, and gate the build of gic-hip04.c on it?
Frediano, I see you've already done so in v6, thanks for that. Sorry to
go back on it.
Assuming the rest of the series in v6 is OK (gets acked and whatever)
then I expect I can just skip that one patch when applying and fixup the
Makefile in the obvious way (approx s/HAS_NON.../CONFIG_ARM32/) in the
dependent patch.
Ian.
next prev parent reply other threads:[~2015-02-26 17:39 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-20 9:56 [PATCH v5] xen/arm: Add support for Huawei hip04-d01 platform Frediano Ziglio
2015-02-20 9:56 ` [PATCH v5 1/4] xen/arm: Make gic-v2 code handle " Frediano Ziglio
2015-02-24 16:16 ` Ian Campbell
2015-02-25 15:28 ` [PATCH v5.99.1 RFC 0/4] xen/arm: Add support for Huawei " Frediano Ziglio
2015-02-25 15:28 ` [PATCH v5.99.1 RFC 1/4] xen/arm: Duplicate gic-v2.c file to support hip04 platform version Frediano Ziglio
2015-02-25 15:34 ` Julien Grall
2015-02-25 15:42 ` Frediano Ziglio
2015-02-25 15:46 ` Ian Campbell
2015-02-25 15:47 ` Frediano Ziglio
2015-02-25 16:34 ` Stefano Stabellini
2015-02-25 16:59 ` Ian Campbell
2015-02-26 12:44 ` Ian Campbell
2015-02-26 13:54 ` Julien Grall
2015-02-26 15:28 ` Ian Campbell
2015-02-26 17:39 ` Ian Campbell [this message]
2015-02-26 17:59 ` Stefano Stabellini
2015-02-25 15:28 ` [PATCH v5.99.1 RFC 2/4] xen/arm: Make gic-v2 code handle hip04-d01 platform Frediano Ziglio
2015-02-25 16:53 ` Stefano Stabellini
2015-02-26 9:54 ` Frediano Ziglio
2015-02-25 15:28 ` [PATCH v5.99.1 RFC 3/4] xen/arm: handle GICH register changes for " Frediano Ziglio
2015-02-25 16:53 ` Stefano Stabellini
2015-02-25 15:28 ` [PATCH v5.99.1 RFC 4/4] xen/arm: Force dom0 to use normal GICv2 driver on Hip04 platform Frediano Ziglio
2015-02-25 16:54 ` Stefano Stabellini
2015-02-20 9:56 ` [PATCH v5 2/4] xen/arm: Add support for DTBs with strange names of Hip04 GICv2 Frediano Ziglio
2015-02-24 14:19 ` Julien Grall
2015-02-24 16:13 ` Ian Campbell
2015-02-24 16:38 ` Frediano Ziglio
2015-02-24 14:19 ` Julien Grall
2015-02-20 9:56 ` [PATCH v5 3/4] xen/arm: handle GICH register changes for hip04-d01 platform Frediano Ziglio
2015-02-20 9:56 ` [PATCH v5 4/4] xen/arm: Force dom0 to use normal GICv2 driver on Hip04 platform Frediano Ziglio
2015-02-25 16:43 ` [PATCH v5] xen/arm: Add support for Huawei hip04-d01 platform Ian Campbell
2015-02-25 17:10 ` Frediano Ziglio
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=1424972393.14641.109.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=frediano.ziglio@huawei.com \
--cc=julien.grall@linaro.org \
--cc=stefano.stabellini@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.org \
--cc=zoltan.kiss@huawei.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.