From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id aOhJC1K8MmUfWAEA9RJhRA:P1 (envelope-from ) for ; Fri, 20 Oct 2023 19:43:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id aOhJC1K8MmUfWAEA9RJhRA (envelope-from ) for ; Fri, 20 Oct 2023 19:43:46 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BF1696AB61 for ; Fri, 20 Oct 2023 19:43:45 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697823826; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:list-id:list-help:list-unsubscribe:list-subscribe: list-post; bh=cClVJNcrsW40zKa5VaHduugbGsDI86aGkIXyg1NTrJI=; b=rNPHFvYK/r5sW3GEemWEE/81mHYUcbrB88EEDHMDxelpFQBuBqLNJwLJJ/zS+x8R3xKu3x L9KJmAVf3xqQRZqm407bFY4idvURVmJQh4v6QCFgZqbi0mB13m75Fa5OKx55f47In+46sq 5daiFL5Ekld9BxCjZppGDIqC6pUzJPDmuuFw425OiyR0p2CB/pz81PQ54HbKCFQvLn08BP HRg56QEd5it7qt3rOTx0NFgeKkO32zHNvqtrEQFCDbWkDdDQ4tomIvSum5sTnW9xJNa2zL 7EpfmWNA/idzA3SJSS/LWnSsstV/Eq6o0ebhD33X+GU8Pd7PmfuLOfVHM1nsKg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697823826; a=rsa-sha256; cv=none; b=CzQLWaam3ix2MAVnJ06v74txz7AspfbMxJQY1cRU7PdgC4WzfFAgC8GCDsPeZONEbw1wDb +chcERTGiNTNZnSB8nr8OQe4JYK35vgcPXJvQ4XxBYIuUOYnD8iEOLuhZ1DxWcj4wUIkv8 RBa27kZfyA5eLfZF+IAtU+r9yBQ8aHX85TcZBdhnW2hVvHM7jlFzEg+OoNK9tcO4usYhFk f/ulQOtYKl65Z9hMR5+N/YeBrOZxXUkgkU/87ifQSPuaDLL/+m159uPPPKVoJVnGfgLE03 TmQDc7PaqYuiN6O91dm0GMnBrx8VLdqinGJpG5qhOuaXHB4Ylmxnef/GT5jJNw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qttX6-0003dv-Q7; Fri, 20 Oct 2023 13:43:36 -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 1qttX5-0003dn-8o for bug-guix@gnu.org; Fri, 20 Oct 2023 13:43:35 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qttX5-00035z-15 for bug-guix@gnu.org; Fri, 20 Oct 2023 13:43:35 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qttXV-0007f0-Qi for bug-guix@gnu.org; Fri, 20 Oct 2023 13:44:01 -0400 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -5.14 X-Migadu-Queue-Id: BF1696AB61 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -5.14 X-TUID: qW/ImvT1mtRx 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