From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 137DEC433B4 for ; Tue, 18 May 2021 18:37:53 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 96ABF6124C for ; Tue, 18 May 2021 18:37:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 96ABF6124C Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=dqvJjgGun21a6qJ85F01l9NRMHFapNOpqk8xU+5h9vM=; b=JV70tynMgocn6ZUmv9egFBZ4ed lnAfv5CXIyhY60ZMgx7Qrz2sog9ntUHu5mLTfP8YjdXpdSU8Bvra/RZqRR19jFnxE2jmBxXwFU7P8 h1YEazUFlI9EgKbcx9TqHmLI63pjCxfuKpPZjRH1jiEqrG101lrW/4X483vHFu1s6nkXFJeazlYha KBQiQvGy+nj1/zO9mctXDfyRDdEFgDOSxDO9MVG4a7P6HDbANYQWXX/GplXv7NVSRUOqsayaR7bDn dXSj9nPix8E8lNVZVom+n9bQMX+mYZCK6oVCIOE4P0n/lT/MpiPdqLzxjWYYkK1XWiXSIMGV+lrru CNy5GnNw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lj4ZJ-001cWb-1b; Tue, 18 May 2021 18:35:49 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lj4ZF-001cWR-4d for linux-arm-kernel@desiato.infradead.org; Tue, 18 May 2021 18:35:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=kCFehANndrKwaMosYw5B7IFr25rzeG4MTuxEhT101co=; b=NPentUNZQl83woYDdNQJz04EzY CGBsMpQx7LnVqz0fCHtTGdTjUc+Eodn78LlmNpuJpupY61zcaZJ/BjkuS/xeT1o0HkbfFpAoWYRRJ VXcZw4nGHEQsxd4XVr1NceLVDCYoD9zppmXm/yWKqg19f2UtHOZ08NeP553k5YFn4sJ1jcx2fT7q1 OdTcBfJcVuRbE3OLFEPjEiG9WQ1oh/MTMjTQZn/m1ZwHcwINyCAMv9OzLoySATQWIb1HHHfuSiBLF B8yBTEm6rsrykBv3PGhxGj4Hpe5QX6yGQDdPnHNLHQFVcUvUbMu6c5lI0q/S+MxWD/ytR1mQznZOF y16Olhag==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lj4ZC-00EsuR-Dd for linux-arm-kernel@lists.infradead.org; Tue, 18 May 2021 18:35:43 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8CB3261353; Tue, 18 May 2021 18:35:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1621362941; bh=hneXJDmQlE84eIIjqP54Jd8oMxAOzGBfYDl/DYUSONg=; h=From:To:Cc:Subject:Date:From; b=RWxgeGqye56d6KZI8Lc1F2OVQ+rhbelTutT8q4ZWhWrFsUKX6dO/dfaAm/Ul9i90N sQog66uB4vWQ6fy33hF1MoHxk6H4seuA2coDosp+v0l1mR+gevdhfnrqppdkzw/iR3 mCDfhrpACPb6q5sck/REPnR6rK/s1aKQDg0HNfVsCsNm2IBvvfPe9beah3aTB2k7US QE8qnuUbv2/br0LVY4nrR/ShhC/7QuXwJwUlRmeUMsIxTk8p77yq//TYuER3ga9KzL acFyrrzRydb1asqXiNtBgpZSzumZ4qRXBAOP4KuELXNNijGNSdHkeTCYx8bAiq5Bk/ gbUSVBwmxnWlw== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Mark Rutland , Lorenzo Pieralisi , Sudeep Holla , Marc Zyngier , Ard Biesheuvel , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v2 0/2] arm64: Implement SMCCC v1.3 SVE register saving hint Date: Tue, 18 May 2021 19:25:47 +0100 Message-Id: <20210518182549.38635-1-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1648; h=from:subject; bh=hneXJDmQlE84eIIjqP54Jd8oMxAOzGBfYDl/DYUSONg=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBgpAaqdGhzMKhVWrGw3ITsCcxpUHWDXRLB207FMzKe rCNI1qCJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYKQGqgAKCRAk1otyXVSH0B8aB/ 4xrNcuROaNdnxmekmDScXd0XAyinVpmCKTxEy2JLkqM8PCY/3+W5E8QBXcVhhRrDO5Im0nqgZl/AER cc4J4ChJPkUxBjwtsYLjH2nkUdH4/oy+qpqL2GTbjxezxjQHg0Qpn0/rV3WWKPGUQJix/ZgLkr2SJy 3CWXFMe9oPVHA1HxxQmovUbWEm9MWp8/vAOVj6JIgZH4+XhOozHtK/AtMBDvaDSExT8MWXOs6IYwH4 lEkTf/0hjy5YzGCn0UHbJDVKyjfsiPJxYQsGhQL+Y7L7xpOV2obK2sgbc+uJd6/fNj7LDklQUv1MVk 6+4PRxDoXUhSbu4iYP0RWCazcV4eNh X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210518_113542_497724_3D3AD868 X-CRM114-Status: GOOD ( 13.70 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org SMCCC v1.3 provides support for a flag which allows the caller to say that there is no state that needs to be preserved in the SVE registers, meaning that the called code can skip doing this, especially with larger vector lengths this can save a noticable amount of work in the event that the state needs to be saved. Implement support for this, using the TIF_ flags to report if there is live SVE state present. This overlaps with Sudeep's patch "arm64: smccc: Add support for SMCCCv1.2 extended input/output registers"[1] although there shouldn't be any conflicts, that adds some new SMCCC calls for v1.2 - the new functions for v1.2 calls will need updating to take advantage of the hint bit. v2: - Use ldr_l rather than adrp/ldr so we load the hint flag rather than the start of the 4K block the hint flag happens to be in. - Disable the optimisation when running in nVHE so we don't try to jump to a function that isn't mapped or look at a current task that isn't meaningful. - Use _TIF for a bitfield like we should've done first time round. [1] https://lore.kernel.org/r/20210518163618.43950-1-sudeep.holla@arm.com Mark Brown (2): arm64: asmlinkage: Enable use of BTI_C macro in SYM_CODE arm64: smccc: Support SMCCC v1.3 SVE register saving hint arch/arm64/include/asm/linkage.h | 4 ++++ arch/arm64/kernel/smccc-call.S | 38 ++++++++++++++++++++++++++++++++ drivers/firmware/smccc/smccc.c | 4 ++++ include/linux/arm-smccc.h | 23 +++++++++++++++++-- 4 files changed, 67 insertions(+), 2 deletions(-) base-commit: d07f6ca923ea0927a1024dfccafc5b53b61cfecc -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel