All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/fpu: allow kernel_fpu_{begin,end} to be used by non-GPL modules
@ 2019-05-22  4:42 Aleksa Sarai
  2019-05-22 10:09 ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Aleksa Sarai @ 2019-05-22  4:42 UTC (permalink / raw)
  To: Thomas Gleixner, Ingo Molnar, Borislav Petkov, H. Peter Anvin
  Cc: Aleksa Sarai, Jason A. Donenfeld, Rik van Riel, Nicolai Stange,
	Sebastian Andrzej Siewior, zfs-devel, x86, linux-kernel

Prior to [1], all non-GPL modules were able to make use of SIMD on x86
by making use of the __kernel_fpu_* API. Given that __kernel_fpu_* were
both EXPORT_SYMBOL'd and kernel_fpu_* are such trivial wrappers around
the now-static __kernel_fpu_*, it seems to me that there is no reason to
have different licensing rules for them.

In the case of OpenZFS, the lack of SIMD on newer Linux kernels has
caused significant performance problems (since ZFS uses SIMD for
calculation of blkptr checksums as well as raidz calculations).

[1]: commit 12209993e98c ("x86/fpu: Don't export __kernel_fpu_{begin,end}()")

Cc: "Jason A. Donenfeld" <Jason@zx2c4.com>
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
---
 arch/x86/kernel/fpu/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/fpu/core.c b/arch/x86/kernel/fpu/core.c
index 2e5003fef51a..8de5687a470d 100644
--- a/arch/x86/kernel/fpu/core.c
+++ b/arch/x86/kernel/fpu/core.c
@@ -127,14 +127,14 @@ void kernel_fpu_begin(void)
 	preempt_disable();
 	__kernel_fpu_begin();
 }
-EXPORT_SYMBOL_GPL(kernel_fpu_begin);
+EXPORT_SYMBOL(kernel_fpu_begin);
 
 void kernel_fpu_end(void)
 {
 	__kernel_fpu_end();
 	preempt_enable();
 }
-EXPORT_SYMBOL_GPL(kernel_fpu_end);
+EXPORT_SYMBOL(kernel_fpu_end);
 
 /*
  * Save the FPU state (mark it for reload if necessary):
-- 
2.21.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] x86/fpu: allow kernel_fpu_{begin,end} to be used by non-GPL modules
  2019-05-22  4:42 [PATCH] x86/fpu: allow kernel_fpu_{begin,end} to be used by non-GPL modules Aleksa Sarai
@ 2019-05-22 10:09 ` Greg KH
  2019-05-23 16:52   ` [zfs-devel] " Mason Loring Bliss
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2019-05-22 10:09 UTC (permalink / raw)
  To: Aleksa Sarai
  Cc: Thomas Gleixner, Ingo Molnar, Borislav Petkov, H. Peter Anvin,
	Jason A. Donenfeld, Rik van Riel, Nicolai Stange,
	Sebastian Andrzej Siewior, zfs-devel, x86, linux-kernel

On Wed, May 22, 2019 at 02:42:04PM +1000, Aleksa Sarai wrote:
> Prior to [1], all non-GPL modules were able to make use of SIMD on x86
> by making use of the __kernel_fpu_* API. Given that __kernel_fpu_* were
> both EXPORT_SYMBOL'd and kernel_fpu_* are such trivial wrappers around
> the now-static __kernel_fpu_*, it seems to me that there is no reason to
> have different licensing rules for them.
> 
> In the case of OpenZFS, the lack of SIMD on newer Linux kernels has
> caused significant performance problems (since ZFS uses SIMD for
> calculation of blkptr checksums as well as raidz calculations).
> 
> [1]: commit 12209993e98c ("x86/fpu: Don't export __kernel_fpu_{begin,end}()")
> 
> Cc: "Jason A. Donenfeld" <Jason@zx2c4.com>
> Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
> ---
>  arch/x86/kernel/fpu/core.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/x86/kernel/fpu/core.c b/arch/x86/kernel/fpu/core.c
> index 2e5003fef51a..8de5687a470d 100644
> --- a/arch/x86/kernel/fpu/core.c
> +++ b/arch/x86/kernel/fpu/core.c
> @@ -127,14 +127,14 @@ void kernel_fpu_begin(void)
>  	preempt_disable();
>  	__kernel_fpu_begin();
>  }
> -EXPORT_SYMBOL_GPL(kernel_fpu_begin);
> +EXPORT_SYMBOL(kernel_fpu_begin);
>  
>  void kernel_fpu_end(void)
>  {
>  	__kernel_fpu_end();
>  	preempt_enable();
>  }
> -EXPORT_SYMBOL_GPL(kernel_fpu_end);
> +EXPORT_SYMBOL(kernel_fpu_end);

No, please, we have gone over this before, we do not care at all about
external kernel modules, ESPECIALLY ones that are not GPL compatible.

greg k-h

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [zfs-devel] Re: [PATCH] x86/fpu: allow kernel_fpu_{begin,end} to be used by non-GPL modules
  2019-05-22 10:09 ` Greg KH
@ 2019-05-23 16:52   ` Mason Loring Bliss
  0 siblings, 0 replies; 3+ messages in thread
From: Mason Loring Bliss @ 2019-05-23 16:52 UTC (permalink / raw)
  To: Devel
  Cc: Aleksa Sarai, Thomas Gleixner, Ingo Molnar, Borislav Petkov,
	H. Peter Anvin, Jason A. Donenfeld, Rik van Riel, Nicolai Stange,
	Sebastian Andrzej Siewior, x86, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 630 bytes --]

On Wed, May 22, 2019 at 12:09:59PM +0200, Greg KH wrote:

> No, please, we have gone over this before, we do not care at all about
> external kernel modules, ESPECIALLY ones that are not GPL compatible.

The best option here is for you to start caring. Makes the world a better
place.

Free software people doing what they can to attack other free software based
on relatively trivial idealogical differences isn't a good look, and it's bad
for the users.

-- 
Mason Loring Bliss  ((   If I have not seen as far as others, it is because
 mason@blisses.org   ))   giants were standing on my shoulders. - Hal Abelson

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-23 17:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-22  4:42 [PATCH] x86/fpu: allow kernel_fpu_{begin,end} to be used by non-GPL modules Aleksa Sarai
2019-05-22 10:09 ` Greg KH
2019-05-23 16:52   ` [zfs-devel] " Mason Loring Bliss

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.