Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Amd Zen µcode not loading ?
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
Moonboots
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2006
Posts: 108

PostPosted: Sat Jan 06, 2018 5:56 pm    Post subject: Amd Zen µcode not loading ? Reply with quote

With frequent motherboard bios updates for the Asus 350M-A , i have relied on those for any potential ucode updates.
But with "Spectre" bug i decided to update via the kernel following the instructions on https://wiki.gentoo.org/wiki/AMD_microcode by adding amd-ucode/microcode_amd.bin amd-ucode/microcode_amd_fam17h.bin to the end of list of amdgpu firmware entries. But on rebooting and regarding dmesg i don't see any update and the patch_level is as before ?
My cpu is a Ryzen 1700 and https://wiki.gentoo.org/wiki/Project:Security/Vulnerabilities/Meltdown_and_Spectre mentions "A CPU microcode update was added which will disables branch prediction on AMD family 17h processors (800F12 only)"
I haven't been able to find what 800F12 corresponds to ?

Any help would br gratefully received :)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 40634
Location: 56N 3W

PostPosted: Sat Jan 06, 2018 8:52 pm    Post subject: Reply with quote

Moonboots,

You also need
Code:
CONFIG_MICROCODE_AMD=y
in your kernel.

Checx the build date/time of your running kernel as shown by
Code:
uname -a
just in case you are not running the kernel you think you are.

When all is well, dmesg will show
Code:
[    2.529716] microcode: microcode updated early to new patch_level=0x010000dc
or whatever the version is for Ryzen.
That's from my Phenom II.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Moonboots
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2006
Posts: 108

PostPosted: Sat Jan 06, 2018 9:24 pm    Post subject: Reply with quote

NeddySeagoon

Thank you , but CONFIG_MICROCODE_AMD=y is already in my kernel by selecting "AMD microcode patch loading support" from https://wiki.gentoo.org/wiki/AMD_microcode

I'm booting from efi stub kernel without Initramfs , if that is potentially a problem ?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 40634
Location: 56N 3W

PostPosted: Sat Jan 06, 2018 9:59 pm    Post subject: Reply with quote

Moonboots,

I have my microcode built into the kernel as that wiki page suggests.
I have an initrd too for raid and LVM but its strictly user space tools from 2009.
In short its not a problem.

Did you check that you are running the kernel you think you are?
Code:
uname -a
Linux NeddySeagoon_Static 4.15.0-rc4 #5 SMP PREEMPT Sat Jan 6 13:25:26 GMT 2018 x86_64 AMD Phenom(tm) II X6 1090T Processor AuthenticAMD GNU/Linux


Sat Jan 6 13:25:26 GMT 2018 is the build time of my running kernel.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
marcuse
n00b
n00b


Joined: 17 Jan 2003
Posts: 22

PostPosted: Sat Jan 06, 2018 10:59 pm    Post subject: Reply with quote

This doesn't work for me too, but as metioned here https://wiki.gentoo.org/wiki/Project:Security/Vulnerabilities/Meltdown_and_Spectre#sys-kernel.2Fgentoo-sources, the actual firmware is only for:
Quote:
AMD family 17h processors (800F12 only)
These are the Zen server EPYC processors, so for the desktop Ryzens we have to wait it seems.
_________________
windows -- from people who brought you edlin ...
Back to top
View user's profile Send private message
thumper
Guru
Guru


Joined: 06 Dec 2002
Posts: 521
Location: Venice FL

PostPosted: Sat Jan 06, 2018 11:02 pm    Post subject: Reply with quote

I had the same apparent failed results.

But then I saw this:
https://www.phoronix.com/scan.php?page=news_item&px=AMD-Branch-Prediction-Still

So now I'm not sure what to expect.

George
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 5280
Location: Removed by Neddy

PostPosted: Sat Jan 06, 2018 11:32 pm    Post subject: Reply with quote

AMD have stated they do not rely on a bios update to deal with spectre mitigation. I'll find the link

https://lkml.org/lkml/2018/1/5/383
https://lkml.org/lkml/2018/1/5/405
_________________
The best argument against democracy is a five-minute conversation with the average voter
Great Britain is a republic, with a hereditary president, while the United States is a monarchy with an elective king
Back to top
View user's profile Send private message
Moonboots
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2006
Posts: 108

PostPosted: Sun Jan 07, 2018 6:23 am    Post subject: Reply with quote

Thanks everyone

Yes Neddy i was running the expected kernel. :)

@marcuse @thumper Hopefully there will be more information on this µcode update in the coming days.

@Naib There is a gatewaytime-out on both links at the moment, so i'll try later on.
Back to top
View user's profile Send private message
Moonboots
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2006
Posts: 108

PostPosted: Fri Jan 12, 2018 5:02 pm    Post subject: Reply with quote

Looks like we may see a microcode update for Ryzen soon ?

https://www.amd.com/en/corporate/speculative-execution
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