From owner-freebsd-x11@freebsd.org Fri Mar 1 06:45:39 2019 Return-Path: Delivered-To: freebsd-x11@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4119215074A8; Fri, 1 Mar 2019 06:45:39 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-so.shaw.ca (smtp-out-so.shaw.ca [64.59.136.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 09BCB8B06D; Fri, 1 Mar 2019 06:45:37 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id zbvIgflSui4qjzbvJg9yww; Thu, 28 Feb 2019 23:45:35 -0700 X-Authority-Analysis: v=2.3 cv=TYToSiYh c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=kj9zAlcOel0A:10 a=CFTnQlWoA9kA:10 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=BMnPHU7xLVOoaHBHG-UA:9 a=CjuIK1q_8ugA:10 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id 5FE863C7; Thu, 28 Feb 2019 22:45:31 -0800 (PST) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id x216jUCw005467; Thu, 28 Feb 2019 22:45:30 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id x216jT7Y005464; Thu, 28 Feb 2019 22:45:30 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <201903010645.x216jT7Y005464@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.8.0 04/21/2012 with nmh-1.7.1 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Yoshihiro Ota cc: Cy Schubert , sgk@troutmask.apl.washington.edu, FreeBSD X11 mailing list , "freebsd-arch@freebsd.org" , freebsd-arch@freebsd.org, greg@unrelenting.technology Subject: Re: DRM removal soon In-Reply-To: Message from Yoshihiro Ota of "Fri, 01 Mar 2019 00:50:09 -0500." <20190301005009.4457f46f10c3a8229b5dd7fc@j.email.ne.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 28 Feb 2019 22:45:29 -0800 X-CMAE-Envelope: MS4wfATedRC3IMOx2vuwT/f7cqXo8ShOXKj2QTJaqmcyuNfNS+xqpTtaKgpQQXWSwYBoppBYodM8y5ewIUfKi6n6caknvgwREPvZkKK9lxZOEvV+xgiprSDv uEZMzM7Sff5Kk/jJmmPvBuL4szM/nieKuj553/HFCZp2ai3boDUZDhHeYnWypZttLbyogAquJbfMQzAxLeMhk+fHjU2h8aSZDawg3+mB7cNVWiAq2WpS8Xg0 XVVEYjkmGpJwaZ2O432gPacKf50VevcHgDXrTC9VK7h7vDKFMI/FTyd2MsQ9SZBCTJsrrEXSnOBbNHMP4gzSaltspwkF1TmdmBCcxNRjX7i4ht3oU1WPQp65 4kQrNTIYSdTJA0kVQqE2jNX8530kRQ== X-Rspamd-Queue-Id: 09BCB8B06D X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-4.45 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; IP_SCORE(-2.03)[ip: (-5.27), ipnet: 64.59.128.0/20(-2.69), asn: 6327(-2.11), country: CA(-0.09)]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLYTO_EQ_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: spqr.komquats.com]; NEURAL_HAM_SHORT(-0.71)[-0.706,0]; RCPT_COUNT_SEVEN(0.00)[7]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_SPF_NA(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[17.125.67.70.zen.spamhaus.org : 127.0.0.11]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[137.136.59.64.list.dnswl.org : 127.0.5.1] 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: Fri, 01 Mar 2019 06:45:39 -0000 In message <20190301005009.4457f46f10c3a8229b5dd7fc@j.email.ne.jp>, Yoshihiro O ta writes: > Hi, all and Cy. > > I trimmed most of old posts. > > On Thu, 28 Feb 2019 11:22:52 -0800 > Cy Schubert wrote: > > > > Yes. drm-legacy-kmod should be removed from ports sooner than later. drm-cu > rrent-kind works > > perfectly on older gear like my 13 year old Pentium-M, which was repurposed > as an i386 test > > platform years ago. > > Don't worry. > You are still talking in the unit of years. > I still occasionally use a laptop from the last century. :) > Jokes aside, I have 2 questions. > > I have a 12.0-RELEASE base system and 12.0 pkg configuration. > Looking back my operational log, pkg install was like this. > > # pkg install drm-kmod > Updating FreeBSD repository catalogue... > FreeBSD repository is up to date. > All repositories are up to date. > The following 3 package(s) will be affected (of 0 checked): > > New packages to be INSTALLED: > drm-kmod: g20180930 > drm-legacy-kmod: g20181031_1 > gpu-firmware-kmod: g20180825 > > Question #1: > drm-current-kmod was mentioned in your reply. Have I installed wrong kmod? The drm-kmod meta-port installs the correct drm-*-kmod for you. It appears the package installed the legacy kmod. If you want to install drm-current-kmod or drm-fbsd12.0-kmod you'd need to specify either instead of drm-kmod. Does it work? If it works, stay with it. > > > I do not setup X to come up as a part of boot process. So, I login via conso > le and may stay there or decide to startx depending on what I want to do. I > can see the driver switching and my kld_list="/boot/modules/radeonkms.ko" loa > ds these modules as expected. X loads the correct kernel modules for you. I don't pre-load any drm modules. I let X handle everything for me. Yours does as well. It simply works. > > On the other hand, I still see the following in dmesg. > > drmn0: ======================================================= > drmn0: This code is obsolete abandonware. Install the graphics/drm-legacy-kmo > d p > kg > drmn0: ======================================================= > drmn0: Deprecated code (to be removed in FreeBSD 13): drm2 drivers > drmn0: ======================================================= > drmn0: This code is obsolete abandonware. Install the graphics/drm-legacy-kmo > d pkg > drmn0: ======================================================= > drmn0: Deprecated code (to be removed in FreeBSD 13): drm2 drivers > drmn0: on vgapci0 > info: [drm] RADEON_IS_PCIE > info: [drm] initializing kernel modesetting (PALM 0x1002:0x9806 0x144D:0xC589 > ). > info: [drm] register mmio base: 0xFEB00000 > info: [drm] register mmio size: 262144 > info: [drm] radeon_atrm_get_bios: ===> Try ATRM... The deprecated DRM2 was removed from current after 12 was branched. You could alter the module_path kenv environment variable to put /boot/modules before /boot/kernel, but frankly don't mess with it if it works. > > kldstat -v reports this: > > 5 1 0x1900d000 10c000 radeonkms.ko (/boot/modules/radeonkms.ko) > Contains modules: > Id Name > 529 vgapci/radeonkms > 534 drmn/radeon_atom_hw_i2c > 531 radeon_iicbb/iicbb > 533 radeon_hw_i2c/iicbus > 530 drmn/radeon_iicbb > 532 drm/radeon_hw_i2c > 6 1 0x19119000 4e000 drm2.ko (/boot/kernel/drm2.ko) > Contains modules: > Id Name > 525 drmn/drm_iic_dp_aux > 526 drmn > > Question #2. > Am I loading the right driver set? In your case installing the package is a NOP because the base drm is loaded because it's first in the kld search path. If X works, then don't worry about it. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.