From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965624AbbD1MhN (ORCPT ); Tue, 28 Apr 2015 08:37:13 -0400 Received: from mail-oi0-f43.google.com ([209.85.218.43]:34335 "EHLO mail-oi0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965457AbbD1MhL (ORCPT ); Tue, 28 Apr 2015 08:37:11 -0400 MIME-Version: 1.0 In-Reply-To: References: <2112147.0kYCHhbEJT@vostro.rjw.lan> <18575128.8R6Lp68k0Q@vostro.rjw.lan> <553F6236.5020300@linaro.org> <553F6424.1090704@arm.com> Date: Tue, 28 Apr 2015 14:37:10 +0200 Message-ID: Subject: Re: [PATCH 16/20] sched/idle: Use explicit broadcast oneshot control function From: Linus Walleij To: "Rafael J. Wysocki" Cc: Sudeep Holla , Daniel Lezcano , "Rafael J. Wysocki" , Linux PM list , Thomas Gleixner , Peter Zijlstra , Ingo Molnar , Linux Kernel Mailing List , ACPI Devel Maling List Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 28, 2015 at 2:19 PM, Rafael J. Wysocki wrote: > Sudeep: >> At-least I observed issue only when I am using hardware broadcast timer. >> It doesn't hang when I am using hrtimer as broadcast timer in which case >> one of the cpu will be not enter deeper idle states that lose timer. >> I will rerun on v4.1-rc1 and post the complete log. > > So the bug here is that cpuidle_enter() enables interrupts, so the > assumption about them being not enabled made by > tick_broadcast_oneshot_control() is actually not valid. > > It looks like we need to acquire the clockevents_lock at least in this > particular case. Let me see where to put it and I'll send a patch for > testing. Aha that looks very much like it. Put me on the patch and I'll take it for a spin. Yours, Linus Walleij