From unknown Sun Jun 22 11:48:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#66651: How to pass i915.enable_guc=0 in config.scm to prevent a 'wedged' GPU? Resent-From: Hugo Buddelmeijer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 20 Oct 2023 17:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 66651 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 66651@debbugs.gnu.org X-Debbugs-Original-To: bug-guix@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169782382429410 (code B ref -1); Fri, 20 Oct 2023 17:44:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Oct 2023 17:43:44 +0000 Received: from localhost ([127.0.0.1]:41404 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qttXD-0007eI-GG for submit@debbugs.gnu.org; Fri, 20 Oct 2023 13:43:43 -0400 Received: from lists.gnu.org ([2001:470:142::17]:45006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qttXB-0007e4-IX for submit@debbugs.gnu.org; Fri, 20 Oct 2023 13:43:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qttWd-0003VM-Gn for bug-guix@gnu.org; Fri, 20 Oct 2023 13:43:08 -0400 Received: from mail-yb1-f173.google.com ([209.85.219.173]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qttWa-00032m-Uv for bug-guix@gnu.org; Fri, 20 Oct 2023 13:43:07 -0400 Received: by mail-yb1-f173.google.com with SMTP id 3f1490d57ef6-d9ac9573274so1118056276.0 for ; Fri, 20 Oct 2023 10:43:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697823781; x=1698428581; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=cClVJNcrsW40zKa5VaHduugbGsDI86aGkIXyg1NTrJI=; b=gTJKITgFQJZq2Y1LF9BMmKZO1jOXTl32YDG+MRW+McAEbqsoHoxFbc05IdWKTa+gGl kmasrho612b5adOjAY9T2ENFg0/b2SYhwP1QESo96NZit5cqzxSraEnVFthmZmEOd0I6 11q7Vc3QCMkIntaHiuXbnIKUgdCSFXsp/mE7ym8GiGBYkKpAmC6rBkTxzIhtC2vl3lCR zf3nB7SeFhRtYEfGPyEnEcvji5EGZBn7gX3souzARIOtxeRwZvkrKbY/jSsEAGTyTcT5 QigNOJhifA7KJMk+js323fvO/78Z/rBKlF0DgorCdQHi+WO8ZPB21hyY5fvlyYeH0i/v OOlQ== X-Gm-Message-State: AOJu0YweJ6gziAQybm+jeL+kcxFrufvB44w+Pw1PFfZt+irC2KaOSKep UVP0q8D77lRd7QsA0AI6NF1l1uUwrrZJTpVS1f66Q1iftQQ= X-Google-Smtp-Source: AGHT+IEFJxEtMuYNmgVm43su++UQBa6xhC33D/WZMwjiDVxSUhdD7vu2yab+ochKIu8GA1Z2+EkBa7avLaU/Q/UcO0w= X-Received: by 2002:a25:d20e:0:b0:d9a:c4cf:a066 with SMTP id j14-20020a25d20e000000b00d9ac4cfa066mr2317334ybg.34.1697823780714; Fri, 20 Oct 2023 10:43:00 -0700 (PDT) MIME-Version: 1.0 From: Hugo Buddelmeijer Date: Fri, 20 Oct 2023 17:42:49 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=209.85.219.173; envelope-from=blackshift@gmail.com; helo=mail-yb1-f173.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The i915 driver will try to load the GuC firmware, at least for Iris Xe chips. Loading the GuC firmware fails because it is non-free and deblobbed. As a result, some software, like sway, will not work [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (blackshift[at]gmail.com) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) The i915 driver will try to load the GuC firmware, at least for Iris Xe chips. Loading the GuC firmware fails because it is non-free and deblobbed. As a result, some software, like sway, will not work. It is possible to manually pass the i915.enable_guc=0 kernel parameter at boot from grub. Then everything works as intended. However, it seems not possible to set this parameter from config.scm. So at the moment my system is not fully declarative, as I have to type in a kernel parameter at boot; does anyone perhaps have advice on how can this be done better? Details below. Thanks, Hugo guix version: guix 27c2ebd repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 27c2ebd7cebba22b7acd341d7ce402f6beb02733 ### Attempt 1, out-of-the box configuration ### dmesg output: [ 10.028684] i915 0000:00:02.0: [drm] *ERROR* GT0: GuC firmware /*(DEBLOBBED)*/: fetch failed -ENOENT [ 10.028692] i915 0000:00:02.0: [drm] GT0: GuC firmware(s) can be downloaded from /*(DEBLOBBED)*/ [ 10.029541] i915 0000:00:02.0: [drm] GT0: GuC firmware /*(DEBLOBBED)*/ version 0.0.0 [ 10.029613] i915 0000:00:02.0: [drm] *ERROR* GT0: GuC initialization failed -ENOENT [ 10.029615] i915 0000:00:02.0: [drm] *ERROR* GT0: Enabling uc failed (-5) [ 10.029617] i915 0000:00:02.0: [drm] *ERROR* GT0: Failed to initialize GPU, declaring it wedged! [ 10.029973] i915 0000:00:02.0: [drm:add_taint_for_CI [i915]] CI tainted:0x9 by intel_gt_set_wedged_on_init+0x38/0x50 [i915] sway-greeter.log: error: Kernel is too old (4.16+ required) or unusable for Iris. Check your dmesg logs for loading failures. libEGL warning: egl: failed to create dri2 screen 00:00:00.185 [ERROR] [wlr] [EGL] command: eglInitialize, error: EGL_NOT_INITIALIZED (0x3001), message: "DRI2: failed to create screen" ### Attempt 2: manually disabling guc ### dmesg when passing i915.enable_guc=0 at boot (roughly instead of the errors from attempt 1): [ 9.233275] Setting dangerous option enable_guc - tainting kernel sway works ### Attempt 3: through config.scm ### attempt to set the kernel parameter in config.scm: (modify-services %base-services (sysctl-service-type config => (sysctl-configuration (settings (append '(("i915.enable_guc" . "0")) %default-sysctl-settings))))) dmesg output (in addition to the errors from attempt 1): [ 7.759922] sysctl: cannot stat /proc/sys/i915/enable_guc: No such file or directory sway does not work From unknown Sun Jun 22 11:48:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#66651: How to pass i915.enable_guc=0 in config.scm to prevent a 'wedged' GPU? Resent-From: Csepp Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 20 Oct 2023 18:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66651 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Hugo Buddelmeijer Cc: 66651@debbugs.gnu.org X-Debbugs-Original-Cc: bug-guix@gnu.org, 66651@debbugs.gnu.org Received: via spool by 66651-submit@debbugs.gnu.org id=B66651.16978273184209 (code B ref 66651); Fri, 20 Oct 2023 18:42:02 +0000 Received: (at 66651) by debbugs.gnu.org; 20 Oct 2023 18:41:58 +0000 Received: from localhost ([127.0.0.1]:41433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtuRa-00015p-GW for submit@debbugs.gnu.org; Fri, 20 Oct 2023 14:41:58 -0400 Received: from mx0.riseup.net ([198.252.153.6]:47626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtuRY-00015Y-7w for 66651@debbugs.gnu.org; Fri, 20 Oct 2023 14:41:58 -0400 Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx0.riseup.net (Postfix) with ESMTPS id 4SBthg2BWmz9s64; Fri, 20 Oct 2023 18:41:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1697827283; bh=GQ+xjCCghp261u3xuJxDpxN6OL75l2tBa2DAjJrxuQw=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=kfQxFXhOZFHCT0Nh6RxF234yFRg8J7NoIWk/2W+0i5j+lEZZX2ywYm1RAJ8ikiiUw zWWyFms3rfx5884ntY6tGth66mmJFDoHkIngMbwDM3hJ4OHBG6LafX/YgsxBT4dFlQ jrXEOIOtVaZj0h+ZTbWYukzduGVkUBDD0wnAzKgU= X-Riseup-User-ID: D07F2DBC2EAE7660508B9B4BF5047DC7608068189A35CC1312895156B9E81576 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4SBthf4PbzzFqgg; Fri, 20 Oct 2023 18:41:22 +0000 (UTC) References: From: Csepp Date: Fri, 20 Oct 2023 20:38:30 +0200 In-reply-to: Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hugo Buddelmeijer writes: > The i915 driver will try to load the GuC firmware, at least for Iris > Xe chips. Loading the GuC firmware fails because it is non-free and > deblobbed. As a result, some software, like sway, will not work. > > It is possible to manually pass the i915.enable_guc=0 kernel parameter > at boot from grub. Then everything works as intended. However, it > seems not possible to set this parameter from config.scm. > > So at the moment my system is not fully declarative, as I have to type > in a kernel parameter at boot; does anyone perhaps have advice on how > can this be done better? > ... You can use the kernel-arguments option in the operating-system config. Untested: (kernel-arguments (cons "i915.enable_guc=0" %default-kernel-arguments)) This should work, in theory. I suspect that the sysctl thing doesn't work because it is done too late in the boot process. From unknown Sun Jun 22 11:48:17 2025 X-Loop: help-debbugs@gnu.org Subject: bug#66651: References: In-Reply-To: Resent-From: Hugo Buddelmeijer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 20 Oct 2023 19:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66651 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 66651@debbugs.gnu.org Received: via spool by 66651-submit@debbugs.gnu.org id=B66651.169783081411604 (code B ref 66651); Fri, 20 Oct 2023 19:41:02 +0000 Received: (at 66651) by debbugs.gnu.org; 20 Oct 2023 19:40:14 +0000 Received: from localhost ([127.0.0.1]:41498 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtvLx-000316-Pp for submit@debbugs.gnu.org; Fri, 20 Oct 2023 15:40:14 -0400 Received: from mail-yb1-f179.google.com ([209.85.219.179]:47274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtvLv-00030q-Cd for 66651@debbugs.gnu.org; Fri, 20 Oct 2023 15:40:12 -0400 Received: by mail-yb1-f179.google.com with SMTP id 3f1490d57ef6-d865854ef96so1205988276.2 for <66651@debbugs.gnu.org>; Fri, 20 Oct 2023 12:39:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697830778; x=1698435578; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=wjmpiuxrOHa06feaaGCWSBOIO7GmO2NtBN3ztd84qzY=; b=pk1WBRMk99AqQH16+qcvPpM34Dw+kfq0gKx7jxLwFHpC83WtS70YoSRtU04vo810qn vEwKVkF69ifgzWmM8kn8o3GP9CUlsd1e4ZREMi0IdxvXJnAMN65grae9T7BLpUKMQMv4 V3SfWJFPKkQWG6dY3RpJi3B3q1B5O8iR+BSn4ijtRlI6xK8mCo4LFXtuSF03FtztBrsR lzd/NnBN/WxFDPNg+rvNA7QY7X3Xel2QBmPyybZ8dUo4BBvfb/l1dhU8fz2SDklNmamN /X3kD0ZRbys8xvEJYjrD752dBZ6u87Q1BC5zuIPppFbfoTKorx1bu7z0xzIJJBwOyIyq BqOQ== X-Gm-Message-State: AOJu0Yzemak1r/Nhea7TmGwudnwgxvy7LA3xGaplL2w7kMkJ8I5F5Yen 0AH2gDk3/3QLWsmZWTHbjnzHdnBipKcB4yOHI6TMe9+9ztE= X-Google-Smtp-Source: AGHT+IEJAqTuWBxSMGCpzaP8k8Jfa5TAFgveDhNuafWgvbzZYuMeuW4T1n70p/tFhix/60imA4ibJpDDARtrDpyr+Bk= X-Received: by 2002:a25:ef0c:0:b0:d9a:60b6:1b05 with SMTP id g12-20020a25ef0c000000b00d9a60b61b05mr2808403ybd.63.1697830778040; Fri, 20 Oct 2023 12:39:38 -0700 (PDT) MIME-Version: 1.0 From: Hugo Buddelmeijer Date: Fri, 20 Oct 2023 19:39:27 +0000 Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Csepp riseup.net> wrote: > You can use the kernel-arguments option in the operating-system config. > Untested: > (kernel-arguments (cons "i915.enable_guc=0" %default-kernel-arguments)) > This should work, in theory. Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (blackshift[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.219.179 listed in list.dnswl.org] -0.5 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.219.179 listed in wl.mailspike.net] 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 2.0 BLANK_SUBJECT Subject is present but empty X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) Csepp riseup.net> wrote: > You can use the kernel-arguments option in the operating-system config. > Untested: > (kernel-arguments (cons "i915.enable_guc=0" %default-kernel-arguments)) > This should work, in theory. Thanks, using kernel-arguments indeed works! The idea to use i915.enable_guc came from the arch wiki [1], which states > GuC functionality is controlled by the i915.enable_guc kernel parameter. So I searched the Guix manual for "kernel parameter", and found the sysctl section. > I suspect that the sysctl thing doesn't work because it is done too late > in the boot process. That makes sense now I understand the difference between kernel arguments and parameters in Guix. From the sysctl man page: > sysctl is used to modify kernel parameters at runtime. And that is indeed a bit late for deciding whether to load firmware. About the default value: naively I would think that the default of i915.enable_guc should be changed to 0 in the libre kernel, at least for those chips that do not have free firmware. At least now the term 'wedged' is part of the issue tracker, so other affected people will hopefully find this. This issue can be closed as far as I'm concerned, but I don't know how to do that. Let's try this: /close Thanks again, Hugo [1] https://wiki.archlinux.org/title/Intel_graphics From unknown Sun Jun 22 11:48:17 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Hugo Buddelmeijer Subject: bug#66651: closed (Re: bug#66651:) Message-ID: References: X-Gnu-PR-Message: they-closed 66651 X-Gnu-PR-Package: guix Reply-To: 66651@debbugs.gnu.org Date: Fri, 20 Oct 2023 20:58:01 +0000 Content-Type: multipart/mixed; boundary="----------=_1697835481-22554-1" This is a multi-part message in MIME format... ------------=_1697835481-22554-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #66651: How to pass i915.enable_guc=3D0 in config.scm to prevent a 'wedged'= GPU? which was filed against the guix package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 66651@debbugs.gnu.org. --=20 66651: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D66651 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1697835481-22554-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 66651-close) by debbugs.gnu.org; 20 Oct 2023 20:57:10 +0000 Received: from localhost ([127.0.0.1]:41739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtwYP-0005qa-Qp for submit@debbugs.gnu.org; Fri, 20 Oct 2023 16:57:10 -0400 Received: from tobias.gr ([80.241.217.52]:34462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtwYM-0005qL-Q5 for 66651-close@debbugs.gnu.org; Fri, 20 Oct 2023 16:57:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=kM+daUgEbkStE 3Yml90QtHzGYZF8p9sES6y1TMdMtCs=; h=references:in-reply-to:subject:cc: to:from:date; d=tobias.gr; b=W+meWPWpAkRE4Cc8s1PR1gUNspg3+iA0rs0ZKC1RH ocQMmgfoYCglfEd8AgVz2uF32828GTrBcX0DN2WdQYN42n4+RkwFzwTJFhF6K+uXQafZic NLTI7AvCLGTcyyT5RQ73+BkhhmI7+NHRTu6LBYJ21Bjczir8XUeYwEz7ysG4UcwyiZpgVb iZYQJiVMVyCTUdUmOWmAbiT2+Sk7BNllG+eoh3zJDc0NIM+rH2Rho1V6NjZqEcPM76XQfu Oh2rCXEIzTXxnK23g2DWkBniEaKw0W6/lkDFqENJfIOr2CjlaZEQxXJCFxE82pQIiB5w96 q4NQuS9GLU9FucG0XNXrw== Received: by submission.tobias.gr (OpenSMTPD) with ESMTP id d1ec7771; Fri, 20 Oct 2023 20:56:34 +0000 (UTC) MIME-Version: 1.0 Date: Fri, 20 Oct 2023 22:56:33 +0200 From: Tobias Geerinckx-Rice To: Hugo Buddelmeijer Subject: Re: bug#66651: In-Reply-To: References: Message-ID: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 66651-close Cc: 66651-close@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 2023-10-20 21:39, Hugo Buddelmeijer wrote: > This issue can be closed as far as I'm concerned, but I don't know how > to do that. Let's try this: > > /close Add ‘-done’ or ‘-close’ to the bug address, as I've done here. Kind regards, T G-R Sent from a Web browser. Excuse or enjoy my brevity. ------------=_1697835481-22554-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 20 Oct 2023 17:43:44 +0000 Received: from localhost ([127.0.0.1]:41404 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qttXD-0007eI-GG for submit@debbugs.gnu.org; Fri, 20 Oct 2023 13:43:43 -0400 Received: from lists.gnu.org ([2001:470:142::17]:45006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qttXB-0007e4-IX for submit@debbugs.gnu.org; Fri, 20 Oct 2023 13:43:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qttWd-0003VM-Gn for bug-guix@gnu.org; Fri, 20 Oct 2023 13:43:08 -0400 Received: from mail-yb1-f173.google.com ([209.85.219.173]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qttWa-00032m-Uv for bug-guix@gnu.org; Fri, 20 Oct 2023 13:43:07 -0400 Received: by mail-yb1-f173.google.com with SMTP id 3f1490d57ef6-d9ac9573274so1118056276.0 for ; Fri, 20 Oct 2023 10:43:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697823781; x=1698428581; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=cClVJNcrsW40zKa5VaHduugbGsDI86aGkIXyg1NTrJI=; b=gTJKITgFQJZq2Y1LF9BMmKZO1jOXTl32YDG+MRW+McAEbqsoHoxFbc05IdWKTa+gGl kmasrho612b5adOjAY9T2ENFg0/b2SYhwP1QESo96NZit5cqzxSraEnVFthmZmEOd0I6 11q7Vc3QCMkIntaHiuXbnIKUgdCSFXsp/mE7ym8GiGBYkKpAmC6rBkTxzIhtC2vl3lCR zf3nB7SeFhRtYEfGPyEnEcvji5EGZBn7gX3souzARIOtxeRwZvkrKbY/jSsEAGTyTcT5 QigNOJhifA7KJMk+js323fvO/78Z/rBKlF0DgorCdQHi+WO8ZPB21hyY5fvlyYeH0i/v OOlQ== X-Gm-Message-State: AOJu0YweJ6gziAQybm+jeL+kcxFrufvB44w+Pw1PFfZt+irC2KaOSKep UVP0q8D77lRd7QsA0AI6NF1l1uUwrrZJTpVS1f66Q1iftQQ= X-Google-Smtp-Source: AGHT+IEFJxEtMuYNmgVm43su++UQBa6xhC33D/WZMwjiDVxSUhdD7vu2yab+ochKIu8GA1Z2+EkBa7avLaU/Q/UcO0w= X-Received: by 2002:a25:d20e:0:b0:d9a:c4cf:a066 with SMTP id j14-20020a25d20e000000b00d9ac4cfa066mr2317334ybg.34.1697823780714; Fri, 20 Oct 2023 10:43:00 -0700 (PDT) MIME-Version: 1.0 From: Hugo Buddelmeijer Date: Fri, 20 Oct 2023 17:42:49 +0000 Message-ID: Subject: How to pass i915.enable_guc=0 in config.scm to prevent a 'wedged' GPU? To: bug-guix@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=209.85.219.173; envelope-from=blackshift@gmail.com; helo=mail-yb1-f173.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: The i915 driver will try to load the GuC firmware, at least for Iris Xe chips. Loading the GuC firmware fails because it is non-free and deblobbed. As a result, some software, like sway, will not work [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (blackshift[at]gmail.com) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.5 (/) The i915 driver will try to load the GuC firmware, at least for Iris Xe chips. Loading the GuC firmware fails because it is non-free and deblobbed. As a result, some software, like sway, will not work. It is possible to manually pass the i915.enable_guc=0 kernel parameter at boot from grub. Then everything works as intended. However, it seems not possible to set this parameter from config.scm. So at the moment my system is not fully declarative, as I have to type in a kernel parameter at boot; does anyone perhaps have advice on how can this be done better? Details below. Thanks, Hugo guix version: guix 27c2ebd repository URL: https://git.savannah.gnu.org/git/guix.git branch: master commit: 27c2ebd7cebba22b7acd341d7ce402f6beb02733 ### Attempt 1, out-of-the box configuration ### dmesg output: [ 10.028684] i915 0000:00:02.0: [drm] *ERROR* GT0: GuC firmware /*(DEBLOBBED)*/: fetch failed -ENOENT [ 10.028692] i915 0000:00:02.0: [drm] GT0: GuC firmware(s) can be downloaded from /*(DEBLOBBED)*/ [ 10.029541] i915 0000:00:02.0: [drm] GT0: GuC firmware /*(DEBLOBBED)*/ version 0.0.0 [ 10.029613] i915 0000:00:02.0: [drm] *ERROR* GT0: GuC initialization failed -ENOENT [ 10.029615] i915 0000:00:02.0: [drm] *ERROR* GT0: Enabling uc failed (-5) [ 10.029617] i915 0000:00:02.0: [drm] *ERROR* GT0: Failed to initialize GPU, declaring it wedged! [ 10.029973] i915 0000:00:02.0: [drm:add_taint_for_CI [i915]] CI tainted:0x9 by intel_gt_set_wedged_on_init+0x38/0x50 [i915] sway-greeter.log: error: Kernel is too old (4.16+ required) or unusable for Iris. Check your dmesg logs for loading failures. libEGL warning: egl: failed to create dri2 screen 00:00:00.185 [ERROR] [wlr] [EGL] command: eglInitialize, error: EGL_NOT_INITIALIZED (0x3001), message: "DRI2: failed to create screen" ### Attempt 2: manually disabling guc ### dmesg when passing i915.enable_guc=0 at boot (roughly instead of the errors from attempt 1): [ 9.233275] Setting dangerous option enable_guc - tainting kernel sway works ### Attempt 3: through config.scm ### attempt to set the kernel parameter in config.scm: (modify-services %base-services (sysctl-service-type config => (sysctl-configuration (settings (append '(("i915.enable_guc" . "0")) %default-sysctl-settings))))) dmesg output (in addition to the errors from attempt 1): [ 7.759922] sysctl: cannot stat /proc/sys/i915/enable_guc: No such file or directory sway does not work ------------=_1697835481-22554-1-- From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 20 18:36:35 2023 Received: (at control) by debbugs.gnu.org; 20 Oct 2023 22:36:35 +0000 Received: from localhost ([127.0.0.1]:41828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qty6d-0000at-3n for submit@debbugs.gnu.org; Fri, 20 Oct 2023 18:36:35 -0400 Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]:42487) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qty6Z-0000aZ-AH; Fri, 20 Oct 2023 18:36:33 -0400 Received: by mail-qk1-x72e.google.com with SMTP id af79cd13be357-77891f362cfso112887885a.1; Fri, 20 Oct 2023 15:36:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697841358; x=1698446158; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=4lQi3DusqYs5okUuqMAZJ20yMNTqr5k3z2Uyo1gXCOs=; b=eA2/tyzSaSIzAejtSikyaKpTUIh9BqkmFpccMNElGr4NcRpNdRf21qT6cJlyzY+7gT J3+oyncSkVyFydHjbCqzbr/mHKmPe/ekvJoU9w4RG3X04OHk4EyH5dscNScqcof3P1cz urVXQgqd8sDJYzsPAVzCSWWhEk1KwB0s0C2ujCydFRHISowvxyXW1vZY9Tvk5m2czm2m 1zMh16O7AD74nrD1NktRYC109y5H6VwYb8GqVxsxnyS8bVRQyb16Dyi94eS7rikVBcPd HqSAhQjXPM4syP2044UaEUakW4PtxCw4iZ4hDqsa4nPbKF8dRkeEU71uv7bcX1LdKHEq NQkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697841358; x=1698446158; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4lQi3DusqYs5okUuqMAZJ20yMNTqr5k3z2Uyo1gXCOs=; b=StAhWXosLs8tN343OlQl8wfQPtWChG5cZwFBWFYlMzHw2A4SDQKdtMGvwTuTyYReDS YQDwx8xX1kfXl+oFwknSVXPS0Aq3gU35KhcANxZaPk+aD0KUekJVyC2QQjcsYvaz12r8 XM8ZyWR4sd6Kv1UOWrdoo6BkVhOcwNzKJ5oNY4VgXakY98Nh5jFiJ9yBXS7cAjwC+MWQ TjurpiahU0F70aCRJELKICLb52wsFbbQ+fEr48ZEHsUpvvctV5qQq/tb5+6ldFtFwBSp lK1X9IW28Y5qQq2wLkyRrvc5QolImGozQU9ticyJsnEjcqaN0Wah8mU9Yea4fpbhPR0u 3V0g== X-Gm-Message-State: AOJu0YxNnVQvTEt8X/2MDxIw57ZiHmdvPRoNXpIUsjU3CPWwhcXzVD0T QSTcttyCwtziRKPpkpmwepTkaSQ7wpK+GA== X-Google-Smtp-Source: AGHT+IH+kY/tD+xYJu0pScaaEpR5V/aecJfxs/gKOIvyPkZqDglr92eIaaMN1XvCSeDvVSjqYkVWlQ== X-Received: by 2002:a05:620a:d93:b0:778:8cdb:88ff with SMTP id q19-20020a05620a0d9300b007788cdb88ffmr8692740qkl.31.1697841357830; Fri, 20 Oct 2023 15:35:57 -0700 (PDT) Received: from hurd (dsl-156-111.b2b2c.ca. [66.158.156.111]) by smtp.gmail.com with ESMTPSA id bm32-20020a05620a19a000b007758b25ac3bsm940632qkb.82.2023.10.20.15.35.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 15:35:57 -0700 (PDT) From: Maxim Cournoyer To: Hugo Buddelmeijer Subject: Re: bug#66651: In-Reply-To: (Hugo Buddelmeijer's message of "Fri, 20 Oct 2023 19:39:27 +0000") References: Date: Fri, 20 Oct 2023 18:35:56 -0400 Message-ID: <87zg0cgbw3.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control Cc: 66651-done@debbugs.gnu.org, GNU Debbugs X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 66651 + notabug thanks Hello! Hugo Buddelmeijer writes: [...] > This issue can be closed as far as I'm concerned, but I don't know how > to do that. Let's try this: > > /close You can reply to the bug via the special '66651-done@debbugs.gnu.org' email address. I'm also CC'ing the Debbugs control server so that it processes the directives found at the beginning of this mail (add a 'notabug' tag). -- Thanks, Maxim