Contribute
Register

[Pre Final] Zbook G3 / G4 Thunderbolt hotplug (Thunderbolt Enable) + S0, S3

Status
Not open for further replies.
=RAM OF TBT at windows
F0400000
-to
F0401000


UPD2.
=RAM OF TBT at MacOs
F7800000



TB2P is at F0400548
P2TB is at F040054C


Okay, the method of detection that Thunderbolt is initialized is pretty simple. If thunderbolt not working, then reserved ram address will be filled with FFFFFF... etc. So that's a pretty simple algorithm. So to solve the WAKE issue, we need to create a timer to wait a second or two while thunderbolt will complete Initialization.

Will create some ssdt to dump some ram on wake to confirm that Thunderbolt isn't initialized on wake when PSU is connected. I am sure that MacOs wakes faster then thunderbolt pci.

UPD1. //////////////
That is weird and it seems like MMTB ram space that is pre-allocated for thunderbolt is empty at MacOS
2022-06-23 15:29:03.730 Df kernel[0:74] (AppleACPIPlatform) "TWAK CALLED"
2022-06-23 15:29:03.730 Df kernel[0:74] (AppleACPIPlatform) "YEDI="
2022-06-23 15:29:03.730 Df kernel[0:74] (AppleACPIPlatform) 0x00000000FFFFFFFF
2022-06-23 15:29:03.730 Df kernel[0:74] (AppleACPIPlatform) "YSRE="
2022-06-23 15:29:03.730 Df kernel[0:74] (AppleACPIPlatform) 0x00000000FFFFFFFF
2022-06-23 15:29:03.730 Df kernel[0:74] (AppleACPIPlatform) "YBUS="
2022-06-23 15:29:03.730 Df kernel[0:74] (AppleACPIPlatform) 0x00000000000000FF
2022-06-23 15:29:03.730 Df kernel[0:74] (AppleACPIPlatform) "YB2P="
2022-06-23 15:29:03.730 Df kernel[0:74] (AppleACPIPlatform) 0x00000000FFFFFFFF
2022-06-23 15:29:03.730 Df kernel[0:74] (AppleACPIPlatform) "Y2TB="
2022-06-23 15:29:03.730 Df kernel[0:74] (AppleACPIPlatform) 0x00000000FFFFFFFF
"Y" mean that first symbol of Name was replaced to remove a possible conflict of same name.
To do this i have to create a field in ram and dump it to debug.


UPD2. \\\\\\\\\\\\\\


Maybe bug is from wrong address. MMTB address at windows and mac are different
log show --last boot --predicate 'process == "kernel" AND senderImagePath CONTAINS "AppleACPIPlatform"' --style compact | awk '/ACPI Debug/{getline; getline; print}'
log: warning: The log archive contains partial or missing metadata
2022-06-23 16:03:27.528 Df kernel[0:71] (AppleACPIPlatform) "[____TBT_ENABLED___]"
2022-06-23 16:03:27.554 Df kernel[0:71] (AppleACPIPlatform) "YEDI="
2022-06-23 16:03:27.579 Df kernel[0:71] (AppleACPIPlatform) 0x0000000015788086
2022-06-23 16:03:27.603 Df kernel[0:71] (AppleACPIPlatform) "YSRE="
2022-06-23 16:03:27.626 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000100007
2022-06-23 16:03:27.648 Df kernel[0:71] (AppleACPIPlatform) "YBUS="
2022-06-23 16:03:27.669 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000005
2022-06-23 16:03:27.689 Df kernel[0:71] (AppleACPIPlatform) "YB2P="
2022-06-23 16:03:27.710 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000000
2022-06-23 16:03:27.729 Df kernel[0:71] (AppleACPIPlatform) "Y2TB="
2022-06-23 16:03:27.748 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000000
2022-06-23 16:03:27.807 Df kernel[0:71] (AppleACPIPlatform) "PCI0-INI-CALL YMXX"
2022-06-23 16:03:27.824 Df kernel[0:71] (AppleACPIPlatform) "YEDI="
2022-06-23 16:03:27.840 Df kernel[0:71] (AppleACPIPlatform) 0x0000000015788086
2022-06-23 16:03:27.855 Df kernel[0:71] (AppleACPIPlatform) "YSRE="
2022-06-23 16:03:27.870 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000100007
2022-06-23 16:03:27.885 Df kernel[0:71] (AppleACPIPlatform) "YBUS="
2022-06-23 16:03:27.900 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000005
2022-06-23 16:03:27.914 Df kernel[0:71] (AppleACPIPlatform) "YB2P="
2022-06-23 16:03:27.929 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000000
2022-06-23 16:03:27.943 Df kernel[0:71] (AppleACPIPlatform) "Y2TB="
2022-06-23 16:03:27.958 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000000
2022-06-23 16:03:27.978 Df kernel[0:71] (AppleACPIPlatform) "TINI"
2022-06-23 16:03:27.992 Df kernel[0:71] (AppleACPIPlatform) "TBTD"
2022-06-23 16:03:28.007 Df kernel[0:71] (AppleACPIPlatform) "Device no"
2022-06-23 16:03:28.022 Df kernel[0:71] (AppleACPIPlatform) 0x000000000000001C
2022-06-23 16:03:28.036 Df kernel[0:71] (AppleACPIPlatform) "TBTF"
2022-06-23 16:03:28.051 Df kernel[0:71] (AppleACPIPlatform) "Function no"
2022-06-23 16:03:28.065 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000004
2022-06-23 16:03:28.080 Df kernel[0:71] (AppleACPIPlatform) "MMTB"
2022-06-23 16:03:28.094 Df kernel[0:71] (AppleACPIPlatform) "TBTD"
2022-06-23 16:03:28.108 Df kernel[0:71] (AppleACPIPlatform) "Device no"
2022-06-23 16:03:28.122 Df kernel[0:71] (AppleACPIPlatform) 0x000000000000001C
2022-06-23 16:03:28.136 Df kernel[0:71] (AppleACPIPlatform) "TBTF"
2022-06-23 16:03:28.149 Df kernel[0:71] (AppleACPIPlatform) "Function no"
2022-06-23 16:03:28.163 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000004
2022-06-23 16:03:28.177 Df kernel[0:71] (AppleACPIPlatform) "TBT-US-ADR"
2022-06-23 16:03:28.191 Df kernel[0:71] (AppleACPIPlatform) 0x00000000F7800000
2022-06-23 16:03:28.205 Df kernel[0:71] (AppleACPIPlatform) "OSUP"
2022-06-23 16:03:28.271 Df kernel[0:71] (AppleACPIPlatform) "Cmd acknowledged"
2022-06-23 16:03:28.285 Df kernel[0:71] (AppleACPIPlatform) "End-of-OSUP"
2022-06-23 16:03:28.299 Df kernel[0:71] (AppleACPIPlatform) "End-of-TINI"
2022-06-23 16:03:28.313 Df kernel[0:71] (AppleACPIPlatform) "GFX DockEvent Enter"
2022-06-23 16:03:28.327 Df kernel[0:71] (AppleACPIPlatform) "Dock Status"
2022-06-23 16:03:28.340 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000000
2022-06-23 16:03:28.353 Df kernel[0:71] (AppleACPIPlatform) "GFX DockEvent Exit"
2022-06-23 16:03:28.368 Df kernel[0:71] (AppleACPIPlatform) "EC-INI-CALL YMXX"
2022-06-23 16:03:28.381 Df kernel[0:71] (AppleACPIPlatform) "YEDI="
2022-06-23 16:03:28.394 Df kernel[0:71] (AppleACPIPlatform) 0x0000000015788086
2022-06-23 16:03:28.407 Df kernel[0:71] (AppleACPIPlatform) "YSRE="
2022-06-23 16:03:28.420 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000100007
2022-06-23 16:03:28.433 Df kernel[0:71] (AppleACPIPlatform) "YBUS="
2022-06-23 16:03:28.446 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000005
2022-06-23 16:03:28.460 Df kernel[0:71] (AppleACPIPlatform) "YB2P="
2022-06-23 16:03:28.473 Df kernel[0:71] (AppleACPIPlatform) 0x000000000000000C
2022-06-23 16:03:28.486 Df kernel[0:71] (AppleACPIPlatform) "Y2TB="
2022-06-23 16:03:28.499 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000000
2022-06-23 16:03:28.512 Df kernel[0:71] (AppleACPIPlatform) "XHC-INI-CALL YMXX"
2022-06-23 16:03:28.526 Df kernel[0:71] (AppleACPIPlatform) "YEDI="
2022-06-23 16:03:29.662 Df kernel[0:ae] (AppleACPIEC) ACPI: no ECDT


