Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] AMD 4500U (GB-BRR5H-4500) and pstates
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
lagalopex
Guru
Guru


Joined: 16 Oct 2004
Posts: 565

PostPosted: Sun Mar 12, 2023 9:43 am    Post subject: [SOLVED] AMD 4500U (GB-BRR5H-4500) and pstates Reply with quote

Hello,

I have some mini pc with an AMD 4500U and of course put gentoo on it.
Kernel 6.1.16-gentoo is compiled with CONFIG_X86_AMD_PSTATE=y and booted with amd_pstate=passive.
lscpu mentiones cppc, but always only the acpi-cpufreq is used. (That one is working, but only supplies three steps, with the lowest being 1.4 GHz.)

1. To my understanding pstates should be support by this APU, right?
1.1 Does anyone have working pstates on a 4500U?

I get the following dmesg:
amd_pstate: the _CPC object is not present in SBIOS or ACPI disabled

The newest bios is installed, AMI 2.20.1275, for GB-BRR5H-4500 Ver F09.
I cannot find any entry in the BIOS with a name like CP(P)C.

2. Does it have other names?

3. Anything else I can do/try?


Last edited by lagalopex on Sat Mar 18, 2023 12:50 pm; edited 1 time in total
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2094
Location: San Jose, CA

PostPosted: Sun Mar 12, 2023 5:11 pm    Post subject: Re: AMD 4500U (GB-BRR5H-4500) and pstates Reply with quote

I just set this up. Did you also add: 'initcall_blacklist=acpi_cpufreq_init' to your grub default command line?

You'll also need to see if it's enabled in BIOS. Laptop BIOSes are not the most friendly. There is usually a power setting which needs to be enabled. I would expect setting bios defaults should enable it, since it's a laptop.


lagalopex wrote:
Hello,

I have some mini pc with an AMD 4500U and of course put gentoo on it.
Kernel 6.1.16-gentoo is compiled with CONFIG_X86_AMD_PSTATE=y and booted with amd_pstate=passive.
lscpu mentiones cppc, but always only the acpi-cpufreq is used. (That one is working, but only supplies three steps, with the lowest being 1.4 GHz.)

1. To my understanding pstates should be support by this APU, right?
1.1 Does anyone have working pstates on a 4500U?

I get the following dmesg:
amd_pstate: the _CPC object is not present in SBIOS or ACPI disabled

The newest bios is installed, AMI 2.20.1275, for GB-BRR5H-4500 Ver F09.
I cannot find any entry in the BIOS with a name like CP(P)C.

2. Does it have other names?

3. Anything else I can do/try?

_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2094
Location: San Jose, CA

PostPosted: Sun Mar 12, 2023 5:27 pm    Post subject: Reply with quote

Well. I'm in the same boat with my work laptop.

[ 0.512882] amd_pstate: the _CPC object is not present in SBIOS or ACPI disabled

I'll work on this a bit later. Let me know if you find anything.

Works fine on my server which is Zen3.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2094
Location: San Jose, CA

PostPosted: Sun Mar 12, 2023 5:34 pm    Post subject: Reply with quote

I still haven't gotten it working, but here's a useful thread: https://forum.endeavouros.com/t/how-to-use-amd-p-state-in-linux-5-17/25247/83?page=5
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2094
Location: San Jose, CA

PostPosted: Sun Mar 12, 2023 6:10 pm    Post subject: Reply with quote

I got it working.

In that thread is a link to a bootable bios which you can boot on an AMD system to control features that the BIOS may not give you control of.

All options are there. BE CAREFUL!

