Re: [Qemu-devel] [PATCH v2 1/3] ich9: add TCO interface emulation

2015-06-01 Thread Paulo Alcantara
On Mon, 1 Jun 2015 10:38:32 -0300 "Paulo Alcantara" wrote: > On Mon, June 1, 2015 6:05 am, Paolo Bonzini wrote: > > > > > > On 31/05/2015 00:04, Paulo Alcantara wrote: > >> +case TCO_RLD: > >> +tr->timeouts_no = 0; > >> +if (can_start_tco_timer(tr)) { > >> +tr->tco

Re: [Qemu-devel] [PATCH v2 1/3] ich9: add TCO interface emulation

2015-06-01 Thread Paulo Alcantara
On Mon, June 1, 2015 6:05 am, Paolo Bonzini wrote: > > > On 31/05/2015 00:04, Paulo Alcantara wrote: >> +case TCO_RLD: >> +tr->timeouts_no = 0; >> +if (can_start_tco_timer(tr)) { >> +tr->tco.rld = tr->tco.tmr; >> +tco_timer_reload(tr); >> +} else

Re: [Qemu-devel] [PATCH v2 1/3] ich9: add TCO interface emulation

2015-06-01 Thread Paolo Bonzini
On 31/05/2015 00:04, Paulo Alcantara wrote: > +case TCO_RLD: > +tr->timeouts_no = 0; > +if (can_start_tco_timer(tr)) { > +tr->tco.rld = tr->tco.tmr; > +tco_timer_reload(tr); > +} else { > +tr->tco.rld = val; Please mask out bits out

[Qemu-devel] [PATCH v2 1/3] ich9: add TCO interface emulation

2015-05-30 Thread Paulo Alcantara
This interface provides some registers within a 32-byte range and can be acessed through PCI-to-LPC bridge interface (PMBASE + 0x60). It's commonly used as a watchdog timer to detect system lockups through SMIs that are generated -- if TCO_EN bit is set -- on every timeout. If NO_REBOOT bit is not