UPD3. Debug SSDT added
SSDT-TBDEVB_vRAM.aml

Method (MMTB, 0, Serialized)
{
Store ("MMTB-START", Debug)
Store (\_SB.PCI0.GPCB (), Local0)
Store ("MMTB-GPCB=Local0=(0xF0000000)=", Debug)
Store (Local0, Debug)
Add (Local0, ShiftLeft (TBTD (TBSE), 0x0F), Local0)
Store ("MMTB-Local0Shift1=(0xF00E0000)=", Debug)
Store (Local0, Debug)
Add (Local0, ShiftLeft (TBTF (TBSE), 0x0C), Local0)
Store ("MMTB-Local0Shift2=(0xF00E4000)=", Debug)
Store (Local0, Debug)
OperationRegion (MMMM, SystemMemory, Local0, 0x1A)
Field (MMMM, AnyAcc, NoLock, Preserve)
{
Offset (0x19),
SBUS, 8
}

Store (SBUS, Local2)
Store ("MMTB-SBUS is Local2=(0x78)=", Debug)
Store (Local2, Debug)
Store (\_SB.PCI0.GPCB (), Local0)
Store ("MMTB-GPCB=Local0=(0xF0000000)=", Debug)
Store (Local0, Debug)
Multiply (Local2, 0x00100000, Local2)
Store ("MMTB-Local0MultiplyLocal0=(0xF0000000)=", Debug)
Store (Local0, Debug)
Add (Local2, Local0, Local0)
Store ("TBT-US-ADR", Debug)
Store (Local0, Debug)
Return (Local0)
Store ("MMTB-END", Debug)
}


UPD4. I think that finally problem solved. The problem was in wrong Thunderbolt device address. Currently Has no problem with force injected Thunderbolt device address. For some reason MMTB is calculating wrong address at ram. I have force injected 0xF0400000 to MMTB Local0 at the end of method and now seems everything is working.

UPD5. The problem is in SBUS data it should be 4, not 78

Store ("MMTB-START", Debug)
Store (\_SB.PCI0.GPCB (), Local0)
Store ("MMTB-GPCB=Local0=(0xF0000000)=", Debug)
Store (Local0, Debug)
Add (Local0, ShiftLeft (TBTD (TBSE), 0x0F), Local0)
Store ("TBTD=0x1C", Debug)
Store ("MMTB-Local0Shift1=(0xF00E0000)=", Debug)
Store (Local0, Debug)
Add (Local0, ShiftLeft (TBTF (TBSE), 0x0C), Local0)
Store ("TBTF=0x04", Debug)
Store ("MMTB-Local0Shift2=(0xF00E4000)=", Debug)
Store (Local0, Debug)
OperationRegion (MMMM, SystemMemory, Local0, 0x1A)
Field (MMMM, AnyAcc, NoLock, Preserve)
{
Offset (0x19),
SBUS, 8
}

Store (SBUS, Local2)
Store ("MMTB-SBUS is Local2=(0x78)=", Debug)
Store (Local2, Debug)
Store (\_SB.PCI0.GPCB (), Local0)
Store ("MMTB-GPCB=Local0=(0xF0000000)=", Debug)
Store (Local0, Debug)
Multiply (Local2, 0x00100000, Local2)
Store ("MMTB-Local2MultiplyLocal2=(0x07800000)=", Debug)
Store (Local2, Debug)
Add (Local2, Local0, Local0)
Store (0xF0400000, Local0)
Store ("ForceInject_TBT-US-ADR", Debug)
Store (Local0, Debug)
Return (Local0)
Store ("MMTB-END", Debug)
But after wake, system generates correct Address


