Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WhateverGreen: force-online causes [AGDC] Failed with status -536870212 for stream access aux on 10.15+ #1318

Closed
stevezhengshiqi opened this issue Nov 22, 2020 · 9 comments

Comments

@stevezhengshiqi
Copy link

stevezhengshiqi commented Nov 22, 2020

macOS: Catalina & 11.0.1
UHD620 (0x59160000)

Hi guys, thank you again for all the great projects.

Since 10.15.4, we need force-online to drive HDMI displays, forcing online status on all displays. It works great on Catalina, but I got these warnings:

localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`IntelFBClientControl::doAttribute(unsigned int, unsigned long*, unsigned long, unsigned long*, unsigned long*, IOExternalMethodArguments*)> [IGFB][ERROR  ] [AGDC] Failed with status -536870212 for stream access aux
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`IntelFBClientControl::doAttribute(unsigned int, unsigned long*, unsigned long, unsigned long*, unsigned long*, IOExternalMethodArguments*)> [IGFB][ERROR  ] [AGDC] Failed with status -536870212 for stream access aux
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`IntelFBClientControl::doAttribute(unsigned int, unsigned long*, unsigned long, unsigned long*, unsigned long*, IOExternalMethodArguments*)> [IGFB][ERROR  ] [AGDC] Failed with status -536870212 for stream access aux
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`IntelFBClientControl::doAttribute(unsigned int, unsigned long*, unsigned long, unsigned long*, unsigned long*, IOExternalMethodArguments*)> [IGFB][ERROR  ] [AGDC] Failed with status -536870212 for stream access aux

The system would generate tons of these warnings no matter I plug in my HDMI display or not. Please have a check, and thanks a lot.

@dreamwhite
Copy link

UHD620 (0x59160000)

Excuse me sir, why are you using 0x59160000 framebuffer? What's your CPU model?

@stevezhengshiqi
Copy link
Author

@dreamwhite it's Core i5-8250U, Kabylake-R. It's more like a Kabylake architecture instead of CoffeeLake.

@dreamwhite
Copy link

@dreamwhite it's Core i5-8250U, Kabylake-R. It's more like a Kabylake architecture instead of CoffeeLake.

Wait, as @dortania says, it's better using 0x8C700000 framebuffer which is basically a UHD617, more similar to UHD620, rather than HD 630 :P

@stevezhengshiqi
Copy link
Author

@dreamwhite Using 0x8C700000 would break the backlight. Actually, UHD620 is widely used on 7, 8, 9 and 10th Gen laptops, but each generation has slight difference. For models >= CFL, they can use the 0x8C700000 + SSDT-PNLFCFL with no issue; but below CFL, we have to use 0x59xxxxxx id with SSDT-PNLF to make the backlight work. The _UID is different from KabyLake and CoffeeLake.

@dreamwhite
Copy link

@dreamwhite Using 0x8C700000 would break the backlight. Actually, UHD620 is widely used on 7, 8, 9 and 10th Gen laptops, but each generation has slight difference. For models >= CFL, they can use the 0x8C700000 + SSDT-PNLFCFL with no issue; but below CFL, we have to use 0x59xxxxxx id with SSDT-PNLF to make the backlight work. The _UID is different from KabyLake and CoffeeLake.

Well... I have ani5-8250U with 0x8C700000 and backlight works ^^

You can find my EFI here

@armenio
Copy link

armenio commented Dec 1, 2020

Kabylake-R UHD620 device-id is 0x5917.
Also, look: #290

@stevezhengshiqi
Copy link
Author

@dreamwhite Well, it different from case to case, and our discussion is not related to this issue. My problem is with force-online property (or igfxonln=1 and igfxonlnfbs=MASK), the system log would generate tons of warning like [AGDC] Failed with status -536870212 for stream access aux

@vit9696
Copy link
Contributor

vit9696 commented Dec 26, 2020

