GPUOpen-Drivers / AMDVLK

AMD Open Source Driver For Vulkan
MIT License
1.72k stars 161 forks source link

[PRIORITY] ULPS Bug in AMD drivers potentially causes hang and self rebooot! #261

Closed redteampro closed 3 months ago

redteampro commented 2 years ago

BUG REPORT:

GPU: RX6800M Laptop: AMD Advantage Edition, G513QY built by ASUS.

To remind the issue, dGPU (RX6800M), has at least two main states:

  1. Idle (active, but no load) which consumes around 6W and reduces laptop battery life by around 40%
  2. Low Power State which as we understand allows iGPU to take the tasks while dGPU sleeping and does not consume power, allows full battery life.

Problem: There is some bug, where dGPU going into LPS/Sleeping mode, it does it incorrectly which causes a hang and self reboot of laptop. We CAN use applications like GPU-Z that keep dGPU awake but, this means, even when there is 0 load on dGPU (Idle), it still consumes 6W and cuts 40% approx of battery life.

Mission: Fix so dGPU can go properly into LPS/sleeping state without cause a hang/self reboot of laptop.

NEW-WORKAROUND by Josh from Discord Community: " My final version of this hack fix, so that you dont need Disable ULPS or GPU Tweak or GPUZ. This app will keep the gpu alive when AC Power is plugged in. When AC Power is not plugged in, it will stop keeping gpu alive to allow gpu to go to power saving mode. The opposite happens with ac power plugged in. Its resource usage is very low, less than 5 MB RAM, and barely any cpu/gpu usage. You can add this to task scheduler to run on startup. WARNING: Side effect is the laptop will never successfully sleep on AC Power NO SUPPORT PROVIDED. Use at your own risk -- Download this tool: https://t.me/AMDadvantage/61 mirror: https://mega.nz/file/PtFADDiQ#Bb-nrC3h55u5X-aj8XZ6KNoP6Q1qrC8XDz38yVl7jKI "

Could this help you maybe fix the issue within the driver/control panel itself?

More Sources: https://www.techpowerup.com/forums/threads/developers-maybe-you-can-help-fixing-this-gpu-bug-on-amd-advantage-edition-laptops-g513qy.289396/#post-4656575

https://rog.asus.com/forum/showthread.php?125665-Rog-strix-g15-g513qy-random-reboot-problem/page10

Discord Server with users reporting this problem: https://discord.gg/NwWySb43

redteampro commented 2 years ago

How one can replicate the bug:

  1. Run heavy game OR
  2. Run a GPU based render on Blender alike software

Wait few minutes (usually MAX 30 minutes) and laptop will hang and self reboot while dGPU trying to enter sleep/ultra low power state.

Community based workarounds:

  1. Disable ULPS mode in Windows OS (Avoid Low Power Mode, means 40% less battery life)
  2. Run GPU-Z that keeps dGPU awake and not let it go sleep/ULPS (Avoid Low Power Mode, means 40% less battery life)
  3. Install ASUS GPU Tweaker 3 that basically does what GPU-Z does (Avoid Low Power Mode, means 40% less battery life)
  4. Use community tool (from Josh @ Discord) that keeps dGPU awake while laptop plugged to AC and allows dGPU go power saving mode when on battery. Side effect is the laptop will never successfully sleep on AC Power.

We hope to see GPUopen/AMD developers fixing this bug at the drivers level so we could enjoy the AMD Advantage Edition G513QY laptops without a need of community/3rd party tools/workarounds.