Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754404Ab1CQMgG (ORCPT ); Thu, 17 Mar 2011 08:36:06 -0400 Received: from smtp.eu.citrix.com ([62.200.22.115]:10292 "EHLO SMTP.EU.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754132Ab1CQMgD (ORCPT ); Thu, 17 Mar 2011 08:36:03 -0400 X-IronPort-AV: E=Sophos;i="4.63,199,1299456000"; d="scan'208";a="4839715" Date: Thu, 17 Mar 2011 12:35:31 +0000 From: Stefano Stabellini X-X-Sender: sstabellini@kaball-desktop To: Konrad Rzeszutek Wilk CC: Yinghai Lu , Mike Waychison , Wim Van Sebroeck , Stefano Stabellini , "H. Peter Anvin" , "linux-kernel@vger.kernel.org" , Jeremy Fitzhardinge , "xen-devel@lists.xensource.com" , "linux-watchdog@vger.kernel.org" , Priyanka Gupta Subject: Re: [PATCH] watchdog, SP5100: Check if firmware has set correct value in tcobase. In-Reply-To: <20110317022331.GA3528@dumpdata.com> Message-ID: References: <20110311222129.GA3168@dumpdata.com> <4D80F992.10603@kernel.org> <4D812180.5030102@kernel.org> <4D812919.30706@kernel.org> <20110317022331.GA3528@dumpdata.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1436 Lines: 36 On Thu, 17 Mar 2011, Konrad Rzeszutek Wilk wrote: > On Wed, Mar 16, 2011 at 02:18:17PM -0700, Yinghai Lu wrote: > > > > > > Stefano found SP5100 TCO watchdog driver using wrong address. > > > > [ 9.148536] SP5100 TCO timer: SP5100 TCO WatchDog Timer Driver v0.01 > > [ 9.148628] DEBUG __ioremap_caller WARNING address=b8fe00 size=8 valid=1 reserved=1 > > > > and e820 said that range is RAM. > > > > We should check if we can use that reading out. BIOS could just program wrong address there. > > > > -v2: Mike pointed out one path need one release. > > > > Reported-by: Stefano Stabellini > > Signed-off-by:Yinghai Lu > > Acked-by: Mike Waychison > > I have no idea why it worked the first time b/c this: > > > > + if (request_mem_region_exclusive(val, SP5100_WDT_MEM_MAP_SIZE, "SP5100 TCO")) { > > is wrong. It should have been "if (!request...").. > > With that, and with Stefano's patches (stefano/2.6.38-rc6-mm-fix) on top of 2.6.39-rc0 it boots up fine. Yinghai, thanks for the patch! I hope that we are not going to find any more of this kind of issues with other drivers and other BIOSes. -- 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/