From patchwork Sun Nov 12 13:26:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 118663 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp741761qgn; Sun, 12 Nov 2017 05:26:28 -0800 (PST) X-Google-Smtp-Source: AGs4zMaBI20PrLeqh+mZJ9Y0SLUtVNdXSNjHIv5STEznW/FN5xzNigvDH4wncI/GgrjoQnysV1aN X-Received: by 10.101.72.65 with SMTP id i1mr5819222pgs.436.1510493188190; Sun, 12 Nov 2017 05:26:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510493188; cv=none; d=google.com; s=arc-20160816; b=Uh3CWkscYhz2h8ai1KYnICmPtjOUxK4G/6pOS32zCoPbDg2vzsSrq2F2QRavTWuU7B CC5LZ+N1snBjhXLWIlW7mzdtKEMxt1ky/NhbR0YrDc1/2d4lRw8NuTVkHk3rrN/beMiN dw0Dwjq7A9vGe0fQxJGnIlSvPVgrA73xm3gUFROVkWnnx53k0M82FxFwkP6wJTWBQvn8 tu1Dk5/IlpkWIj2ximGFK5o35pivyhMe7trVNjDOB52ICsJcoYHuUAp2KHuzJqae9Qry qdLbmsCeozC/1RzFFxsOb6VKHv92tREXiOw4gnekX3+lYRzGqBzcxCJCeX1PvtpPTN6W UnFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=oerYW6iTUoJlpu1H+HwGesG1r3ungvvY+ZfrUXlXI7w=; b=BZ5FTE9/J1F8GmhVxjjGpFEmCB1ElTgmm9GE754D22EJ/aKJuzEelaHqkwBirsNazx CGjfgImKpjUwLSMmOrKImj5TSwv3Ww+0F7NgELqGAbfrpJurDDVS0IE94iDKSwaouGDV I5JL9eflQYvLP8w8AdmldEDv55O2Dfi67ciTvmTe8VKSJy2xl48Wwjc9pBl22sEM4yJH tqHWQS5F1GIO+j4+LhapeiwS9BFq7ZEHO/DXvnfL6QD51Xsqz/DQFvKTUHU58+sR4zby Uor51bdfNP81xhrM8QMvEESimcBR/DLXxYSlui2H+ZPu4VuZdjhBNEr58QKpe5F5RU0s SNNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=aEkGos9d; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j24si13193167pff.406.2017.11.12.05.26.27; Sun, 12 Nov 2017 05:26:28 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=aEkGos9d; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751135AbdKLN0W (ORCPT + 11 others); Sun, 12 Nov 2017 08:26:22 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:59246 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750994AbdKLN0V (ORCPT ); Sun, 12 Nov 2017 08:26:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Message-Id:Date:Subject:Cc:To:From :Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=oerYW6iTUoJlpu1H+HwGesG1r3ungvvY+ZfrUXlXI7w=; b=aEkGos9diHBX4Bm2Ju31yOVHj VItxkeWzM1HBQl0yAU1UE6GxfVyYqWUhazwM9M4J8iiVaonONECa5s6w7Z9oeM5lxSvMwWMvRE+rX IC6gt3a9rC88TBAcRv6iE3hI893iEkMigrFr+Yis/W5WBx8qmXIsSESdFn+/wR/fOBmHc=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=finisterre.ee.mobilebroadband) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1eDsHC-0001kc-Nc; Sun, 12 Nov 2017 13:26:18 +0000 Received: by finisterre.ee.mobilebroadband (Postfix, from userid 1000) id 06FAC44005B; Sun, 12 Nov 2017 13:26:18 +0000 (GMT) From: Mark Brown To: "Rafael J . Wysocki" Cc: linux-pm@vger.kernel.org, Kevin Hilman , linux-kernel@vger.kernel.org, Mark Brown Subject: [PATCH] PM: Provide a config snippet for disabling PM Date: Sun, 12 Nov 2017 13:26:06 +0000 Message-Id: <20171112132606.29910-1-broonie@kernel.org> X-Mailer: git-send-email 2.14.1 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org A frequent source of build problems is poor handling of optional PM support, almost all development is done with the PM options enabled but they can be turned off. Currently few if any of the build test services do this as standard as there is no standard config for it and the use of selects and def_bool means that simply setting CONFIG_PM=n doesn't do what is expected. To make this easier provide a fragement that can be used with KCONFIG_ALLCONFIG to force PM off. CONFIG_XEN is disabled as Xen uses hibernation callbacks which end up turning on power management on architectures with Xen. Some cpuidle implementations on ARM select PM so CONFIG_CPU_IDLE is disabled, and some ARM architectures unconditionally enable PM so they are also disabled. Signed-off-by: Mark Brown --- MAINTAINERS | 1 + kernel/configs/nopm.config | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 kernel/configs/nopm.config -- 2.14.1 diff --git a/MAINTAINERS b/MAINTAINERS index 0630482e701b..81851e3d6cbe 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10805,6 +10805,7 @@ F: include/linux/pm.h F: include/linux/pm_* F: include/linux/powercap.h F: drivers/powercap/ +F: kernel/configs/nopm.config POWER STATE COORDINATION INTERFACE (PSCI) M: Mark Rutland diff --git a/kernel/configs/nopm.config b/kernel/configs/nopm.config new file mode 100644 index 000000000000..81ff07863576 --- /dev/null +++ b/kernel/configs/nopm.config @@ -0,0 +1,15 @@ +CONFIG_PM=n +CONFIG_SUSPEND=n +CONFIG_HIBERNATION=n + +# Triggers PM on OMAP +CONFIG_CPU_IDLE=n + +# Triggers enablement via hibernate callbacks +CONFIG_XEN=n + +# ARM/ARM64 architectures that select PM unconditionally +CONFIG_ARCH_OMAP2PLUS_TYPICAL=n +CONFIG_ARCH_RENESAS=n +CONFIG_ARCH_TEGRA=n +CONFIG_ARCH_VEXPRESS=n