Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp288285ybm; Wed, 22 May 2019 03:12:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8/9FjP91cuR6Yw0EzvAeSESfc+G83GfPnqJkfXlagiv9m6+eXWg1I4sgOrzG4rDzL7pRW X-Received: by 2002:a63:484d:: with SMTP id x13mr5060790pgk.275.1558519962495; Wed, 22 May 2019 03:12:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558519962; cv=none; d=google.com; s=arc-20160816; b=S58vAkuximFrOSoPlVSDEHQliZZ5rXLXL9D72l8w4aSaQq1tspPo4q24i338sOOnBT yG2BuONW0HsHxEU1ORVVv+LoABp+n3dbCoRwCvKcN6gmTZIvTZW0mgLMj470qSYNo1Hb 0zaJ0lrA6uOZsT+hKFf1k/V2RF+Izwdh39TRnK5RQOntupxG/lpHvUT3Kun5ifE8vP5C awTu6WAgknDRMcyPayqcHVSz+/mvvoErzcVWtEHffgWFP5Cv8rsO/T23uXf8eqX2nFTr 1qhTaOA27wAqsd7L34drQIZ4yuxdIc0fdzVh8IOAKn08xVSQmQoy5xeRbZYhR6Eak8Pa Al6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Vl4fulWg8ePTcpdzaL7cgBOzkm/3rhkDJE9Tf5xL09U=; b=XBSlMO9Pku6mjDFOeOXET6uubmA2Ou8mrs/fVXon9z8muyJMgKawG254uFv3lq9BaH h0zIfuXJFNXH2mo4gTUurzXM+3811KmA4lPHmkHhtcxMf655wYFOHZvAmhsBc2m7GzMd htiYNi4ik/v+Yg4BcfLoZm6QS/pPuEDe8TJcLqVQSkounoVa0ogX+EWc44G3bVsPo5WF drtxQQ/YUlzbz35NbR1xqYwqaGWfgPqz3T8qnf0ppsCD7Fg2XGnD0eUlrwRuktyupdMY ik73y80DZH9Z2adFmzFR7mucf0txu22/UTOkU70CgdwOXsaYgzU5W9vszcsOVUG8ZPFc wEWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bhMoO9b4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z33si22998004pgk.516.2019.05.22.03.12.26; Wed, 22 May 2019 03:12:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bhMoO9b4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728952AbfEVKKD (ORCPT + 99 others); Wed, 22 May 2019 06:10:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:60192 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728424AbfEVKKD (ORCPT ); Wed, 22 May 2019 06:10:03 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 31A5020863; Wed, 22 May 2019 10:10:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1558519802; bh=fjSUsl7+ylbVqp71Ri0/DWUzGL9Kyn1X+h1AuUerIOw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bhMoO9b4ACIo+GhJUTw/Xd/LmOG8DLNEmBSqsqwW5R4OrwMLJYbywTvXwm3uN52wh VlSij/ZHtt2WmLffZY5pIyN9nxxv1CQYUbk+6u+boMJ8rjOyO28eUZDCHx66YsEHi3 DUzkQ6zG3a4vK0Zjob7LHVL6PqCUkmvyxeVJKxQQ= Date: Wed, 22 May 2019 12:09:59 +0200 From: Greg KH 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@list.zfsonlinux.org, x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/fpu: allow kernel_fpu_{begin,end} to be used by non-GPL modules Message-ID: <20190522100959.GA15390@kroah.com> References: <20190522044204.24207-1-cyphar@cyphar.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190522044204.24207-1-cyphar@cyphar.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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" > Signed-off-by: Aleksa Sarai > --- > 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