5T33Z0 / OC-Little-Translated

ACPI Hotpatches and Guides for the OpenCore Bootmanager. Enhance and fine-tune your Hackintosh by adding devices and enabling additional features not covered in the OpenCore Install Guide. Only place that covers how to use OpenCore Legacy Patcher on PCs.
BSD 3-Clause "New" or "Revised" License
547 stars 73 forks source link

SSDT-ALL Suggestion #48

Closed rafale77 closed 2 years ago

rafale77 commented 2 years ago

Not an issue, merely a report/suggestion:

After combining all my DSDT, I noticed that there was significant room for further improvements by reordering and cleaning up the various patches so they go down in descending order:

Example below Screen Shot 2022-07-25 at 06 57 06

And therefore streamlining the execution, reduces the size of the file and eliminating a lot of Scope calls and simplifying device pathing.

5T33Z0 commented 2 years ago

I guess you have to change the order of the SSDTs based on their PCI paths so that the merged SSDT is cleaner.

Let me know if you have come up with a solution. Because I don't know how to make ASL to output a neatly formatted SSDT.

rafale77 commented 2 years ago

MaciASL allows you to move the entire device block one by one to set the order and the location of each device. That part was easy. I then had to edit the paths in the scope and devices one by one.

5T33Z0 commented 2 years ago

Yes, I know. Still, not exactly a "stramlined" appraoch. There's nothing I can do about it. I don't see any options in the ASL commands which could do order the entries. As I said in the article: I don't like this method anyways for all the mentioned reasons.

rafale77 commented 2 years ago

Understood, I don't know of a better way to do it other than manually which I admit is error prone. That being said, without this reordering/cascading, the benefit of doing the SSDT-ALL merging is minimal.

5T33Z0 commented 2 years ago

The thing is: the SSDT might not look nice, but this doesn't really matter, since it is not simply appended at the end of the DSDT. Instead its data is merged with the respective sections of the DSDT addressed via the scopes and ACPI paths.