Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp252629imm; Wed, 4 Jul 2018 23:01:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeGy+m25BPPsa5/Vyq1tkGoUQdA9piROhOHpa8e6nUZe1PZ/fYbwWbnstLJpmMpeeCqOCP7 X-Received: by 2002:a17:902:8:: with SMTP id 8-v6mr4862669pla.287.1530770505962; Wed, 04 Jul 2018 23:01:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530770505; cv=none; d=google.com; s=arc-20160816; b=zLNHMC5oNE7u++0Mz3BAUKUA47AlaZN6n79bXJd5PNO/637tv/4XdK6DT5j2wkxDfa jv3GZY+3cHFAUKf5ysY+Krf5gOdh0vtKPoT4dyTslcSAtD4QxOh1hui35n2YMN37hn1P H+0NyCDJ6O0+kuJJg2atK5dyHS+NdjVXElcH/bDgb7TJaJM01BqcSZz39oEXAPNnsNC4 B+A254UYlQbZJqCVE89D6P48+vpZNFkkM1GqmEyQFklPn6lJSVWC8TeMrlvQxmPRKH+a NpS0ivPeCFuBH918bKa0zROADFqrAVDCfR/CQTlD5fjgjgJdAmPNhYXa50i5uSkqDCZK htdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:arc-authentication-results; bh=O57MrHrcOawoh60Vpupg/G46KTzd66KHPMxcloUbtAo=; b=jjGWIFKAgAWF4EiA8mTjNv/1HLm7Ga2QIhTo6Da++3j3oWiK0bDyOXTlCzvf2gBly5 7nPx5G2SUURHcje+1YD9/OFvtSLtmwXBedfYDg3yJ3QxonAw/a+1v/jFAIeG262bnY+v zCn8PQTC+6J9tLsS4f5/6Bnekriv9ZBe73TYmFfDZm+9oCRO8h7FQwPoqX2l8RaZfjbv 1Lk5tThjNV9nYpY+a7pmWqS3+Hxp1YFphFWb5cJ2yW5ppw/gh5Rv0qkRDayfweSOqB0v +O1ydlDpZnEgYvyjbPjKbcsceQIxugJBJ7pmv2eiqhmyrgwfSzYF9G9ubSv/s44EJ2p+ K2Ow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 190-v6si4771646pgd.673.2018.07.04.23.01.31; Wed, 04 Jul 2018 23:01:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753495AbeGEGAa (ORCPT + 99 others); Thu, 5 Jul 2018 02:00:30 -0400 Received: from ozlabs.org ([203.11.71.1]:59747 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753311AbeGEGA3 (ORCPT ); Thu, 5 Jul 2018 02:00:29 -0400 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 41LnJp52F1z9s2R; Thu, 5 Jul 2018 16:00:26 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au From: Michael Ellerman To: Gautham R Shenoy , Vaidyanathan Srinivasan Cc: "Gautham R. Shenoy" , akshay.adiga@linux.vnet.ibm.com, Nicholas Piggin , "Rafael J. Wysocki" , Daniel Lezcano , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH] cpuidle:powernv: Add the CPUIDLE_FLAG_POLLING for snooze In-Reply-To: <20180703150348.GA13348@in.ibm.com> References: <1530595456-32352-1-git-send-email-ego@linux.vnet.ibm.com> <20180703140616.GA13660@drishya.in.ibm.com> <20180703150348.GA13348@in.ibm.com> Date: Thu, 05 Jul 2018 16:00:23 +1000 Message-ID: <87a7r6kyrs.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Gautham R Shenoy writes: > On Tue, Jul 03, 2018 at 07:36:16PM +0530, Vaidyanathan Srinivasan wrote: >> * Gautham R Shenoy [2018-07-03 10:54:16]: >> >> > From: "Gautham R. Shenoy" >> > >> > In the situations where snooze is the only cpuidle state due to >> > firmware not exposing any platform idle states, the idle CPUs will >> > remain in snooze for a long time with interrupts disabled causing the >> > Hard-lockup detector to complain. >> >> snooze_loop() will spin in SMT low priority with interrupt enabled. We >> have local_irq_enable() before we get into the snooze loop. >> Since this is a polling state, we should wakeup without an interrupt >> and hence we set TIF_POLLING_NRFLAG as well. >> > > You are right. We have a local_irq_enable() inside the snooze_loop. >> >> > watchdog: CPU 51 detected hard LOCKUP on other CPUs 59 >> > watchdog: CPU 51 TB:535296107736, last SMP heartbeat TB:527472229239 (15281ms ago) >> > watchdog: CPU 59 Hard LOCKUP >> > watchdog: CPU 59 TB:535296252849, last heartbeat TB:526554725466 (17073ms ago) >> >> hmm.. not sure why watchdog will complain, maybe something more is >> going on. > > Will look into this Vaidy. I'll wait for a v2. cheers