Author Topic: Full ACPI table overrides and ACPI V1 to V4 conversion patch  (Read 30734 times)

0 Members and 1 Guest are viewing this topic.

andyvand

  • VoodooLabs
  • Posts: 51
Full ACPI table overrides and ACPI V1 to V4 conversion patch
« on: January 29, 2010, 11:02:34 PM »
I've added support to override following tables:
- SSDT tables
- HPET table
- Smart Battery Subsystem Table (SBST)
- Environment Controller Description Table (ECDT, for boot-ec device)
- Alert Standard Format Table (ASF!)
- DMAR table
- FADT table
- APIC table
- MCFG table

Besides those the following features have been implemented:
Automatic ACPI V1 to V4 upgrading through UpdateACPIVersion=Yes boot argument.
This:
 - Updates RSD PTR V1 to RSD PTR V3
 - Auto generates XSDT from RSDT
 - Converts old style short FADT to FADT V4

Source diff download:
http://rapidshare.com/files/343104547/PCEFI_10.5_AnV_Improvements.diff.zip

Glad to contribute...  ;)
« Last Edit: January 31, 2010, 09:42:22 AM by andyvand »

rocksteady

  • Global Moderator
  • Posts: 233
  • Root Down
Re: Full ACPI table overrides and ACPI V1 to V4 conversion patch
« Reply #1 on: January 29, 2010, 11:14:09 PM »
Cheers Andy


Update:

If it's not too much hassle, could you post your patch as an attachment here as well (or as a link to a 2nd host) ? Rapidshare is being blocked for some people. 

Thanks for your efforts
« Last Edit: January 30, 2010, 04:07:50 PM by rocksteady »
Stop bitching, start coding or documenting or both..

P5Q-EM : Q6600 : 8GB RAM : 8800GT : SATA Drives

andyvand

  • VoodooLabs
  • Posts: 51
Re: Full ACPI table overrides and ACPI V1 to V4 conversion patch
« Reply #2 on: January 30, 2010, 10:02:09 AM »
We've done some more testing.
The ACPI upgrade also fixes restart bug on Gigabyte motherboards (automatically without FADT.aml)
I think it's great...  8)

andyvand

  • VoodooLabs
  • Posts: 51
Re: Full ACPI table overrides and ACPI V1 to V4 conversion patch
« Reply #3 on: January 31, 2010, 09:41:32 AM »
I stand corrected... some tester reported it fixed his restart issue but it didn't...
I'm currently working on 2 simple things:
Fixing restart if FixRestart=Yes is given... (reset register gas, reset register value, reset register supported bit) [ready, testing currently]...
Overriding the preferred Power Management profile [ready, testing currently]...
I'll keep you guys posted on this and once ready post the required diff...

andyvand

  • VoodooLabs
  • Posts: 51
Re: Full ACPI table overrides and ACPI V1 to V4 conversion patch
« Reply #4 on: February 01, 2010, 05:16:02 PM »
I've done the restart fix but it still needs an option for overriding the reset value but other than that it works for Intel Core (2) Duo or + processors.
Also Preferred PM override works perfectly allready...
It fixes restart by adding boot argument (FixRestart=Yes)
It overrides preferred PM profile also by boot argument (PMProfile=<0-7>)
Check ACPI V4.0 spec for values for PM profile override... (FADT section...)

Patch diff download for Chameleon 2 RC4:
http://rapidshare.com/files/344032081/Chameleon-2.0-RC4-AnV_Improvements.diff.zip

P.S. This also includes from the guy in the previous post (can't remember his name) the experimental USB Legacy Off fix... (Big thanks go to him because it works great except on an Acer laptop with a ICH9M chipset which I've tested)

Include the features that you want from the patch.  ;D
« Last Edit: February 01, 2010, 05:18:24 PM by andyvand »

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: Full ACPI table overrides and ACPI V1 to V4 conversion patch
« Reply #5 on: February 01, 2010, 05:25:30 PM »
Hi andyvand

It's great to see further development and this looks interesting.
Can i ask if you have seen the repo and in particular the latest work that Rekursor has been doing?

Maybe you could add to the work being done there?
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

andyvand

  • VoodooLabs
  • Posts: 51
