From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/2] ARC: HSDK: add platform-specific commands
Date: Sun, 1 Apr 2018 20:42:01 -0400 [thread overview]
Message-ID: <20180402004201.GA19725@bill-the-cat.ec.rr.com> (raw)
In-Reply-To: <1522440498.26287.18.camel@synopsys.com>
On Fri, Mar 30, 2018 at 08:08:19PM +0000, Alexey Brodkin wrote:
> Hi Tom,
>
> On Mon, 2018-03-26 at 15:57 +0300, Eugeniy Paltsev wrote:
> > This patch add support of hsdk platform-specific commands:
> >
> > hsdk_clock set - set clock from axi_freq, cpu_freq and tun_freq
> > environment variables/command line arguments
> >
> > hsdk_clock get - save clock frequencies to axi_freq, cpu_freq
> > and tun_freq environment variables
> >
> > hsdk_clock print - show CPU, AXI, DDR and TUNNEL current
> > clock frequencies.
> >
> > hsdk_clock print_all - show all currently used clock frequencies.
> >
> > hsdk_init - setup board HW in one of pre-defined configuration
> > (hsdk_hs34 / hsdk_hs36 / hsdk_hs36_ccm / hsdk_hs38 /
> > hsdk_hs38_ccm / hsdk_hs38x2 / hsdk_hs38x3 / hsdk_hs38x4)
> >
> > hsdk_go - run baremetal application on hsdk configured
> > by hsdk_init command.
> >
> > This patch changes default behaviour of 'bootm' command:
> > now we are able to set number of CPUs to be kicked by setting
> > 'core_mask' environment variable before 'bootm' command run.
> >
> > Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
> > ---
>
> I was about to send you a pull-request containing this one but
> decided to give TravisCI a shot. And what I got was a warning
> due to not yet supported "naked" attribute in GCC 6.x for ARC,
> see https://travis-ci.org/abrodkin/u-boot/jobs/360259472
>
> Ok I bumped ARC tools to the most recent arc-2017.09 based on
> GCC 7.1 where "naked" attr for ARC is already supported.
> But then I got another warning:
> --------------------->8-----------------------
> board/synopsys/hsdk/hsdk.c: In function "hsdk_core_init_f":
> board/synopsys/hsdk/hsdk.c:345:1: error: stack usage computation not supported for this target [-Werror]
> }
> ^
> --------------------->8-----------------------
> see https://travis-ci.org/abrodkin/u-boot/jobs/360274604
>
>
> That happens because GCC for ARC unconditionally tries to compute
> stack requirements for all functions even if they are "naked".
> And for "naked" computed value is negative thus the warning above.
>
> So far I didn't manage to find a simple way to disable that warning.
>
> And my question would be how to proceed with this [patch]?
> Given we're seeing a problem in GCC it most probably won't be fixed
> in U-Boot and we'll need to wait before new tools are available.
>
> Or otherwise we'll start to see "failing" ARC jobs in TravisCI.
Ugh. (a) get the toolchain fixed to support this correctly and (b)
kludge scripts/gcc-stack-usage.sh to have a 'naked' example too so that
we'll just disable -fstack-usage on ARC for now.
--
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/20180401/f857ef44/attachment.sig>
next prev parent reply other threads:[~2018-04-02 0:42 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-26 12:57 [U-Boot] [PATCH v2 0/2] ARC: HSDK: add platform-specific stuff Eugeniy Paltsev
2018-03-26 12:57 ` [U-Boot] [PATCH v2 1/2] ARC: HSDK: add platform-specific commands Eugeniy Paltsev
2018-03-30 20:08 ` Alexey Brodkin
2018-04-02 0:42 ` Tom Rini [this message]
2018-03-26 12:57 ` [U-Boot] [PATCH v2 2/2] ARC: HSDK: enable spi flash support Eugeniy Paltsev
2018-03-26 13:45 ` Alexey Brodkin
2018-03-26 14:10 ` Eugeniy Paltsev
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=20180402004201.GA19725@bill-the-cat.ec.rr.com \
--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