2022-06-23 19:21:52.736 Df kernel[0:74] (AppleACPIPlatform) "_PTS START"
2022-06-23 19:21:52.736 Df kernel[0:74] (AppleACPIPlatform) "_PTS=0000000000000003"
2022-06-23 19:21:52.737 Df kernel[0:74] (AppleACPIPlatform) "_PTS END"
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) "_WAK START"
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) "TWAK CALLED"
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) "YEDI="
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) 0x0000000015788086
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) "YSRE="
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) 0x0000000000100000
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) "YBUS="
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) 0x0000000000000000
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) "YB2P="
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) 0x0000000000000000
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) "Y2TB="
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) 0x0000000000000000
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) "[____TBT_ENABLED___]"
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) "YEDI="
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) 0x0000000015788086
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) "YSRE="
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) 0x0000000000100000
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) "YBUS="
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) 0x0000000000000000
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) "YB2P="
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) 0x0000000000000000
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) "Y2TB="
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) 0x0000000000000000
2022-06-23 19:21:52.744 Df kernel[0:74] (AppleACPIPlatform) "_WAK"
2022-06-23 19:21:52.752 Df kernel[0:74] (AppleACPIPlatform) "TINI"
2022-06-23 19:21:52.752 Df kernel[0:74] (AppleACPIPlatform) "TBTD"
2022-06-23 19:21:52.752 Df kernel[0:74] (AppleACPIPlatform) "Device no"
2022-06-23 19:21:52.752 Df kernel[0:74] (AppleACPIPlatform) 0x000000000000001C
2022-06-23 19:21:52.752 Df kernel[0:74] (AppleACPIPlatform) "TBTF"
2022-06-23 19:21:52.752 Df kernel[0:74] (AppleACPIPlatform) "Function no"
2022-06-23 19:21:52.752 Df kernel[0:74] (AppleACPIPlatform) 0x0000000000000004
2022-06-23 19:21:52.752 Df kernel[0:74] (AppleACPIPlatform) "MMTB-START"
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) "MMTB-GPCB=Local0=(0xF0000000)="
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) 0x00000000F0000000
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) "TBTD"
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) "Device no"
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) 0x000000000000001C
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) "TBTD=0x1C"
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) "MMTB-Local0Shift1=(0xF00E0000)="
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) 0x00000000F00E0000
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) "TBTF"
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) "Function no"
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) 0x0000000000000004
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) "TBTF=0x04"
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) "MMTB-Local0Shift2=(0xF00E4000)="
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) 0x00000000F00E4000
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) "MMTB-SBUS is Local2=(0x78)="
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) 0x0000000000000078
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) "MMTB-GPCB=Local0=(0xF0000000)="
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) 0x00000000F0000000
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) "MMTB-Local2MultiplyLocal2=(???????)="
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) 0x0000000007800000
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) "ForceInject_TBT-US-ADR"
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) 0x00000000F0400000
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) "OSUP"
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) "Dev gone"
2022-06-23 19:21:52.753 Df kernel[0:74] (AppleACPIPlatform) "End-of-TINI"
2022-06-23 19:21:52.757 Df kernel[0:74] (AppleACPIPlatform) "_WAK=00000000B48F1927"
2022-06-23 19:21:57.298 Df kernel[0:1fff] (AppleACPIPlatform) "_E4C"
2022-06-23 19:21:57.298 Df kernel[0:1fff] (AppleACPIPlatform) "WWAK"
2022-06-23 19:21:57.298 Df kernel[0:1fff] (AppleACPIPlatform) "WSUB"
2022-06-23 19:21:57.298 Df kernel[0:1fff] (AppleACPIPlatform) "TSUB"
2022-06-23 19:21:57.299 Df kernel[0:1fff] (AppleACPIPlatform) "TBTD"
2022-06-23 19:21:57.299 Df kernel[0:1fff] (AppleACPIPlatform) "Device no"
2022-06-23 19:21:57.299 Df kernel[0:1fff] (AppleACPIPlatform) 0x000000000000001C
2022-06-23 19:21:57.299 Df kernel[0:1fff] (AppleACPIPlatform) "TBTF"
2022-06-23 19:21:57.299 Df kernel[0:1fff] (AppleACPIPlatform) "Function no"
2022-06-23 19:21:57.299 Df kernel[0:1fff] (AppleACPIPlatform) 0x0000000000000004
2022-06-23 19:21:57.299 Df kernel[0:1fff] (AppleACPIPlatform) "ADR"
2022-06-23 19:21:57.299 Df kernel[0:1fff] (AppleACPIPlatform) 0x00000000F00E4000
2022-06-23 19:21:57.299 Df kernel[0:1fff] (AppleACPIPlatform) "Sec Bus"
2022-06-23 19:21:57.299 Df kernel[0:1fff] (AppleACPIPlatform) 0x0000000000000004
2022-06-23 19:21:57.299 Df kernel[0:1fff] (AppleACPIPlatform) "WSUB-Finished"
2022-06-23 19:21:57.299 Df kernel[0:1fff] (AppleACPIPlatform) "GNIS"
2022-06-23 19:21:57.299 Df kernel[0:1fff] (AppleACPIPlatform) "GNIS_Dis=0"
2022-06-23 19:21:57.299 Df kernel[0:1fff] (AppleACPIPlatform) "TBT-HP-Handler"
2022-06-23 19:21:57.299 Df kernel[0:1fff] (AppleACPIPlatform) "PEG WorkAround"
2022-06-23 19:21:57.500 Df kernel[0:1fff] (AppleACPIPlatform) "TBFF"
2022-06-23 19:21:57.500 Df kernel[0:1fff] (AppleACPIPlatform) "MMTB-START"
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) "MMTB-GPCB=Local0=(0xF0000000)="
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) 0x00000000F0000000
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) "TBTD"
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) "Device no"
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) 0x000000000000001C
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) "TBTD=0x1C"
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) "MMTB-Local0Shift1=(0xF00E0000)="
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) 0x00000000F00E0000
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) "TBTF"
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) "Function no"
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) 0x0000000000000004
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) "TBTF=0x04"
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) "MMTB-Local0Shift2=(0xF00E4000)="
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) 0x00000000F00E4000
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) "MMTB-SBUS is Local2=(0x78)="
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) 0x0000000000000004
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) "MMTB-GPCB=Local0=(0xF0000000)="
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) 0x00000000F0000000
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) "MMTB-Local2MultiplyLocal2=(0x07800000)="
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) 0x0000000000400000
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) "ForceInject_TBT-US-ADR"
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) 0x00000000F0400000
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) "Dev Present"
2022-06-23 19:21:57.501 Df kernel[0:1fff] (AppleACPIPlatform) "TBT SW SMI"
2022-06-23 19:21:57.502 Df kernel[0:1fff] (AppleACPIPlatform) "NTFY"
2022-06-23 19:21:57.502 Df kernel[0:1fff] (AppleACPIPlatform) "Notify RP05"
2022-06-23 19:21:57.519 Df kernel[0:1fff] (AppleACPIPlatform) "End-of-_E4C"




