Message ID | 20220913024248.2183-1-antero@mailbox.org |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 341FD27BBEC; Tue, 13 Sep 2022 03:44:16 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C838A27BBEA for <patchwork@mira.cbaines.net>; Tue, 13 Sep 2022 03:44:15 +0100 (BST) Received: from localhost ([::1]:50844 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org>) id 1oXvuI-0000s0-Vy for patchwork@mira.cbaines.net; Mon, 12 Sep 2022 22:44:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1oXvu6-0000rm-W3 for guix-patches@gnu.org; Mon, 12 Sep 2022 22:44:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59749) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1oXvu6-0001uG-O4 for guix-patches@gnu.org; Mon, 12 Sep 2022 22:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1oXvu6-0003O7-En for guix-patches@gnu.org; Mon, 12 Sep 2022 22:44:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57760] [PATCH] system: install: Do not load amdgpu in the installer image. Resent-From: Antero Mejr <antero@mailbox.org> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 13 Sep 2022 02:44:02 +0000 Resent-Message-ID: <handler.57760.B.166303699912961@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57760 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57760@debbugs.gnu.org Cc: Antero Mejr <antero@mailbox.org> X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166303699912961 (code B ref -1); Tue, 13 Sep 2022 02:44:02 +0000 Received: (at submit) by debbugs.gnu.org; 13 Sep 2022 02:43:19 +0000 Received: from localhost ([127.0.0.1]:48448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1oXvtP-0003Mz-5P for submit@debbugs.gnu.org; Mon, 12 Sep 2022 22:43:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:53484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <antero@mailbox.org>) id 1oXvtK-0003Mn-L4 for submit@debbugs.gnu.org; Mon, 12 Sep 2022 22:43:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54168) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <antero@mailbox.org>) id 1oXvtK-0000pe-G5 for guix-patches@gnu.org; Mon, 12 Sep 2022 22:43:14 -0400 Received: from mout-p-102.mailbox.org ([80.241.56.152]:44096) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from <antero@mailbox.org>) id 1oXvtH-0001rq-V8 for guix-patches@gnu.org; Mon, 12 Sep 2022 22:43:13 -0400 Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4MRSSW2ph9z9sW5 for <guix-patches@gnu.org>; Tue, 13 Sep 2022 04:43:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1663036987; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=0ACVTPztys0JFUg5X/6k+bZ1NUA0zNoQhhI2vw6LlU4=; b=OaJWHZT3L3ofLCUdxr5lG4u+zohr3Yp/nt334claTB8AzNg+A7FPNzzguX998UDnenImzx R47bnwyxcBW3mnJe8XvGqt8Ov55Ad1+12/KfW1UG6MFVlO9zJALY6WZpjpTyV5d7yQxpnK nHa7vjwa3xy+x4oCOW2KTv6dSChmMwkIDmjwxA29+D50EVJzhwyoewbOgs59sPj0+FVMI+ YQofhFZjwvluIuOiMVrP3GSDxVSVNrzn6seiXfpf23nebWMGv5O6qxAJLoRGZdYYiaYBhF 4XGbVAuKVxjaFUkC+lETrA/cG0vJ8GLcE4VHa7qTfRWE+d6JZCKMLdqmD/Xc0Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mailbox.org; s=mail20150812; t=1663036985; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=0ACVTPztys0JFUg5X/6k+bZ1NUA0zNoQhhI2vw6LlU4=; b=row24U3UzlJYjD3D7nCcAm+Yke2lVm00sSPYmIvMlab1D1eQ+TAW2PQFcBW0fBQadVccmE uruRN/+xnKt5c+G7fQQZ3Jln3WOLG4rCZTr81AIxDjqV74Bgy0DsGu6oQzO9D9h2XqIumX Kuy6XrSqVd7dlOYZPz0xSKVVYe58XGa/XNLdgucBvcJ7IHo3lS5mIfli0WrWnUZKGYeupU rMETa8xDtlLf4qSDdoj5jINYwv4+nVhRcHCi7L6+PE80/9LAKl8Iz0PIMUuAbLZ9U6Y1wP fnPT815IveTcfXSFuC8YazqVN6CYMwH64D6vChRZQ+CKRj3vviVfo48Pz2ecBw== Date: Tue, 13 Sep 2022 02:42:48 +0000 Message-Id: <20220913024248.2183-1-antero@mailbox.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-MBO-RS-META: 76qdtappxjpiyufw4igykpmwdo3z38ud X-MBO-RS-ID: 08cba89df19b4d129b4 X-Rspamd-Queue-Id: 4MRSSW2ph9z9sW5 Received-SPF: pass client-ip=80.241.56.152; envelope-from=antero@mailbox.org; helo=mout-p-102.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> Reply-to: Antero Mejr <antero@mailbox.org> X-ACL-Warn: , Antero Mejr via Guix-patches <guix-patches@gnu.org> From: Antero Mejr via Guix-patches via <guix-patches@gnu.org> X-getmail-retrieved-from-mailbox: Patches |
Series |
[bug#57760] system: install: Do not load amdgpu in the installer image.
|
|
Commit Message
Antero Mejr
Sept. 13, 2022, 2:42 a.m. UTC
* gnu/system/install.scm (installation-os): Add amdgpu to modprobe.blacklist. --- Booting the installer OS will fail when it fails to load blobs for amdgpu. This will allow the installer OS to boot on systems with affected hardware. gnu/system/install.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hello, > Booting the installer OS will fail when it fails to load blobs for amdgpu. > This will allow the installer OS to boot on systems with affected hardware. Seems reasonable to me. Florian, Josselin, any take on that? Thanks, Mathieu
Hi Mathieu and Antero,
First of all, thanks for your investigation and ensuing patch!
Mathieu Othacehe <othacehe@gnu.org> writes:
> Seems reasonable to me. Florian, Josselin, any take on that?
Seems good to me. I'm still pretty uneducated about DRM, the
framebuffers and whatnot though. IIUC, we require either DRI or FB for
kmscon to work (which is better than just FB for the kernel's default fb
console).
Also, are there other DRM drivers that we could blacklist because they
may try to load non-free blobs? Do some specific systems *require*
non-free blobs in order to display anything?
Best,
Hello Josselin, > Seems good to me. I'm still pretty uneducated about DRM, the > framebuffers and whatnot though. IIUC, we require either DRI or FB for > kmscon to work (which is better than just FB for the kernel's default fb > console). Same here. > Also, are there other DRM drivers that we could blacklist because they > may try to load non-free blobs? Do some specific systems *require* > non-free blobs in order to display anything? According to this command: --8<---------------cut here---------------start------------->8--- mathieu@meije ~/linux/drivers/gpu/drm$ grep FW_LOADER Kconfig -B 5 source "drivers/gpu/drm/arm/Kconfig" config DRM_RADEON tristate "ATI Radeon" depends on DRM && PCI && MMU select FW_LOADER -- source "drivers/gpu/drm/radeon/Kconfig" config DRM_AMDGPU tristate "AMD GPU" depends on DRM && PCI && MMU select FW_LOADER -- graphics card. If M is selected, the module will be called tdfx. config DRM_R128 tristate "ATI Rage 128" depends on DRM && PCI select FW_LOADER -- for this driver to work. config DRM_MGA tristate "Matrox g200/g400" depends on DRM && PCI select FW_LOADER --8<---------------cut here---------------end--------------->8--- the radeon, amdgpu, r128 and mga DRM drivers are probably relying on firmware loading. So we should maybe extend this patch and add the latter two drivers, even though they are supporting really old hardware. Thanks, Mathieu
Hi all, So the issue was that the installer’s display gets stuck at boot when not blacklisting radeon. This patch means the same apparently goes for probably goes for amdgpu? If there are amdgpu systems that cannot boot the installer otherwise, this is enough reason for this patch and this patch is a good idea. What Denis 'GNUtoo' Carikli wrote at <https://issues.guix.gnu.org/36786#9> indicates that non-3d graphics works for some radeon/amdgpu GPUs, because the code that prevents booting could be removed from linux-libre for these GPUs. If so (and it didn’t work for one GPU of mine even though it is listed as freed at libreplanet), these amdgpu ones would get a lower screen resolution from uvesafb if this patch were added. But it is worth the trade-off. However, Mathieu Othacehe <othacehe@gnu.org> writes: > the radeon, amdgpu, r128 and mga DRM drivers are probably relying on > firmware loading. So we should maybe extend this patch and add the > latter two drivers, even though they are supporting really old > hardware. Back then when we blacklisted radeon, we chose to wait for a report of amdgpu not working instead of adding amdgpu to the blacklist right away. Maybe booting is not broken there? Regards, Florian
Hey Florian, Thanks for sharing your thoughts. > What Denis 'GNUtoo' Carikli wrote at > <https://issues.guix.gnu.org/36786#9> indicates that non-3d graphics > works for some radeon/amdgpu GPUs, because the code that prevents > booting could be removed from linux-libre for these GPUs. If so (and it > didn’t work for one GPU of mine even though it is listed as freed at > libreplanet), these amdgpu ones would get a lower screen resolution from > uvesafb if this patch were added. But it is worth the trade-off. Agreed. > Back then when we blacklisted radeon, we chose to wait for a report of > amdgpu not working instead of adding amdgpu to the blacklist right away. > Maybe booting is not broken there? Yeah, plus the corresponding hardware is way less common. So let's proceed with this patch as-is. Pushed as d0376f6718b57be90b2f7697c90e4ecbe0090e0f. Thanks, Mathieu
diff --git a/gnu/system/install.scm b/gnu/system/install.scm index a7b7c246bf..003c49a3e7 100644 --- a/gnu/system/install.scm +++ b/gnu/system/install.scm @@ -476,7 +476,7 @@ (define installation-os ;; non-functional: ;; <https://lists.gnu.org/archive/html/guix-devel/2019-03/msg00441.html>. ;; Thus, blacklist it. - (kernel-arguments '("quiet" "modprobe.blacklist=radeon")) + (kernel-arguments '("quiet" "modprobe.blacklist=radeon,amdgpu")) (file-systems ;; Note: the disk image build code overrides this root file system with