From owner-freebsd-x11@freebsd.org Wed Aug 29 11:55:55 2018 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 EF2BB1086CC8 for ; Wed, 29 Aug 2018 11:55:54 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 8DEB789801 for ; Wed, 29 Aug 2018 11:55:54 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: by mailman.ysv.freebsd.org (Postfix) id 52B461086CC6; Wed, 29 Aug 2018 11:55:54 +0000 (UTC) Delivered-To: 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 30D911086CC5 for ; Wed, 29 Aug 2018 11:55:54 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from mail.daemonic.se (mail.daemonic.se [IPv6:2607:f740:d:20::25]) (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 B9273897FF for ; Wed, 29 Aug 2018 11:55:53 +0000 (UTC) (envelope-from zeising+freebsd@daemonic.se) Received: from cid.daemonic.se (localhost [IPv6:::1]) by mail.daemonic.se (Postfix) with ESMTP id 420kbW3DPFzDhgL; Wed, 29 Aug 2018 11:55:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=daemonic.se; h= content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:subject:subject:received :received; s=20151023; t=1535543750; bh=8/uo8ATrgzu1kIEUBszdI3nI zvAqvC+HKTzCU2i+kys=; b=SQJisJm7WIr/miVnU7R+jmeJK2a/KkB9dUJvm9LA Kne8MhwOx1iywEk6nVTqOVCOG80/F1pr2Pv+BQ9GArbqPWKsC0/D2GNg2kHHqdg6 sCA8qd1GbANQXXMe6ojZbKmQbhSWgNgN0KQ9gtKzyYf8zH/HPka87yaB7UJUIz4S 9Y0= X-Virus-Scanned: amavisd-new at daemonic.se Received: from mail.daemonic.se ([IPv6:::1]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256) by cid.daemonic.se (mailscanner.daemonic.se [IPv6:::1]) (amavisd-new, port 10587) with ESMTPS id g7Yf7qbuMYlz; Wed, 29 Aug 2018 11:55:50 +0000 (UTC) Received: from garnet.daemonic.se (unknown [IPv6:2001:470:dca9:201:9eda:3eff:fe70:24c0]) by mail.daemonic.se (Postfix) with ESMTPSA id 420kbV4tLqzDhFd; Wed, 29 Aug 2018 11:55:50 +0000 (UTC) Subject: Re: drm2 deprecation in base: problems with gpu-firmware-kmod port To: Alexey Dokuchaev , x11@freebsd.org References: <20180829120935.GA79911@regency.nsu.ru> From: Niclas Zeising Message-ID: Date: Wed, 29 Aug 2018 13:55:50 +0200 User-Agent: Mutt/1.5.21 MIME-Version: 1.0 In-Reply-To: <20180829120935.GA79911@regency.nsu.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Aug 2018 11:55:55 -0000 On 08/29/18 14:09, Alexey Dokuchaev wrote: > Hi there, > > I've tried the kernel after drm2 bits were removed from the base to see > how they would be served by the ports. This is on -CURRENT/i386 with > Radeon HD 4350/4550 (RV710) gfx card. I've installed gpu-firmware-kmod > and drm-legacy-kmod ports, and rebooted into new kernel. I don't use > kld_list="..." and only load a few modules from /boot/loader.conf, like > HDD controller and sound drivers, nothing gfx-related. > > First thing I do after console login is "kldload radeonkms", had always > worked like a charm. Now it's broken: > > ... > info: [drm] radeon: 512M of VRAM memory ready > info: [drm] radeon: 512M of GTT memory ready. > info: [drm] Supports vblank timestamp caching Rev 1 (10.10.2010). > info: [drm] Driver supports precise vblank timestamp query. > info: [drm] MSI enabled 1 message(s) > drmn0: info: radeon: using MSI. > info: [drm] radeon: irq initialized. > info: [drm] GART: num cpu pages 131072, num gpu pages 131072 > info: [drm] probing gen 2 caps for device 8086:2e31 = 1/0 > info: [drm] Loading RV710 Microcode > radeonkmsfw_RV710_pfp: could not load firmware image, error 2 > error: [drm:pid16419:r600_init_microcode] *ERROR* r600_cp: Failed to load firmware "radeonkmsfw_RV710_pfp" > error: [drm:pid16419:rv770_startup] *ERROR* Failed to load firmware! > drmn0: error: disabling GPU acceleration > drmn0: warning: 0x18b7d200 unpin not necessary > drmn0: warning: 0x18b7d200 unpin not necessary > error: [drm:pid16419:rv770_init] *ERROR* radeon: ucode required for R600+. > drmn0: error: Fatal error during GPU init > > I have this file with the previous kernel (when it all was in the base): > > /boot/kernel.june/radeonkmsfw_RV710_pfp.ko (11908 bytes). > > With the drm2/firmware bits served from ports, the name is different: > > $ pkg info -l gpu-firmware-kmod | grep RV710_pfp > /boot/modules/radeon_RV710_pfp_bin.ko > > File size is also different: 10428 bytes. How shall I proceed from this > point to get things back in working order? Thanks, The size difference is probably due to the firmware having been updated. I have to check this though, to be sure. What happens if you rename the new firmware (the one currently in /boot/modules/) to the old name? Does everything load fine then? Regards -- Niclas