xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [RFC v5 0/5] HPET fix interrupt logic
@ 2014-03-05 15:43 Andrew Cooper
  2014-03-05 15:43 ` [PATCH v5 1/5] x86/hpet: Pre cleanup Andrew Cooper
                   ` (4 more replies)
  0 siblings, 5 replies; 23+ messages in thread
From: Andrew Cooper @ 2014-03-05 15:43 UTC (permalink / raw)
  To: Xen-devel; +Cc: Andrew Cooper, Keir Fraser, Jan Beulich, Tim Deegan

This is v5 of the HPET series.  It comes with a folded bugfix which prevents
the use of the legacy channel spinlock before it is initalised, and
substantial reworking of the hpet selection logic in the case of no channels
being free.  This avoids a possiblity of sleeping forever when using certain
cpu-idle routines.  As a result, Reviewed-by tags for the main patch have been
dropped.

Patch 1 is some pre cleanup which was brought forward from the main patch.
Patch 2 is the main chunk of work.
Patch 3 is some post cleanup which could be deferred.
Patches 4 and 5 are just debugging code.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
CC: Keir Fraser <keir@xen.org>
CC: Jan Beulich <JBeulich@suse.com>
CC: Tim Deegan <tim@xen.org>

-- 
1.7.10.4

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: [Patch v4 2/5] x86/hpet: Use singe apic vector rather than irq_descs for HPET interrupts
@ 2013-11-14 15:52 Tim Deegan
  2013-11-14 16:01 ` [Patch v5 " Andrew Cooper
  0 siblings, 1 reply; 23+ messages in thread
From: Tim Deegan @ 2013-11-14 15:52 UTC (permalink / raw)
  To: Andrew Cooper; +Cc: Keir Fraser, Jan Beulich, Xen-devel

Hi, 

This looks pretty good to me. 

At 17:59 +0000 on 13 Nov (1384361951), Andrew Cooper wrote:
> +        else if ( fallback_deadline < STIME_MAX && fallback_deadline != -1 )
> +        {
> +            /*
> +             * Else we want to reprogram the fallback HPET sooner if possible,
> +             * but with all the spinlocking, it just might have passed.
> +             */
> +            ch = &hpet_events[fallback_idx];
> +
> +            spin_lock(&ch->lock);
>  
> -    if ( !(ch->flags & HPET_EVT_LEGACY) )
> -        hpet_attach_channel(cpu, ch);
> +            if ( ch->cpu != 1 && ch->next_event == fallback_deadline )

DYM '!= -1' here?

Apart from that, you can put 'Reviewed-by: Tim Deegan <tim@xen.org>'
on patches 1-3.

Cheers,

Tim.

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2014-03-06 16:08 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-05 15:43 [RFC v5 0/5] HPET fix interrupt logic Andrew Cooper
2014-03-05 15:43 ` [PATCH v5 1/5] x86/hpet: Pre cleanup Andrew Cooper
2014-03-05 15:43 ` [PATCH v5 2/5] x86/hpet: Use singe apic vector rather than irq_descs for HPET interrupts Andrew Cooper
2014-03-06 14:11   ` Tim Deegan
2014-03-06 14:33   ` Jan Beulich
2014-03-06 14:40     ` Andrew Cooper
2014-03-06 15:38       ` Jan Beulich
2014-03-06 16:08   ` Jan Beulich
2014-03-05 15:43 ` [PATCH v5 3/5] x86/hpet: Post cleanup Andrew Cooper
2014-03-05 15:43 ` [PATCH v5 4/5] x86/hpet: Debug and verbose hpet logging Andrew Cooper
2014-03-05 15:43 ` [PATCH v5 5/5] x86/hpet: debug keyhandlers Andrew Cooper
  -- strict thread matches above, loose matches on Subject: below --
2013-11-14 15:52 [Patch v4 2/5] x86/hpet: Use singe apic vector rather than irq_descs for HPET interrupts Tim Deegan
2013-11-14 16:01 ` [Patch v5 " Andrew Cooper
2013-11-22 15:45   ` Jan Beulich
2013-11-22 16:23     ` Andrew Cooper
2013-11-22 16:49       ` Jan Beulich
2013-11-22 17:38         ` Andrew Cooper
2013-11-25  7:52           ` Jan Beulich
2013-11-25  7:50       ` Jan Beulich
2013-11-26 18:32         ` Andrew Cooper
2013-11-27  8:35           ` Jan Beulich
2013-11-27 22:37             ` Andrew Cooper
2013-11-28 14:33               ` Jan Beulich
2013-11-28 15:06                 ` Andrew Cooper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).