UPD6. Something interesting is happening here:
2022-06-23 20:49:40.900 Df kernel[0:71] (AppleACPIPlatform) "[____TBT_ENABLED___]"
2022-06-23 20:49:40.923 Df kernel[0:71] (AppleACPIPlatform) "YEDI(VEDI)="
2022-06-23 20:49:40.945 Df kernel[0:71] (AppleACPIPlatform) 0x0000000015788086
2022-06-23 20:49:40.966 Df kernel[0:71] (AppleACPIPlatform) "YSRE(CSRE)="
2022-06-23 20:49:40.986 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000100007
2022-06-23 20:49:41.005 Df kernel[0:71] (AppleACPIPlatform) "YBUS(SBUS)="
2022-06-23 20:49:41.023 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000005
2022-06-23 20:49:41.041 Df kernel[0:71] (AppleACPIPlatform) "YB2P(TB2P)="
2022-06-23 20:49:41.059 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000000
2022-06-23 20:49:41.076 Df kernel[0:71] (AppleACPIPlatform) "Y2TB(P2TB)="
2022-06-23 20:49:41.093 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000000
2022-06-23 20:49:41.108 Df kernel[0:71] (AppleACPIPlatform) "UBUS(SBUS)="
2022-06-23 20:49:41.123 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000004

2022-06-23 20:49:41.176 Df kernel[0:71] (AppleACPIPlatform) "TINI"
2022-06-23 20:49:41.189 Df kernel[0:71] (AppleACPIPlatform) "TBTD"
2022-06-23 20:49:41.202 Df kernel[0:71] (AppleACPIPlatform) "Device no"
2022-06-23 20:49:41.215 Df kernel[0:71] (AppleACPIPlatform) 0x000000000000001C
2022-06-23 20:49:41.228 Df kernel[0:71] (AppleACPIPlatform) "TBTF"
2022-06-23 20:49:41.241 Df kernel[0:71] (AppleACPIPlatform) "Function no"
2022-06-23 20:49:41.253 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000004
2022-06-23 20:49:41.266 Df kernel[0:71] (AppleACPIPlatform) "MMTB-START"
2022-06-23 20:49:41.279 Df kernel[0:71] (AppleACPIPlatform) "MMTB-GPCB=Local0=(0xF0000000)="
2022-06-23 20:49:41.293 Df kernel[0:71] (AppleACPIPlatform) 0x00000000F0000000
2022-06-23 20:49:41.306 Df kernel[0:71] (AppleACPIPlatform) "TBTD"
2022-06-23 20:49:41.319 Df kernel[0:71] (AppleACPIPlatform) "Device no"
2022-06-23 20:49:41.332 Df kernel[0:71] (AppleACPIPlatform) 0x000000000000001C
2022-06-23 20:49:41.345 Df kernel[0:71] (AppleACPIPlatform) "TBTD=0x1C"
2022-06-23 20:49:41.359 Df kernel[0:71] (AppleACPIPlatform) "MMTB-Local0Shift1=(0xF00E0000)="
2022-06-23 20:49:41.372 Df kernel[0:71] (AppleACPIPlatform) 0x00000000F00E0000
2022-06-23 20:49:41.385 Df kernel[0:71] (AppleACPIPlatform) "TBTF"
2022-06-23 20:49:41.398 Df kernel[0:71] (AppleACPIPlatform) "Function no"
2022-06-23 20:49:41.411 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000004
2022-06-23 20:49:41.424 Df kernel[0:71] (AppleACPIPlatform) "TBTF=0x04"
2022-06-23 20:49:41.437 Df kernel[0:71] (AppleACPIPlatform) "MMTB-Local0Shift2=(0xF00E4000)="
2022-06-23 20:49:41.450 Df kernel[0:71] (AppleACPIPlatform) 0x00000000F00E4000
2022-06-23 20:49:41.463 Df kernel[0:71] (AppleACPIPlatform) "MMTB-SBUS is Local2=(0x78)="
2022-06-23 20:49:41.477 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000078
2022-06-23 20:49:41.490 Df kernel[0:71] (AppleACPIPlatform) "MMTB-GPCB=Local0=(0xF0000000)="
2022-06-23 20:49:41.504 Df kernel[0:71] (AppleACPIPlatform) 0x00000000F0000000
2022-06-23 20:49:41.518 Df kernel[0:71] (AppleACPIPlatform) "MMTB-Local2MultiplyLocal2=(0x07800000)="
2022-06-23 20:49:41.532 Df kernel[0:71] (AppleACPIPlatform) 0x0000000007800000
2022-06-23 20:49:41.545 Df kernel[0:71] (AppleACPIPlatform) "ForceInject_TBT-US-ADR"
2022-06-23 20:49:41.559 Df kernel[0:71] (AppleACPIPlatform) 0x00000000F0400000
2022-06-23 20:49:41.572 Df kernel[0:71] (AppleACPIPlatform) "OSUP"
2022-06-23 20:49:41.585 Df kernel[0:71] (AppleACPIPlatform) "Dev gone"
2022-06-23 20:49:41.597 Df kernel[0:71] (AppleACPIPlatform) "YEDI(VEDI)="
2022-06-23 20:49:41.610 Df kernel[0:71] (AppleACPIPlatform) 0x00000000FFFFFFFF
2022-06-23 20:49:41.623 Df kernel[0:71] (AppleACPIPlatform) "YSRE(CSRE)="
2022-06-23 20:49:41.636 Df kernel[0:71] (AppleACPIPlatform) 0x00000000FFFFFFFF
2022-06-23 20:49:41.649 Df kernel[0:71] (AppleACPIPlatform) "YBUS(SBUS)="
2022-06-23 20:49:41.661 Df kernel[0:71] (AppleACPIPlatform) 0x00000000000000FF
2022-06-23 20:49:41.674 Df kernel[0:71] (AppleACPIPlatform) "YB2P(TB2P)="
2022-06-23 20:49:41.687 Df kernel[0:71] (AppleACPIPlatform) 0x00000000FFFFFFFF
2022-06-23 20:49:41.700 Df kernel[0:71] (AppleACPIPlatform) "Y2TB(P2TB)="
2022-06-23 20:49:41.713 Df kernel[0:71] (AppleACPIPlatform) 0x00000000FFFFFFFF
2022-06-23 20:49:41.726 Df kernel[0:71] (AppleACPIPlatform) "UBUS(SBUS)="
2022-06-23 20:49:41.739 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000078

