From patchwork Wed Dec 1 13:05:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephan Gerhold X-Patchwork-Id: 12694322 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CA36EC433EF for ; Wed, 1 Dec 2021 13:13:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; 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=d0UGThRzRLjjAbKB1ZbgXGzGzX/zwGC/Xvrj7yUggDk=; b=PqaL44un0KdiRs 2lqnoAOfTMP74PlpznI3+JqrmEYbR2ekGi+mlA5YghVUKtq7Lrn7l3vfs9h3UwgziUf4JqIeDjbNE TFrn0MgKd7i3J0AjcOHYME4xVsbixv2krFZevvC+pjAXtNIHkE+R6OALRtoGepvsKuwk53P5ENjMp 3pmN65TMOhOS+jGTAgF84zd2PkZCF4iJK0X9DYJw1GVFk1h/S+RGsNWVi7mEypPE9bfXJGLm0MyG3 0WklboeRWQxixuXQBXdHANSH6ILIcm+fqxtsQF6kQInE/GLNn6jXKEKss/M0xG3SLxz8SnYC/kBXT Wkd5xcpN/zGas+y+0BuA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1msPOe-008m9k-P8; Wed, 01 Dec 2021 13:11:40 +0000 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.50]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1msPLk-008j9B-VR for linux-arm-kernel@lists.infradead.org; Wed, 01 Dec 2021 13:08:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1638364110; s=strato-dkim-0002; d=gerhold.net; h=Message-Id:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=1FlbcCNhNwqCUtpY2nQHiXO5hf5Y2HFDjbhAdRUzc18=; b=rkY/fWU1azWv8bvgBV3kL2u8uoPrBCKYp4Ghj7PsPLGxojyxHTgjhuEZv4NfTWPcNd Tu29EYXjRS8haOi0e7pWU1qMJcpycHUIc6Mg6twrQNjvXnqDYlk5+XXL0TTjVN7i4oQw i4kTLnYaSGcVn5BzGWf/bebvq2jPMOTkt90PiKoUS7ilCUzRy1FfhAOmA9Q3JQERQfTq RHQZXlr/mNTtY+KvXnDKPtL8OzWuOG6T65x1dLdNDI+I/Wd9bQR4VBxM9epDUOytvkU2 0QrnUAS3TBXQzW/qwAxesIA3p4tGsctgARvO/F7dT9l4dyFgUI4D9Rtpj2WhwWdLbiMS mjxw== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":P3gBZUipdd93FF5ZZvYFPugejmSTVR2nRPhVORvLd4SsytBXQ7UOGqRde+a0fyL2moo2" X-RZG-CLASS-ID: mo00 Received: from droid.. by smtp.strato.de (RZmta 47.34.10 AUTH) with ESMTPSA id j03bcbxB1D8Tghj (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Wed, 1 Dec 2021 14:08:29 +0100 (CET) From: Stephan Gerhold To: Bjorn Andersson Cc: Daniel Lezcano , linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, Arnd Bergmann , Andy Gross , Stephan Gerhold Subject: [PATCH v3 0/4] qcom_scm: Add support for MC boot address API Date: Wed, 1 Dec 2021 14:05:01 +0100 Message-Id: <20211201130505.257379-1-stephan@gerhold.net> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211201_050841_265597_DE31DBAA X-CRM114-Status: GOOD ( 10.30 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The "firmware: qcom: scm: Add support for MC boot address API" commit was reverted again in 5.16 [1]. This is a new attempt to add it back with much less potential build problems. For that I first simplify the existing qcom_scm_set_cold/warm_boot_addr() implementations. The idea is that cpu_logical_map(), MPIDR_AFFINITY_LEVEL() etc are not needed if we just set the entry address for all CPUs. Nothing in the mainline tree actually requires setting a different entry address for one particular CPU and I cannot really think of a use case for this. [1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=7db2bc925e4642df6255612e5521af0423ada18a Stephan Gerhold (4): cpuidle: qcom-spm: Check if any CPU is managed by SPM firmware: qcom: scm: Simplify set_cold/warm_boot_addr() firmware: qcom: scm: Drop cpumask parameter from set_boot_addr() firmware: qcom: scm: Add support for MC boot address API arch/arm/mach-qcom/platsmp.c | 3 +- drivers/cpuidle/cpuidle-qcom-spm.c | 28 +++++- drivers/firmware/qcom_scm.c | 132 ++++++++++++----------------- drivers/firmware/qcom_scm.h | 5 ++ include/linux/qcom_scm.h | 4 +- 5 files changed, 84 insertions(+), 88 deletions(-)