From owner-freebsd-questions@freebsd.org Tue Dec 25 18:29:10 2018 Return-Path: Delivered-To: freebsd-questions@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 43209135918E for ; Tue, 25 Dec 2018 18:29:10 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from nightmare.dreamchaser.org (ns.dreamchaser.org [66.109.141.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3153C85CCA for ; Tue, 25 Dec 2018 18:29:08 +0000 (UTC) (envelope-from freebsd@dreamchaser.org) Received: from breakaway.dreamchaser.org (breakaway [192.168.151.122]) by nightmare.dreamchaser.org (8.15.2/8.15.2) with ESMTP id wBPIT6Ma068143; Tue, 25 Dec 2018 11:29:06 -0700 (MST) (envelope-from freebsd@dreamchaser.org) Reply-To: freebsd@dreamchaser.org Subject: Re: A question about graphics subsystems under FreeBSD To: "Steve O'Hara-Smith" , freebsd-questions@freebsd.org References: <55b5d06209acb007b2f4f9a4052e77b7@kathe.in> <9b658246-ea2c-254a-fc83-5eb81ea6e53c@yandex.com> <5616c0b9-9b3c-06d1-0848-ae164c19edd8@dreamchaser.org> <20181225082137.135508fe323592e024c0b4e5@sohara.org> From: Gary Aitken Message-ID: <0595e1eb-253a-c167-af71-34d60fcee7b2@dreamchaser.org> Date: Tue, 25 Dec 2018 11:29:07 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <20181225082137.135508fe323592e024c0b4e5@sohara.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (nightmare.dreamchaser.org [192.168.151.101]); Tue, 25 Dec 2018 11:29:06 -0700 (MST) X-Rspamd-Queue-Id: 3153C85CCA X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of freebsd@dreamchaser.org designates 66.109.141.57 as permitted sender) smtp.mailfrom=freebsd@dreamchaser.org X-Spamd-Result: default: False [-6.43 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[freebsd@dreamchaser.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dreamchaser.org]; REPLYTO_ADDR_EQ_FROM(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: nightmare.dreamchaser.org]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.82)[-0.816,0]; IP_SCORE(-3.31)[ip: (-8.66), ipnet: 66.109.128.0/19(-4.33), asn: 21947(-3.47), country: US(-0.08)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:21947, ipnet:66.109.128.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Dec 2018 18:29:10 -0000 On 12/25/18 1:21 AM, Steve O'Hara-Smith wrote: > On Mon, 24 Dec 2018 17:13:46 -0700 Gary Aitken > wrote: > >> There are a boatload of additional radeonkmsfw_*.ko modules in >> /boot, but I don't know how they are used. My attempt to use a >> radeon 5550 board hung the system (11.2) on exit; haven't had time >> to look at it. > > The right ones are loaded automatically by the main radeonkms driver > - at least that's what happens with the amdgpu one. You almost > certainly need to compile the drm-kmod port to get things working - > installing the package is a recipe for panics IME. Thanks. Updating says: 20180930: ... A metaport, graphics/drm-kmod, was introduced for users of both the LinuxKPI- based DRM components as well as the legacy ones. It is recommended to use the metaport from now on, which will select a recommended DRM version based on the FreeBSD version. Attempting to build it on my 11.2 says: ===>>> This port is marked IGNORE ===>>> requires kernel source files in /usr/src But one needs to read Makefile to see what, if anything, is actually required. 11.2 is marked IGNORE, although it specifies RUN_DEPENDS= ${KMODDIR}/drm.ko:graphics/drm-stable-kmod I do not have drm-stable-kmod installed, nor gpu-firmware-kmod on which drm-stable-kmod depends. Given the RUN_DEPENDS, it seems like the IGNORE might be a bug. > I gather that for radeonkms the radeon dri driver works but for > amdgpu (my laptop) there's /usr/local/lib/dri/amdgpu_dri.so wanted by > Xorg but I can't find it anywhere. scanning pkg-plist in all ports comes up empty for amdgpu_dri Gary