From owner-freebsd-x11@freebsd.org Thu Jan 23 02:58:21 2020 Return-Path: Delivered-To: freebsd-x11@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 438552296C7 for ; Thu, 23 Jan 2020 02:58:21 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4836R104Ntz3RCP for ; Thu, 23 Jan 2020 02:58:21 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: by mailman.nyi.freebsd.org (Postfix) id 027452296C6; Thu, 23 Jan 2020 02:58:21 +0000 (UTC) Delivered-To: x11@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 023EA2296C5 for ; Thu, 23 Jan 2020 02:58:21 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from mail.bitblocks.com (ns1.bitblocks.com [173.228.5.8]) by mx1.freebsd.org (Postfix) with ESMTP id 4836R00HHCz3RCN for ; Thu, 23 Jan 2020 02:58:19 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost [127.0.0.1]) by mail.bitblocks.com (Postfix) with ESMTP id 129F9156E448 for ; Wed, 22 Jan 2020 18:58:06 -0800 (PST) To: x11@freebsd.org Subject: support for the Picasso APU in amdgpu From: Bakul Shah MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <52427.1579748160.1@bitblocks.com> Date: Wed, 22 Jan 2020 18:58:05 -0800 Message-Id: <20200123025813.129F9156E448@mail.bitblocks.com> X-Rspamd-Queue-Id: 4836R00HHCz3RCN X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of bakul@bitblocks.com designates 173.228.5.8 as permitted sender) smtp.mailfrom=bakul@bitblocks.com X-Spamd-Result: default: False [-4.11 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:173.228.5.8/29]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[x11@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DMARC_NA(0.00)[bitblocks.com]; IP_SCORE(-1.91)[ip: (-5.99), ipnet: 173.228.0.0/20(-2.99), asn: 46375(-0.51), country: US(-0.05)]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:46375, ipnet:173.228.0.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jan 2020 02:58:21 -0000 I recenty bought a relatively inexpensiven Ryzen 5 3500U laptop & FreeBSD-12.1 came up just fine. Except for a couple of things, one of them being graphics. I installed drm-kmod (drm-fbsd12.0-kmod-4.16.g20200115 & drm-kmod-g20190710) and also xf86-video-amdgpu-19.0.1. I see /dev/drm/ but Xorg terminates as /dev/dri doesn't exist. Looks like support for this particular AMD mobile chip (Picasso series) is missing. Files in kms-drm-f3206bf/drivers/gpu/drm/amd/amdgpu seem pretty much copies of linux versions. Is f3206bf a linux source tag? Were the sources converted using a script or manually? Linux seem to have added Picasso support in 4.20. Grepping shows very few changes (as Picasso is basically RavenRidge). I can do one of two things: either make the few source changes to the existing drm package or try to upgrade to 4.20 -- the latter seems like a bigger task. On the wiki.freebsd.org/Graphics I see that updating drm-devel to 4.20 is 20% complete but I suspect this page is outdated! Looking at drm-deel-kmod/Makefile it seems it is based on linux 5.0? Ideally I don't want to upgrade to -current. Any advice? Thanks, Bakul