Received: by 2002:ab2:7104:0:b0:1f7:f6c3:9cb1 with SMTP id z4csp6304lql; Tue, 7 May 2024 08:22:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWDoeQmfudpGGisOwUq/01OXWDjBeKSOhp+R6QmR5OWRChZpSmtxlqjZeCYdv7leh9UILLT2y2j7RS5YCCY9Z73Kw9QNKwMA9384tQZ0A== X-Google-Smtp-Source: AGHT+IEE3BgxZjaj2rDydEzTMaTRz2GfhR1ciVDhZwo72YEjka+XIPmmfiMwVhIuqp5KTXmXLDCC X-Received: by 2002:a05:622a:54c:b0:43a:c494:a048 with SMTP id d75a77b69052e-43dbed3318amr210661cf.30.1715095340040; Tue, 07 May 2024 08:22:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715095340; cv=pass; d=google.com; s=arc-20160816; b=EFYqFcSrPmezxfiXK9d+b9AJvXj/JjGT/QKnNVMsg9jv1VIE8G7oF4ZIxNDNjbXX0M up0C67mDTJrEwPSerShECGHd+QPfrPeccWKLg8S/N+Tjr3dpESJ+tH/T8EAZkqfh/meN Fmy79aRALfkwvyG0zWS5+gUAhcPiIy+h2t2G0FNUe9Rj+k3VhCYmeMzje3Hkz4xmyks/ l8giV5vtoRDxsNoEvogdxeJvUzM2dljonvdJ28EOWLqQFAuqVphPKOFh5eqC7V6Q7Ap2 Sgt44MogWo3OsRjLc/MF7Wz81kggd0QzMMh+Rj6rdhyj+U9sIm/no1Nqr+NTOM+dnapA 25YA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :feedback-id:dkim-signature:dkim-signature; bh=14+liFH4kciElRMWnOwwZ4A459b5UafqmtkBFRH0DeA=; fh=c4FaIAnkILn8C929U4vByLomrOehxFoMMuZE6i38gsM=; b=joliKwVjgucyXXq3BxiNZiUIinN+MPJuyKPBDh+AQ6YjZoj6EuXgdnB+aVSsQPjq/S dhPb+S1JhnsVa8gesNscThnCI01jbwQG+5jbKAJEMGjciv7dLTn7N0m6jiq10U+w6LLX bQc5cR3etU7GZrPMVn3MVinWgVh6hj5lsXUB/EQPmpobBH/mERqT4ypae4D7Ir5uLYO9 fmAnpkTOCEK2JwVR+dZszamp1V1u/67ElONbGvVXrvUAi0mDThoIzchXCWgyRyqFYW0w rkAMri/o31Iqk0zOnsbux04qLsBYNBQcDuPiVJhdWd0idd7h85SwO4XfbVo9swofovTr V6xA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=PMEOFJlh; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=RMoNftkH; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-171685-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171685-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id x5-20020a05622a000500b0043adfa8fe9esi11853758qtw.191.2024.05.07.08.22.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 08:22:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171685-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=fm1 header.b=PMEOFJlh; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=RMoNftkH; arc=pass (i=1 spf=pass spfdomain=flygoat.com dkim=pass dkdomain=flygoat.com dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=flygoat.com); spf=pass (google.com: domain of linux-kernel+bounces-171685-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171685-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 130151C23C1E for ; Tue, 7 May 2024 15:22:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 82AEF1635BB; Tue, 7 May 2024 15:22:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b="PMEOFJlh"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="RMoNftkH" Received: from wfout5-smtp.messagingengine.com (wfout5-smtp.messagingengine.com [64.147.123.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 892B5161327; Tue, 7 May 2024 15:22:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.148 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715095332; cv=none; b=kANl2JaScCnYtBQWbFVE+1jp4Xr0/CwHYPmk1ITqrPms0k1bPeMfn0gYaiYr642p0O36deRb0/qsAA1bzbQm0boMdk3NNtiLuUhTE9PbrRpiCyGIyMyTPDAeKgsf91DVhnMb172ZYoRrxCeHgGDsY/PFGcNHWNGr3ak8NQg2OhM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715095332; c=relaxed/simple; bh=c6AQWS2glne4iFtBEIBOtzxq/07owekE2Qt4WciCius=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=B+KEhPoKda1yWqyBqsgmG71yKK1bf1rjXaSey1JaZcEDYg87YysdTPzgmcOUWIiboNzDgQs6jB5nNlPX6uX7xmCH1qaU0pl/7w8PsHTM0umxYzjJcM4qlO2Rw/ZOOyXfuwUQ1YEeq2P23/KBvNAUrVM5eT2wB1nXHoJXet66p+c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com; spf=pass smtp.mailfrom=flygoat.com; dkim=pass (2048-bit key) header.d=flygoat.com header.i=@flygoat.com header.b=PMEOFJlh; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=RMoNftkH; arc=none smtp.client-ip=64.147.123.148 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=flygoat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flygoat.com Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfout.west.internal (Postfix) with ESMTP id 6C23F1C000F5; Tue, 7 May 2024 11:22:09 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 07 May 2024 11:22:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:message-id:mime-version:reply-to :subject:subject:to:to; s=fm1; t=1715095329; x=1715181729; bh=14 +liFH4kciElRMWnOwwZ4A459b5UafqmtkBFRH0DeA=; b=PMEOFJlhy58CLe7m45 uvzbHtQOPgsagp3/E2k7K5pxGXG2hiAk+LFQwd4f+S0eWtZp3JR5TB+qpFZwD5a6 iQzG2Vd4EmqEPx9aJL6CIAuV3nycE83t6Z4UJyHRdLbqzE7ya/8rOVOBkd4JYtXl sTe3aPAA/ZWbvmHcxlT3Zhx39AvT0uwrVoz1avCunfCbV9lyECeiil64S3flegsU R/Wdum510sv9ABqx3oC6LEYBNP8b0bVXx5E3D6LUmouBJODAz0YqukY3avwTlu7k bF+eBXaRW1XyBXOGFSKF+KkUXHgkuAHXQxCbZanRfKFm3DbjmesvTExDcU25eeg6 DIvA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:message-id:mime-version:reply-to:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1715095329; x=1715181729; bh=14+liFH4kciEl RMWnOwwZ4A459b5UafqmtkBFRH0DeA=; b=RMoNftkHttz9Lzd6vySppEHH8UlHx 7TYnzQYJjDfLwmLh6Ph3sd1My8PDisWn3bUC5pNPwCXk+FCDDaMTfWsZebFq2IJU lQOJN0zGvO/36ut9nFmyrNk/ddSqtRe346uaqVEWe+NCXJA/D8uAt4uBSTct1PE2 EKTpRUbWVk3s9W0/oWpvyHfk2ch1igmFwCqT8qBuj2PmLirKedpv8vfs5YAex3wj k1+eutmzZoi5OPqNtWjSgljmeIKxyJ5ZkHD4RY6LlXgS7zwk9Zd6sK1xMs+RJTdk oOEffUwWBvatQKDYGwvlz8zpCNoEAggDQwb92zp/ndk18q2uuiwOgYWxg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvddvkedgkeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffufffkgggtgffvvefosehtjeertdertdejnecuhfhrohhmpeflihgrgihu nhcujggrnhhguceojhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomheqnecugg ftrfgrthhtvghrnhepudffffffhfeuheevhffgleevkeeugeetfeegieeijeehfeekheek veduveeigeeunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepjhhirgiguhhnrdihrghnghesfhhlhihgohgrthdrtghomh X-ME-Proxy: Feedback-ID: ifd894703:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 7 May 2024 11:22:07 -0400 (EDT) From: Jiaxun Yang Subject: [PATCH 0/3] MIPS: Loongson64: Implement PM suspend for LEFI firmware Date: Tue, 07 May 2024 16:21:58 +0100 Message-Id: <20240507-loongson64-suspend-v1-0-534d92a4e09a@flygoat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIABZHOmYC/x3MQQqAIBBA0avErBPUMqGrRIvIqQZiDIciEO+et HyL/zMIJkKBscmQ8CGhyBWmbWA9Ft5RUagGq22vnfbqjJF3iTz0Sm65kIPyrnPOmjVog1DDK+F G7z+d5lI+pyiAuWQAAAA= To: Thomas Bogendoerfer , Huacai Chen Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Jiaxun Yang X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=862; i=jiaxun.yang@flygoat.com; h=from:subject:message-id; bh=c6AQWS2glne4iFtBEIBOtzxq/07owekE2Qt4WciCius=; b=owGbwMvMwCHmXMhTe71c8zDjabUkhjQrd0UjF0/mvk0s3hsuvz+v4dR++O9KZWmBvyZPzq7dn fc9wuNkRykLgxgHg6yYIkuIgFLfhsaLC64/yPoDM4eVCWQIAxenAEzk435GhkXyZpm/b1VN5e6S v7r6z2GO1cz7O87uXv3l9j0xu/SXYTmMDC3zOHSvtIj8O/+I760drxn7oxVOZ1ICsiQ81tnK7Ti +lA8A X-Developer-Key: i=jiaxun.yang@flygoat.com; a=openpgp; fpr=980379BEFEBFBF477EA04EF9C111949073FC0F67 Hi all, This series implemented PM suspend for LEFI firmware. We missed this for long in upstream kernel... Please review Thanks Signed-off-by: Jiaxun Yang --- Jiaxun Yang (3): MIPS: asm/pm.h: Use platform agnostic macros MIPS: select CPU_PM with SUSPEND MIPS: Loongson64: Implement PM suspend for LEFI firmware arch/mips/Kconfig | 2 +- arch/mips/include/asm/pm.h | 22 +++++------ arch/mips/loongson64/Makefile | 2 +- arch/mips/loongson64/pm.c | 88 +++++++++--------------------------------- arch/mips/loongson64/sleeper.S | 17 ++++++++ 5 files changed, 48 insertions(+), 83 deletions(-) --- base-commit: 93a39e4766083050ca0ecd6a3548093a3b9eb60c change-id: 20240507-loongson64-suspend-7535521cd01e Best regards, -- Jiaxun Yang