2022-06-23 20:49:43.452 Df kernel[0:ae] (AppleACPIEC) ACPI: no ECDT

2022-06-23 20:56:47.539 Df kernel[0:71] (AppleACPIPlatform) "TBTF"
2022-06-23 20:56:47.551 Df kernel[0:71] (AppleACPIPlatform) "YEDI(VEDI)="
2022-06-23 20:56:47.564 Df kernel[0:71] (AppleACPIPlatform) 0x00000000FFFFFFFF
2022-06-23 20:56:47.577 Df kernel[0:71] (AppleACPIPlatform) "YSRE(CSRE)="
2022-06-23 20:56:47.589 Df kernel[0:71] (AppleACPIPlatform) 0x00000000FFFFFFFF
2022-06-23 20:56:47.601 Df kernel[0:71] (AppleACPIPlatform) "YBUS(SBUS)="
2022-06-23 20:56:47.614 Df kernel[0:71] (AppleACPIPlatform) 0x00000000000000FF
2022-06-23 20:56:47.626 Df kernel[0:71] (AppleACPIPlatform) "YB2P(TB2P)="
2022-06-23 20:56:47.638 Df kernel[0:71] (AppleACPIPlatform) 0x00000000FFFFFFFF
2022-06-23 20:56:47.651 Df kernel[0:71] (AppleACPIPlatform) "Y2TB(P2TB)="
2022-06-23 20:56:47.663 Df kernel[0:71] (AppleACPIPlatform) 0x00000000FFFFFFFF
2022-06-23 20:56:47.676 Df kernel[0:71] (AppleACPIPlatform) "UBUS(SBUS)="
2022-06-23 20:56:47.688 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000078

2022-06-23 21:00:37.548 Df kernel[0:71] (AppleACPIPlatform) "TBTF"
2022-06-23 21:00:37.561 Df kernel[0:71] (AppleACPIPlatform) "YEDI(VEDI)="
2022-06-23 21:00:37.573 Df kernel[0:71] (AppleACPIPlatform) 0x00000000FFFFFFFF
2022-06-23 21:00:37.586 Df kernel[0:71] (AppleACPIPlatform) "YSRE(CSRE)="
2022-06-23 21:00:37.599 Df kernel[0:71] (AppleACPIPlatform) 0x00000000FFFFFFFF
2022-06-23 21:00:37.611 Df kernel[0:71] (AppleACPIPlatform) "YBUS(SBUS)="
2022-06-23 21:00:37.623 Df kernel[0:71] (AppleACPIPlatform) 0x00000000000000FF
2022-06-23 21:00:37.636 Df kernel[0:71] (AppleACPIPlatform) "YB2P(TB2P)="
2022-06-23 21:00:37.649 Df kernel[0:71] (AppleACPIPlatform) 0x00000000FFFFFFFF
2022-06-23 21:00:37.661 Df kernel[0:71] (AppleACPIPlatform) "Y2TB(P2TB)="
2022-06-23 21:00:37.674 Df kernel[0:71] (AppleACPIPlatform) 0x00000000FFFFFFFF
2022-06-23 21:00:37.686 Df kernel[0:71] (AppleACPIPlatform) "UBUS(SBUS)="
2022-06-23 21:00:37.699 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000078

On MMTB execution the SBUS is wrong and is 78, not 4



