Date: Thu, 16 Jul 2020 20:34:47 +0200 From: Niclas Zeising <zeising+freebsd@daemonic.se> To: Michael Schuster <michaelsprivate@gmail.com> Cc: freebsd-x11@freebsd.org Subject: Re: amdgpu on Ryzen 4700 w. Vega10 Renoir Graphics Message-ID: <288f025b-fba7-cb77-00a7-d9ecf0b2be7c@daemonic.se> In-Reply-To: <CADqw_gJtKP5xu-CSX2BCv3EKLza2SwnK1d6fJscseJipD%2Bp6aw@mail.gmail.com> References: <CADqw_gKaifH9Q9aXR4VAtX7_tkoAGnL-dO9TXCDEpUju=4SKOw@mail.gmail.com> <9980e1d7-00c3-5d29-3a9c-a358949fee55@daemonic.se> <CADqw_g%2Bj2UG95sMe099M3jJP3DgvqvBYoaOLdtaX7Es43z%2BwsQ@mail.gmail.com> <CADqw_gKOKGoZOJE4iXxnUX3PgqtBkhKxgiHtAJqCGo9dghneag@mail.gmail.com> <e353dbe8-b891-7436-bad5-63bedee38c5e@daemonic.se> <CADqw_g%2B3tqOrLFWZRvukz80jdZhJBQsjMdW_65m6-33S8a93Yg@mail.gmail.com> <22de2d99-fd52-0925-6fda-8f7358e61954@daemonic.se> <CADqw_gJtKP5xu-CSX2BCv3EKLza2SwnK1d6fJscseJipD%2Bp6aw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2020-07-16 19:49, Michael Schuster wrote: >=20 >=20 > On Thu, Jul 16, 2020 at 4:58 PM Niclas Zeising=20 > <zeising+freebsd@daemonic.se <mailto:zeising%2Bfreebsd@daemonic.se>> wr= ote: >=20 > On 2020-07-16 16:48, Michael Schuster wrote: > > Hi all, > > > > I know I'm top-posting (this note) AND cross-posting - please > bear(sp?) > > with me, I think I'm somewhat justified: > > > > > > On Wed, Jul 15, 2020 at 9:46 PM Niclas Zeising > > <zeising+freebsd@daemonic.se > <mailto:zeising%2Bfreebsd@daemonic.se> > <mailto:zeising%2Bfreebsd@daemonic.se > <mailto:zeising%252Bfreebsd@daemonic.se>>> wrote: > > > > > >=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0On 2020-0= 7-15 14:25, Michael Schuster wrote: > >=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > Hi all= , > >=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > >=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > I got = a new HP laptop (455 G7) and put latest > GhostBSD > >=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(20.04, b= ased on > >=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > 12.1 r= elease) on it. During installation, the only > >=C2=A0 =C2=A0 =C2=A0graphics > >=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0selection= that > >=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > didn't= fail was 'scfb', which I'm still using. > >=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > >=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > AFAICT= from my research, Renoir is supported by > latest drm > >=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0driver/mo= dule, > >=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > so I i= nstalled that ( > >=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 > > >=C2=A0 =C2=A0 =C2=A0 > > https://github.com/FreeBSDDesktop/kms-drm/tree/drm-v5.0-fbsd12.1). > >=C2=A0 =C2=A0 =C2=A0 > > >=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0That bran= ch isn't used, and may be broken. > >=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0If you wa= nt to get anything more recent than > >=C2=A0 =C2=A0 =C2=A0drm-fbds12.0-kmod, > >=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0which > >=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0tracks Li= nux 4.16, you have to upgrade to current > and use > >=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0drm-devel= -kmod > >=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(which cu= rrently is at 5.3). > >=C2=A0 =C2=A0 =C2=A0 > > >=C2=A0 =C2=A0 =C2=A0 > > >=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0just to be clear: by "c= urrent", you mean FreeBSD > >=C2=A0 =C2=A0 =C2=A013.0-current, right? > >=C2=A0 =C2=A0 =C2=A0 >=C2=A0 =C2=A0 =C2=A0thx > >=C2=A0 =C2=A0 =C2=A0 > > >=C2=A0 =C2=A0 =C2=A0 > > >=C2=A0 =C2=A0 =C2=A0 > so I went ahead and installed FreeBSD-curr= ent on this machine, > >=C2=A0 =C2=A0 =C2=A0and then > >=C2=A0 =C2=A0 =C2=A0 > drm-devel-kmodas you recommended. Alas, I'= m getting an error: > >=C2=A0 =C2=A0 =C2=A0 > > >=C2=A0 =C2=A0 =C2=A0 > KLD amdgpu.ko: depends on kernel - not ava= ilable or > version mismatch > >=C2=A0 =C2=A0 =C2=A0 > > >=C2=A0 =C2=A0 =C2=A0 > some googling showed that - since I did a = fresh install of > >=C2=A0 =C2=A0 =C2=A0-current just > >=C2=A0 =C2=A0 =C2=A0 > now - amdgpu must be out of sync. the vers= ion I have > installed is: > >=C2=A0 =C2=A0 =C2=A0 > > >=C2=A0 =C2=A0 =C2=A0 > xf86_video-amdgpu-19.1.0_1. > > > >=C2=A0 =C2=A0 =C2=A0This means that your kernel and the drm-devel= -kmod package > are out of > >=C2=A0 =C2=A0 =C2=A0sync.=C2=A0 drm-devel-kmod installs the kerne= l graphics drivers, > such as > >=C2=A0 =C2=A0 =C2=A0amdgpu.ko, and it has to be in sync with your= kernel.=20 > Depending a bit > >=C2=A0 =C2=A0 =C2=A0on which svn revision of current you have, yo= u should be able > to build > >=C2=A0 =C2=A0 =C2=A0drm-devel-kmod (and preferably gpu-firmware-k= mod) from ports. > > > > > > @Niclas, >=20 > your FreeBSD system.=C2=A0 Updating FreeBSD Current is generally > accomplished > by rebuilding and installing it from source.=C2=A0 Instructions on = that can > be found here: > https://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworl= d.html >=20 >=20 > again, thx. > Building world and the kernel worked, I'm now running that kernel I bui= lt. > I managed to successfully build graphics/drm-devel-kmod and=20 > gpu-firmware-kmod. "make install" for some reason didn't - I could only= =20 > find modified amdgpu.ko in=20 > graphics/drm-devel-kmod/work/stage/boot/modules/ (and no documentation=20 > on how to achieve this) - so I copied all the .ko files from that=20 > directory into /boot/modules, though a reboot didn't help, here's the=20 > latest Xorg.0.log output (selected) >=20 > [ =C2=A0 =C2=A022.733] (=3D=3D) Matched ati as autoconfigured driver 0 > [ =C2=A0 =C2=A022.733] (=3D=3D) Matched modesetting as autoconfigured d= river 1 > [ =C2=A0 =C2=A022.733] (=3D=3D) Matched scfb as autoconfigured driver 2 > [ =C2=A0 =C2=A022.733] (=3D=3D) Matched vesa as autoconfigured driver 3 > [ =C2=A0 =C2=A022.733] (=3D=3D) Assigned the driver to the xf86ConfigLa= yout > [ =C2=A0 =C2=A022.733] (II) LoadModule: "ati" > [ =C2=A0 =C2=A022.734] (WW) Warning, couldn't open module ati > [ =C2=A0 =C2=A022.734] (EE) Failed to load module "ati" (module does no= t exist, 0) > [ =C2=A0 =C2=A022.734] (II) LoadModule: "modesetting" > [...] > [ =C2=A0 =C2=A022.735] (II) LoadModule: "scfb" > [...] > [ =C2=A0 =C2=A022.736] (II) LoadModule: "vesa" > [...] > [ =C2=A0 =C2=A022.736] (II) modesetting: Driver for Modesetting Kernel = Drivers: kms > [ =C2=A0 =C2=A022.736] (II) scfb: driver for wsdisplay framebuffer: scf= b > [ =C2=A0 =C2=A022.737] (II) VESA: driver for VESA chipsets: vesa > [ =C2=A0 =C2=A022.737] (--) Using syscons driver with X support (versio= n 2.0) > [ =C2=A0 =C2=A022.737] (++) using VT number 9 >=20 > [ =C2=A0 =C2=A022.747] (EE) open /dev/dri/card0: No such file or direct= ory > [ =C2=A0 =C2=A022.747] (WW) Falling back to old probe method for modese= tting > [ =C2=A0 =C2=A022.747] (EE) open /dev/dri/card0: No such file or direct= ory > [ =C2=A0 =C2=A022.747] (WW) Falling back to old probe method for scfb > [ =C2=A0 =C2=A022.747] scfb trace: probe start > [ =C2=A0 =C2=A022.747] (II) scfb(1): using default device > [ =C2=A0 =C2=A022.747] scfb trace: probe done > [ =C2=A0 =C2=A022.747] (WW) VGA arbiter: cannot open kernel arbiter, no= multi-card=20 > support > [ =C2=A0 =C2=A022.747] (EE) Screen 0 deleted because of no matching con= fig section. >=20 > and indeed, /dev/dri is nonexistent (though /dev/drm/ contains a ton=20 > (... ok, 0x100) of driver entries). Also note: amdgpu appears nowhere i= n=20 > the excerpt above (or even the complete Xorg.0.log file). >=20 > One thing I remember from the previous ghostbsd installation:=20 > /etc/rc.conf's kld_list contained a few more entries that just=20 > "/boot/modules/amdgpu.ko" that I have now ... should I put something=20 > else in? >=20 > so - once more - I'm hoping for your guidance :-) It would be interesting to see why make install in drm-devel-kmod failed=20 and you had to copy the modules yourself. From the output you've pasted, it looks like amdgpu.ko didn't load and=20 attach properly to the hardware. What does dmesg say when you load the=20 module? Have you done any xorg configuration? That should in general=20 not be needed, so it might be worth trying without any configuration. Regards --=20 Niclas
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?288f025b-fba7-cb77-00a7-d9ecf0b2be7c>