Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp275634imj; Wed, 13 Feb 2019 08:09:48 -0800 (PST) X-Google-Smtp-Source: AHgI3IZcgYNq1eyLMTd4e3SxVR+146oTuig0qv0VtP/RaFm6yox2aLFbZwLuhf1SQ/VkB+k3ugdk X-Received: by 2002:a17:902:12f:: with SMTP id 44mr1293146plb.74.1550074188436; Wed, 13 Feb 2019 08:09:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550074188; cv=none; d=google.com; s=arc-20160816; b=jDtEILi6rxhdxKuJlDpD+5XM1y3br9OQSagycERSRkNXv6fv8+Q9Gl5mmcsgEWJYi/ lZKimrVZ+IHWKJq+REAPLOeG+PRBESHyFRSuSJLsLBv9mb8IdsSKoZlIemATVxagz1xi isWY+m4zN6HFk6a/gGb7ikTZZUae0qNune5SLUCJVmv9EAJUeHbUqInp+jCXRBoa8mMI ddLMPKLc7VV5VD0kI23GhA9/Gnkabn83lu+A0wUJ/jPJsGB7A7JGYlF6PcIdwYl7LUJF QX25Ku3rDSAbesvURXASHFN0FbmO53om1wQ9lEWgCfPmNzlltc76VK6JLDp5wROH4HvC cHtg== 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; bh=OfNetxBYGOZxH/TCtqLZoc09hIgctmG6HtIljVqP8qQ=; b=ls3W6G7OiKtc8aef4MTpuvHEN5+24WoAUK7Rc5yl7Chp+Ihv6zu1zQDI7oLAo/gOIP qOEdX+0cCgJzr0hZWcyJFqkQ+saIbJ+zCsz9a1q4eTlxtOG/VUjtwk/NpLznIHEhZ5TM tDaZMNljlgDCPMVAR8AYJLHMDdy2dfmyRLAxfaCKAdBN33tdpInB09c+vIQhmWOykcml 47JncDmr0/twss7LAXfFXgKdmRciHgmtS9GGA+MvI0SDLBpiM8urb8bIm3NJnTK++923 JR5cGgD1B0H/YPkU0jnefZQ+HsYh/MjPw+A7FNv5BX3xvyE1MUuulv99GTBJ1DxuuD52 Ampg== ARC-Authentication-Results: i=1; mx.google.com; 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 i38si5722800pgm.140.2019.02.13.08.09.29; Wed, 13 Feb 2019 08:09:48 -0800 (PST) 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; 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 S2392496AbfBMPm5 (ORCPT + 99 others); Wed, 13 Feb 2019 10:42:57 -0500 Received: from foss.arm.com ([217.140.101.70]:56344 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726411AbfBMPm5 (ORCPT ); Wed, 13 Feb 2019 10:42:57 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id EDC04A78; Wed, 13 Feb 2019 07:42:56 -0800 (PST) Received: from e103592.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 72E6E3F575; Wed, 13 Feb 2019 07:42:55 -0800 (PST) Date: Wed, 13 Feb 2019 15:42:53 +0000 From: Dave Martin To: Ard Biesheuvel Cc: Sebastian Andrzej Siewior , Julien Grall , linux-arm-kernel , linux-rt-users@vger.kernel.org, Catalin Marinas , Will Deacon , Linux Kernel Mailing List Subject: Re: [RFC PATCH] arm64/fpsimd: Don't disable softirq when touching FPSIMD/SVE state Message-ID: <20190213154252.GL3567@e103592.cambridge.arm.com> References: <20190208165513.8435-1-julien.grall@arm.com> <20190213143029.ad2kzg7vtuo3zpjk@linutronix.de> <20190213153630.GK3567@e103592.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 13, 2019 at 04:40:00PM +0100, Ard Biesheuvel wrote: > On Wed, 13 Feb 2019 at 16:36, Dave Martin wrote: > > > > On Wed, Feb 13, 2019 at 03:30:29PM +0100, Sebastian Andrzej Siewior wrote: > > > On 2019-02-08 16:55:13 [+0000], Julien Grall wrote: > > > > When the kernel is compiled with CONFIG_KERNEL_MODE_NEON, some part of > > > > the kernel may be able to use FPSIMD/SVE. This is for instance the case > > > > for crypto code. > > > > > > > > Any use of FPSIMD/SVE in the kernel are clearly marked by using the > > > > function kernel_neon_{begin, end}. Furthermore, this can only be used > > > > when may_use_simd() returns true. > > > > > > This is equal what x86 is currently doing. The naming is slightly > > > different, there is irq_fpu_usable(). > > > > Yes, I think it's basically the same idea. > > > > It's been evolving a bit on both sides, but is quite similar now. > > > > may_use_simd() only exists because we have a generic crypto SIMD > helper, and so we needed something arch agnostic to wrap around > irq_fpu_usable() [...] Sounds plausible. Cheers ---Dave