UPD7. Some SOHP and SBUS
2022-06-24 12:53:39.901 Df kernel[0:71] (AppleACPIPlatform) "UBUS(SBUS)="
2022-06-24 12:53:39.924 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000004
2022-06-24 12:53:39.946 Df kernel[0:71] (AppleACPIPlatform) "SOHP==="
2022-06-24 12:53:39.967 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000001
2022-06-24 12:53:40.031 Df kernel[0:71] (AppleACPIPlatform) "Pci0Ini"
2022-06-24 12:53:40.050 Df kernel[0:71] (AppleACPIPlatform) "UBUS(SBUS)="
2022-06-24 12:53:40.069 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000004
2022-06-24 12:53:40.087 Df kernel[0:71] (AppleACPIPlatform) "SOHP==="
2022-06-24 12:53:40.105 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000001
2022-06-24 12:53:40.122 Df kernel[0:71] (AppleACPIPlatform) "TINI+SBUS"
2022-06-24 12:53:40.138 Df kernel[0:71] (AppleACPIPlatform) "UBUS(SBUS)="
2022-06-24 12:53:40.153 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000004
2022-06-24 12:53:40.168 Df kernel[0:71] (AppleACPIPlatform) "SOHP==="
2022-06-24 12:53:40.181 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000001
2022-06-24 12:53:40.195 Df kernel[0:71] (AppleACPIPlatform) "MMRP+BUS"
2022-06-24 12:53:40.208 Df kernel[0:71] (AppleACPIPlatform) "UBUS(SBUS)="
2022-06-24 12:53:40.221 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000004
2022-06-24 12:53:40.234 Df kernel[0:71] (AppleACPIPlatform) "SOHP==="
2022-06-24 12:53:40.246 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000001
2022-06-24 12:53:40.259 Df kernel[0:71] (AppleACPIPlatform) "TBTD"
2022-06-24 12:53:40.271 Df kernel[0:71] (AppleACPIPlatform) "UBUS(SBUS)="
2022-06-24 12:53:40.284 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000004
2022-06-24 12:53:40.297 Df kernel[0:71] (AppleACPIPlatform) "SOHP==="
2022-06-24 12:53:40.310 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000001
2022-06-24 12:53:40.323 Df kernel[0:71] (AppleACPIPlatform) "Device no"
2022-06-24 12:53:40.336 Df kernel[0:71] (AppleACPIPlatform) 0x000000000000001C
2022-06-24 12:53:40.349 Df kernel[0:71] (AppleACPIPlatform) "TBTF"
2022-06-24 12:53:40.362 Df kernel[0:71] (AppleACPIPlatform) "UBUS(SBUS)="
2022-06-24 12:53:40.375 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000004
2022-06-24 12:53:40.388 Df kernel[0:71] (AppleACPIPlatform) "SOHP==="
2022-06-24 12:53:40.400 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000001
2022-06-24 12:53:40.413 Df kernel[0:71] (AppleACPIPlatform) "Function no"
2022-06-24 12:53:40.425 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000004
2022-06-24 12:53:40.438 Df kernel[0:71] (AppleACPIPlatform) "MMTB+SBUS"
2022-06-24 12:53:40.450 Df kernel[0:71] (AppleACPIPlatform) "UBUS(SBUS)="
2022-06-24 12:53:40.463 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000078
2022-06-24 12:53:40.475 Df kernel[0:71] (AppleACPIPlatform) "SOHP==="
2022-06-24 12:53:40.487 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000001
2022-06-24 12:53:40.498 Df kernel[0:71] (AppleACPIPlatform) "TBTD"
2022-06-24 12:53:40.510 Df kernel[0:71] (AppleACPIPlatform) "UBUS(SBUS)="
2022-06-24 12:53:40.522 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000078
2022-06-24 12:53:40.534 Df kernel[0:71] (AppleACPIPlatform) "SOHP==="
2022-06-24 12:53:40.546 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000001
2022-06-24 12:53:40.557 Df kernel[0:71] (AppleACPIPlatform) "Device no"
2022-06-24 12:53:40.569 Df kernel[0:71] (AppleACPIPlatform) 0x000000000000001C
2022-06-24 12:53:40.581 Df kernel[0:71] (AppleACPIPlatform) "TBTF"
2022-06-24 12:53:40.593 Df kernel[0:71] (AppleACPIPlatform) "UBUS(SBUS)="
2022-06-24 12:53:40.605 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000078
2022-06-24 12:53:40.616 Df kernel[0:71] (AppleACPIPlatform) "SOHP==="
2022-06-24 12:53:40.628 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000001
2022-06-24 12:53:40.640 Df kernel[0:71] (AppleACPIPlatform) "Function no"
2022-06-24 12:53:40.652 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000004
2022-06-24 12:53:40.664 Df kernel[0:71] (AppleACPIPlatform) "TBT-US-ADR"
2022-06-24 12:53:40.676 Df kernel[0:71] (AppleACPIPlatform) 0x00000000F0400000
2022-06-24 12:53:40.688 Df kernel[0:71] (AppleACPIPlatform) "OSUP+BUS"
2022-06-24 12:53:40.700 Df kernel[0:71] (AppleACPIPlatform) "UBUS(SBUS)="
2022-06-24 12:53:40.712 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000004
2022-06-24 12:53:40.724 Df kernel[0:71] (AppleACPIPlatform) "SOHP==="
2022-06-24 12:53:40.736 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000001
 

Attachments

  • BEFORE SLEEP - F0400000.zip
    431 bytes · Views: 41
  • M00000000F0400000-bat and AC if usb-c connected.zip
    858 bytes · Views: 39
  • SSDT-TBDEVB_vRAM.aml
    1 KB · Views: 45
  • SSDT-TBDEVB_vRAM3.aml
    920 bytes · Views: 39
Last edited:
FINAL BUILD FOR ZBOOK G3
(NEW FILE UPLOADED. WRONG BUILD BEFORE)
TIRED TO PLAY WITH TBT.
ITS WORKING NOW AND EVEN MORE STABLE THEN BEFORE.
BUT COULD HAVE SOME PROBLEMS...
= FOR ZBOOK G3 ONLY


1. Rename this at your OC\ CLOVER ACPI

