Jump to content

fabiosun

Recommended Posts

  • Supervisor
00:730 00:012 OCABC: RTDFRG 1 DEVMMIO 1 NOSU 0 NOVRWR 0 NOSB 0 NOHBMAP 0 SMSLIDE 1 WRUNPROT 1

20:115 00:010 OCABC: MMIO devirt 0xE2100000 (0x81 pages, 0x8000000000000001) skip 1
20:136 00:021 OCABC: MMIO devirt 0xE3180000 (0x81 pages, 0x8000000000000001) skip 1
20:146 00:009 OCABC: MMIO devirt 0xEF100000 (0x181 pages, 0x8000000000000001) skip 1
20:156 00:010 OCABC: MMIO devirt 0xFA180000 (0x81 pages, 0x8000000000000001) skip 1
20:166 00:010 OCABC: MMIO devirt 0xFA300000 (0x100 pages, 0x8000000000000001) skip 1
20:182 00:016 OCABC: MMIO devirt 0xFEA00000 (0x100 pages, 0x8000000000000001) skip 1
20:191 00:009 OCABC: MMIO devirt 0xFEC00000 (0x1 pages, 0x8000000000000001) skip 1
20:202 00:010 OCABC: MMIO devirt 0xFEC10000 (0x1 pages, 0x8000000000000001) skip 1
20:218 00:015 OCABC: MMIO devirt 0xFED00000 (0x1 pages, 0x8000000000000001) skip 1
20:234 00:016 OCABC: MMIO devirt 0xFED40000 (0x5 pages, 0x8000000000000001) skip 1
20:243 00:009 OCABC: MMIO devirt 0xFED80000 (0x10 pages, 0x8000000000000001) skip 1
20:255 00:011 OCABC: MMIO devirt 0xFEDC2000 (0xE pages, 0x8000000000000001) skip 1
20:265 00:010 OCABC: MMIO devirt 0xFEDD4000 (0x2 pages, 0x8000000000000001) skip 1
20:274 00:009 OCABC: MMIO devirt 0xFEE00000 (0x100 pages, 0x8000000000000001) skip 0
20:284 00:009 OCABC: MMIO devirt 0xFF000000 (0x1000 pages, 0x8000000000000001) skip 1
20:294 00:010 OCABC: MMIO devirt 0x4040000000 (0x10400 pages, 0x8000000000000001) skip 1
20:304 00:010 OCABC: MMIO devirt 0x8BB0000000 (0x10400 pages, 0x8000000000000001) skip 0
20:319 00:015 OCABC: MMIO devirt 0x8BE0000000 (0x10400 pages, 0x8000000000000001) skip 0
20:335 00:015 OCABC: MMIO devirt 0xD750000000 (0x10400 pages, 0x8000000000000001) skip 0

I would try this without any ssdt if they are not mandatory for you to boot

obviously you have to follow only skip part

and not my values 🙂

 

Link to comment
Share on other sites

1 minute ago, fabiosun said:

all your ssdt I see are mandatory to boot your system?

 

No - only the ones numbered 1-4. I think 5 (system bus) could be added but not essential.

 

The non-numbered ones are my own (lots of them with generous help from @iGPU and they do various things specific to my setup).

Link to comment
Share on other sites

  • Supervisor
44:747 00:001 OCABC: MMIO devirt 0xE2100000 (0x81 pages, 0x8000000000000001) skip 1
44:748 00:001 OCABC: MMIO devirt 0xE3180000 (0x81 pages, 0x8000000000000001) skip 1
44:749 00:001 OCABC: MMIO devirt 0xEF100000 (0x181 pages, 0x8000000000000001) skip 1
44:750 00:001 OCABC: MMIO devirt 0xFA180000 (0x81 pages, 0x8000000000000001) skip 1
44:751 00:001 OCABC: MMIO devirt 0xFA300000 (0x100 pages, 0x8000000000000001) skip 1
44:752 00:001 OCABC: MMIO devirt 0xFEA00000 (0x100 pages, 0x8000000000000001) skip 1
44:753 00:001 OCABC: MMIO devirt 0xFEC00000 (0x1 pages, 0x8000000000000001) skip 1
44:755 00:001 OCABC: MMIO devirt 0xFEC10000 (0x1 pages, 0x8000000000000001) skip 1
44:756 00:001 OCABC: MMIO devirt 0xFED00000 (0x1 pages, 0x8000000000000001) skip 1
44:757 00:001 OCABC: MMIO devirt 0xFED40000 (0x5 pages, 0x8000000000000001) skip 1
44:758 00:001 OCABC: MMIO devirt 0xFED80000 (0x10 pages, 0x8000000000000001) skip 1
44:759 00:001 OCABC: MMIO devirt 0xFEDC2000 (0xE pages, 0x8000000000000001) skip 1
44:760 00:001 OCABC: MMIO devirt 0xFEDD4000 (0x2 pages, 0x8000000000000001) skip 1
44:761 00:001 OCABC: MMIO devirt 0xFEE00000 (0x100 pages, 0x8000000000000001) skip 0
44:763 00:001 OCABC: MMIO devirt 0xFF000000 (0x1000 pages, 0x8000000000000001) skip 1
44:764 00:001 OCABC: MMIO devirt 0x10000000000 (0x10400 pages, 0x8000000000000001) skip 1
44:765 00:001 OCABC: MMIO devirt 0x3CB90000000 (0x10400 pages, 0x8000000000000001) skip 0
44:766 00:001 OCABC: MMIO devirt 0x3CBC0000000 (0x10400 pages, 0x8000000000000001) skip 0
44:767 00:001 OCABC: MMIO devirt 0x69750000000 (0x10400 pages, 0x8000000000000001) skip 0

