From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Giulio Benetti <giulio.benetti@benettiengineering.com>
Cc: Jagan Teki <jagan@amarulasolutions.com>,
Jan Havran <havran.jan@email.cz>,
buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] board/pine64/pinecube: new board
Date: Mon, 15 Aug 2022 16:53:32 +0200 [thread overview]
Message-ID: <20220815145332.GC2854108@scaer> (raw)
In-Reply-To: <91f0cd4b-a3dd-14db-d490-968b4b31339a@benettiengineering.com>
Giulio, Jan, All,
On 2022-08-14 13:56 +0200, Giulio Benetti spake thusly:
> On 14/08/22 11:22, Jan Havran wrote:
> >>>+++ b/configs/pinecube_defconfig
> >>>+BR2_ARM_FPU_NEON_VFPV4=y
> >>This ^^^ should be removed since NEON doesn't support complete FPU
> >>standard API, so it's better to keep the default for BR2_cortex_a7
> >I will fix everything and post V2, but one thing I do not understand much is
> >this one.
> Here there is a very good explanation on why not adding by default
> BR2_ARM_FPU_NEON_VFPV4:
> https://lists.buildroot.org/pipermail/buildroot/2022-January/634728.html
I even tink that, ultimately, we should just remove FPU options that
also enable NEON, like BR2_ARM_FPU_NEON_VFPV4, because they do not make
sense.
Using NEON for floating-point arithmetics should probably left to a
per-pacakge setting, where and when t makes sense for that package (e.g.
math-intensive packages that can cope with incorrect results (like
real-time audio stuff that favour an occasional glitch rather than a
packet loss).
[--SNIP--]
> But yes, if VFPV4 is supported then yes, it makes sense to enable it
> instead of keeping the default. So since this board is S3 based and
> it supports VFPV4 then you can enable:
> BR2_ARM_FPU_VFPV4
>
> and same can go with H3 based boards I think.
>
> @Yann, what do you think about enabling VFPV4 on boards with SoCs
> that support VFPV4? (not NEON/VFPV4 of course)
Usually, defconfigs are very limited, and what we guarantee is very
basic: a booting kernel with basic drivers, and busybox' login and
shell. That does not use much floating-point instructions, so that would
not benefit much from using a "better" FPU.
I previously rejected the big series that bulk-converted all defconfigs
in one go, because that was not tested on real hardware.
But for a defconfig that was actually tested against real hardware, I
think it is OK that it uses a "better" FPU. So, if the pinecube has a
VFPv4, BR2_ARM_FPU_VFPV4 or BR2_ARM_FPU_VFPV4_D16 is OK.
Also nte that BR2_ARM_FPU_VFPV4 will make use of all the 32 flaoting
point registers, i.e. the full range, while BR2_ARM_FPU_VFPV4_D16 will
only make use of 16 registers. Not all VFPv4 implementation have 32
registers, so carefully enable the appropriate one (_D16 is safe to use
in either case, though).
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2022-08-15 14:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-08 17:39 [Buildroot] [PATCH 1/1] board/pine64/pinecube: new board Jan Havran
2022-07-28 22:28 ` Giulio Benetti
2022-08-14 9:22 ` Jan Havran
2022-08-14 11:56 ` Giulio Benetti
2022-08-15 14:53 ` Yann E. MORIN [this message]
2022-08-15 14:57 ` Giulio Benetti
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=20220815145332.GC2854108@scaer \
--to=yann.morin.1998@free.fr \
--cc=buildroot@buildroot.org \
--cc=giulio.benetti@benettiengineering.com \
--cc=havran.jan@email.cz \
--cc=jagan@amarulasolutions.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox