Message ID | 20231129-j7200-tisci-s2r-v1-0-c1d5964ed574@bootlin.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 641F6C07CB1 for <linux-arm-kernel@archiver.kernel.org>; Wed, 29 Nov 2023 15:32:11 +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:Cc:To:MIME-Version:Message-Id:Date: Subject: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=bAko8Wo1+X6YnIPLEqNOORONn4F7ypYJKZYx3jzSwhs=; b=aMhmDWRl7fMQ5e 5Up2/WJmaPcwpaBi5YfEfuefFWKg2h/tThDvhHV695GA3LFQpJxGZqsx2sf8Q0ksxlh+BWxwRQwkh Ve7RbEY+r8iow4Gly8vjY9Xr1CWnstp5OX6mNq6WFFXHy8l4E3aqHpF5hkrb/2E2bNflxUF/pJBNV E3fiQJNDBEEgC6TTCQxA1t8BpoH+UEhs3AEinJhRuMQ6KdmG5+H3tH410ePJoT8N4gQEUhZmJ3VLq Ufq96kJCDxKGjAeRu1G5EGoenx1MTbYNpBRFteOVHqyu3ZzUj0n0pqJJhBW/Z9ya6afpDu60JGtav 7XwnxgB8SbTUF/J72L6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r8MXQ-008kfi-3C; Wed, 29 Nov 2023 15:31:44 +0000 Received: from relay4-d.mail.gandi.net ([2001:4b98:dc4:8::224]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r8MX9-008kaE-36 for linux-arm-kernel@lists.infradead.org; Wed, 29 Nov 2023 15:31:30 +0000 Received: by mail.gandi.net (Postfix) with ESMTPSA id 01BDEE0003; Wed, 29 Nov 2023 15:31:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701271883; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=WerIBZOnq6P8oT/o/o5rlHVAMWDVtIsPC8yaH6UlHFk=; b=efx3Mr/Y1F3Vc6GzFGkw0FVPYoq7B9HKnvqdqyWwV8nFwAyiIX3kJmYw1EuZ7xRaZ6ULbR LtwaDlm41FYNS3cR9BvWcouPCKe3Ldj6lCeEwO8De0ozO1ZrIZutYOUxSbEsBmVXm/wqdQ 7DgjL1vF7jVApL1d67dRJuAXcD2FUeAsyDoGriMrjbvN9VQo+87XUHdMaVNyJlBr4THvAw fKhCAsTsX2l+chewhEBuh9OJqnIn5z8H9JOL7TBIpTX140ZfCQMDxOHbuxk4kPGi1RfYx4 C6szAcd+XgdaCcuxNfG1mcfRbSw0t059X+Hb9SQyvct1KgYCvE9SKZE/5+iG2Q== From: Thomas Richard <thomas.richard@bootlin.com> Subject: [PATCH 0/5] Add suspend/resume support in ti_sci driver for j7200 Date: Wed, 29 Nov 2023 16:31:16 +0100 Message-Id: <20231129-j7200-tisci-s2r-v1-0-c1d5964ed574@bootlin.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAERZZ2UC/x2N0QrCMAxFf2Xk2UCb6qT+ivjQxegiWCUZQxj7d 7s9Hs493AVcTMXh0i1gMqvrpzaIhw54LPUpqPfGQIFSjJTxdaYQcFJnRSfDPjPFzCkdTz20aig uOFipPG7du/gkti/ntPmvyUN/++P1tq5/s4uniYEAAAA= To: Nishanth Menon <nm@ti.com>, Tero Kristo <kristo@kernel.org>, Santosh Shilimkar <ssantosh@kernel.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Vignesh Raghavendra <vigneshr@ti.com> Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, gregory.clement@bootlin.com, u-kumar1@ti.com, Thomas Richard <thomas.richard@bootlin.com> X-Mailer: b4 0.12.0 X-GND-Sasl: thomas.richard@bootlin.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231129_073128_317722_A4D7641B X-CRM114-Status: GOOD ( 13.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Add suspend/resume support in ti_sci driver for j7200
|
expand
|
During suspend, some devices free their irqs and request them at resume. But there are some devices which don't do it, and assume that it's done by the resource allocator. On j7200, during suspend to ram the SoC is powered-off, so the allocated irqs are lost. With this series, ti_sci has an internal list of allocated irqs. It will restore these irqs during its resume_noirq. Moreover, ti_sci checks that there is at least a reserved memory region for lpm. These regions are used by TF-A and R5 SPL during suspend and resume. We need to reserve some memory from the linux point of view to avoid any memory corruption. A new compatible (ti,j7200-sci) was created for this specific behavior. Signed-off-by: Thomas Richard <thomas.richard@bootlin.com> --- Thomas Richard (5): dt-bindings: arm: keystone: add ti,j7200-sci compatible firmware: ti_sci: add suspend/resume support for irqs arm64: dts: ti: k3-j7200: use ti,j7200-sci compatible firmware: ti-sci: for j7200 before suspend check the reserved memory for lpm arm64: dts: ti: k3-j7200: add reserved memory regions for lpm .../devicetree/bindings/arm/keystone/ti,sci.yaml | 2 + arch/arm64/boot/dts/ti/k3-j7200-mcu-wakeup.dtsi | 2 +- arch/arm64/boot/dts/ti/k3-j7200-som-p0.dtsi | 10 ++ drivers/firmware/ti_sci.c | 191 ++++++++++++++++++++- 4 files changed, 196 insertions(+), 9 deletions(-) --- base-commit: 2041413d851e6dccd5c91321498e1d159ea432f2 change-id: 20231129-j7200-tisci-s2r-69c219c33456 Best regards,