All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] MIPS: Guest timekeeping improvements
@ 2016-04-22 17:19 ` James Hogan
  0 siblings, 0 replies; 17+ messages in thread
From: James Hogan @ 2016-04-22 17:19 UTC (permalink / raw)
  To: Ralf Baechle
  Cc: James Hogan, Daniel Lezcano, Thomas Gleixner, linux-mips,
	linux-kernel

These patches improve timekeeping of MIPS/Malta kernels running in a KVM
guest.

Patch 2 fixes malta frequency calculation under virtualisation,
especially on very slow targets (FPGA / emulators). Patch 1 is a minor
fix for something I noticed while writing patch 2.

Patch 3 drops the use of the PIT timer for Malta, which is slow to
emulate with KVM + QEMU.

Finally patch 4 calculates min_delta_ns of cevt-r4k dynamically to
handle virtualised environments with software emulated Count/Compare,
and where Count frequency may not be directly related to actual CPU
speed (and so the static value of 0x300 may be no good).

James Hogan (4):
  MIPS: malta-time: Start GIC count before syncing to RTC
  MIPS: malta-time: Take seconds into account
  MIPS: malta-time: Don't use PIT timer for cevt/csrc
  MIPS: cevt-r4k: Dynamically calculate min_delta_ns

 arch/mips/Kconfig                |  1 -
 arch/mips/kernel/cevt-r4k.c      | 82 +++++++++++++++++++++++++++++++++++++++-
 arch/mips/mti-malta/malta-time.c | 50 +++++++++++++++---------
 3 files changed, 113 insertions(+), 20 deletions(-)

Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
-- 
2.4.10

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

end of thread, other threads:[~2016-04-28 16:36 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-22 17:19 [PATCH 0/4] MIPS: Guest timekeeping improvements James Hogan
2016-04-22 17:19 ` James Hogan
2016-04-22 17:19 ` [PATCH 1/4] MIPS: malta-time: Start GIC count before syncing to RTC James Hogan
2016-04-22 17:19   ` James Hogan
2016-04-22 17:19 ` [PATCH 2/4] MIPS: malta-time: Take seconds into account James Hogan
2016-04-22 17:19   ` James Hogan
2016-04-22 17:19 ` [PATCH 3/4] MIPS: malta-time: Don't use PIT timer for cevt/csrc James Hogan
2016-04-22 17:19   ` James Hogan
2016-04-22 18:57   ` Maciej W. Rozycki
2016-04-22 18:57     ` Maciej W. Rozycki
2016-04-22 19:23     ` James Hogan
2016-04-22 19:23       ` James Hogan
2016-04-22 19:29       ` Ralf Baechle
2016-04-28 16:36         ` James Hogan
2016-04-28 16:36           ` James Hogan
2016-04-22 17:19 ` [PATCH 4/4] MIPS: cevt-r4k: Dynamically calculate min_delta_ns James Hogan
2016-04-22 17:19   ` James Hogan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.