From: Mark Rutland <mark.rutland@arm.com>
To: ??? <wooy88.kim@samsung.com>
Cc: 'Dave Martin' <Dave.Martin@arm.com>,
'Catalin Marinas' <catalin.marinas@arm.com>,
'Bhupesh Sharma' <bhsharma@redhat.com>,
'Julien Grall' <julien.grall@arm.com>,
'Vincenzo Frascino' <vincenzo.frascino@arm.com>,
'Will Deacon' <will@kernel.org>,
yhwan.joo@samsung.com, 'Anisse Astier' <aastier@freebox.fr>,
'Marc Zyngier' <maz@kernel.org>,
'Allison Randal' <allison@lohutok.net>,
'Sanghoon Lee' <shoon114.lee@samsung.com>,
jihun.kim@samsung.com, 'Kees Cook' <keescook@chromium.org>,
'Suzuki K Poulose' <suzuki.poulose@arm.com>,
'Wooki Min' <wooki.min@samsung.com>,
'Kristina Martsenko' <kristina.martsenko@arm.com>,
'Jeongtae Park' <jtp.park@samsung.com>,
'Thomas Gleixner' <tglx@linutronix.de>,
linux-arm-kernel@lists.infradead.org,
'Steve Capper' <steve.capper@arm.com>,
'Greg Kroah-Hartman' <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org, 'James Morse' <james.morse@arm.com>,
'Sudeep Holla' <sudeep.holla@arm.com>,
dh.han@samsung.com
Subject: Re: [PATCH] arm64: fpsimd: Added API to manage fpsimd state inside kernel
Date: Thu, 11 Jun 2020 13:47:04 +0100 [thread overview]
Message-ID: <20200611124704.GC53118@C02TD0UTHF1T.local> (raw)
In-Reply-To: <000001d63fd1$23430d80$69c92880$@samsung.com>
On Thu, Jun 11, 2020 at 06:17:32PM +0900, ??? wrote:
> > On Fri, Jun 05, 2020 at 11:37:05AM +0100, Mark Rutland wrote:
> > > Please introduce the problem you are trying to solve in more detail.
> > > We already have kernel_neon_{begin,end}() for kernel-mode NEON; why is
> > > that not sufficient for your needs? Please answer this before
> > > considering other details.
> > >
> > > What do you want to use this for?
>
> > Ack, this looks supicious. Can you explain why your usecase _requires_
> > FPSIMD in hardirq context?
> >
> > For now, these functions are strictly for EFI use only and should never be
> > used by modules.
>
> I am in charge of camera driver development in Samsung S.LSI division.
>
> In order to guarantee real time processing
> such as Camera 3A algorithm in current or ongoing projects,
> prebuilt binary is loaded and used in kernel space, rather than user space.
> Because the binary is built with other standard library which could use
> FPSIMD register,
> kernel API should keep the original FPSIMD state for other user tasks.
> It is mostly used for internal kernel operation including hardirq context.
> (ex> hardIRQ context, kernel API called by user, kernel task)
That sounds incredibly dodgy to me, both from a correctness perspective
and a licensing perspective. Upstream doesn't support out-of-tree
modules, nor does upstream support binary blobs within the kernel, so
the above cannot justify this change to the kernel.
If you wish to do such processing within the kernel, I think you'll need
to post a more complete in-tree solution for inclusion in mainline.
However, I suspect that it will be difficult to justify NEON in hardirq
context given preempt rt and friends.
Thanks,
Mark.
next prev parent reply other threads:[~2020-06-11 12:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20200605073214epcas2p1576f3f90dbcefaad6180f2559ca5980d@epcas2p1.samsung.com>
2020-06-05 7:30 ` Wooyeon Kim
2020-06-05 10:37 ` Mark Rutland
2020-06-08 10:34 ` Dave Martin
2020-06-11 9:17 ` ???
2020-06-11 12:47 ` Mark Rutland [this message]
2020-06-11 9:42 ` Wooyeon Kim
2020-06-11 14:11 ` Catalin Marinas
2020-06-15 10:30 ` Dave Martin
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=20200611124704.GC53118@C02TD0UTHF1T.local \
--to=mark.rutland@arm.com \
--cc=Dave.Martin@arm.com \
--cc=aastier@freebox.fr \
--cc=allison@lohutok.net \
--cc=bhsharma@redhat.com \
--cc=catalin.marinas@arm.com \
--cc=dh.han@samsung.com \
--cc=gregkh@linuxfoundation.org \
--cc=james.morse@arm.com \
--cc=jihun.kim@samsung.com \
--cc=jtp.park@samsung.com \
--cc=julien.grall@arm.com \
--cc=keescook@chromium.org \
--cc=kristina.martsenko@arm.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maz@kernel.org \
--cc=shoon114.lee@samsung.com \
--cc=steve.capper@arm.com \
--cc=sudeep.holla@arm.com \
--cc=suzuki.poulose@arm.com \
--cc=tglx@linutronix.de \
--cc=vincenzo.frascino@arm.com \
--cc=will@kernel.org \
--cc=wooki.min@samsung.com \
--cc=wooy88.kim@samsung.com \
--cc=yhwan.joo@samsung.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
all inboxes | Powered by JetHome®