Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jun 2020 22:43:24 +0200
From:      Emmanuel Vadot <manu@bidouilliste.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        Tomasz CEDRO <tomek@cedro.info>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Keyboard and mouse not working after X update
Message-ID:  <20200601224324.af8aecf82db7ad2b5efb4679@bidouilliste.com>
In-Reply-To: <20200601221334.c9486a27.freebsd@edvax.de>
References:  <20200531214105.2caed717.freebsd@edvax.de> <CAM8r67BWRndRDsTCQEOqTQ8Z_6R39H=ZwXHzrpZ1Njam0G3tRQ@mail.gmail.com> <20200531231731.85ee6d3d.freebsd@edvax.de> <CAM8r67Cm3eW0%2BSkpB52OMm0Eo2Y3AQEsmyvtTJV_A6yiLvYZQA@mail.gmail.com> <20200601001117.f7075d7d.freebsd@edvax.de> <CAM8r67A-%2B1z29OUB33nPaGJwD72a8yqrN5YvLVK6E8TuEffJ7g@mail.gmail.com> <20200601205659.fac089c3.freebsd@edvax.de> <20200601210904.26383caf62c0cb59f4a2b68a@bidouilliste.com> <20200601221334.c9486a27.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 1 Jun 2020 22:13:34 +0200
Polytropon <freebsd@edvax.de> wrote:

> On Mon, 1 Jun 2020 21:09:04 +0200, Emmanuel Vadot wrote:
> > On Mon, 1 Jun 2020 20:56:59 +0200
> > Polytropon <freebsd@edvax.de> wrote:
> > 
> > > So at the moment, I have this (as explained in the documentation):
> > > 
> > > In /boot/loader.conf:
> > > 
> > > 	drm_load="YES"
> > 
> >  That won't work.
> > 
> > > In /etc/rc.conf:
> > > 
> > > 	kld_list="amdgpu"
> > 
> >  This should be enough to have drm.ko loaded as a dependency.
> 
> I will comment out the setting in /boot/loader.conf. Currently
> I have the following (interesting) modules:
> 
> 	# kldstat
> 	Id Refs Address                Size Name
> 	 1   47 0xffffffff80200000  2448f20 kernel
> 	[...]
> 	 4    1 0xffffffff82821000   250464 amdgpu.ko		<---
> 	 5    2 0xffffffff82a72000    76570 drm.ko		<---
> 	 6    5 0xffffffff82ae9000    10eb0 linuxkpi.ko
> 	 7    4 0xffffffff82afa000    12f30 linuxkpi_gplv2.ko
> 	[...]
> 
> So those seem to be loaded correctly.
> 
> After reboot, the result is the same: drm.ko has been loaded
> automatically. Thanks for that particular pointer, no need to
> explicitely order things that will be automatically ordered
> anyway. :-)
> 
> 
> 	
> >  If you have no /dev/dri and no /dev/drm it means that the drm modules
> > wasn't loaded.
> >  Look in dmesg for errors and also try to "kldload amdgpu" or "kldload
> > radeonkms" depending on your GPU.
> 
> I have /dev/drm/{0...255} owned by root:video (with rw for the
> group, which the user is a member of). The "kldstat" output
> shows that at least drm.ko and amdgpu.ko have been loaded.
> 
> I do _not_ have /dev/dri (and card0 therein), which is what
> Xorg.0.log seems to complain about.

 That really weird and I don't really see how that can happen.
 Can you share the full dmesg please ?

> In the "dmesg" output, the following entry is relevant:
> 
> 	[drm] amdgpu kernel modesetting enabled.
> 
> So this part probably is complete.
> 
> The laptop HP dm-1 contains a 'Advanced Micro Devices, Inc. [AMD/ATI]'
> model 'Wrestler [Radeon HD 6310]', as reported by "pciconf -lv".
> I have to admit that I'm confused by the "amdgpu" vs. "radeon"
> vs. "ati" naming and drivers stuff, though...

 It is confusing yes. Basically radeonkms is for old card up to
Sea Island generation while amdgpu is for newer card (but also work for
both Southern Island and Sea Island)

 Using 
 https://www.x.org/wiki/RadeonFeature/#radeongraphicscomputehardware

 if you have a >=GFX8 core use amdgpu.
 If you have a GFX6 or GFX7 core use either amdgpu or radeonkms
depending on the result.
 Otherwise use radeonkms.

 And that might explain why you don't have /dev/dri as you should use
radeonkms. So the drm module will create the /dev/drm/ nodes but as no
driver registered no /dev/dri node is created.
 Please share the full pciconf -lv so I can confirm.

> 
> 
> 
> -- 
> Polytropon
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


-- 
Emmanuel Vadot <manu@bidouilliste.com>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200601224324.af8aecf82db7ad2b5efb4679>