Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 696164 - 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
Summary: sys-kernel/gentoo-sources-4.19.66 - AMD Picasso AMDGPU (aka AMD Ryzen 5 3500U...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2019-10-04 08:50 UTC by Jocelyn Mayer
Modified: 2019-10-04 09:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info output (emerge_info,23.24 KB, text/plain)
2019-10-04 08:50 UTC, Jocelyn Mayer
Details
Patch to make Picasso AMDGPU recognized and properly working (linux-4.19.66-gentoo-amdgpu-picasso.patch,1.07 KB, patch)
2019-10-04 08:52 UTC, Jocelyn Mayer
Details | Diff
Ryzen 5 3500U cpu informations as retrieved from lscpu and /proc/cpuinfo (cpuinfo,3.01 KB, text/plain)
2019-10-04 09:08 UTC, Jocelyn Mayer
Details
dmesg output cutoff after the proposed patch applied (dmesg_cutoff,5.26 KB, text/plain)
2019-10-04 09:11 UTC, Jocelyn Mayer
Details

Note You need to log in before you can comment on or make changes to this bug.
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