Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3620720yba; Tue, 23 Apr 2019 06:59:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwLauEY6IxeUdbVAQmhFOt0Xa9nhpxkzRrW9qBOOJVbBdabGuggJBGiP3sk0VaIlWlVeQ00 X-Received: by 2002:a17:902:56e:: with SMTP id 101mr25895854plf.142.1556027988843; Tue, 23 Apr 2019 06:59:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556027988; cv=none; d=google.com; s=arc-20160816; b=WpjIfo85LjxjnsNmNdB+5F0d/YX5+AhLoLK+21Bl45AoV+88cl8bQuzBg4kioYot3h UGWO8FBnyJRRRRWV12K8BDXG8VekVUzoMrdN4UEz8b+4L8SnnEyKLvO2qUen9cHaCMDn 28/6tUtORenCXZLSHh1J3m2bQvDjA2AnWUbi74PIM4UHvGsDTc8qIDb+k0ILKZoqe49p gZDOqeoOpvcVDMCzsUf4RNuaOreSKLIvkWEtVH7c3kvVwtq8+lA9ErgaBxhSRv/Kx67E QeRGhMwNoMiET/mp8BFpO0t9uhvgmIFmBNH+NUYjOgjcG/gBAKKddJZqaQdJcqWDzXHX MEog== 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=i0a/5w/ENEiPGxTgRfXdYPQCooWu09X9PCHlUjZiBLw=; b=yZiVFJ55M5hN4kFVm8VnJSkwHUkfG0CUoWr4IUZnzn99s4H2iunOkZxW9yR7VmsfiU MZdVTxYgf8kc7zLePoz5lF5aOZNQdMOXj95xip9zPTFZWstaNWuZwFkF+itmASuS4yKK LxzfhOLSZCKr8SimsYEJzP3Drtu67wBArQ9f5w5ytnavPVZeTn/vSrKvL36mdfsMKY/Y ZmLh44XAM4CeOvIoIUbht9A6to2+OZ4MEgQf3sGGhnYkm7FMf1GsUvJ8Mec32w1Vhe/4 rrhgIDWrutyauw7NPetixDTmRY3xep/z6BTKqfvudFXYxt7uh0XMVbcXnkRSoX0vRyAz 0nWg== 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 a67si16163636pla.350.2019.04.23.06.59.33; Tue, 23 Apr 2019 06:59:48 -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 S1727840AbfDWN51 (ORCPT + 99 others); Tue, 23 Apr 2019 09:57:27 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:56914 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727305AbfDWN51 (ORCPT ); Tue, 23 Apr 2019 09:57:27 -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 A1017A78; Tue, 23 Apr 2019 06:57:26 -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 779FE3F238; Tue, 23 Apr 2019 06:57:24 -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 v3 0/3] arm64/fpsimd: Don't disable softirq when touching FPSIMD/SVE state Date: Tue, 23 Apr 2019 14:57:16 +0100 Message-Id: <20190423135719.11306-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 keeps 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 | 10 +-- arch/arm64/kernel/fpsimd.c | 135 +++++++++++++++++++++++++++------------- arch/arm64/kvm/fpsimd.c | 4 +- 4 files changed, 100 insertions(+), 55 deletions(-) -- 2.11.0