44:760 00:001 OCABC: MMIO devirt 0xFEDD4000 (0x2 pages, 0x8000000000000001) skip 1
44:761 00:001 OCABC: MMIO devirt 0xFEE00000 (0x100 pages, 0x8000000000000001) skip 0
44:763 00:001 OCABC: MMIO devirt 0xFF000000 (0x1000 pages, 0x8000000000000001) skip 1
44:764 00:001 OCABC: MMIO devirt 0x10000000000 (0x10400 pages, 0x8000000000000001) skip 1
44:765 00:001 OCABC: MMIO devirt 0x3CB90000000 (0x10400 pages, 0x8000000000000001) skip 0
44:766 00:001 OCABC: MMIO devirt 0x3CBC0000000 (0x10400 pages, 0x8000000000000001) skip 0
44:767 00:001 OCABC: MMIO devirt 0x69750000000 (0x10400 pages, 0x8000000000000001) skip 0

 

in green my suggested things to modify

I know the invaluable @iGPUwork..and my hope for my usb TB ports are in his hands 🙂 🙂

in this case I would try with no ssdt

But it is your choice 🙂

 

  • Like 1
Link to comment
Share on other sites

  • Supervisor

@meina222I think also no one of those four are mandatory to boot..but I repeat myself every user have to try what it is better for him

 

With MSI creator, Asrock Creator, MSI Pro 4g no need to boot of any ssdt and all these motherboard have a working with those skip MMIO schema

I have not verified if all are mandatory to set to skip 1..but usually is better because others Hack does not use DevirtualizeMMIO flag 

then, maybe some are useful for NVRAM , for thunderbolt and some renaming..

but I would stay more simple..

 

Link to comment
Share on other sites

@fabiosun - commenting on your MMIO

 

In my experience, there seem to be many MMIO configurations that would make you system boot. And perhaps many that would make your shutdown and NVRAM work. The goal is to find the optimal one where you disable the least amount of memory ranges and enable the rest. For me that combo was (from bottom to top), 2 ON, 2 OFF, ALL rest ON. You can check in my config and log.

 

This worked great for NVRAM and shutdown, but it was too tight without a slide and would sometimes not boot. More often it would not work on hot reboots, and more often it would work in cold starts. Not sure why. So I calculated slide=80 using the Dortania guide. Turns out OC log already hints what the right slide should be.

 

I am not eager to recommend this method, as I myself do not understand it well. But it is consistent with Dortania (and @iGPUs guide).

1 minute ago, fabiosun said:

@meina222I think also no one of those four are mandatory to boot..but I repeat myself every user have to try what it is better for him

 

With MSI creator, Asrock Creator, MSI Pro 4g no need to boot of any ssdt

then, maybe some are useful for NVRAM , for thunderbolt and some renaming..

but I would stay more simple..

 

I must admit I have not tried to boot without 1-4. I do notice they are being strongly recommended by @iGPU and also Dortania has similar recommendations so I choose to include them.

Link to comment
Share on other sites

  • Supervisor
2 hours ago, meina222 said:

 

I am not eager to recommend this method, as I myself do not understand it well. But it is consistent with Dortania (and @iGPUs guide).

 

and in your opinion Dortania 's guide is fine about trx40 MMIO advice? 

 

If so I can't say anything more..but I invite you to read also in amd discord 😉

 

Link to comment
Share on other sites

@meina222

 

Sorry I didn't credit you earlier on the 'wake on lan' setting. By the time I had caught up reading all the posts, I couldn't remember or see again when skimming through who had mentioned it. Credit where credit is due, I would never have thought of that as a possible reason for the shutdown issue. Kudos to you 🙂 

Link to comment
Share on other sites

  • Supervisor

and i permit myself to say:

"n my experience, there seem to be many MMIO configurations that would make you system boot"

this is a not correct way to interpret DevirtualizeMMIO flag we have to use to boot on trx40

 

in big friendship Iam saying ...on a pub drinking beer 🙂

 

Link to comment
Share on other sites

  • Supervisor

no do not try..if for your is good don't touch anything 😉

 

i stop to repeat this stuff for now 

 

As a personal favor I ask people with not tested motherboard to test audio stuff I said above

Thank you 

 

Link to comment
Share on other sites

8 minutes ago, fabiosun said:

and i permit myself to say:

"n my experience, there seem to be many MMIO configurations that would make you system boot"

this is a not correct way to interpret DevirtualizeMMIO flag we have to use to boot on trx40

 

in big friendship Iam saying ...on a pub drinking beer 🙂

 

