From: Keir Fraser Subject: Re: bogus HPET initialization order on x86 Date: Wed, 09 Mar 2011 16:12:02 +0000 Message-ID: References: <4D77A07D020000780003593A@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4D77A07D020000780003593A@vpn.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich , "xen-devel@lists.xensource.com" Cc: ke.yu@intel.com List-Id: xen-devel@lists.xenproject.org On 09/03/2011 14:45, "Jan Beulich" wrote: >> From looking at the code I cannot deduce why it wouldn't be possible > for hpet_interrupt_handler() or hpet_legacy_irq_tick() to be called > while hpet_broadcast_init() is still executing. If that's indeed possible, > then the setting of .event_handler clearly has to happen *after* > initializing the channel's spinlock and rwlock. > > Further, with the channel getting enabled (down the > hpet_fsb_cap_lookup() call tree) before hpet_events[] gets fully > initialized, I'd also think it should be possible to hit the spurious > warning in hpet_interrupt_handler() just because of improper > initialization order. > > If that's all impossible in practice, adding some meaningful > comments to the code to describe why this is so would be much > appreciated. Only someone at Intel could answer these questions. Cc'ing Yu Ke, who seems most involved in this aspect. -- Keir > Thanks, Jan > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel