Author Topic: Forcing HPET on VIA chipsets  (Read 4464 times)

0 Members and 1 Guest are viewing this topic.

bogdan-x86

  • Entrant
  • Posts: 2
Forcing HPET on VIA chipsets
« on: September 07, 2010, 04:30:02 PM »
I was pretty disappointed when Chameleon with auto P and C States generation was released and found out that my BIOS had no option to enable HPET. Since I my motherboard (ECS P4M900T-M2) uses VIA chipsets (VT8237S southbridge), Chameleon's trick to force HPET wouldn't work. Because of that AppleCPUPowerManagement panicked if I removed NullCPUPowerManagement.

So I started looking around and found out that linux can force enable HPET on VIA VT8235 and VT8237. I got the source code for the linux kernel and (with a bit of trial and error) adapted the code for VIA HPET forcing for chameleon. I replaced hpet.c with my version (attached) in the Chameleon source code and compiled it (obviously breaks HPET forcing on intel chipsets).

I used a DSDT patcher for a HPET fix as well, so I'm not really sure if the ForceHPET or the DSDT changes are to blame, but now I can remove NullCPUPowerManagement and not get any kernel panics. System profiler shows AppleHPET is loaded and IORegistryExplorer shows a HPET device as well.

If anyone else with a VIA chipset has no option for HPET in their BIOS, they could try this, maybe it works for them too (might need to add device ID in hpet.c for VT8235 or other variations of VT8237). Use at your own risk.


-- Sorry if I posted this in the wrong section.

Gringo Vermelho

  • Forum Moderator
  • Posts: 611
  • The gray monster energy hat
Re: Forcing HPET on VIA chipsets
« Reply #1 on: September 08, 2010, 03:06:40 AM »
If that gives you working speed-stepping on your non-intel chipset, then cool.  8)

If not, then it's pointless?
10.9.5 - ASUS P8Z77-V Pro - i5 3570K - GTX 660 - Chameleon 2.3 svn-r2xxx
How to...
Install Chameleon: http://forum.voodooprojects.org/index.php/topic,649
Make your own Chameleon boot CD: http://forum.voodooprojects.org/index.php/topic,484.msg2131.html#msg2131

bogdan-x86

  • Entrant
  • Posts: 2
Re: Forcing HPET on VIA chipsets
« Reply #2 on: September 08, 2010, 11:56:41 AM »
Yeah, it does :)

Gringo Vermelho

  • Forum Moderator
  • Posts: 611
  • The gray monster energy hat
Re: Forcing HPET on VIA chipsets
« Reply #3 on: September 09, 2010, 06:19:13 AM »
That's awesome, good job.

Maybe Chameleon could be made to detect VIA chipsets and then enable your code automatically.
10.9.5 - ASUS P8Z77-V Pro - i5 3570K - GTX 660 - Chameleon 2.3 svn-r2xxx
How to...
Install Chameleon: http://forum.voodooprojects.org/index.php/topic,649
Make your own Chameleon boot CD: http://forum.voodooprojects.org/index.php/topic,484.msg2131.html#msg2131