LOL - no problem :). Sorry, I think I am bad reader.

DevirtualizeMMIO is not well explained. It seems to be a way to free certain regions of memory so the kernel can load but this is a very crude explanation. There are many ways to allocate and free memory (I should know that because I actually develop in C++ for a living so I think I do understand overall the concept of virtual memory - and in particular why "devirtualizing" frees memory - because you don't need additional space to store virtual lookup tables).

 

However, the explanations on the methods are not very clear. 

 

Do you believe above MMIO change addresses SLEEP specifically?

 

Edited by meina222
Link to comment
Share on other sites

  • Supervisor

1081576774_Schermata2020-08-30alle16_16_50.png.4b18a7cb03e7b6258b690810ab3ad7f2.png

 

also my assertions here is partially wrong..

But I have not put this value in guide saying it is advised to use for trx40 user

The maintainer wrote he has had to correct

for now it is here 😉

 

Edited by fabiosun
he has had :)
Link to comment
Share on other sites

12 minutes ago, Ploddles said:

@meina222

 

Sorry I didn't credit you earlier on the 'wake on lan' setting. By the time I had caught up reading all the posts, I couldn't remember or see again when skimming through who had mentioned it. Credit where credit is due, I would never have thought of that as a possible reason for the shutdown issue. Kudos to you 🙂 

No problem :). I must admit I was very excited because I have slight OCD and this shutdown bothered me a lot. But honestly, it's most important to confirm from all other boards that this option exists and works for them. In the end this hopefully can create 1 guide for all.

Link to comment
Share on other sites

  • Supervisor
11 minutes ago, meina222 said:

 

Do you believe above MMIO change addresses SLEEP specifically?

 

 

@meina222 i do sfx for living..

and have this trx40 working was one of the best one 🙂

 

I can say as I said above with a minimal config.plist re assigning those space @OSX I have not have problem and all think I have said is working well

 

but no one could guaranteed the same..only testing..and assuming some risks could help to know 🙂

 

i am not advising to try..if your system is good for you you are the main referee for it 🙂

 

Edited by fabiosun
  • +1 1
Link to comment
Share on other sites

@fabiosun

 

System is very good now, except for sleep (and I think maybe my USB capability on ports needs to be tested carefully and optimized). I agree that MMIO should be firmware specific. There should be only a guide how to find yours and not specific addresses. I never used the Dortania ones (we went over these before and knew they were wrong).

 

Back to the last problematic feature - sleep. How many people have sleep working? @fabiosun - yours works, correct? Do you think it was the MMIO that made it work? It's entire possible sleep is related to something else.

Link to comment
Share on other sites

  • Supervisor

@meina222I use same bios configuration I use for Proxmox and for Windows

Now, Catalina, High Sierra and Mojave have a perfect working sleep/wake

The only think I have done reassigning to OS X those MMIO before skipped thanks to DevirtualizeMMIO

In some x99 hack was mandatory to do memmap calculation or using some weird free aptiomemory (unsafe)

 

for our TRX 40 (tested on two MSI and one Asrock creator) this is enough

i have not investigated USB part for now because I have a minimal skill in ssdt..so..it is all I can say

 

 

Link to comment
Share on other sites

Just tested my USB sound ports. They work (updated in my previous posts on what works and what not), but on some test sound videos it's better and on some I can perceive occasional crackling when switching from left to right. The crackling occurs on this video - only when shifting, and as my headphones are not professional quality it's hard for me to judge. I would get a special sound card or USB device if I was worried about it.

 

e.g. this one 

 

Front and back "out" only. I don't have microphone or other professional equipment

Link to comment
Share on other sites

  • Supervisor

@meina222 turn off your pc when you can

connect on out jack of this picture your headphone or speaker output jack

turn on your PC and see if you see Realtek audio 2.0 device in your sound settings

1411880507_Schermata2020-08-30alle16_49_07.png.991e023ba89d1862e65672936971010e.png

 

if it is working for you is the first TRX40 board

 

pay attention

it is important to start with jack connection done and pc turned off

 

TY

 

Link to comment
Share on other sites

@fabiosun - I just did the shut down/restart sound test. Indeed the Realtek disappeared and is not recognized when the headphones are plugged. I never noticed that since I always keep my headphones plugged in my monitor using DisplayPort which works fine on shutdown/restart.

  • Like 1
Link to comment
Share on other sites

@fabiosun

 

I did additional testing with very "barebones" EFI - no SSDT as you suggested and changing MMIO as you proposed. This is BigSur. I think maybe more kexts can be removed, I left a few in.

 

So your proposed MMIO works with slide=0. I think this is better to include in a common guide as mine required slide=80. But one needs to test over many boots to be 100% sure.

 

Sleep still does not work. Shutdown works. So sleep is definitely related more to something on my board rather than MMIO. Sharing this barebones config plist I used to boot in. Unfortunately I need NVRAM and bluetooth so I need to add back SSDT's for these to work.

 

 

config.plist.zip

Link to comment
Share on other sites

  • fabiosun changed the title to [Discussion] - TRX40 Bare Metal - Vanilla Patches

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.