Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1668384imj; Thu, 14 Feb 2019 10:02:43 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib4fUfOa2DkdWi2/xsmDrcE5Ri51lSsmesN3CXOFIgVFBIuIJbG3cbQQ7ZjoUethylmNWDz X-Received: by 2002:a17:902:22f:: with SMTP id 44mr5466106plc.137.1550167363403; Thu, 14 Feb 2019 10:02:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550167363; cv=none; d=google.com; s=arc-20160816; b=fdZTgkHbzK5PlihIpu53Vz3ah9R9fhWHx/c6JAIyM9PjaX4Z9njJ7CaXnBWBBz/pxF OnhtfSDiLvZfthYIW3+xqIs8NwMlMfInXjgg8J/MeNNdER5pMj9ziNZjiD/iPt510UvF fmJ/WgPqdpOo6kqcagoM50xazTPLsVBJfnwDz8OhiWVtED4oHrouhJopWDmxWoZ2AzAm Zn29glfUp7z1Qynlopw7yMiQ8wj52NcBFNT2Nj6BGpWIEDBPX3RWOYo750m/rWwzTLcR e4GHhkA7tPvbm+qeWzro/9kQOwm5AMrv/7T7QZuN2Nr+bySQNhgmyXB5f1dSwr62erLe dmVw== 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=TkgCso4p56HQyHT3UaUiAyPJ3MeXcgIiIHWY371p0gI=; b=IzA5M4S7VwS8U6ZLAqtEnfg8wy6QsoJ8Cjz//N8oJxuzljJlV620wwYSPf7ceBtdNP dysYu/GhF5ZfVPSEcft8h4frs9lFnEmvfF+MdQrprwUfyAq1mIQeN9PVhFcYnq1qCCh0 Er+MWUB4YgYMvCOHMlSBtsL29ld7q9wIs67vf+DG4Lsggqi7/5VK2+xKQDyiRdAyUt8/ QpLcROOE63mulgQHQzEr0d2mW41Qbv/MbImZmPyjI8IfwBxNBZqTqZF3Hjk7TpSwgEMR ekFvgI5yOp9HTWyoMDfk3P7dijTVr2MW4SlGTMzm1SUjQOjwd1wY6xumtj0ObouhQfKe 5S1A== 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 27si3199432pgp.135.2019.02.14.10.02.27; Thu, 14 Feb 2019 10:02:43 -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 S2404988AbfBNKe5 (ORCPT + 99 others); Thu, 14 Feb 2019 05:34:57 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:40656 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388126AbfBNKe5 (ORCPT ); Thu, 14 Feb 2019 05:34: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 B4E9CEBD; Thu, 14 Feb 2019 02:34: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 38CC23F575; Thu, 14 Feb 2019 02:34:55 -0800 (PST) Date: Thu, 14 Feb 2019 10:34:52 +0000 From: Dave Martin To: Sebastian Andrzej Siewior Cc: Ard Biesheuvel , 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: <20190214103449.GN3567@e103592.cambridge.arm.com> References: <20190208165513.8435-1-julien.grall@arm.com> <20190213143029.ad2kzg7vtuo3zpjk@linutronix.de> <20190213153630.GK3567@e103592.cambridge.arm.com> <20190213165227.7ekekkxazhbaqxoe@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190213165227.7ekekkxazhbaqxoe@linutronix.de> 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 05:52:27PM +0100, Sebastian Andrzej Siewior wrote: > On 2019-02-13 16:40:00 [+0100], Ard Biesheuvel wrote: > > > > 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() > > My question was more if this is helpful and we want to keep or if > it would be better to remove it and always disable BH as part of SIMD > operations. Wouldn't this arbitrarily increase softirq latency? Unconditionally forbidding SIMD in softirq might make more sense. It depends on how important the use cases are... Cheers ---Dave