From patchwork Wed Nov 29 11:12:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 119956 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp4239297edl; Wed, 29 Nov 2017 03:12:43 -0800 (PST) X-Google-Smtp-Source: AGs4zMbIZ8Anw8TnWtv4d+OsESh5uIxEBZizadLMbsVScnXLUwVEkvTIvlw0yw6sbXsOnqx5mCQ2 X-Received: by 10.84.246.20 with SMTP id k20mr2552856pll.209.1511953963220; Wed, 29 Nov 2017 03:12:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511953963; cv=none; d=google.com; s=arc-20160816; b=cQBMXv82Juy72U1J+2ANrZ/yw9p1/eHT3r0pFf6KzvtFnCDQDVQbbKmXq1RTwuYMk7 TyUXUfn4jZyBzB6pB/iJiJFQyE/anhcn8JlovUL3rocXDsWqVQ2qFQL/hqnqOe+oWR0o N8TFkzCp2w/PKucIBCKFhY1tombTeVS2Q19C03T8WClW9D/tNnbjKlak2IUhxD7/rC4k aeFuqI190xpNGm6oODYmFTi6fPhi0v16Uodv7bN4Ul8OXR/nMC9TLDhEVlxMpP65q2dQ XXuFUIRlZ7fqOjeziKzOi3GvHPBJ9uknDv1UK406VaQfIb2EWZ7t+TOltSUmbqqRe5Qy zWfQ== 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=jMZ8gWfBzir4FA1BwFK/7QpbUayv9KhKKSUxexoXi1g=; b=mZX7J1WRaG32H2gvBmVhN4hxst2io7mBttm9pQkrDhu96F+/KsojbhyvdXpDEXpZXB ADkA8XCqiaDd5R/ib/hEW6kYIGdSEIVMH8MKMwpere5lkV1VD1c/Gwz8S5CemLa0ofLK P6/J/24be8oK9aXg9xkPfC8SSHhx13mb8Gi1eMAe0e5Xa0loHzK0fv6L9EnpwXyv9ui1 I4kA4gbuHRtdWnPy6MOzNy2BC42kjVO+RuLr2ONX9ymvIyy9qyayPOGm9YJuLAa3SXYz bRwT3QYaws5sSdf77LnFrbW2bvI7QL/NffPdZULhR5NL+QdePgvvRKqHvGY7zevmRC7d VEvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=n2Ydj0A7; 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 f6si1115270pgr.194.2017.11.29.03.12.42; Wed, 29 Nov 2017 03:12:43 -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=n2Ydj0A7; 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 S1752332AbdK2LMl (ORCPT + 11 others); Wed, 29 Nov 2017 06:12:41 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:38402 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752270AbdK2LMk (ORCPT ); Wed, 29 Nov 2017 06:12:40 -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=jMZ8gWfBzir4FA1BwFK/7QpbUayv9KhKKSUxexoXi1g=; b=n2Ydj0A7yHWLZHGJXBtQLHBxp bBoQLZ1T5liAOWRmTfMUDUdDFSDFMslVr7QFgbCdnNEg9gz1mQQgI4U5ZqFVm5ojTo50ZCvplHkAk FzAd0fxuzQFt4XoRqW02MG4nHS0wPJtqwl/bFK/CcF/AQ3zhJSVvsnwP0pX4LdDbynUvw=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1eK0I4-0001Jt-Jm; Wed, 29 Nov 2017 11:12:32 +0000 Received: from broonie by debutante with local (Exim 4.89) (envelope-from ) id 1eK0I3-0006yz-S6; Wed, 29 Nov 2017 11:12:31 +0000 From: Mark Brown To: "Rafael J . Wysocki" Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Kevin Hilman , Fengguang Wu , Mark Brown Subject: [PATCH] PM: Provide a config snippet for disabling PM Date: Wed, 29 Nov 2017 11:12:27 +0000 Message-Id: <20171129111227.26798-1-broonie@kernel.org> X-Mailer: git-send-email 2.15.0 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.15.0 diff --git a/MAINTAINERS b/MAINTAINERS index 07d9067f68fd..539808dc7928 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -10895,6 +10895,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