Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750738AbWITIt2 (ORCPT ); Wed, 20 Sep 2006 04:49:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750742AbWITIt2 (ORCPT ); Wed, 20 Sep 2006 04:49:28 -0400 Received: from mga05.intel.com ([192.55.52.89]:51321 "EHLO fmsmga101.fm.intel.com") by vger.kernel.org with ESMTP id S1750738AbWITIt2 (ORCPT ); Wed, 20 Sep 2006 04:49:28 -0400 X-ExtLoop1: 1 X-IronPort-AV: i="4.09,190,1157353200"; d="scan'208"; a="133613889:sNHT18881709" Message-ID: <4511008E.5090005@linux.intel.com> Date: Wed, 20 Sep 2006 16:49:18 +0800 From: Arjan van de Ven User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Ingo Molnar CC: Peter Zijlstra , linux-kernel , Andrew Morton Subject: Re: [PATCH] rtc: lockdep fix References: <1158695676.28174.21.camel@lappy> <20060920082135.GB12517@elte.hu> In-Reply-To: <20060920082135.GB12517@elte.hu> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1124 Lines: 27 Ingo Molnar wrote: > * Peter Zijlstra wrote: > >> BUG: warning at kernel/lockdep.c:1816/trace_hardirqs_on() (Not tainted) >> [] show_trace_log_lvl+0x58/0x171 >> [] show_trace+0xd/0x10 >> [] dump_stack+0x19/0x1b >> [] trace_hardirqs_on+0xa2/0x11e >> [] _spin_unlock_irq+0x22/0x26 >> [] rtc_get_rtc_time+0x32/0x176 >> [] hpet_rtc_interrupt+0x92/0x14d >> [] handle_IRQ_event+0x20/0x4d >> [] __do_IRQ+0x94/0xef >> [] do_IRQ+0x9e/0xbd >> [] common_interrupt+0x25/0x2c > > ouch! That is a scenario that could lead to real lockups. Fix looks good > and necessary for v2.6.18 to me. > btw this entire code path is evil; the rtc_get_rtc_time() function can do really long delays which is unsuitable for being called in interrupt context! - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/