Author Topic: Using chameleon, how important is the DSDT file?  (Read 24167 times)

0 Members and 1 Guest are viewing this topic.

Lord Anubis

  • Member
  • Posts: 74
Using chameleon, how important is the DSDT file?
« on: May 28, 2009, 11:30:09 AM »
Hi,

Always, like you all, looking to get things right.

I did read that with 10.5.6+ and Chameleon we don't need the DSDT file anymore. f.e PCWIZComputer.com
Somewhere else they just talking about using that file.

Is this true, and what are your experiences?
Is maybe using or not using this file conflicting the [m]kext load?

Any comments on this
Quicksilver 2002 Case - GB EP45-DS3P - 8Gb Kingston mem. - Q6600 - Asus 7300GT Silent 512Mb - 6 SATA drives - 1 IDE drives ( using F12/Chameleon for booting, not visible in OSX ) - 1 external Sata Samsung DVD - OSX 10.6.8 server retail - Chameleon 2.0RC1 + Cartri Bios

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: Using chameleon, how important is the DSDT file?
« Reply #1 on: May 28, 2009, 11:45:44 AM »
Hi Lord Anubis

I don't use a DSDT file, like you I read that it wasn't needed with 10.5.6 so I have never used one.
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

Kabyl

  • VoodooLabs
  • Posts: 158
Re: Using chameleon, how important is the DSDT file?
« Reply #2 on: May 28, 2009, 02:40:38 PM »
I did read that with 10.5.6+ and Chameleon we don't need the DSDT file anymore. f.e PCWIZComputer.com
Somewhere else they just talking about using that file.

It was needed in the beta releases of 10.5.6 because of the new AppleRTC kext, in the final release the bug was gone and so the so called RTC fix in the DSDT wasn't necessary.

On some PCs the DSDT has serious bugs and fixes are needed, sometimes you *want* to fix it to get things working like PM (Power Management) stuff.

Unfortunately, there is a lot of misinformation, so try to find a good source and don't believe everything you read!

rocksteady

  • Global Moderator
  • Posts: 233
  • Root Down
Re: Using chameleon, how important is the DSDT file?
« Reply #3 on: May 28, 2009, 07:19:47 PM »
I was also intrigued from the rumors about its necessity back in the day before the final 10.5.6 update. However, since it ended up not being necessary, I dropped my research.

I'm using a modified BIOS on my hack and so far (X.5.7) everything is smooth (as far as hacks go).  Besides the now invalid AppleRTC.kext buzz, if my memory serves me right, the very first thing a patched DSDT was supposed to solve, is Processor aliases (popular for Asus mobos) in order to get all cores working (or get them to work they way they should) in order to avoid certain kernel panics.

Another member has posted some useful info in this thread: [Solved] Difference in booting with and w/o DSDT verifying a popular thread @insanely about Chameleon's DSDT override capabilities.

For reference's sake, here's a short definition of the Differentiated System Description Table  from the official ACPI Spec:
"An OEM must supply a DSDT to an ACPI-compatible OS. The DSDT contains the Differentiated Definition Block, which supplies the implementation and configuration information about the base system. The OS always inserts the DSDT information into the ACPI Namespace at system boot time and never removes it."

but as the LinuxACPI project states:
"Unfortunately, many hardware vendors and OEMs are not capable of supplying fully functional tables (not even the members of the ACPI SIG).", which pretty much sums up why most of the hacks would benefit from a decently patched DSDT file.

Anubis, if you'd like to maintain this thread and come up with useful info I'd be happy to start researching DSDT again (as time permits). An easy+fast solution would be to integrate the info from the thread above into this one (I should move it anyway as its not part of the bugs).
Stop bitching, start coding or documenting or both..

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

Gringo Vermelho

  • Forum Moderator
  • Posts: 611
  • The gray monster energy hat
