Bug 198345 - AMD-RNG can't find a device. Kernel 4.15rc6 with AMD Vega64
Summary: AMD-RNG can't find a device. Kernel 4.15rc6 with AMD Vega64
Status: RESOLVED INVALID
Alias: None
Product: Drivers
Classification: Unclassified
Component: Video(DRI - non Intel) (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_video-dri
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-03 16:22 UTC by Justin J.
Modified: 2018-01-03 17:18 UTC (History)
1 user (show)

See Also:
Kernel Version: 4.15rc6
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Justin J. 2018-01-03 16:22:16 UTC
I am using a Radeon Vega 64 with Debian Buster/Sid. I try to develop with ROCm on it.

I found out, that the module amd-rng can't find a device.

sudo modprobe -v amd-rng
insmod /lib/modules/4.15.0-rc6-custom/kernel/drivers/char/hw_random/amd-rng.ko
modprobe: ERROR: could not insert 'amd_rng': No such device

Can someone help me to fix this, please? The graphic card itself is recognized well.

xrandr --listproviders
Providers: number : 2
Provider 0: id: 0x70 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 4 associated providers: 0 name:modesetting
Provider 1: id: 0x49 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 6 outputs: 4 associated providers: 0 name:Radeon RX Vega @ pci:0000:03:00.0

lspci | grep AMD
01:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1470 (rev c1)
02:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1471
03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Vega 10 XT [Radeon RX Vega 64] (rev c1)
03:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device aaf8

Thank you in advance!

Best regards, Justin
Comment 1 Alex Deucher 2018-01-03 16:26:03 UTC
Please file this bug against the rng drivers if the gpu driver is loaded properly.  Does your platform even support an rng device?
Comment 2 Justin J. 2018-01-03 17:02:17 UTC
xrandr --listproviders 
Providers: number : 2
Provider 0: id: 0x90 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 6 outputs: 4 associated providers: 0 name:Radeon RX Vega @ pci:0000:03:00.0
Provider 1: id: 0x46 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 4 associated providers: 0 name:modesetting

sudo modprobe -v amd-rng 
[sudo] Passwort für justin: 
insmod /lib/modules/4.15.0-rc6-custom/kernel/drivers/char/hw_random/rng-core.ko 
insmod /lib/modules/4.15.0-rc6-custom/kernel/drivers/char/hw_random/amd-rng.ko 
modprobe: ERROR: could not insert 'amd_rng': No such device

I loaded it properly... Seems to do the same mistake.

and yes rng-core should be supported. the first time loading works.
Comment 3 Alex Deucher 2018-01-03 17:13:33 UTC
The amdgpu driver is apparently loading fine.  What does it have to do with the amd-rng driver?  They are separate drivers why are you mentioning both on this bug?  if you are having an issue with the amd-rng driver, please close this bug and open a rng bug or clarify what this has to do with the GPU.
Comment 4 Justin J. 2018-01-03 17:18:00 UTC
Oh sorry... I did done the mistake...

I got problems with hiprng to load it with the amd vega graphics.
I forgot that there is an amd processor. I should drink more coffee. ;-)

/closed

Note You need to log in before you can comment on or make changes to this bug.