From patchwork Tue Apr 23 13:57:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 162700 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp3818986jan; Tue, 23 Apr 2019 06:57:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqwEovX47lKmojS3TCfE8arZJpnl5JrlOYO+akHKLky9ts0pTtwqUzL4NmDCSnTXlfNOxHyH X-Received: by 2002:a65:6201:: with SMTP id d1mr7843957pgv.28.1556027848919; Tue, 23 Apr 2019 06:57:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556027848; cv=none; d=google.com; s=arc-20160816; b=QwngyRghMIdqVHtpv69JD5P4gpLdR8wq6X/JLgl9x7Siry4iACDHcUBbTJCMNCWbv5 5UaRFOHN6eWV8CTCBGAxkcjZn6mo3tFnyvuxkTqHuLgv7PPyO46e6beK4OWbyCxliKJf mCngvA8uRCI8emxf68QrTQe5n4uFM9oS1BnYDVTf8pWGv2GDbW+0+J0EY5PyIWs0hW+n p1z4dqw8p7Q/+YUPA07dkmH7rpngKVfEdZhzPWw9f7aEL1oRLP6bmxdZhe7TsldRzITH LOHKY0cmB9pze0J2KnFUVNfzRIwIkpRPOcMBqKB6/gQh9XYZDcXmhVHyI5aRoy2wpYn+ U/8w== 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 j5si15975461pfi.166.2019.04.23.06.57.28; Tue, 23 Apr 2019 06:57:28 -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 S1727893AbfDWN51 (ORCPT + 30 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