From patchwork Fri Apr 12 17:14:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 162132 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp884997jan; Fri, 12 Apr 2019 10:14:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5QGl+/h6GBraxTaZE18dPRxz3D8UvzYn3GlRH269fkLb5FQjTvdDTtytQoAOEFtPmN4xD X-Received: by 2002:a17:902:be04:: with SMTP id r4mr59439231pls.218.1555089273663; Fri, 12 Apr 2019 10:14:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555089273; cv=none; d=google.com; s=arc-20160816; b=esujYGh/uIxQKS4UMoHf2jKvsTLVUv/4UVCa1VKVmTq2dO0Qv7v9sbqDhby6XSWgno xZoYZ0nb/m7tpHqvQwO1am6p8sdG/ZUdreI1JmOvnfPtAC7luWKSTC43LHcB9jSkxxk/ kJXAGxkjqB82QijfIjr+lGU27ZeLuydjzyRztiqpVhrTBdiKNJ7NPWzo4DkGh0CB/K1N dSHo7LVCKZrBYhmcGx76ZkvnI5BUrivFC54fp24KTC2SM5QcL3lMp0eZAQ5HVJtwVmjW OG94zEf0/PBdxloJSpXmPg4xJAuIUZNC+Z5A2cneuHjs/Vj8K6Z9/Kme7Xc5OkBspoi2 NC7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=ddv76JyREgHaZAzxHGc2KmkQsOVkGg7TaqTM1SPWSYg=; b=XpQKxikQVoEWNexwuMBc5lljpj5CApkALTY5FNASkOxaEZ1C5PqbzFX+yC3hnqIzDJ X2Gx7ixldZA6LLvFoVGQd9VzQ7QFLNWvrXkq9x2vc0iqOJ186y0XifKoLnuH/HPhX0Sp BkrAR8Fu0RK6bCoeG6Mqe+vNlpB5sObs265DgKHUAwjYtlXwHhYMwBlWHCNzHkT3r4Sn j3WS5SHZOxeK+Ja9dRItryfjAJT52IE3USvEh6ele/24ua01mCo+tyG/N6n2nwbcxQz8 BTqiCVufspnvzVH9gEstIJ3JNf+uDPZ2psQpHhL471gB45n+pf9F1Se6gbEmVLCVjey/ xpzQ== 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 v124si36757438pgb.475.2019.04.12.10.14.33; Fri, 12 Apr 2019 10:14:33 -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; 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 S1726843AbfDLROb (ORCPT + 31 others); Fri, 12 Apr 2019 13:14:31 -0400 Received: from foss.arm.com ([217.140.101.70]:37062 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726711AbfDLROa (ORCPT ); Fri, 12 Apr 2019 13:14:30 -0400 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 95DD715AB; Fri, 12 Apr 2019 10:14:30 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.196.50]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7E5AB3F718; Fri, 12 Apr 2019 10:14:28 -0700 (PDT) From: Julien Grall To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: catalin.marinas@arm.com, will.deacon@arm.com, christoffer.dall@arm.com, marc.zyngier@arm.com, james.morse@arm.com, julien.thierry@arm.com, suzuki.poulose@arm.com, Dave.Martin@arm.com, ard.biesheuvel@linaro.org, Julien Grall Subject: [PATCH v2 0/3] arm64/fpsimd: Don't disable softirq when touching FPSIMD/SVE state Date: Fri, 12 Apr 2019 18:14:17 +0100 Message-Id: <20190412171420.29065-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, This patch series keep softirqs enabled while touching FPSIMD/SVE state. For more details on the impact see patch #3. This patch series has been benchmarked on Linux 5.1-rc4 with defconfig. On Juno2: * hackbench 100 process 1000 (10 times) * .7% quicker On ThunderX 2: * hackbench 1000 process 1000 (20 times) * 3.4% quicker Note that while the benchmark has been done on 5.1-rc4, the patch series is based on kvm-arm/next as it has few conflicts with the SVE KVM series. Cheers, Julien Grall (3): arm64/fpsimd: Remove the prototype for sve_flush_cpu_state() arch/arm64: fpsimd: Introduce fpsimd_save_and_flush_cpu_state() and use it arm64/fpsimd: Don't disable softirq when touching FPSIMD/SVE state arch/arm64/include/asm/fpsimd.h | 6 +- arch/arm64/include/asm/simd.h | 4 +- arch/arm64/kernel/fpsimd.c | 148 +++++++++++++++++++++++++++++----------- arch/arm64/kvm/fpsimd.c | 3 +- 4 files changed, 112 insertions(+), 49 deletions(-) -- 2.11.0