[PATCH] [SRU] [B/master] arm: TEGRA suspend() issue, disable ARCH_TANGO

Paolo Pisati paolo.pisati at canonical.com
Thu Aug 23 10:43:22 UTC 2018


BugLink: https://bugs.launchpad.net/bugs/1787945

I wrote a patch (and sent to lkml[1]) to correctly register pm ops only when
running on the TANGO hardware, but it hasn't been reviewed yet, so in the mean
time i'm proposing an alternative solution.

Impact:

The TANGO platform (an embedded soc used in home entertainment, connectivity and
control devices) is enabled by default in the generic arm kernel (even if it's
not enabled in the multi_v7 Linux defconfig). 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 - either close the laptop
lid, 'systemctl suspend' or:

# echo -n mem > /sys/power/state

1: https://lkml.org/lkml/2018/8/22/389

Paolo Pisati (1):
  UBUNTU: [Config] disable ARCH_TANGO

 debian.master/config/config.common.ubuntu | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

-- 
2.7.4





More information about the kernel-team mailing list