Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3807309rdb; Thu, 14 Sep 2023 03:21:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEaBx6WWNZmjfcLRNJzDy4aU3kxiHkShKrJNmeAw8hPzQLtqxZpXa0Bm95c9p1QcUrHoEHr X-Received: by 2002:a05:6830:1283:b0:6b9:9129:dddf with SMTP id z3-20020a056830128300b006b99129dddfmr4809351otp.16.1694686881473; Thu, 14 Sep 2023 03:21:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694686881; cv=none; d=google.com; s=arc-20160816; b=FKZxgPo3ybNjB798+ct7/yritxW+hy3aEdGx3UwgbIAbR9L1l929q4ErjxW7WEKWDb yGFYO1sNPWqu19hevbHGwVmxVosnr38gh6GlvY/NhQy1JHU3qTl9QMcWENXmUF9RQRma 92XTfHjknjZlZMgWMK5+lyzFrSY2MCVTP699WOaS1UOwsS7vPfXbQaskCwoqFkXoa3Lw O+tJa+5UN+ivg9dfJNnrgWn08KX1RYzC2ngEYflO+7/qhQDMqzZdfbDUjbtC28ebyGOa oaByHWNx6oWWeCRg9MMG8usSJZjz4bm3z9p3QeWPm5cFLRndqaWbn9D8sUWWiBwh8UjN E3ww== 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:message-id:date:subject:cc:to:from; bh=DIMnG/2VY1y9C2HyVWnGGHN0+XNuwZUer+KExBD23G0=; fh=E3oKi/bvKnah2RdGqJC67KLNj5+C7k2ouMcJwMdsiOY=; b=MTOK5taNhHEqqsOeN7+8+5VVzelw3qKEMwp7AUhxkm87UfILN6UrWOTrbc6DrG8Aml FCZ7gccyip3aj9MTo4MdrY9eTTP1TkcEWLY/kWVTNcaIjpCYNsQNjOyGwuA7YU0kc22L brKZ2UkAanWp3Q6bYZXNd4jnAJU6Xh8gPRqyMRR+SzWbd65Ku8PRHYX3mdAz73FNNdGC z/+plci+FOdeFWtlJgWbCQCWA0rKHfk3fLfbmnzYOa8CwT9IC1LITTFw2Hv2yqZZaTIc SsK3Z5CheCFb0GxPuFvx7wyWCfaJ7rzcL6ZJ4ceriZg8jzWBYHOBPiR+nBuBmZd2dhyS VBxg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id cq6-20020a056a00330600b0068e47f1fc7esi1301986pfb.159.2023.09.14.03.21.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 03:21:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id B4A6A81A328A; Thu, 14 Sep 2023 03:10:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237985AbjINKKQ (ORCPT + 99 others); Thu, 14 Sep 2023 06:10:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44496 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237611AbjINKKP (ORCPT ); Thu, 14 Sep 2023 06:10:15 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E99E51BE5 for ; Thu, 14 Sep 2023 03:10:10 -0700 (PDT) X-QQ-mid: bizesmtp73t1694686198tk4ha5fg Received: from main2-ubuntu.tail147f4.ts.net ( [202.201.15.117]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 14 Sep 2023 18:09:56 +0800 (CST) X-QQ-SSF: 01200000000000907000000A0000000 X-QQ-FEAT: VbOeDQvtdXMk45dYh0Rvdnu0TnmPU2mccxLgcvRVp/zby+SKZ/55KdJ2D3USC Vsom7rqs8nsZbWy6pBDerMjjxutfOJSb/nUjTzPTIodqjHUgKo+agzbfCsE6b+UiOUg+JUd kItvo1nTEcn2VPtjWZ86Aem+fzU92y1ZqCpOpwpcWpynP6jNT6NH+uJSk4uitK4hWgMaDYy 2O25JsV76JG2emFOBifgAquLYerUqfS2gAojVf4tB1o0y//PrUZeJej5rF+nGwLCCZqm3/f zD+aVG903/BtCdCm2lt1eCKAsBqMtLjuzkP5V3dO9+aZ++DG6ifCDKOdJHq6qaFUZGcogFh +MeWdySPDfv8GNpfInPlAfUFaDh3zVxx0cfs2UhFfmCPWFVnP8= X-QQ-GoodBg: 0 X-BIZMAIL-ID: 6639631946269461882 From: Yuan Tan To: mpe@ellerman.id.au, christophe.leroy@csgroup.eu Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, falcon@tinylab.org, w@1wt.eu, linux@weissschuh.net, tanyuan@tinylab.org Subject: [PATCH v3 0/3] Kconfig: Add dependencies of POWER_RESET for pmac32 Date: Thu, 14 Sep 2023 18:09:55 +0800 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 (pete.vger.email [0.0.0.0]); Thu, 14 Sep 2023 03:10:26 -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 pete.vger.email These patches are to add dependencies of POWER_RESET for pmac32. As I have to use "savedefconfig" on the latest branch of different architectures, I am sending separate patches for each architecture in v3. To simplify the enablement of the poweroff support, selecting the required options for CONFIG_POWER_RESET=y may make many people happy especially when they are using a customized config (maybe tinyconfig based) for a target qemu board. Without normal poweroff support from the kernel side, qemu will simply hang[1] there after a 'poweroff' command, which is a very bad experience for the automatical tests. However, CONFIG_POWER_RESET is ineffective if there are no dependencies that enable certain devices in Kconfig. Currently, based on tinyconfig, it is very hard to find the exact poweroff related option[2]. Some architectures' poweroff works well without any dependence, the others' poweroff options are hidden deeply, which make things hard. After multiple verifications, these options have been identified as the minimum dependencies required for poweroff to function normally. Additionally, 'make savedefconfig' simplifies the defconfig automatically. Zhangjin and I invested a significant amount of time in searching for the current options on these devices. We hope that this set of patches will save time for others. If community like it, we will consider adding dependencies for POWER_RESET on other devices. We hope every device's CONFIG_POWER_RESET will have proper dependencies. :) --- [1]: https://lore.kernel.org/lkml/511b2f6009fb830b3f32b4be3dca99596c684fa3.1689759351.git.falcon@tinylab.org/ [2]: https://lore.kernel.org/all/983843582e52e83fba79ad45cea6c79e1f62ec6c.1690489039.git.falcon@tinylab.org/ v1: https://lore.kernel.org/all/20230831201727.3177853-1-tanyuan@tinylab.org/ v2: https://lore.kernel.org/all/cover.1693535514.git.tanyuan@tinylab.org/ --- Changes in v2: - Fix the mistake of using spaces instead of tabs in kconfig. Changes in v3: - Enable POWER_RESET and simplify the deconfig. - Select ADB_CUDA in PPC_PMAC32 only. Yuan Tan (3): powerpc/config: Cleanup pmac32_defconfig Kconfig: Add dependencies of POWER_RESET for pmac32 powerpc/config: Simplify pmac32_defconfig arch/powerpc/configs/pmac32_defconfig | 46 +++++++++++-------------- arch/powerpc/platforms/powermac/Kconfig | 1 + 2 files changed, 21 insertions(+), 26 deletions(-) base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d -- 2.34.1