Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 696164

Summary: sys-kernel/gentoo-sources-4.19.66 - AMD Picasso AMDGPU (aka AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx) is not recognized by the driver
Product: Gentoo Linux Reporter: Jocelyn Mayer <l_indien>
Component: Current packagesAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED FIXED    
Severity: normal Keywords: PATCH
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info output
Patch to make Picasso AMDGPU recognized and properly working
Ryzen 5 3500U cpu informations as retrieved from lscpu and /proc/cpuinfo
dmesg output cutoff after the proposed patch applied

Description Jocelyn Mayer 2019-10-04 08:50:33 UTC
Created attachment 591776 [details]
emerge --info output

AMDGPU stock driver does not recognize new Picasso implementation as found inside the AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx APU.
The hardware seems to be the same as Raven one with mobility capability added.
Thus, it's easy to make it recognized, adding the new PCI ID to the AMDGPU driver.
Here you'll find the patch I've made to my kernel; graphics is OK, with no noticeable issue.
Comment 1 Jocelyn Mayer 2019-10-04 08:52:00 UTC
Created attachment 591778 [details, diff]
Patch to make Picasso AMDGPU recognized and properly working

Signed-off-by: Jocelyn MAYER l_indien@magic.fr
Comment 2 Jocelyn Mayer 2019-10-04 09:08:32 UTC
Created attachment 591780 [details]
Ryzen 5 3500U cpu informations as retrieved from lscpu and /proc/cpuinfo
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2019-10-04 09:09:29 UTC
Comment on attachment 591778 [details, diff]
Patch to make Picasso AMDGPU recognized and properly working

>--- linux-4.19.66-gentoo/drivers/gpu/drm/amd/amdkfd/kfd_device.c	2019-08-26 06:23:22.683079348 +0200
>+++ linux-4.19.66-gentoo/drivers/gpu/drm/amd/amdkfd/kfd_device.c	2019-09-09 13:31:18.563024146 +0200
>@@ -275,6 +275,7 @@ static const struct kfd_deviceid support
> 	{ 0x9876, &carrizo_device_info },	/* Carrizo */
> 	{ 0x9877, &carrizo_device_info },	/* Carrizo */
> 	{ 0x15DD, &raven_device_info },		/* Raven */
>+	{ 0x15D8, &raven_device_info },		/* Raven */

Is that comment correct?
Comment 4 Jocelyn Mayer 2019-10-04 09:11:16 UTC
Created attachment 591782 [details]
dmesg output cutoff after the proposed patch applied
Comment 5 Jocelyn Mayer 2019-10-04 09:33:40 UTC
I guess the comment is correct as, in the other part of the patch, the device is recognized with the CHIP_RAVEN flag; in another hand, as I also set the AMD_IS_MOBILITY flag, /* Raven Mobile */ might be a better comment...
with regards
J. Mayer
Comment 6 Mike Pagano gentoo-dev 2021-06-03 17:13:28 UTC
This is in kernels >= 5.4.  Do you need this in earlier kernels?