Underclocking / limiting Power level on Southern Island AMD GPU with amdgpu driver
Background:
I have a lenovo B40 with intel integrated graphics and AMD Radeon HD 8550M switchable graphics (HAINAN, Southern Island). I'm using amdgpu driver with `amdgpu.si_support=1` and I could run glmark2 or unigine valley with it using PRIME. The main issue is that it is slower than integrated graphics.
If I tried running glmark2 or unigine valley with `amdgpu.dpm=1`, it immediately crashes when I open the program. I check the current power level by looking at `/sys/kernel/debug/dri/1/amdgpu_pm_info`. At the moment of crash, it shows power level 4, with 900MHz sclk & mclk. I suspect that DPM is not the issue, but rather the GPU has some defects and cannot run on a very high speed. I know that I can limit them like this: `echo battery > power_dpm_state`. I can run glmark2 or unigine valley under these condition (with DPM on), as long as I ensure the clock is not too high. Under this condition, it shows power level 2 with something like 400MHz sclk & mclk.
Question:
Is there a way I can set it to power level 3 or somehow limit the clock to X MHz? I know this is an underclocking issue. I've set `amdgpu.ppfeaturemask=0xfffd7fff` in the kernel parameter and I tried writing "0 1 2" to `pp_dpm_sclk` / `pp_dpm_mclk`. The write does not give error, but I cannot read anything from the file, and it does not seem to do any effect.
I can recreate the condition when using `radeon` driver with DPM on, but I have no idea how to have more control over the power state using `radeon` driver.
About this post
- Posted
- Archived
- Score
- 4 · 100% up
- Kind
- Text
- ID
- p76age
7 comments
Just install tlp and have amdgpu to powersave
Nevermind. I finally solved the issue by manually hardcoding the upper sclk and mclk in the radeon driver. Turns out we have control on the clocks, but for some reason this is not exposed in sysfs
I have the same issue with the driver. did you rebuild the kernel and lowered max clock frequency? pls enlighten me. i have nearly exact hardware and integrated gpu works better than dedicated one and can't seem to change the clock speed. pp_od_clk_voltage file don't exist even after enabling ppfeaturemask=0xffffffff.