From patchwork Mon Mar 7 10:15:48 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= X-Patchwork-Id: 12771502 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 3C4ECC433F5 for ; Mon, 7 Mar 2022 10:18:45 +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=TOD6h/zI+EEkWB9X8wFMmLp6wiix7IHb6+/SHxLlsj8=; b=Nm0U9OaxAeu83E BVarcTJnnDgNkpRmibhSbLBhBL2d2xdq8fiUbmeGGNcGjzCcxSEqg+mZgwaDAvRSwkMhunpueiKle YoWp9Yt4rDoSHe/34YlLMbCah1EOrNxVHnn6nXFrmEeQfJShFvcw0zc2p6d75oozeOOJUA9MpVFM1 sDa16RzQkhfMFHRph17YBjlKB9dGPUvjm6L5FDkbDMYqcP86VPutoSViDcT9LIt+7FC0Owmxonfze F4t9YHqWyCg8zDZ/jdUFfiM7qrEJOOylOMeChFcIMJewygTrP6pCBUu1xMoJBQD7M9ZVrZ+ZMxsYL rJ5kEsnY6/gIhXJkEWtQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRAQi-00H2lM-Uu; Mon, 07 Mar 2022 10:17:29 +0000 Received: from relay11.mail.gandi.net ([2001:4b98:dc4:8::231]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRAQf-00H2jv-4z for linux-arm-kernel@lists.infradead.org; Mon, 07 Mar 2022 10:17:26 +0000 Received: (Authenticated sender: clement.leger@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 799CC100002; Mon, 7 Mar 2022 10:17:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1646648240; 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=tutWd4trGKBphGeeWfYnezhoEF7V9uU5s6qavtK4MLY=; b=H4XtxXy/yXX4RbE1L0JLmDp2sJfxQkbW87TLMhNqKpZzBaUPtKR830LOUgdaWDuHbw0HWN +wGy7aeJoZCPLD9RNGZE4lT4Ag0f7chnoA2M/0E5D6IkAA/t8iyNePAQ4tlAynCrpgL4kB 1eHduvg9iPb16RgSLAfC3IluRk4ZLdleYP6Qy8/kWrNqJsfnL+Mi5btx6G1i4x6JpIFeVM /2pYGE9Y2wHtKQ+OI7hK9dHVMRfOsV35HHRhtjOjYvM6H3D9i2dG5mmJY6B5eg8EGw4vjX wzfYRBVPzxsagkDJJ5FN440Dtk/7H9wCylzzJXU4qCcy9rYVlpul7P+ejFeRVA== From: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= To: Russell King , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches Cc: =?utf-8?b?Q2zDqW1lbnQgTMOpZ2Vy?= , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Thomas Petazzoni Subject: [PATCH v2 0/2] ARM: at91: add support for secure suspend on sama5d2 Date: Mon, 7 Mar 2022 11:15:48 +0100 Message-Id: <20220307101550.95538-1-clement.leger@bootlin.com> 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-20220307_021725_367717_BABD521F X-CRM114-Status: GOOD ( 12.19 ) 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 Now that OP-TEE support for sama5d2 is more complete, add support to execute SMC calls and to set suspend mode. This series adds new files to be able to execute SMC calls targeting OP-TEE secure monitor and secure suspend support uses it. --- Changes V2: - Add suspend mode SMC in already existing secure support Clément Léger (2): ARM: at91: add code to handle secure calls ARM: at91: pm: add support for sama5d2 secure suspend arch/arm/mach-at91/Kconfig | 12 ++++++++- arch/arm/mach-at91/Makefile | 2 +- arch/arm/mach-at91/pm.c | 38 +++++++++++++++++++++++++++ arch/arm/mach-at91/sam_secure.c | 46 +++++++++++++++++++++++++++++++++ arch/arm/mach-at91/sam_secure.h | 18 +++++++++++++ arch/arm/mach-at91/sama5.c | 2 ++ 6 files changed, 116 insertions(+), 2 deletions(-) create mode 100644 arch/arm/mach-at91/sam_secure.c create mode 100644 arch/arm/mach-at91/sam_secure.h