Re: Using chameleon, how important is the DSDT file?
« Reply #4 on: May 28, 2009, 09:00:06 PM »
Since 10.5.6, ASUS P5Q series boards can't boot OSX without the CPU aliases removed from the DSDT table.

So a patched DSDT is needed if you own one of those boards.

The patched BIOS files you can find for running OSX have the CPU aliases removed in the DSDT. It's convenient to use a patched BIOS but it can be risky and it's not as flexible as using DSDT.aml.

What's more, if you have near-compatible on-board sound, LAN and graphics you can add your hardware to the DSDT table and run without patched kernel extensions or third party drivers for that hardware.

It's a bit of a black art though. More voodoo than voodoo.

http://www.insanelymac.com/forum/index.php?showtopic=142434
 
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

Lord Anubis

  • Member
  • Posts: 74
Re: Using chameleon, how important is the DSDT file?
« Reply #5 on: May 28, 2009, 09:47:10 PM »
Anubis, if you'd like to maintain this thread and come up with useful info I'd be happy to start researching DSDT again (as time permits). An easy+fast solution would be to integrate the info from the thread above into this one (I should move it anyway as its not part of the bugs).


I did read in earlier info about DSDT, and not convinced that it is the holy grail.
After that I was curious what kind of influance DSDT has on the loading state of device id added modified kexts.

If DSDT is not needed anymore then IMHO Guess, it will'be a waste of time to do more research about it.

Thanks
Quicksilver 2002 Case - GB EP45-DS3P - 8Gb Kingston mem. - Q6600 - Asus 7300GT Silent 512Mb - 6 SATA drives - 1 IDE drives ( using F12/Chameleon for booting, not visible in OSX ) - 1 external Sata Samsung DVD - OSX 10.6.8 server retail - Chameleon 2.0RC1 + Cartri Bios

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: Using chameleon, how important is the DSDT file?
« Reply #6 on: August 10, 2009, 11:20:38 PM »
I don't use a DSDT file, like you I read that it wasn't needed with 10.5.6 so I have never used one.
How different things were for me back in May......   
Since then I read up on it, learnt how to build one and now I have a better system because of it. :)
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

18seven

  • Observer
  • Posts: 14
Re: Using chameleon, how important is the DSDT file?
« Reply #7 on: August 15, 2009, 06:56:34 AM »
Love it. IMO its a much cleaner than kext patching and offers many benefits otherwise missed. I just used it to enable hyperthreading with native ApplePowerManagement and looking forward to being able to utilize GCD in 10.6.

Gringo Vermelho

  • Forum Moderator
  • Posts: 611
  • The gray monster energy hat
Re: Using chameleon, how important is the DSDT file?
« Reply #8 on: August 15, 2009, 07:42:53 AM »
That sounds cool, please post how you did it.
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

18seven

  • Observer
  • Posts: 14
Re: Using chameleon, how important is the DSDT file?
« Reply #9 on: August 15, 2009, 01:15:25 PM »
Change the processor scope to system bus. Search for "Processor" change Scope (_PR) to Scope (_SB). Follow up on CPUs reference i.e search "CPU0" change each instance of \_PR.CPU0 to \_SB.CPU0, same for CPU1, CPU2, etc.. Declaring PR is default for legacy support, not current spec. Declaring SB also supports objects needed to enable native speedstep, at least that is my understanding.

Slightly ot but if anyone can ioreg dump a mac with Intel Xeon “Nehalem” processor or direct me to one already posted, it would be appreciated.

Lord Anubis

  • Member
  • Posts: 74
Re: Using chameleon, how important is the DSDT file?
« Reply #10 on: August 15, 2009, 04:18:20 PM »
With 10.5.8 and the current chameleon version in mind, what is the best tutorial to get DSDT right?

I see several but always with complaining comments.

