From patchwork Fri Sep 4 14:42:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 53095 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f70.google.com (mail-la0-f70.google.com [209.85.215.70]) by patches.linaro.org (Postfix) with ESMTPS id E888C2159E for ; Fri, 4 Sep 2015 14:42:50 +0000 (UTC) Received: by lanb10 with SMTP id b10sf7960997lan.3 for ; Fri, 04 Sep 2015 07:42:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=2J4GrHPxtbfF+KFfJvtApF7bBKqibX4OiYthEaTFEBE=; b=lNgc+AjO0pjc7z0qXgTKj6bbzgDXfhhtiMpZ0FwFFQN9EdvsS6K3HICJ7vSG74s9sz pO3HBxUG8Z9x5AHSU2hs/2Fg1vi3+W9K06jkRsCHTKVBXeDDE2fhV8FoCLJpmyObyvbc tPWlWeaHuu84TwApw1d61N0+FJqg2jkI3xh/JQH+VzctnY7zWP6WsST/0x2+nY/owqLq 0Vc99f8PTP/Lw7DouVFE+hq4mCwWs9t++HIf3mQlpWr+HwwdMs6KkIRiYJy7d03hMTUH ICH84RRIGD/E+RyptIDo7OMFE5YhE29i2+/awbI6L+AzbrZZuKfv1XWLW7kOfmZolVCD X6Tw== X-Gm-Message-State: ALoCoQk7GzF/qm1c+R4qfAQx/8ECIlY1Nh5cVaqdczrVD4rPTRhoTde2zjYvSkpB/E69CeIA05BT X-Received: by 10.152.29.36 with SMTP id g4mr1145620lah.3.1441377769896; Fri, 04 Sep 2015 07:42:49 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.6.133 with SMTP id b5ls339684laa.99.gmail; Fri, 04 Sep 2015 07:42:49 -0700 (PDT) X-Received: by 10.152.43.129 with SMTP id w1mr4056608lal.44.1441377769746; Fri, 04 Sep 2015 07:42:49 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id v4si2496271lav.48.2015.09.04.07.42.49 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Sep 2015 07:42:49 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by lagj9 with SMTP id j9so15172527lag.2 for ; Fri, 04 Sep 2015 07:42:49 -0700 (PDT) X-Received: by 10.152.5.228 with SMTP id v4mr4037203lav.36.1441377769636; Fri, 04 Sep 2015 07:42:49 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.164.42 with SMTP id yn10csp2024467lbb; Fri, 4 Sep 2015 07:42:48 -0700 (PDT) X-Received: by 10.68.206.103 with SMTP id ln7mr8893932pbc.37.1441377768481; Fri, 04 Sep 2015 07:42:48 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yr4si4698671pac.74.2015.09.04.07.42.47; Fri, 04 Sep 2015 07:42:48 -0700 (PDT) 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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756959AbbIDOmq (ORCPT + 13 others); Fri, 4 Sep 2015 10:42:46 -0400 Received: from mail-pa0-f51.google.com ([209.85.220.51]:36810 "EHLO mail-pa0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751661AbbIDOmq (ORCPT ); Fri, 4 Sep 2015 10:42:46 -0400 Received: by pacwi10 with SMTP id wi10so26335479pac.3 for ; Fri, 04 Sep 2015 07:42:45 -0700 (PDT) X-Received: by 10.66.157.195 with SMTP id wo3mr9089501pab.71.1441377765666; Fri, 04 Sep 2015 07:42:45 -0700 (PDT) Received: from localhost ([122.171.186.190]) by smtp.gmail.com with ESMTPSA id h15sm2255491pdk.29.2015.09.04.07.42.44 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 04 Sep 2015 07:42:45 -0700 (PDT) Date: Fri, 4 Sep 2015 20:12:41 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: Doug Smythies , "'Rafael J. Wysocki'" , 'Saravana Kannan' , linux-pm@vger.kernel.org Subject: Re: System will not suspend with highest numbered CPU offline [REGRESSION][BISECTED] Message-ID: <20150904144241.GJ29194@linux> References: <001401d0e691$302127b0$90637710$@net> <3237049.urJsZkC6Rf@vostro.rjw.lan> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <3237049.urJsZkC6Rf@vostro.rjw.lan> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-pm-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) smtp.mailfrom=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , On 04-09-15, 16:59, Rafael J. Wysocki wrote: > On Thursday, September 03, 2015 02:40:43 PM Doug Smythies wrote: > > As of, or about, Kernel 4.2RC1 if I take my highest numbered > > CPU offline (7 in my case), the system will not suspend. > > Does "will not suspend" mean that the suspend will fail with an error > or will it crash or hang or something else? > > > The issue persists through Kernel 4.2. > > This is on my test computer with an i7-2600K. > > I do not normally use suspend on this computer, > > but was doing so while working on a bug report. > > > > The kernel was bisected, and the result was: > > > > $ git bisect bad > > 87549141d516aee71d511138e27117c41e8aef68 is the first bad commit > > commit 87549141d516aee71d511138e27117c41e8aef68 > > Author: Viresh Kumar > > Date: Wed Jun 10 02:13:21 2015 +0200 > > > > cpufreq: Stop migrating sysfs files on hotplug > > > > See also several e-mails with the above subject line > > between June 8th and 10th. > > > > With any other combination of taking CPUs offline, > > not including CPU 7, suspend seems to work properly. > > Well, we'll need to debug it some. > > Can you please check what's in the > > /sys/devices/system/cpu/cpuX/cpufreq/related_cpus > > files for all CPUs on your system? I wanted to give him some patch to debug it a bit more, but couldn't do that whole day. @Doug: Can you please enable DEBUG for cpufreq with this: And give us the outputs of both successful and unsuccessful logs? + the values of both affected_cpus and related_cpus fields for all CPUs. diff --git a/drivers/cpufreq/Makefile b/drivers/cpufreq/Makefile index 9fde14544ead..c09945aa7f17 100644 --- a/drivers/cpufreq/Makefile +++ b/drivers/cpufreq/Makefile @@ -1,3 +1,4 @@ +subdir-ccflags-y := -DDEBUG # CPUfreq core obj-$(CONFIG_CPU_FREQ) += cpufreq.o freq_table.o