CPPC is listed in SMU_OPTIONS (it's a bit difficult to find).

Once you force it to enabled, the p_state driver will load.

By the way, this only affects 4X00 series laptops. 5X00 and 6X00 laptops should have this enabled by default.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
lagalopex
Guru
Guru


Joined: 16 Oct 2004
Posts: 565

PostPosted: Mon Mar 13, 2023 4:53 pm    Post subject: Re: AMD 4500U (GB-BRR5H-4500) and pstates Reply with quote

RayDude wrote:
I just set this up. Did you also add: 'initcall_blacklist=acpi_cpufreq_init' to your grub default command line?

No, I never read that this is needed.

RayDude wrote:
You'll also need to see if it's enabled in BIOS. Laptop BIOSes are not the most friendly. There is usually a power setting which needs to be enabled. I would expect setting bios defaults should enable it, since it's a laptop.

This is a mini pc. But I have not found anything, I already enabled everything power management related.

RayDude wrote:
Works fine on my server which is Zen3.

For me, too, the Zen3 works like a charm @400MHz. :lol:

RayDude wrote:
In that thread is a link to a bootable bios which you can boot on an AMD system to control features that the BIOS may not give you control of.
CPPC is listed in SMU_OPTIONS (it's a bit difficult to find).

No luck for me. I tried it, but everytime I try to enter the CPU setting I am back in the boot menu (where I selected the thumb drive). :cry:
(I tried every path and quite some fail like that. Do you have the full path for that option?)
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2094
Location: San Jose, CA

PostPosted: Tue Mar 14, 2023 3:40 pm    Post subject: Re: AMD 4500U (GB-BRR5H-4500) and pstates Reply with quote

lagalopex wrote:
RayDude wrote:
I just set this up. Did you also add: 'initcall_blacklist=acpi_cpufreq_init' to your grub default command line?

No, I never read that this is needed.

RayDude wrote:
You'll also need to see if it's enabled in BIOS. Laptop BIOSes are not the most friendly. There is usually a power setting which needs to be enabled. I would expect setting bios defaults should enable it, since it's a laptop.

This is a mini pc. But I have not found anything, I already enabled everything power management related.

RayDude wrote:
Works fine on my server which is Zen3.

For me, too, the Zen3 works like a charm @400MHz. :lol:

RayDude wrote:
In that thread is a link to a bootable bios which you can boot on an AMD system to control features that the BIOS may not give you control of.
CPPC is listed in SMU_OPTIONS (it's a bit difficult to find).

No luck for me. I tried it, but everytime I try to enter the CPU setting I am back in the boot menu (where I selected the thumb drive). :cry:
(I tried every path and quite some fail like that. Do you have the full path for that option?)


To install and boot that image, you should format your usb drive as FAT-32.

Unzip UniversalAMDFormBrowser.zip to a new directory on your local drive.

Then mount the USB drive and copy $(cp -R /whereyouunzippedthefiles/* /mnt/usbkey) all the files from UniversalAMDFormBrowser.zip onto the root of the FAT-32 drive.

When you boot your mini computer press F12 over and over and hopefully a boot menu will show up. If it doesn't, then you need to enter bios and find the boot menu on it and enable booting from the USB Key.

Choose the USB drive with UniversalAMDFormBrowser installed and it should boot into a BIOS like setup environment.

From there, the menu system is a bit complicated. As I remember it's one of the top menus, then a center menu to get to SMU_OPTIONS. Once you see it, you'll know it. The CPPC is listed on that page, you just force it to enable from AUTO because AUTO disables it.

Save the settings, reboot and it should work.

It took me at least five minutes to find CPPC.

Remember: don't change anything else. That tool is powerful enough to allow you to brick your own PC.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
lagalopex
Guru
Guru


Joined: 16 Oct 2004
Posts: 565

PostPosted: Wed Mar 15, 2023 7:16 pm    Post subject: Re: AMD 4500U (GB-BRR5H-4500) and pstates Reply with quote

RayDude wrote:
From there, the menu system is a bit complicated. As I remember it's one of the top menus, then a center menu to get to SMU_OPTIONS. Once you see it, you'll know it. The CPPC is listed on that page, you just force it to enable from AUTO because AUTO disables it.

That path was the question. :wink:
I already got it starting and could navigate in that "bios like enviroment", but quite some menu entries in there just make it quit. Then I am back in the boot menu where I selected the thumbdrive with the UniversalAMDFormBrowser.
The most promising one was something like "CPU Options" in one of the "AMD XXX" sections, but it quits. :(
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2094
Location: San Jose, CA

PostPosted: Thu Mar 16, 2023 10:20 pm    Post subject: Reply with quote

It sounds like the boot drive you made is not working. Can you confirm you formatted the USB drive as FAT32? Then unzipped the BIOS editor program and cp -R the files from the zip folder to the root directory of the FAT32 USB drive?

I couldn't run it on my work laptop. I have a million important windows open.

I ran it on my 6800H personal laptop and found SMU Options on it, however CPPC was not listed there.

If this doesn't help, I'll reboot my work laptop this weekend and find the exact path.

Device Manager -> AMD CBS -> SMU Common Options

Let me know how it goes.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
lagalopex
Guru
Guru


Joined: 16 Oct 2004
Posts: 565

PostPosted: Fri Mar 17, 2023 9:34 am    Post subject: Reply with quote

RayDude wrote:
It sounds like the boot drive you made is not working. Can you confirm you formatted the USB drive as FAT32? Then unzipped the BIOS editor program and cp -R the files from the zip folder to the root directory of the FAT32 USB drive?

Booting the drive worked, as I was able to enter that UniversalAMDFormBrowser.
But retried it with another thumbdrive... same result.

RayDude wrote:
Device Manager -> AMD CBS -> SMU Common Options

I dont have that path.
In "Device Manager -> AMD CBS" I have:
CPU Common Options (causes that quit of the UniversalAMDFormBrowser and I am back to the boot menu, where I have to select the thumbdrive again.)
DF Common Options
UMC Common Options
NBIO Common Options
FCH Common Options
Soc Miscellaneous Control

I checked all the other entries, but non contained some SMU or CPPC option.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2094
Location: San Jose, CA

PostPosted: Fri Mar 17, 2023 3:59 pm    Post subject: Reply with quote

lagalopex wrote:
RayDude wrote:
It sounds like the boot drive you made is not working. Can you confirm you formatted the USB drive as FAT32? Then unzipped the BIOS editor program and cp -R the files from the zip folder to the root directory of the FAT32 USB drive?

Booting the drive worked, as I was able to enter that UniversalAMDFormBrowser.
But retried it with another thumbdrive... same result.

RayDude wrote:
Device Manager -> AMD CBS -> SMU Common Options

I dont have that path.
In "Device Manager -> AMD CBS" I have:
CPU Common Options (causes that quit of the UniversalAMDFormBrowser and I am back to the boot menu, where I have to select the thumbdrive again.)
DF Common Options
UMC Common Options
NBIO Common Options
FCH Common Options
Soc Miscellaneous Control

I checked all the other entries, but non contained some SMU or CPPC option.


Are you running the latest BIOS on that mini computer?

At the end of the work day today, I'll reboot my work laptop and document the exact path where I found SMU Options.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2094
Location: San Jose, CA

PostPosted: Fri Mar 17, 2023 10:49 pm    Post subject: Reply with quote

Here is the path for my 4800H laptop:

Device Manager

AMD CBS

NBIO Common Options

SMU Common Options

CPPC

Hope this works out for you.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
lagalopex
Guru
Guru


Joined: 16 Oct 2004
Posts: 565

PostPosted: Sat Mar 18, 2023 12:49 pm    Post subject: Reply with quote

RayDude wrote:
Are you running the latest BIOS on that mini computer?

Yes, that was my first attempt. :)

RayDude wrote:
Device Manager > AMD CBS > NBIO Common Options > SMU Common Options > CPPC

I tried again today. No matter how I booted, the setting always cause the menu to quit.

But I finally got it working when I first entered the UEFI shell and executed the uiapp from there. (Actually it looked like the real bios and not like the simple one when I booted...)
The option was there, I could enable it and now the driver loads and let the system reduce the clock as low as 400 MHz as well!

Thank you!
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2094
Location: San Jose, CA

PostPosted: Sun Mar 19, 2023 6:54 am    Post subject: Reply with quote

Glad it worked out!
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum