From patchwork Thu Aug 31 20:17:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuan Tan X-Patchwork-Id: 13371846 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 1AA73C83F2F for ; Thu, 31 Aug 2023 20:19:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345714AbjHaUTW (ORCPT ); Thu, 31 Aug 2023 16:19:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38538 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344885AbjHaUTU (ORCPT ); Thu, 31 Aug 2023 16:19:20 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BF00AE67; Thu, 31 Aug 2023 13:19:16 -0700 (PDT) X-QQ-mid: bizesmtp85t1693513066t3435cba Received: from main2-ubuntu.tail147f4.ts.net ( [202.201.15.117]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 01 Sep 2023 04:17:43 +0800 (CST) X-QQ-SSF: 01200000000000907000B00A0000000 X-QQ-FEAT: xqT8U4SkSpiS5kzWesBIBpHIwSbUohjqM3BmRDSEk5odHzMiXVEVNH9xig7LV uV3YdW00d2zt2R64tanUZ5WANsF2XzZVvpAXntr5e9OJaq/AUaA0u2K5U+kw5peFg6iyCw7 dU6TLqEgEtIXrOTEFQs6BEjXtH0+RzNuW/+2MwqBRiTlyPcWgvl873NRgrXzaMq+oQLX6A4 fo0pA/24ARShHoQoMS1Q2mEEbUdUjdqLgwNJJDp8EE5yDB2HtL6ptUE6n4u512Q/Ndvrh2J 3Ahvgh1KUE0m8J8eB3+DtmwZkHZxkBtfAKr7oHP8sQsPds83hH/7fOl8bmH1TKnJOobhN7P tfsy9R1hwfPlglgvXpciFZjACNI+U0M62grz/Cg36vKpdFbAV8= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 10146932626086328386 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 v1 1/3] kconfig: add dependencies of POWER_RESET for mips malta Date: Fri, 1 Sep 2023 04:17:42 +0800 Message-Id: <20230831201742.3177926-1-tanyuan@tinylab.org> X-Mailer: git-send-email 2.34.1 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..1d93f3fd0552 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 Thu Aug 31 20:17:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuan Tan X-Patchwork-Id: 13371845 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 A7080C83F2F for ; Thu, 31 Aug 2023 20:19:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234924AbjHaUTS (ORCPT ); Thu, 31 Aug 2023 16:19:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344497AbjHaUTS (ORCPT ); Thu, 31 Aug 2023 16:19:18 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22671E6E; Thu, 31 Aug 2023 13:19:14 -0700 (PDT) X-QQ-mid: bizesmtp68t1693513078t912vfvi Received: from main2-ubuntu.tail147f4.ts.net ( [202.201.15.117]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 01 Sep 2023 04:17:55 +0800 (CST) X-QQ-SSF: 01200000000000907000B00A0000000 X-QQ-FEAT: RFp2QSjOiS70bvAdNo73VrAi+v1KZ0IU2/YWHvf5zb1aYHwYtFcGSaklF8cmm nNAmZDeOP4d2H76EwjzPQ73jLYGP7XsuSrMHKYPs+frl/SjF1V/0or5vI8rEiLT6iEppnU9 eIanNLI8fA3bFu3x2CJrcrwKo2bRv2vUy1o/uhV3I0AyXKdvq7qyViNO/j5F0TnTTnehOJx SlnPxvpoRixCoSlTthXgHEIOPNgs3fU5uLc45lVGWphziK3B7J63S8fBh8tSFUnJQHElylM Ok2NxjxQl1mnk0J8SZmcDty8mQc4edE06cpvBxzv2Hz+2pzUcQRCepFMQwqkBPkEmjOsCF3 kxmTgzrbNTGoolKw/uoeBlhbrvrUq+XXnrw6C1HhqtAx9x3uZyPRrs5cVc4qQ== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 7890783515973196317 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 v1 2/3] kconfig: add dependencies of POWER_RESET for x86 Date: Fri, 1 Sep 2023 04:17:54 +0800 Message-Id: <20230831201754.3177977-1-tanyuan@tinylab.org> X-Mailer: git-send-email 2.34.1 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 Thu Aug 31 20:18:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuan Tan X-Patchwork-Id: 13371844 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 6CBECC83F2F for ; Thu, 31 Aug 2023 20:19:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243473AbjHaUTJ (ORCPT ); Thu, 31 Aug 2023 16:19:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234924AbjHaUTI (ORCPT ); Thu, 31 Aug 2023 16:19:08 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CFCCE5C; Thu, 31 Aug 2023 13:19:04 -0700 (PDT) X-QQ-mid: bizesmtp90t1693513106tayols77 Received: from main2-ubuntu.tail147f4.ts.net ( [202.201.15.117]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 01 Sep 2023 04:18:24 +0800 (CST) X-QQ-SSF: 01200000000000907000B00A0000000 X-QQ-FEAT: 0laiA9+vjAD+dTjgZHIguMRpVXcACiRiQGF39CDjBBbmU1RPhqOWYLj6R7uve 0iwIOgdKTGEFfm3SNcrx1AcnKACEyRBJXHT2Y3cS1wWj3hlu4PvmvD3BwWCcdZErTAl9P7D yqR/bpWpbgmK9hRg0SubA8TleklfF6Gx2vnYJp3CsWa0zTr+dla1TdMd+Tdlf1TBpyVqzXU ZQCekK9QPK15yq6naSaFOTudNuJ77FNLxSxodgy4wvZowaaq/00vUlONL7BLNgKQNYzOdDW cX+wskHSlItuHaNAsLb8zgvw+q/iarh/VsP9BAMPTtsBMttOW01NYd1swTWOL6rKye3x1o5 +rZlMseYhTz+kGioldQaVelHlGsDZTCJDan/6XIKpfBn2dsTgDFCXL88cSmiQ== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 10361205484968947270 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 v1 3/3] kconfig: add dependencies of POWER_RESET for PowerMac Date: Fri, 1 Sep 2023 04:18:23 +0800 Message-Id: <20230831201823.3178131-1-tanyuan@tinylab.org> X-Mailer: git-send-email 2.34.1 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