Comment: "MMTB TO YMTB AND SET SBUS"
Find: 4D4D54420870
Replace: 594D54420870
2.
Add SSDT to ACPI folder. If Opencore - then don`t forget to inject them into Config
3. Add call to \_SB.PCI0.TWAK () to Screen Shot 2022-06-24 at 3.34.16 PM.png_WAK Method of your Rehabman xtra _zbG3s.aml SSDT. And External (_SB_.PCI0.TWAK, MethodObj)Screen Shot 2022-06-24 at 3.34.48 PM.pngto acpi header





LOG:
902 "[____TBT_ENABLED___]"
925 "YMXX"
992 "TINI"
012 "TBTD"
031 "Device no"
049 0x000000000000001C
067 "TBTF"
085 "Function no"
102 0x0000000000000004
119 "MMTB"
134 "TBTD"
149 "Device no"
163 0x000000000000001C
176 "TBTF"
188 "Function no"
201 0x0000000000000004
214 "(SBUS)="
226 0x0000000000000004
238 "TBT-US-ADR"
251 0x00000000F0400000
263 "OSUP"
838 "Cmd acknowledged"
850 "End-of-OSUP"
862 "End-of-TINI"



// SLEEP CLICK


335 "WWAK"
335 "WSUB"
335 "TSUB"
335 "TBTD"
335 "Device no"
335 0x000000000000001C
335 "TBTF"
335 "Function no"
335 0x0000000000000004
336 "ADR"
336 0x00000000F00E4000
336 "Sec Bus"
336 0x0000000000000004
336 "WSUB-Finished"
337 "GNIS"
337 "GNIS_Dis=0"
337 "TBT-HP-Handler"
337 "PEG WorkAround"


236 "_PTS START"
238 "_PTS END"



244 "_WAK START"
244 "TWAK CALLED"
244 "[____TBT_ENABLED___]"
245 "YMXX"
253 "TINI"
253 "TBTD"
254 "Device no"
254 0x000000000000001C
254 "TBTF"
254 "Function no"
254 0x0000000000000004
254 "MMTB"
254 "TBTD"
254 "Device no"
254 0x000000000000001C
254 "TBTF"
254 "Function no"
254 0x0000000000000004
254 "(SBUS)="
254 0x0000000000000004
254 "TBT-US-ADR"
254 0x00000000F0400000
254 "OSUP"
256 "_E4C"
257 "WWAK"
307 "Cmd acknowledged"
307 "End-of-OSUP"
307 "End-of-TINI"
308 "WSUB"
308 "TSUB"
308 "TBTD"
308 "Device no"
308 0x000000000000001C
308 "TBTF"
308 "Function no"
308 0x0000000000000004
308 "ADR"
308 0x00000000F00E4000
308 "Sec Bus"
308 0x0000000000000004
308 "WSUB-Finished"
308 "GNIS"
308 "GNIS_Dis=0"
308 "TBT-HP-Handler"
308 "PEG WorkAround"
193 "TBFF"
193 "MMTB"
193 "TBTD"
193 "Device no"
193 0x000000000000001C
193 "TBTF"
193 "Function no"
193 0x0000000000000004
193 "(SBUS)="
193 0x0000000000000004
193 "TBT-US-ADR"
193 0x00000000F0400000
193 "Dev Present"
193 "NTFY"
193 "Notify RP05"
211 "End-of-_E4C"
254 "_E4C"
254 "WWAK"
254 "WSUB"
254 "TSUB"
254 "TBTD"
254 "Device no"
254 0x000000000000001C
254 "TBTF"
254 "Function no"
254 0x0000000000000004
254 "ADR"
254 0x00000000F00E4000
254 "Sec Bus"
254 0x0000000000000004
254 "WSUB-Finished"
254 "GNIS"
254 "GNIS_Dis=0"
254 "TBT-HP-Handler"
254 "PEG WorkAround"
455 "TBFF"
455 "MMTB"
455 "TBTD"
455 "Device no"
455 0x000000000000001C
455 "TBTF"
455 "Function no"
455 0x0000000000000004
455 "(SBUS)="
455 0x0000000000000004
455 "TBT-US-ADR"
455 0x00000000F0400000
455 "Dev Present"
455 "NTFY"
455 "Notify RP05"
472 "End-of-_E4C"


But under other OS have this [SOLVED]:
2022-06-24 15:37:55.756343+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI Error:
2022-06-24 15:37:55.756344+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI Error:
2022-06-24 15:37:55.756646+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) [SPRT]
2022-06-24 15:37:55.756646+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) [SPRT]
2022-06-24 15:37:55.756796+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) Namespace lookup failure, AE_ALREADY_EXISTS
2022-06-24 15:37:55.756797+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) Namespace lookup failure, AE_ALREADY_EXISTS
2022-06-24 15:37:55.757898+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) (20160930/dswload2-411)
2022-06-24 15:37:55.757899+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) (20160930/dswload2-411)
2022-06-24 15:37:55.767518+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform)
2022-06-24 15:37:55.767518+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform)
2022-06-24 15:37:55.776341+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) No Local Variables are initialized for method [_E4C]
2022-06-24 15:37:55.776342+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) No Local Variables are initialized for method [_E4C]
2022-06-24 15:37:55.786453+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform)
2022-06-24 15:37:55.786453+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform)
2022-06-24 15:37:55.795060+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) No Arguments are initialized for method [_E4C]
2022-06-24 15:37:55.795061+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) No Arguments are initialized for method [_E4C]
2022-06-24 15:37:55.804778+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform)
2022-06-24 15:37:55.804778+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform)
2022-06-24 15:37:55.813320+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI Exception: AE_ALREADY_EXISTS,
2022-06-24 15:37:55.813321+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI Exception: AE_ALREADY_EXISTS,
2022-06-24 15:37:55.814196+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) During name lookup/catalog
2022-06-24 15:37:55.814197+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) During name lookup/catalog
2022-06-24 15:37:55.814848+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) (20160930/psobject-310)
2022-06-24 15:37:55.814849+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) (20160930/psobject-310)
2022-06-24 15:37:55.824193+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI Error:
2022-06-24 15:37:55.824194+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI Error:
2022-06-24 15:37:55.824495+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) Method parse/execution failed
2022-06-24 15:37:55.824496+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) Method parse/execution failed
2022-06-24 15:37:55.825245+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) [\_GPE._E4C] (Node ffffff8044bd0210)
2022-06-24 15:37:55.825246+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) [\_GPE._E4C] (Node ffffff8044bd0210)
2022-06-24 15:37:55.826145+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) , AE_ALREADY_EXISTS
2022-06-24 15:37:55.826146+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) , AE_ALREADY_EXISTS
2022-06-24 15:37:55.826621+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) (20160930/psparse-632)
2022-06-24 15:37:55.826621+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) (20160930/psparse-632)
2022-06-24 15:37:55.836205+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI Error:
2022-06-24 15:37:55.836205+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI Error:
2022-06-24 15:37:55.836506+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) Method parse/execution failed
2022-06-24 15:37:55.836507+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) Method parse/execution failed
2022-06-24 15:37:55.837256+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) [\_GPE._E4C] (Node ffffff8044bd0210)
2022-06-24 15:37:55.837257+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) [\_GPE._E4C] (Node ffffff8044bd0210)
2022-06-24 15:37:55.838156+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) , AE_ALREADY_EXISTS
2022-06-24 15:37:55.838157+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) , AE_ALREADY_EXISTS
2022-06-24 15:37:55.838631+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) (20160930/psparse-632)
2022-06-24 15:37:55.838632+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) (20160930/psparse-632)
2022-06-24 15:37:55.848093+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI Exception: AE_ALREADY_EXISTS,
2022-06-24 15:37:55.848094+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) ACPI Exception: AE_ALREADY_EXISTS,
2022-06-24 15:37:55.848968+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) while evaluating GPE method [_E4C]
2022-06-24 15:37:55.848969+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) while evaluating GPE method [_E4C]
2022-06-24 15:37:55.849819+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) (20160930/evgpe-814)
2022-06-24 15:37:55.849819+0300 0x151 Default 0x0 0 0 kernel: (AppleACPIPlatform) (20160930/evgpe-814)
 

Attachments

  • SSDT-TB3HPH.aml
    6.9 KB · Views: 46
Last edited:
At zbook G4
00000000F0500000 for 8086 15D3
 
TEST BUILD FOR ZBOOK G4
= FOR ZBOOK G4 ONLY



1. Rename this at your OC\ CLOVER ACPI
Comment: "MMTB TO YMTB AND SET SBUS"
Find: 4D4D54420870
Replace: 594D54420870
2. Add SSDT to ACPI folder. If Opencore - then don`t forget to inject them into Config
3. Add call to \_SB.PCI0.TWAK () to Screen Shot 2022-06-24 at 3.34.16 PM.png_WAK Method of your Rehabman xtra _zbG4s.aml SSDT. And External (_SB_.PCI0.TWAK, MethodObj)Screen Shot 2022-06-24 at 3.34.48 PM.pngto acpi header




