From patchwork Fri Sep 1 02:42:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuan Tan X-Patchwork-Id: 13371994 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24EE2CA0FE1 for ; Fri, 1 Sep 2023 02:43:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238172AbjIACnT (ORCPT ); Thu, 31 Aug 2023 22:43:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242345AbjIACnT (ORCPT ); Thu, 31 Aug 2023 22:43:19 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B0D69E7B; Thu, 31 Aug 2023 19:43:14 -0700 (PDT) X-QQ-mid: bizesmtp64t1693536174t9044o1z Received: from main2-ubuntu.tail147f4.ts.net ( [202.201.15.117]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 01 Sep 2023 10:42:51 +0800 (CST) X-QQ-SSF: 01200000000000907000000A0000000 X-QQ-FEAT: Il1yX1zTS2BHWSstdcCt5mY0CNhZNgSeowA3XGKAQPor4pdSSfB5hjGUTUdBR 1/LR4dIewrobsjxgeoON5/mNLRFCOACkmeERHihf+EEuqKH4chhMidlUyysBENPMT5zIzj7 MJpMAZZjnqJwPR+wBk9heRNrwEsh7EeR3hEjYERdXwQpFM6hUgHiFxWf4/W0vsrTtDi6f4w Ju5fJnbSsKeUx6v9+HBC2QLVYgn+QURGyQ0x8HqZ2IDJ+kGgXt0b1szXOuLF5uZr6QcmWNH +5ZfQ3x0w5vQnMwliDK9dlUGCgKnSU1o+TUU3LYBDaAc+S/TaMnxhYRVVVwX/M9TL6FvKPz FP/dqcBBZ+7hta/oN9WXV2KIDKkjePDCcUQzojWK86UJT1sa4k= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 5453615526016975982 From: Yuan Tan To: mpe@ellerman.id.au, christophe.leroy@csgroup.eu, tglx@linutronix.de, mingo@redhat.com, tsbogend@alpha.franken.de, hdegoede@redhat.com Cc: linux@weissschuh.net, w@1wt.eu, falcon@tinylab.org, linux-mips@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Yuan Tan Subject: [PATCH v2 1/3] kconfig: add dependencies of POWER_RESET for mips malta Date: Fri, 1 Sep 2023 10:42:49 +0800 Message-Id: <1c17f017d6c837ef887d08bd2f85102df3fbc17c.1693535514.git.tanyuan@tinylab.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-1 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org MIPS Malta's power off depends on PCI, PCI_QUIRKS, and POWER_RESET_PIIX4_POWEROFF to work. Enable them when POWER_RESET is set for convenience. Suggested-by: Zhangjin Wu Signed-off-by: Yuan Tan --- arch/mips/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index bc8421859006..13bacbd05125 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig @@ -547,6 +547,9 @@ config MIPS_MALTA select MIPS_L1_CACHE_SHIFT_6 select MIPS_MSC select PCI_GT64XXX_PCI0 + select PCI if POWER_RESET + select PCI_QUIRKS if POWER_RESET + select POWER_RESET_PIIX4_POWEROFF if POWER_RESET select SMP_UP if SMP select SWAP_IO_SPACE select SYS_HAS_CPU_MIPS32_R1 From patchwork Fri Sep 1 02:43:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuan Tan X-Patchwork-Id: 13371995 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6888CA0FE1 for ; Fri, 1 Sep 2023 02:43:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348172AbjIACnq (ORCPT ); Thu, 31 Aug 2023 22:43:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348165AbjIACnp (ORCPT ); Thu, 31 Aug 2023 22:43:45 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B804A10E2; Thu, 31 Aug 2023 19:43:33 -0700 (PDT) X-QQ-mid: bizesmtp63t1693536189tkmoq9aj Received: from main2-ubuntu.tail147f4.ts.net ( [202.201.15.117]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 01 Sep 2023 10:43:07 +0800 (CST) X-QQ-SSF: 01200000000000907000000A0000000 X-QQ-FEAT: ILHsT53NKPikqRpUmb/Bp53N8fIQVxFdzsSSCoNVCrrOuCQAPrZzIqNQMmXwh 2cV4ZEwYZsYDQmtjeppHl/NApjVDPAdVhhpFCD37BgPgcrX9ja0sDgD9L53lCv2duFPC7QU pTf5+ppcjZhGpfNJgSNWigrh8XfRNQMhxSAX9DTC3enppkezGVfjYcNALFtMKJPkiEoq0ib flW6ae+jepw1MRUmD1R/OcufJgeeBoktpaZmEOGJI1NKKFocM0lhYPf+fj2Sz13ClBt6Eik au13Z20pASB3EzZdYDbEG+MjzNS4kPfJ9070Psa7xZ35BCxgmHDyu9yJxjTERumeM0sPNxi /SBvwLBhKEesfAaAVcGFeatQEAzEDTBgkRs1fpZPr8X4R8DIoPmDJ+Dje+7pw== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 17786608530106017216 From: Yuan Tan To: mpe@ellerman.id.au, christophe.leroy@csgroup.eu, tglx@linutronix.de, mingo@redhat.com, tsbogend@alpha.franken.de, hdegoede@redhat.com Cc: linux@weissschuh.net, w@1wt.eu, falcon@tinylab.org, linux-mips@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Yuan Tan Subject: [PATCH v2 2/3] kconfig: add dependencies of POWER_RESET for x86 Date: Fri, 1 Sep 2023 10:43:05 +0800 Message-Id: <0ae69e7038e64c0b068d86301084bc336d30675c.1693535514.git.tanyuan@tinylab.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-1 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org x86 and x86_64's power off depends on ACPI and PCI to work. Enable them when POWER_RESET is set for convenience. Suggested-by: Zhangjin Wu Signed-off-by: Yuan Tan --- arch/x86/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 982b777eadc7..5c1632e40bf2 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -58,6 +58,7 @@ config X86 # # Note: keep this list sorted alphabetically # + select ACPI if POWER_RESET select ACPI_LEGACY_TABLES_LOOKUP if ACPI select ACPI_SYSTEM_POWER_STATES_SUPPORT if ACPI select ARCH_32BIT_OFF_T if X86_32 @@ -286,6 +287,7 @@ config X86 select NEED_PER_CPU_EMBED_FIRST_CHUNK select NEED_PER_CPU_PAGE_FIRST_CHUNK select NEED_SG_DMA_LENGTH + select PCI if POWER_RESET select PCI_DOMAINS if PCI select PCI_LOCKLESS_CONFIG if PCI select PERF_EVENTS From patchwork Fri Sep 1 02:43:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuan Tan X-Patchwork-Id: 13371996 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55779CA0FE2 for ; Fri, 1 Sep 2023 02:43:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348165AbjIACny (ORCPT ); Thu, 31 Aug 2023 22:43:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348178AbjIACnw (ORCPT ); Thu, 31 Aug 2023 22:43:52 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EC76E77; Thu, 31 Aug 2023 19:43:45 -0700 (PDT) X-QQ-mid: bizesmtp77t1693536209t8i43xj8 Received: from main2-ubuntu.tail147f4.ts.net ( [202.201.15.117]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 01 Sep 2023 10:43:26 +0800 (CST) X-QQ-SSF: 01200000000000907000000A0000000 X-QQ-FEAT: QityeSR92A0LOme/49hD1dohgKPUj6JFZbPA6VXALGirx2d9SGmHC4LPSlhoU vMq4vEqz1ROL+SpIvLl0a+/+eeOy6xbdAUAPetw8n4bF9Ive3MyQJpJYbNvtlPFV7LE9dLO uR2HdijIKe9vEeds/ifikTIA5fL1B5wwRq33VFA+BhsuzW00D1XUGPNU58heRTZ1CV9aGuq UqTR9gT6tVPFperJe9++X7kT8rwfzXhPpO1R23+ansfsvUccRLAPsJV3XESMjSsAslaWfq8 xEdHtz/KkcNq6wxRvuHKHakDHy5sZ5arD6qUkRrH1QIoRaJrbaEwgK60RnIMNHH1neVfPvz yOObQBJcRvkpFx9eBT0F9LWRK1iDyZde2vzawjAYWq5wbiFFVA= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 6151706240093031970 From: Yuan Tan To: mpe@ellerman.id.au, christophe.leroy@csgroup.eu, tglx@linutronix.de, mingo@redhat.com, tsbogend@alpha.franken.de, hdegoede@redhat.com Cc: linux@weissschuh.net, w@1wt.eu, falcon@tinylab.org, linux-mips@vger.kernel.org, x86@kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Yuan Tan Subject: [PATCH v2 3/3] kconfig: add dependencies of POWER_RESET for PowerMac Date: Fri, 1 Sep 2023 10:43:25 +0800 Message-Id: <60cbfd566777a6d6e3664d7f29fa91424716c873.1693535514.git.tanyuan@tinylab.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-1 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org PowerMac's power off depends on ADB_CUDA to work. Enable it when POWER_RESET is set for convenience. Suggested-by: Zhangjin Wu Signed-off-by: Yuan Tan --- arch/powerpc/platforms/powermac/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/platforms/powermac/Kconfig b/arch/powerpc/platforms/powermac/Kconfig index 130707ec9f99..9e633d7e8367 100644 --- a/arch/powerpc/platforms/powermac/Kconfig +++ b/arch/powerpc/platforms/powermac/Kconfig @@ -2,6 +2,7 @@ config PPC_PMAC bool "Apple PowerMac based machines" depends on PPC_BOOK3S && CPU_BIG_ENDIAN + select ADB_CUDA if POWER_RESET select MPIC select FORCE_PCI select PPC_INDIRECT_PCI if PPC32