Skip to content

RFC Improvements to HPET interupts

Andrew Cooper xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest8 patches 12 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8x86/timing: Command line parameter to disable ARATxen/arch/x86/cpu/amd.c xen/arch/x86/cpu/common.c xen/arch/x86/cpu/cpu.h +1 more+9 -31 reply
2/8x86/acpi: Warn about multiple HPET tablesxen/arch/x86/acpi/boot.c+11 -02 replies
3/8x86/hpet: Fix ambiguity in broadcast info message.xen/arch/x86/hpet.c+1 -14 replies
4/8x86/hpet: Debug and verbose hpet loggingxen/arch/x86/hpet.c+83 -00 replies
5/8x86/msi: Refactor msi_compose_message() to not requrie an irq_descxen/arch/x86/hpet.c xen/arch/x86/msi.c xen/drivers/passthrough/vtd/iommu.c +1 more+7 -81 reply
6/8x86/hpet: Adjust pointer vs array semantics of hpet_boot_cfgxen/arch/x86/hpet.c+9 -81 reply
7/8x86/hpet: debug keyhandlersxen/arch/x86/hpet.c+19 -02 replies
8/8x86/hpet: Use singe apic vector rather than irq_descs for HPET interruptsxen/arch/x86/hpet.c+181 -2961 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/8] Improvements to HPET interupts

This patch series is very RFC. Some parts of the series are for debugging purposes only, but I am open to including them formally if people think they might be useful.

I have done the best I can at splitting out changes from the final patch, but have mostly failed at identifying areas which can be pulled out in a compile/bisect-safe way.

The "no-arat" command line option introduced by the first patch is required for sensible testing of the patch. There is very little hardware around which is old enough to not have ARAT, but has MSI capable HPET channels; Any newer hardware which is ARAT-capable will unconditionally use TSC deadline mode.

As far as functional testing goes, I have put as many ASSERT()s in as I think are necessary, and have tested on a variety of hardware with Xen as idle as I can make it (not even dom0 running). The proportion of time spent in certain C states (as reported by the 'c' debugkey) is consistent before and after the change, and nothing has blown up.

I would appreciate any advice on where I might be able to split up the final patch to make it clearer, and comments on the design/implementation.

CC Keir Fraser <[email protected]>
CC Jan Beulich <[email protected]>

Andrew Cooper (8):
x86/timing: Command line parameter to disable ARAT x86/acpi: Warn about multiple HPET tables
x86/hpet: Fix ambiguity in broadcast info message. x86/hpet: Debug and verbose hpet logging
x86/msi: Refactor msi_compose_message() to not requrie an irq_desc x86/hpet: Adjust pointer vs array semantics of hpet_boot_cfg x86/hpet: debug keyhandlers
x86/hpet: Use singe apic vector rather than irq_descs for HPET
interrupts

 xen/arch/x86/acpi/boot.c            |   11 +
 xen/arch/x86/cpu/amd.c              |    2 +-
 xen/arch/x86/cpu/common.c           |    3 +
 xen/arch/x86/cpu/cpu.h              |    2 +
 xen/arch/x86/cpu/intel.c            |    5 +-
 xen/arch/x86/hpet.c                 |  596 +++++++++++++++++------------------
 xen/arch/x86/msi.c                  |    9 +-
 xen/drivers/passthrough/vtd/iommu.c |    2 +-
 xen/include/asm-x86/msi.h           |    2 +-
 9 files changed, 318 insertions(+), 314 deletions(-)
Signature · 1 line
1.7.10.4