Re: Full ACPI table overrides and ACPI V1 to V4 conversion patch
« Reply #6 on: February 01, 2010, 08:23:48 PM »
Sure... anything I can do...
If you have any specific implement request, make them please.
 ;)

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: Full ACPI table overrides and ACPI V1 to V4 conversion patch
« Reply #7 on: February 01, 2010, 08:58:28 PM »
If you have any specific implement request, make them please.
Great, I am sure someone will take you up on your kind offer. Thanks

EDIT: If you want to create an account on the Chameleon repo then send rekursor a message so he can add you to the crew ;)
« Last Edit: February 02, 2010, 08:14:41 AM by Blackosx »
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

smith@@

  • Member
  • Posts: 49
Re: Full ACPI table overrides and ACPI V1 to V4 conversion patch
« Reply #8 on: February 02, 2010, 07:29:58 AM »
I would try this boot and i hope that it works. I think you should work with rekur to implement these functions in 'rc5 Chameleon ;)
« Last Edit: February 02, 2010, 07:35:59 AM by smith@@@ »

scrax

  • Member
  • Posts: 61
Re: Full ACPI table overrides and ACPI V1 to V4 conversion patch
« Reply #9 on: February 02, 2010, 09:36:48 AM »
I think you should work with rekur to implement these functions in 'rc5 Chameleon ;)
+1

andyvand

  • VoodooLabs
  • Posts: 51
Re: Full ACPI table overrides and ACPI V1 to V4 conversion patch
« Reply #10 on: February 02, 2010, 05:18:24 PM »
OK I'll check out the Chameleon repo and I'll post the diff for it when I'm done.
I'll make sure they are properly implemented.
The reason I'll do it this way is because I've never used SVN uploading...
I'll also improve the patches still even more (like restart register address override function and reset value override function...).
I'll keep you guys posted.  ;)

rocksteady

  • Global Moderator
  • Posts: 233
  • Root Down
Re: Full ACPI table overrides and ACPI V1 to V4 conversion patch
« Reply #11 on: February 02, 2010, 06:17:21 PM »
Yup, Repo is the best way

Most of us are on business trip right now, so comms may be a bit slow but do get in touch if you need any help/clarification

Cheers
Stop bitching, start coding or documenting or both..

P5Q-EM : Q6600 : 8GB RAM : 8800GT : SATA Drives

andyvand

  • VoodooLabs
  • Posts: 51
Re: Full ACPI table overrides and ACPI V1 to V4 conversion patch
« Reply #12 on: February 02, 2010, 06:22:45 PM »
OK, I will do so when I'm done patching...
I have at current no idea how to uplink something to an svn server (guessing it must be logging in and uploading source during which it checks automatically what has changed...).
Thanks everyone.  :)

andyvand

  • VoodooLabs
  • Posts: 51
Re: Full ACPI table overrides and ACPI V1 to V4 conversion patch
« Reply #13 on: February 03, 2010, 05:30:01 PM »
I've done the code changes for Chameleon-2-RC5-pre7-r59.

Changelog:
<<-Chameleon 2 RC5 pre7 done list->>
FADT override [OK]
FADT upgrade [OK]
RSD PTR conversion [OK]
Gen XSDT [OK]
-> ACPI upgrade [OK]

Changed procedures for fixing restart [OK]
Changed and completed facp structure [OK]

SSDT override [OK]
HPET override [OK]
HPET dropping [OK]
SLIC dropping [OK]
SBST dropping [OK]
SBST override [OK]
ECDT dropping [OK]
ASF! dropping [OK]
ASF! override [OK]
DMAR dropping [OK]
DMAR override [OK]
APIC override [OK]
MCFG override [OK]
-> Tables override [OK]

USB Legacy Off patch [OK]

Force 64-bit mode override (-x64) [OK]

Documentation Update [OK]

Patch download:
http://rapidshare.com/files/345380316/Chameleon-2-RC5-pre7-r60_proposal.diff.zip

Package download:
http://rapidshare.com/files/345379960/Chameleon-2.0-RC5pre7-r60_proposal.pkg.zip

rocksteady

  • Global Moderator
  • Posts: 233
  • Root Down
Re: Full ACPI table overrides and ACPI V1 to V4 conversion patch
« Reply #14 on: February 03, 2010, 05:34:29 PM »
nice work andy, now gotta find some time for testing

will get back to you
Stop bitching, start coding or documenting or both..

P5Q-EM : Q6600 : 8GB RAM : 8800GT : SATA Drives