public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Russell King - ARM Linux admin <linux@armlinux.org.uk>
To: Masahiro Yamada <yamada.masahiro@socionext.com>
Cc: linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
	Olof Johansson <olof@lixom.net>, Arnd Bergmann <arnd@arndb.de>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	masahiroy@kernel.org
Subject: Re: Question about ARM FASTFPE
Date: Wed, 10 Jul 2019 09:23:35 +0100	[thread overview]
Message-ID: <20190710082335.uzusesefimzpjd3f@shell.armlinux.org.uk> (raw)
In-Reply-To: <CAK7LNASSCvLSXVikR7GenXyb8KywpWKVc1Z=5v3c93rxJ+G73w@mail.gmail.com>

On Wed, Jul 10, 2019 at 01:30:24PM +0900, Masahiro Yamada wrote:
> Hi.
> 
> I have a question about the following code
> in arch/arm/Makefile:
> 
> 
> # Do we have FASTFPE?
> FASTFPE :=arch/arm/fastfpe
> ifeq ($(FASTFPE),$(wildcard $(FASTFPE)))
> FASTFPE_OBJ :=$(FASTFPE)/
> endif
> 
> 
> Since arch/arm/fastfpe does not exist in the upstream tree,
> I guess this is a hook to compile downstream source code.
> 
> If a user puts arch/arm/fastfpe/ into their local source tree,
> Kbuild is supposed to compile the files in it.
> 
> Is this correct?
> 
> 
> If so, I am afraid this would not work for O= building.
> 
> $(wildcard ...) checks if this directory exists in the *objtree*,
> while scripts/Makefile.build needs to include
> arch/arm/fastfpe/Makefile from *srctree*.
> 
> I think the correct code should be like follows:
> 
> # Do we have FASTFPE?
> FASTFPE :=arch/arm/fastfpe
> ifneq ($(wildcard $(srctree)/$(FASTFPE)),)
> FASTFPE_OBJ :=$(FASTFPE)/
> endif
> 
> 
> Having said that, I am not sure this code is worth fixing.
> 
> This code was added around v2.5.1.9,

... as a _result_ of a discussion and deciding not to upstream it,
but to still allow its use.  Fastfpe is faster than nwfpe (so has
a definite advantage for FP intensive applications) but we decided
we didn't want two FP emulation codes in the kernel.  However, if
someone wants to use it, it has to be built into the kernel, it
can't be modular.

> and the actual source code for arch/arm/fastfpe/
> was never upstreamed.
> 
> 
> In general, we do not care much about the downstream code support.
> 
> What should we do about this?
> Fix and keep maintaining? Delete?
> 
> 
> -- 
> Best Regards
> Masahiro Yamada
> 

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up
According to speedtest.net: 11.9Mbps down 500kbps up

  reply	other threads:[~2019-07-10  8:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-10  4:30 Question about ARM FASTFPE Masahiro Yamada
2019-07-10  8:23 ` Russell King - ARM Linux admin [this message]
2019-07-10  9:54   ` Masahiro Yamada
2019-07-10 10:02     ` Russell King - ARM Linux admin
2019-07-10 10:26       ` Russell King - ARM Linux admin
2019-07-10 10:43       ` Masahiro Yamada
2019-07-10 10:46         ` Russell King - ARM Linux admin

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=20190710082335.uzusesefimzpjd3f@shell.armlinux.org.uk \
    --to=linux@armlinux.org.uk \
    --cc=arnd@arndb.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=masahiroy@kernel.org \
    --cc=olof@lixom.net \
    --cc=yamada.masahiro@socionext.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