WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] force HPET support on buggy NVidia-based machines

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] force HPET support on buggy NVidia-based machines
From: Holger Steinhaus <hsteinhaus@xxxxxx>
Date: Fri, 25 Jan 2008 11:02:33 +0100
Delivery-date: Fri, 25 Jan 2008 02:03:00 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.6 (enterprise 20070904.708012)
While playing around with some cpufreq issues, I found out that Xen unstable 
is currently unable to use the HPET timer of my NVidia Nforce Pro-based 
machine.

Some research on the net revealed that quite a lot dual socket machines (i.e. 
workstations and small servers from Dell and HP) don't provide correct ACPI 
information about this timer, even though the HPET is present and functional. 
Very recent Linux kernels (starting from 2.6.23(?)) as well as LinuxBIOS 
therefore provide a workaround to enable the HPET anyway by scanning the PCI 
bus for suspicious devices and querying them directly. 

I've ported a part of this workaround to Xen. To enable it, apply the patch 
below and pass the cmd line arg "clocksource=hpet_nv" to Xen. This patch 
currently only covers some NVidia chipsets with the PCI ids shown in the 
patch.Other chipsets may need a similar procedure. The original Linux source 
even covers Intel (ICH4) and VIA chipsets. The patch below has been tested on 
my Tyan K8SE mainboard using a NForce Pro 2200 chipset and does it's job 
without woes so far.

I'm not sure if patches like this one are really a good idea for Xen, but 
maybe it helps some other people to run Xen more smoothly on their 
development machines.

Regards,
  Holger        

Signed-off-by: Holger Steinhaus <hsteinhaus@xxxxxx>

Attachment: xen-3.3-unstable-hpet-force.diff
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>