From owner-freebsd-x11@freebsd.org Thu Mar 28 04:08:58 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 D2AE915299D6; Thu, 28 Mar 2019 04:08:57 +0000 (UTC) (envelope-from ota@j.email.ne.jp) Received: from mail01.asahi-net.or.jp (mail01.asahi-net.or.jp [202.224.55.13]) by mx1.freebsd.org (Postfix) with ESMTP id 4ACB982269; Thu, 28 Mar 2019 04:08:53 +0000 (UTC) (envelope-from ota@j.email.ne.jp) Received: from rv515.advok.com (pool-72-76-119-135.nwrknj.fios.verizon.net [72.76.119.135]) (Authenticated sender: NR2Y-OOT) by mail01.asahi-net.or.jp (Postfix) with ESMTPSA id A33AA10DB1C; Thu, 28 Mar 2019 13:08:41 +0900 (JST) Date: Thu, 28 Mar 2019 00:08:26 -0400 From: Yoshihiro Ota To: Cy Schubert Cc: FreeBSD X11 mailing list , "freebsd-arch@freebsd.org" Subject: Re: DRM removal soon - crash with PAE kernel Message-Id: <20190328000826.2f88f1b723703d0384f6464a@j.email.ne.jp> In-Reply-To: <201903010645.x216jT7Y005464@slippy.cwsent.com> References: <20190301005009.4457f46f10c3a8229b5dd7fc@j.email.ne.jp> <201903010645.x216jT7Y005464@slippy.cwsent.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; i386-portbld-freebsd12.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4ACB982269 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of ota@j.email.ne.jp designates 202.224.55.13 as permitted sender) smtp.mailfrom=ota@j.email.ne.jp X-Spamd-Result: default: False [-1.24 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-0.77)[-0.775,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:202.224.55.0/24]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[email.ne.jp]; NEURAL_SPAM_SHORT(0.35)[0.348,0]; NEURAL_HAM_LONG(-0.99)[-0.988,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[sbmx.asahi-net.or.jp]; IP_SCORE(-0.01)[country: JP(-0.07)]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[13.55.224.202.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:4685, ipnet:202.224.32.0/19, country:JP]; MID_RHS_MATCH_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[135.119.76.72.zen.spamhaus.org : 127.0.0.10] 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, 28 Mar 2019 04:08:58 -0000 Hi Cy and all, I've been using drm-kmod okay on FreeBSD 12.0-RELEASE i386 GENERIC based kernel with multiple machines since the last post. I switched to use PAE kernel (12.0-RELEASE) on one of machines and then this module started panicing kernel. Given addressing is different, this crash isn't something surprise to see, though... Hiro On Thu, 28 Feb 2019 22:45:29 -0800 Cy Schubert wrote: > 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. > > > _______________________________________________ > freebsd-arch@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"