From owner-freebsd-x11@freebsd.org Tue Apr 21 09:09:05 2020 Return-Path: Delivered-To: freebsd-x11@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 4EDE52C5665 for ; Tue, 21 Apr 2020 09:09:05 +0000 (UTC) (envelope-from danfe@regency.nsu.ru) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 495yRh3ykfz424Y for ; Tue, 21 Apr 2020 09:09:04 +0000 (UTC) (envelope-from danfe@regency.nsu.ru) Received: by mailman.nyi.freebsd.org (Postfix) id 8804E2C5664; Tue, 21 Apr 2020 09:09:04 +0000 (UTC) Delivered-To: x11@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 87C8E2C5663 for ; Tue, 21 Apr 2020 09:09:04 +0000 (UTC) (envelope-from danfe@regency.nsu.ru) Received: from mxt.nsu.ru (mxt.nsu.ru [84.237.50.40]) (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 495yRf6SQfz424X for ; Tue, 21 Apr 2020 09:09:02 +0000 (UTC) (envelope-from danfe@regency.nsu.ru) Received: from mail.nsu.ru ([84.237.50.42] helo=zimbra.nsu.ru) by mxt.nsu.ru with esmtp (Exim 4.89) (envelope-from ) id 1jQotl-00025g-S1 for x11@freebsd.org; Tue, 21 Apr 2020 16:08:57 +0700 Received: from localhost (localhost [127.0.0.1]) by zimbra.nsu.ru (Postfix) with ESMTP id D10E2AC023D for ; Tue, 21 Apr 2020 16:08:57 +0700 (+07) Received: from zimbra.nsu.ru ([127.0.0.1]) by localhost (zimbra.nsu.ru [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id ga6ElyvNHNim for ; Tue, 21 Apr 2020 16:08:57 +0700 (+07) Received: from localhost (localhost [127.0.0.1]) by zimbra.nsu.ru (Postfix) with ESMTP id 91F29AC0623 for ; Tue, 21 Apr 2020 16:08:57 +0700 (+07) X-Virus-Scanned: amavisd-new at zimbra.nsu.ru Received: from zimbra.nsu.ru ([127.0.0.1]) by localhost (zimbra.nsu.ru [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 2wZ77QRef_PH for ; Tue, 21 Apr 2020 16:08:57 +0700 (+07) Received: from regency.nsu.ru (unknown [84.237.50.47]) by zimbra.nsu.ru (Postfix) with ESMTPS id 6F3BEAC023D for ; Tue, 21 Apr 2020 16:08:57 +0700 (+07) Received: from regency.nsu.ru (localhost [127.0.0.1]) by regency.nsu.ru (8.14.2/8.14.2) with ESMTP id 03L99Fe0090861 for ; Tue, 21 Apr 2020 16:09:15 +0700 (+07) (envelope-from danfe@regency.nsu.ru) Received: (from danfe@localhost) by regency.nsu.ru (8.14.2/8.14.2/Submit) id 03L99Af2090820 for x11@freebsd.org; Tue, 21 Apr 2020 16:09:10 +0700 (+07) (envelope-from danfe) Date: Tue, 21 Apr 2020 16:09:10 +0700 From: Alexey Dokuchaev To: x11@freebsd.org Subject: GPU firmware naming and problems with loading Message-ID: <20200421090909.GB13384@regency.nsu.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-KLMS-Rule-ID: 3 X-KLMS-Message-Action: skipped X-KLMS-AntiSpam-Status: not scanned, whitelist X-KLMS-AntiPhishing: not scanned, whitelist X-KLMS-AntiVirus: Kaspersky Security for Linux Mail Server, version 8.0.3.30, not scanned, whitelist X-Rspamd-Queue-Id: 495yRf6SQfz424X X-Spamd-Bar: / X-Spamd-Result: default: False [0.87 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.04)[-0.040,0]; R_DKIM_ALLOW(-0.20)[nsu.ru:s=email]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mxt.nsu.ru]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[x11@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.82)[-0.820,0]; IP_SCORE(1.93)[ip: (5.62), ipnet: 84.237.48.0/21(2.22), asn: 3335(1.78), country: RU(0.01)]; MV_CASE(0.50)[]; DKIM_TRACE(0.00)[nsu.ru:+]; DMARC_POLICY_ALLOW(-0.50)[nsu.ru,quarantine]; RCVD_IN_DNSWL_NONE(0.00)[40.50.237.84.list.dnswl.org : 127.0.11.0]; FORGED_SENDER(0.30)[danfe@nsu.ru,danfe@regency.nsu.ru]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:3335, ipnet:84.237.48.0/21, country:RU]; FROM_NEQ_ENVFROM(0.00)[danfe@nsu.ru,danfe@regency.nsu.ru]; RCVD_COUNT_SEVEN(0.00)[8]; DWL_DNSWL_NONE(0.00)[nsu.ru.dwl.dnswl.org : 127.0.11.0] 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: Tue, 21 Apr 2020 09:09:05 -0000 Hi there, While trying to understand why anything other than `graphics/drm-legacy-kmod' port locks my laptop hard on "kldload radeonkms", I've noticed the different output during loading of the firmware: With graphics/drm-legacy-kmod: info: [drm] Loading ARUBA Microcode 2x radeon/ARUBA_pfp.bin: could not load firmware image, error 2 drmn0: Successfully loaded firmware image with name (mapped name): radeon/ARUBA_pfp.bin (radeon_ARUBA_pfp_bin) 2x radeon/ARUBA_me.bin: could not load firmware image, error 2 drmn0: Successfully loaded firmware image with name (mapped name): radeon/ARUBA_me.bin (radeon_ARUBA_me_bin) 2x radeon/ARUBA_rlc.bin: could not load firmware image, error 2 drmn0: Successfully loaded firmware image with name (mapped name): radeon/ARUBA_rlc.bin (radeon_ARUBA_rlc_bin) While graphics/drm-fbsd11.2-kmod: info: [drm] Loading ARUBA Microcode 2x radeon/ARUBA_pfp.bin: could not load firmware image, error 2 2x radeon/ARUBA_me.bin: could not load firmware image, error 2 2x radeon/ARUBA_rlc.bin: could not load firmware image, error 2 info: [drm] Internal thermal controller without fan control info: [drm] radeon: dpm initialized 2x radeon/TAHITI_uvd.bin: could not load firmware image, error 2 2x radeon/TAHITI_vce.bin: could not load firmware image, error 2 Looks as new DRM code tries to load `/boot/modules/radeon/ARUBA_pfp.bin.ko' et al., does not find them, and locks up the system, while the legacy code would try to replace the slash with underscore to generate "mapped name", which works (since /boot/modules/radeon_ARUBA_pfp_bin.ko does exist). Can we please decide on the firmware layout, fix this naming/search bug and make it universal across all DRM ports, at the very least? How does this even works for other people? :-/ ./danfe