From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751911AbbEGEiT (ORCPT ); Thu, 7 May 2015 00:38:19 -0400 Received: from mail-gw2-out.broadcom.com ([216.31.210.63]:20501 "EHLO mail-gw2-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750836AbbEGEiR (ORCPT ); Thu, 7 May 2015 00:38:17 -0400 X-IronPort-AV: E=Sophos;i="5.13,382,1427785200"; d="scan'208";a="64129111" From: "Oza (Pawandeep) Oza" To: Mike Galbraith , pawandeep oza CC: "linux-kernel@vger.kernel.org" , "malayasen rout" Subject: RE: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17 Thread-Topic: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17 Thread-Index: AQHQiCHu8BLREMfa/E6shm4qPfme451wTzoA//+dvtA= Date: Thu, 7 May 2015 04:37:56 +0000 Message-ID: <5C6899BCED92C94EBDCC00F80838E3D52113A83F@SJEXCHMB06.corp.ad.broadcom.com> References: <1430968960.2955.45.camel@gmail.com> In-Reply-To: <1430968960.2955.45.camel@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.16.203.100] Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id t474cND6017645 Hi Mike, Let me explain the problem again. Problem Statement: the timkeeping is stopped, do_timer is no more a job of cpu0. The reason: the variable "tick_do_timer_cpu" is not set to correct CPU (cpu0) And when BUG() happens, the tick_do_timer_cpu variable stay set to 1, 2 or 3 (we have 4 cores) And finally any code running on core0 (which relies on jiffies incrementing) doesn’t work because there is nobody to increment jiffies. There is tick_handover_do_timer, and if that is called then things are fine, but that is also not getting called because it is tightly coupled with hotplug. since cpu_down is not getting called, this handover is not happening. and the last status of the variable tick_do_timer_cpu is always pointing to DEAD cpu (1,2 or 3). and core0 waits forever (where if the code relies on the increment of jiffies). Regards, -Oza -----Original Message----- From: Mike Galbraith [mailto:umgwanakikbuti@gmail.com] Sent: Thursday, May 07, 2015 8:53 AM To: pawandeep oza Cc: linux-kernel@vger.kernel.org; malayasen rout; Oza (Pawandeep) Oza Subject: Re: [KERNEL BUG] do_timer/tick_handover_do_timer 3.10.17 On Wed, 2015-05-06 at 22:57 +0530, pawandeep oza wrote: > but when say core0 has raised BUG.. ... > what is the right way to approach this problem Look at the spot BUG() printed? BUG() means "Way to go slick, the code you fed me (file:line) is toxic. Have a nice day, your ex-buddy core0". -Mike ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ¥Šwÿº{.nÇ+‰·¥Š{±þG«�éÿŠ{ayºʇڙë,j­¢f£¢·hš�ï�êÿ‘êçz_è®(­éšŽŠÝ¢j"�ú¶m§ÿÿ¾«þG«�éÿ¢¸?™¨è­Ú&£ø§~�á¶iO•æ¬z·švØ^¶m§ÿÿà ÿ¶ìÿ¢¸?–I¥