This is normal. It reports that the display is not connected for the remaining ports. You can always use force-online-framebuffers to report online status only on connected displays.

@vit9696 vit9696 closed this as completed Dec 26, 2020
vimcaw referenced this issue in daliansky/XiaoMi-Pro-Hackintosh Jan 14, 2021
* OC: Disable loading AudioDxe.efi and ExFatDxe.efi to speed up boot
@stevezhengshiqi
Copy link
Author

stevezhengshiqi commented Jan 18, 2021

Just a follow-up, with force-online property, I have to replug my DP to lighten the external monitor. I need force-online because the monitor would dead after sleep on Big Sur. This is the framebuffer log I got when I plug in DP with no response on the monitor.

localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] FB1 port = 1 at 81016596
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] fb->fDPCDParams.SinkCount = 0
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] HPD is high
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Setting DP power OK, assuming DP connection
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::ReadAUX(AppleIntelFramebuffer*, unsigned int, unsigned short, void*, AppleIntelDisplayPath*)> [IGFB][ERROR  ] FB1: ReadAUX Timeout for addr 200 with Status = 0xe00002d6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Retry #0
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::ReadAUX(AppleIntelFramebuffer*, unsigned int, unsigned short, void*, AppleIntelDisplayPath*)> [IGFB][ERROR  ] FB1: ReadAUX Timeout for addr 200 with Status = 0xe00002d6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Retry #1
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::ReadAUX(AppleIntelFramebuffer*, unsigned int, unsigned short, void*, AppleIntelDisplayPath*)> [IGFB][ERROR  ] FB1: ReadAUX Timeout for addr 200 with Status = 0xe00002d6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Retry #2
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::ReadAUX(AppleIntelFramebuffer*, unsigned int, unsigned short, void*, AppleIntelDisplayPath*)> [IGFB][ERROR  ] FB1: ReadAUX Timeout for addr 200 with Status = 0xe00002d6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Retry #3
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::ReadAUX(AppleIntelFramebuffer*, unsigned int, unsigned short, void*, AppleIntelDisplayPath*)> [IGFB][ERROR  ] FB1: ReadAUX Timeout for addr 200 with Status = 0xe00002d6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Retry #4
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::ReadAUX(AppleIntelFramebuffer*, unsigned int, unsigned short, void*, AppleIntelDisplayPath*)> [IGFB][ERROR  ] FB1: ReadAUX Timeout for addr 200 with Status = 0xe00002d6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Retry #5
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::ReadAUX(AppleIntelFramebuffer*, unsigned int, unsigned short, void*, AppleIntelDisplayPath*)> [IGFB][ERROR  ] FB1: ReadAUX Timeout for addr 200 with Status = 0xe00002d6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Retry #6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::ReadAUX(AppleIntelFramebuffer*, unsigned int, unsigned short, void*, AppleIntelDisplayPath*)> [IGFB][ERROR  ] FB1: ReadAUX Timeout for addr 200 with Status = 0xe00002d6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Retry #7
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::ReadAUX(AppleIntelFramebuffer*, unsigned int, unsigned short, void*, AppleIntelDisplayPath*)> [IGFB][ERROR  ] FB1: ReadAUX Timeout for addr 200 with Status = 0xe00002d6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Retry #8
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::ReadAUX(AppleIntelFramebuffer*, unsigned int, unsigned short, void*, AppleIntelDisplayPath*)> [IGFB][ERROR  ] FB1: ReadAUX Timeout for addr 200 with Status = 0xe00002d6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Retry #9
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::ReadAUX(AppleIntelFramebuffer*, unsigned int, unsigned short, void*, AppleIntelDisplayPath*)> [IGFB][ERROR  ] FB1: ReadAUX Timeout for addr 200 with Status = 0xe00002d6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Retry #10
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::ReadAUX(AppleIntelFramebuffer*, unsigned int, unsigned short, void*, AppleIntelDisplayPath*)> [IGFB][ERROR  ] FB1: ReadAUX Timeout for addr 200 with Status = 0xe00002d6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Retry #11
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::ReadAUX(AppleIntelFramebuffer*, unsigned int, unsigned short, void*, AppleIntelDisplayPath*)> [IGFB][ERROR  ] FB1: ReadAUX Timeout for addr 200 with Status = 0xe00002d6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Retry #12
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::ReadAUX(AppleIntelFramebuffer*, unsigned int, unsigned short, void*, AppleIntelDisplayPath*)> [IGFB][ERROR  ] FB1: ReadAUX Timeout for addr 200 with Status = 0xe00002d6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Retry #13
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::ReadAUX(AppleIntelFramebuffer*, unsigned int, unsigned short, void*, AppleIntelDisplayPath*)> [IGFB][ERROR  ] FB1: ReadAUX Timeout for addr 200 with Status = 0xe00002d6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Retry #14
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::ReadAUX(AppleIntelFramebuffer*, unsigned int, unsigned short, void*, AppleIntelDisplayPath*)> [IGFB][ERROR  ] FB1: ReadAUX Timeout for addr 200 with Status = 0xe00002d6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Retry #15
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::ReadAUX(AppleIntelFramebuffer*, unsigned int, unsigned short, void*, AppleIntelDisplayPath*)> [IGFB][ERROR  ] FB1: ReadAUX Timeout for addr 200 with Status = 0xe00002d6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Retry #16
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::ReadAUX(AppleIntelFramebuffer*, unsigned int, unsigned short, void*, AppleIntelDisplayPath*)> [IGFB][ERROR  ] FB1: ReadAUX Timeout for addr 200 with Status = 0xe00002d6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Retry #17
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::ReadAUX(AppleIntelFramebuffer*, unsigned int, unsigned short, void*, AppleIntelDisplayPath*)> [IGFB][ERROR  ] FB1: ReadAUX Timeout for addr 200 with Status = 0xe00002d6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Retry #18
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::ReadAUX(AppleIntelFramebuffer*, unsigned int, unsigned short, void*, AppleIntelDisplayPath*)> [IGFB][ERROR  ] FB1: ReadAUX Timeout for addr 200 with Status = 0xe00002d6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Retry #19
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Reading sink count failed (0xe00002d6) for DP connection - assume that sink just went offline
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] isHPDLow = 1 emptyDongle = 0 sinkCount = 0 sinkCountChanged = 0
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::ReadAUX(AppleIntelFramebuffer*, unsigned int, unsigned short, void*, AppleIntelDisplayPath*)> [IGFB][ERROR  ] FB1: ReadAUX Timeout for addr 0 with Status = 0xe00002d6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::ReadAUX(AppleIntelFramebuffer*, unsigned int, unsigned short, void*, AppleIntelDisplayPath*)> [IGFB][ERROR  ] FB1: ReadAUX Timeout for addr 60 with Status = 0xe00002d6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::ReadAUX(AppleIntelFramebuffer*, unsigned int, unsigned short, void*, AppleIntelDisplayPath*)> [IGFB][ERROR  ] FB1: ReadAUX Timeout for addr 80 with Status = 0xe00002d6
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Event remove
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] FB1: Display unplugged from port1
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] Clear EDID cache flags flags=0
localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`AppleIntelFramebufferController::invokeHotplugHandler(unsigned int)> [IGFB][LOG  ][DISPLAY   ] [Hot_Plug] AGDC managing Display: Start listening to AGDC

And if I replugged my DP, the monitor can successfully work. When the display is not connected, I always get

localhost kernel[0]: (AppleIntelKBLGraphicsFramebuffer) <AppleIntelKBLGraphicsFramebuffer`IntelFBClientControl::doAttribute(unsigned int, unsigned long*, unsigned long, unsigned long*, unsigned long*, IOExternalMethodArguments*)> [IGFB][ERROR  ] [AGDC] Failed with status -536870212 for stream access aux

mentioned at the beginning of this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants