From patchwork Thu Aug 23 10:43:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Pisati X-Patchwork-Id: 961275 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41x1Gt4Tp1z9s7X; Thu, 23 Aug 2018 20:43:34 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1fsn5K-00023j-MX; Thu, 23 Aug 2018 10:43:26 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1fsn5I-000238-BZ for kernel-team@lists.ubuntu.com; Thu, 23 Aug 2018 10:43:24 +0000 Received: from 1.general.ppisati.uk.vpn ([10.172.193.134] helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1fsn5I-0007LO-2t for kernel-team@lists.ubuntu.com; Thu, 23 Aug 2018 10:43:24 +0000 From: Paolo Pisati To: kernel-team@lists.ubuntu.com Subject: [PATCH] UBUNTU: [Config] disable ARCH_TANGO Date: Thu, 23 Aug 2018 12:43:23 +0200 Message-Id: <1535021003-25466-2-git-send-email-paolo.pisati@canonical.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535021003-25466-1-git-send-email-paolo.pisati@canonical.com> References: <1535021003-25466-1-git-send-email-paolo.pisati@canonical.com> X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1787945 Impact: The TANGO platform (an embedded soc used in home entertainment, connectivity and control devices) is enabled by default in the generic arm kernel. During kernel bootup, the tango platform blindly registers its pm ops in arch/arm/mach-tango/pm.c via initcalls() (without checking whether it's actually running on the correspondent hardware) and this causes OOPS during suspend on tegra platforms since the tango pm .enter function directly pokes the underlying hardware. Given the narrow scope of this SOC, i propose to disable support for the TANGO arch. Fix: Apply the attached patch and recompile. How to test: Suspend the tegra board and chek that it worked. Signed-off-by: Paolo Pisati --- debian.master/config/config.common.ubuntu | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/debian.master/config/config.common.ubuntu b/debian.master/config/config.common.ubuntu index 385e735..9839111 100644 --- a/debian.master/config/config.common.ubuntu +++ b/debian.master/config/config.common.ubuntu @@ -477,7 +477,7 @@ CONFIG_ARCH_SUPPORTS_TRUSTED_FOUNDATIONS=y CONFIG_ARCH_SUPPORTS_UPROBES=y CONFIG_ARCH_SUSPEND_POSSIBLE=y CONFIG_ARCH_SYNQUACER=y -CONFIG_ARCH_TANGO=y +# CONFIG_ARCH_TANGO is not set CONFIG_ARCH_TEGRA_114_SOC=y CONFIG_ARCH_TEGRA_124_SOC=y CONFIG_ARCH_TEGRA_2x_SOC=y @@ -655,7 +655,6 @@ CONFIG_ARM_SDE_INTERFACE=y CONFIG_ARM_SMMU_V3=y CONFIG_ARM_SP805_WATCHDOG=m CONFIG_ARM_SPE_PMU=m -CONFIG_ARM_TANGO_CPUFREQ=y CONFIG_ARM_TEGRA124_CPUFREQ=m CONFIG_ARM_TEGRA20_CPUFREQ=y CONFIG_ARM_TEGRA_DEVFREQ=m @@ -1381,7 +1380,6 @@ CONFIG_CLKSRC_I8253=y CONFIG_CLKSRC_IMX_GPT=y CONFIG_CLKSRC_MMIO=y CONFIG_CLKSRC_QCOM=y -CONFIG_CLKSRC_TANGO_XTAL=y CONFIG_CLKSRC_TI_32K=y CONFIG_CLKSRC_VERSATILE=y CONFIG_CLK_BCM_NS2=y @@ -3858,7 +3856,6 @@ CONFIG_I2C_VIPERBOARD=m CONFIG_I2C_XGENE_SLIMPRO=m CONFIG_I2C_XILINX=m CONFIG_I2C_XLP9XX=m -# CONFIG_I2C_XLR is not set CONFIG_I40E=m CONFIG_I40EVF=m CONFIG_I40E_DCB=y @@ -4466,7 +4463,6 @@ CONFIG_IR_SONY_DECODER=m CONFIG_IR_SPI=m CONFIG_IR_STREAMZAP=m CONFIG_IR_SUNXI=m -CONFIG_IR_TANGO=m CONFIG_IR_TTUSBIR=m CONFIG_IR_WINBOND_CIR=m CONFIG_IR_XMP_DECODER=m @@ -5576,7 +5572,6 @@ CONFIG_MTD_NAND_PXA3xx=m CONFIG_MTD_NAND_QCOM=m CONFIG_MTD_NAND_RICOH=m # CONFIG_MTD_NAND_SUNXI is not set -CONFIG_MTD_NAND_TANGO=m CONFIG_MTD_NAND_TMIO=m # CONFIG_MTD_NAND_VF610_NFC is not set CONFIG_MTD_NETtel=m @@ -8973,9 +8968,6 @@ CONFIG_TABLET_USB_KBTAB=m CONFIG_TABLET_USB_PEGASUS=m CONFIG_TAHVO_USB=m CONFIG_TAHVO_USB_HOST_BY_DEFAULT=y -# CONFIG_TANGOX_WATCHDOG is not set -CONFIG_TANGO_IRQ=y -# CONFIG_TANGO_THERMAL is not set CONFIG_TAP=m CONFIG_TARGET_CORE=m CONFIG_TASKSTATS=y