From patchwork Thu Sep 14 10:36:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yuan Tan X-Patchwork-Id: 139498 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp257389vqi; Thu, 14 Sep 2023 03:50:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEOgNqQDKSsW9R8qGn9B+BuT0Ox1Ojq5RBxuhd/CtNymXLTSzIqO3LjMwD0bO583TblQum1 X-Received: by 2002:a81:6241:0:b0:595:9770:6914 with SMTP id w62-20020a816241000000b0059597706914mr5671311ywb.35.1694688654056; Thu, 14 Sep 2023 03:50:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694688654; cv=none; d=google.com; s=arc-20160816; b=sL+tAbW2V4e1SxaPvJMBVoR9aP/m5TQSgKC4xDEWVWBQz4kxDoJDHP1a1wqacHWeIt 65XQJD46vNKi+OazCqX+5E+VubUnFCh3tYhmeAOQHL44RhWt6yfBrN/PC81nb5rtI4SE zZOM2XEWWzVu9nyH5tHYRvRYp8KQkzh94Iq5hy9uQ0LbQlGsJ5C1yyf0Pesz5Gq1Cch+ HWQFsdGLSYaZ4JFmo7TuM6JT45VPeTxZTFH64qGyCK7q0TD/tiAMaf9OC7oPiidIA/Xl yvHh/fp/xujOgkCFlDEF7Z/WUFqdyCXlCugXQwGPLQbB+lDTJScgksUcmPNZSycPXcqk Gp9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=VQwhqSp7vFhwYbjfqHhSJ2DnNximxvWXdGaixHDeUnE=; fh=+3RaM8XfKblIf6coJX1ADE9yH6hVTyDtdk3USDgvGm8=; b=sFZnx7f/PLLlKNZ0HOw88pVO00RvAnXzgy3KwDKbJLEDi8gPS1xkJ6Sef8GQWzpS8n zHHRAupZA6jsBl8dTaIFPc1a3p1rqPhR/PrmzKOluA/ttcpwG519BXqnrqP4kH+02Lzn ZUZe/ULV73VRndeYpOlWXj1rwRd06vGqvDtdXxHpAi9xZGrC8D9G5CglICgKUqEe+AiI t/Gp1CVM7YQ60NKHV5QblDhN5EORdG9AYvA0yikc0qwUtX+sYXZK8WapvBEJ9eeZSKXX 9s4gSLVb/5eepnx5HjPBbLf7RvQ48GOrZvZPyODiixCydoSCqzqCK3LdsixNYTc5hcqw 4SKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id m1-20020a656a01000000b0056fa1ac3722si1358189pgu.698.2023.09.14.03.50.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 03:50:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id D16A68224DB5; Thu, 14 Sep 2023 03:37:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237643AbjINKhM (ORCPT + 35 others); Thu, 14 Sep 2023 06:37:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237570AbjINKhL (ORCPT ); Thu, 14 Sep 2023 06:37:11 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B00461FD4 for ; Thu, 14 Sep 2023 03:37:05 -0700 (PDT) X-QQ-mid: bizesmtp82t1694687798trgejy0d Received: from main2-ubuntu.tail147f4.ts.net ( [202.201.15.117]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 14 Sep 2023 18:36:36 +0800 (CST) X-QQ-SSF: 01200000000000907000000A0000000 X-QQ-FEAT: PS/N6jJLnDY3DbnSlWdnt226ni/utfNEYD6jhRaHVL5Udll79hFKkE02mz/x3 5uqP+ZE0PYc6/8JwZD9KN4XmkjVepoi9C9TUrFQOmNJ+BTJ+ylx/MNfkynGxHYtJJjNrXpK KgPfQl+2LQnEFjOUwxmAiWaqqaNZFmrth99olnI9AcmkUOH/4BRtARoFXYWyB7k2o6gp1sC FKmyM7pNacRon5YHZaoud+82aBfneiyKajxZj4BEvNzWVO5x6qnjBalhO8V4pMgcy005Gh9 aQAnNfmQ18izJWV+GZP/z/4io+ZbRS6t+CyHUukw1j+CHU1aom9ge6c2cRS7H3uadRl7mEX WxhiOp7WKgwGPUhE0LfwJ1a9V8tlBBMw5NfWcpQvasITr1MCqkYffU8LpnfZw== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 5100208277114909592 From: Yuan Tan To: tglx@linutronix.de, mingo@redhat.com Cc: bp@alien8.de, dave.hansen@linux.intel.com, linux-kernel@vger.kernel.org, x86@kernel.org, falcon@tinylab.org, w@1wt.eu, linux@weissschuh.net, tanyuan@tinylab.org Subject: [PATCH v3 2/3] Kconfig: Add dependencies of POWER_RESET for x86 Date: Thu, 14 Sep 2023 18:36:35 +0800 Message-Id: <0f2cbd3026357a3936c0853057ed41b63db83d59.1694687048.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-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 14 Sep 2023 03:37:28 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777009850109430295 X-GMAIL-MSGID: 1777009850109430295 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 3b3594f96330..9571507ad40f 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