Thank you.
Quicksilver 2002 Case - GB EP45-DS3P - 8Gb Kingston mem. - Q6600 - Asus 7300GT Silent 512Mb - 6 SATA drives - 1 IDE drives ( using F12/Chameleon for booting, not visible in OSX ) - 1 external Sata Samsung DVD - OSX 10.6.8 server retail - Chameleon 2.0RC1 + Cartri Bios

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: Using chameleon, how important is the DSDT file?
« Reply #11 on: August 15, 2009, 05:19:10 PM »
Hi Lord

I followed koalala's ACPIPatcher guide on Insanely. (showtopic=142434). It's a windows application but doesn't need to be run on your hack, a different windows machine will work. I have written a simple guide to help show the basics. It's no master class, but it gives an introduction to building a DSDT.aml. It's for the GA-EP45-DS3L, but the principle will be the same for your mobo. It's on insanely (showtopic=177497).

For different techniques and more advanced info, I am sure others here will be able to help.
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

Gringo Vermelho

  • Forum Moderator
  • Posts: 611
  • The gray monster energy hat
Re: Using chameleon, how important is the DSDT file?
« Reply #12 on: August 15, 2009, 08:45:54 PM »
Change the processor scope to system bus. Search for "Processor" change Scope (_PR) to Scope (_SB). Follow up on CPUs reference i.e search "CPU0" change each instance of \_PR.CPU0 to \_SB.CPU0, same for CPU1, CPU2, etc.. Declaring PR is default for legacy support, not current spec. Declaring SB also supports objects needed to enable native speedstep, at least that is my understanding.

The only instance of _PR in my DSDT is at the beginning, at the part where you remove the CPU aliases. I can't find any other references to CPU0, 1, or \PR.CPU0, 1 etc.  anywhere else either. So I changed it to _SB, rebooted and it locked up during boot, sometime after this message (which I've never seen before):

ACPI_SMC_PlatformPlugin :: PushCPU_CSTData - _CST Evaluation failed

Then I tried disabling "CSTATE-tech" in the BIOS but then it locked up at initialization of AppleIntelCPUblabla instead.

I have to say that I love how easy it is to test these things with a Chameleon boot CD.

My CPU is a Core 2 Duo E8500 which doesn't have Hyperthreading of course but it would be cool to get native speed stepping working. If you do more research on this, please keep us posted.

Output from sysctl -a | grep freq:

kern.exec: unknown type returned
hw.busfrequency = 1332000000
hw.cpufrequency = 3160000000
hw.tbfrequency = 1000000000
hw.tbfrequency: 1000000000
hw.cpufrequency_max: 3160000000
hw.cpufrequency_min: 3160000000
hw.cpufrequency: 3160000000
hw.busfrequency_max: 1332000000
hw.busfrequency_min: 1332000000
hw.busfrequency: 1332000000

About the ioregs you're looking for, there's a thread at the ProjectOSX forums with attached dumps from real macs. I don't know if there are any Nehalem dumps available yet though.
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

00diabolic

  • Observer
  • Posts: 25
Re: Using chameleon, how important is the DSDT file?
« Reply #13 on: June 17, 2010, 06:37:43 AM »
I have been doing some googling and found this topic. After reading, I just have one question about DSDT. DSDT is ACPI tables from the bios. Does the DSDT also include information about your CPU?

From what I read it covers p states for speed step and ram information but is that it? What about cpu speed information? Does the DSDT have that information in it and can it be edited if your bios provides the wrong information about your cpu like with the ASUS bioss and the cpu alias fix mentioned above?

I have looked in my own DSDT but I cant not find information about my cpu. Maybe I dont know what to look for. Is it even there?

valv

  • VoodooLabs
  • Posts: 72
    • The AnVAL Forum (fr)
Re: Using chameleon, how important is the DSDT file?
« Reply #14 on: June 17, 2010, 03:20:03 PM »
@00diabolic,
you are not looking in the right place. cpu states are declared in SSDTs. most are hidden from osx, that's u should dump 'em from linux or windows (if u don't know how, I made some guide on insanelymac (showtopic=215233)). Once u get those tables, look into _PSS section.