BUT AT MAC OS F700 REPORTS
022-06-30 16:18:14.332 Df kernel[0:71] (AppleACPIPlatform) "TBC1_(0xF070000)="
2022-06-30 16:18:14.336 Df kernel[0:71] (AppleACPIPlatform) 0x00000000D28C0001
2022-06-30 16:18:14.341 Df kernel[0:71] (AppleACPIPlatform) "TBC2_(0xF070000)="
2022-06-30 16:18:14.346 Df kernel[0:71] (AppleACPIPlatform) 0x000000000001007F
 

Attachments

  • SSDT-TB3G4A.aml
    7.3 KB · Views: 41
Last edited:
Some more debug. And thats really interesting. At G3, some kind of PCI address space for G3 is preallocated from boot, but at G4, the area is empty so thats impossible to connect thunderbolt, because the some king of controll space is missing and only appear at non MacOS.

@whatnameisit interesting your debug of ram. For this you will need thunderbolt or USB-C device connected from boot. Dump Ram starting 0xF0000000 with length 0x01000000 with RWeverything (save binnary). Also dump ram using Efishell tool, mount usb device by "mount FSX", where X is your usb drive (0,1,2,3...), then write "FSX:" to enter this drive, then "ls" to confirm that the drive is correct. After that, run "Hexedit", press Ctrl+M and write 0xF0000000, click enter with length 0x01000000, click F4 and then Ctrl+G and write offset FFFFFF, then press F5 to select output. click Ctrl+X, click Ctrl+O, it will ask if you want to modify ram, press N, then it will ask a name of the file, write ramdump.bin and press Enter, then Ctrl+V and then Ctrl+S and hit enter two times. Wait. And Press Ctrl+Q, at efishell write EXIT, and it will bring you back to Clover\Opencore
 

Attachments

  • UEFI ENVIROMENT_f0000000+01000000.bin.zip
    22 KB · Views: 36
  • WIN10 ENVIROMENT_F0000000+01000000.bin.zip
    21.9 KB · Views: 55
@whatnameisit you was amazingly right with TINI and 78.. i just changed 78 to 98 and here is results (at G3 that have a zero result):

2022-07-01 00:07:22.448 Df kernel[0:71] (AppleACPIPlatform) "(SBUS)(0x07)="
2022-07-01 00:07:22.452 Df kernel[0:71] (AppleACPIPlatform) 0x0000000000000098
2022-07-01 00:07:22.457 Df kernel[0:71] (AppleACPIPlatform) "TBT-US-ADR"
2022-07-01 00:07:22.461 Df kernel[0:71] (AppleACPIPlatform) 0x00000000F9800000


TINI:
YAML:
        Method (TINI, 1, Serialized)
        {
            Store ("TINI", Debug)
            Store (MMRP (Arg0), Local0)
            OperationRegion (RP_X, SystemMemory, Local0, 0x20)
            Field (RP_X, DWordAcc, NoLock, Preserve)
            {
                REG0,   32,
                REG1,   32,
                REG2,   32,
                REG3,   32,
                REG4,   32,
                REG5,   32,
                REG6,   32,
                REG7,   32
            }

            Store (REG6, Local1)
            Store (Zero, Local2)
            Or (Local2, 0x00780000, Local2)
            Or (Local2, 0x7800, Local2)
            Store (Local2, REG6)
            Store (MMTB (Arg0), Local2)
            OSUP (Local2)
            Store (Local1, REG6)
            Store ("End-of-TINI", Debug)
        }


Store (Zero, Local2) // Storing 0x0 to local2
Or (Local2, 0x00780000, Local2)
Or (Local2, 0x7800, Local2)
Store (Local2, REG6) // Storing Local2 to REG6 !!!
Store (MMTB (Arg0), Local2) // Storing 05 to local !!!
OSUP (Local2) // OSUP Arg0 is Local2 Now


UPD1.

After I have cut this part of code from dsdt (methods OSUP, SXST), the device isnt requaire address registers
If (LEqual (Local2, 0xFFFFFFFF))
{
Store ("Dev gone", Debug)
Return (0x02)
}
So last for G4 is to wake tbt
 

Attachments

  • DSDT_G4_WINDOWS CLEAN.dsl
    981.6 KB · Views: 40
Last edited:
Finnaly I have a DSDT that is correctly running under windows and with some mod and test tbt enabler can Enable Thunderbolt at boot, also on wake after sleep

ONLY FOR G4
(DSDT is grab from windows and compiled with QtiASL)


Now I can modify methods to DEBUG the process of Initialization of Thunderbolt
 

Attachments

  • dsdt.aml
    132.6 KB · Views: 45
  • SSDT-TESTW.aml
    275 bytes · Views: 34
  • dsdt.dsl
    1,008.2 KB · Views: 42
Interesting debug method which appears at G4 for DEBUGGING ADBG and VHBG

at EVENTSST SSDT
Method (VHBG, 1, Serialized)
{
If (CondRefOf (MDBG))
{
Return (MDBG (Arg0))
}

Return (Zero)
}

at DSDT
Method (ADBG, 1, Serialized)
{
If (CondRefOf (MDBG))
{
Return (MDBG (Arg0))
}

Return (Zero)
}


This methods are partially empty at G3, and they do return only Zero at any case. BUt for G4, that is match deeper methods
 
In G3 the acpi is connected to a first pcie thunderbolt BUS


From TINI G3

Local1 = REG6 /* \_GPE.TINI.REG6 */
Local2 = Zero
Local2 |= 0x00780000
Local2 |= 0x7800
REG6 = Local2
Local2 = MMTB ()
OSUP (Local2)
REG6 = Local1


At G3 REG6 is 0406.
So backup REG6 to local1, set local2 to zero, local2 Or integer 0780000, and no more. Set REG6 as 7800, set Local 2 as MMTB (Final TBT bus address), Then ARG0 of OSUP is final address, and return back REG6 from backup



Yep. I have successfully corrupt thunderbolt ACPI. The problem at g3 and g4 is related to address

Location Paths PCIROOT(0)#PCI(1C04)#PCI(0000)
HWiNFO64_9o5Uva2ujK.png

What if 78 is a trigger to disable thunderbolt??
 

Attachments

  • G3-F0000000.zip
    21.3 KB · Views: 35
Last edited:
Status
Not open for further replies.
Back
Top