From owner-freebsd-questions@freebsd.org Mon Jun 1 20:43:27 2020 Return-Path: Delivered-To: freebsd-questions@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 E7DFB2F1A2F for ; Mon, 1 Jun 2020 20:43:27 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49bRvy6W70z3SgH for ; Mon, 1 Jun 2020 20:43:26 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1591044204; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ofgKT/KGIBVTB4MjpXMMjb4NYkweIS9o4sKrMiMPt4s=; b=dH6sFG781SLT/XuQJ0DfxEzGatgpcQ2CntPmnzhNn+4pgwhO7+i4RyChSgL9tEp4ZJ9HZs GwAI0yduXP+WZxW1SlU+xQ5tvjN9VVQ6XL0U2tva65OyNnC61AIn1S0UXTCkilbhJzkuX9 2HUxz/pZfsBd1z2vnXS9Fr3lYbUpSgQ= Received: from amy.home (lfbn-idf2-1-900-181.w86-238.abo.wanadoo.fr [86.238.131.181]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 031d0b19 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Mon, 1 Jun 2020 20:43:24 +0000 (UTC) Date: Mon, 1 Jun 2020 22:43:24 +0200 From: Emmanuel Vadot To: Polytropon Cc: Tomasz CEDRO , FreeBSD Questions 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> <20200531231731.85ee6d3d.freebsd@edvax.de> <20200601001117.f7075d7d.freebsd@edvax.de> <20200601205659.fac089c3.freebsd@edvax.de> <20200601210904.26383caf62c0cb59f4a2b68a@bidouilliste.com> <20200601221334.c9486a27.freebsd@edvax.de> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49bRvy6W70z3SgH X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=dH6sFG78; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-2.67 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; NEURAL_HAM_LONG(-1.01)[-1.009]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; NEURAL_HAM_SHORT(-0.18)[-0.177]; NEURAL_HAM_MEDIUM(-0.98)[-0.984]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2020 20:43:28 -0000 On Mon, 1 Jun 2020 22:13:34 +0200 Polytropon wrote: > On Mon, 1 Jun 2020 21:09:04 +0200, Emmanuel Vadot wrote: > > On Mon, 1 Jun 2020 20:56:59 +0200 > > Polytropon 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