From unknown Sun Jun 22 03:56:00 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#65875] [PATCH] gnu: Add vendor-reset. Resent-From: Lars Rustand Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 11 Sep 2023 19:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65875 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65875@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.169446213412912 (code B ref -1); Mon, 11 Sep 2023 19:56:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Sep 2023 19:55:34 +0000 Received: from localhost ([127.0.0.1]:54909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfn0N-0003M8-6a for submit@debbugs.gnu.org; Mon, 11 Sep 2023 15:55:34 -0400 Received: from lists.gnu.org ([2001:470:142::17]:42952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qflCC-0003VM-Jo for submit@debbugs.gnu.org; Mon, 11 Sep 2023 13:59:38 -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 1qflC1-0004zt-PR for guix-patches@gnu.org; Mon, 11 Sep 2023 13:59:26 -0400 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qflBz-0001IM-4Y for guix-patches@gnu.org; Mon, 11 Sep 2023 13:59:25 -0400 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-501be2d45e0so7977222e87.3 for ; Mon, 11 Sep 2023 10:59:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694455157; x=1695059957; darn=gnu.org; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=uCQFG8KuknngWHgAfTq9QRn9nHjTZIaGhH/ROx5G48c=; b=W1zcFg5IobZeCJ5NcllksWsh4d5tuOso47FiYezbPwQnZ8hrwGLAkgU7GJdS4iGHKl Mm8yv9Y9aRRVeae491f4s6ShmgBuJ+06AamiZ//KNHhwA4c5R8585nFCuAfejZHrqjez w2LBDvTLhwptwJ5Ms2hxxawNiSzXhrAizOd9rMhD67njgqnDKKR+CoR1VYeaLWAus5vX WAVAHH6vcBtbmObDU8obusWNtk5TyYBnhQad3TVCNkO9Zvf46MyLAP4qxkeaDsqZQIAR r/UWAl+5W71EMB6hl5WcSmE3xRANv2eJS52UpYfepRc5DHrdwZMQcVTHRr/fYo6Ew/ED ws0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694455157; x=1695059957; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uCQFG8KuknngWHgAfTq9QRn9nHjTZIaGhH/ROx5G48c=; b=ZB/k/rJSM+Sgyoas+mp5bNTMlN8y9amTCPjduFW1F5q+mHP2q2hMKZTO/iULOiVLJN f6OS8bpZ5tKzBJdfXj0dMF8rVf+++9PDtPVGEczMqLg17YisL+ITUe+nN2kWYc2g/hET qZdBcP4FcWcu8sI1323ouFLGoccWHAbg1PERwBNbo8B7LHGLTpTSgWsTQV1G0mlJE66/ n/+ioTNAI7qSzAYox+PGlEUQ1//WVk3+Bay9fGGQHsh0ugN/nMDgzFX6kDyu8VsSZmSB LciWctQExZirPQ6nL9anZJybv/52vDZ7FHjjbrY52xKtMG0iVPVyg2BO+cbnsodCluEy 46Zw== X-Gm-Message-State: AOJu0YxmOFU+30fAn0u69nRpp7B6E1kx/e3BKuHLiRmY5HxpA00wBllh x7h/nR5PnEcN+l/YCQzd+pSe2T8k+ok= X-Google-Smtp-Source: AGHT+IHitJwuhnvEroj/PbAimq0uG57A6oUigIDmLzkAeakgtpYwW75jOId9GTILgMYLbBjC3mBV3A== X-Received: by 2002:a19:7b1b:0:b0:4ff:8d9e:d36f with SMTP id w27-20020a197b1b000000b004ff8d9ed36fmr4872478lfc.39.1694455157143; Mon, 11 Sep 2023 10:59:17 -0700 (PDT) Received: from localhost (78.79-160-60.customer.lyse.net. [79.160.60.78]) by smtp.gmail.com with ESMTPSA id i25-20020ac25239000000b00500a467914esm1410902lfl.38.2023.09.11.10.59.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Sep 2023 10:59:16 -0700 (PDT) Date: Mon, 11 Sep 2023 19:59:02 +0200 From: Lars Rustand Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=rustand.lars@gmail.com; helo=mail-lf1-x12e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Mailman-Approved-At: Mon, 11 Sep 2023 15:55:30 -0400 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.0 (/) --- gnu/packages/linux.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index b1bcda5e70..297fecc018 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -1791,6 +1791,36 @@ (define-public xpadneo which need to be installed separately.") (license license:gpl3+))) +(define-public vendor-reset + (let ((commit "4b466e92a2d9f76ce1082cde982c7be0be91e248") + (revision "0")) + (package + (name "vendor-reset") + (version (git-version "0.1.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gnif/vendor-reset") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1gaf4j20grng689c9fylcqri3j9ycnhr2bsva2z6qcdqvzl6yxbi")))) + (build-system linux-module-build-system) + (arguments + (list #:tests? #f)) ;no test suite + (home-page "https://github.com/gnif/vendor-reset") + (synopsis + "Kernel module that resets GPUs that are affected by the reset bug") + (description + "This package provides a kernel module that is capable of +resetting hardware devices into a state where they can be +re-initialized or passed through into a virtual machine (VFIO). +While it would be great to have these in the kernel as PCI quirks, +some of the reset procedures are very complex and would never be +accepted as a quirk (ie AMD Vega 10).") + (license license:gpl2)))) + ;;; ;;; Pluggable authentication modules (PAM). -- 2.41.0 From unknown Sun Jun 22 03:56:00 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: Lars Rustand Subject: bug#65875: closed (Re: bug#65875: [PATCH] gnu: Add vendor-reset.) Message-ID: References: <871qe89j6d.fsf@gnu.org> X-Gnu-PR-Message: they-closed 65875 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 65875@debbugs.gnu.org Date: Fri, 06 Oct 2023 09:49:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1696585742-3780-1" This is a multi-part message in MIME format... ------------=_1696585742-3780-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #65875: [PATCH] gnu: Add vendor-reset. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 65875@debbugs.gnu.org. --=20 65875: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D65875 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1696585742-3780-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 65875-done) by debbugs.gnu.org; 6 Oct 2023 09:48:03 +0000 Received: from localhost ([127.0.0.1]:49287 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qohRC-0000t8-GQ for submit@debbugs.gnu.org; Fri, 06 Oct 2023 05:48:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qohRA-0000sA-3S for 65875-done@debbugs.gnu.org; Fri, 06 Oct 2023 05:48:00 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qohQl-0003Ow-Vi; Fri, 06 Oct 2023 05:47:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=cGF7cOc6Apg5A5VJKpJnrD3eYdCl2tZKgiXSRLx3Phs=; b=FIHrb2ZBCn2hNNgZOxiD HwtESu+H6nV5xsXKPDL8BT6c8LW8HUhgEAJIauCN0Y00mTG/XToMtIN/LcdXGG1jJ/CH6AglVZ4iK 2IcuESAGPVdGl7qbDFp/XORzWR4ZWvdTi3ViF3OrOBPlxj2MuSE5k/DBs/QRdABZlO2RX03lLqeJX +xSzVjeVSK04zO0uqCGecfkNF2ewXaf7zJfFYgHgttHQjBgnGkerk9nsFH7FSMFvDIvSr3sTssffB pPAYtD7NWhfsTBlc4aCzDcX5jwL3FlkJm1qFSWxy+ZO5ze1ZhuOUohFscvtgrvnfInQumdpGNngJa ksJ4pnwmGGLAzQ==; From: Mathieu Othacehe To: Lars Rustand Subject: Re: bug#65875: [PATCH] gnu: Add vendor-reset. References: Date: Fri, 06 Oct 2023 11:47:22 +0200 In-Reply-To: (Lars Rustand's message of "Mon, 11 Sep 2023 19:59:02 +0200") Message-ID: <871qe89j6d.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 65875-done Cc: 65875-done@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: -3.3 (---) Hello, Thanks for this patch! I added a proper commit message, your copyright and renamed the package vendor-reset-linux-module before applying. Mathieu ------------=_1696585742-3780-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 11 Sep 2023 19:55:34 +0000 Received: from localhost ([127.0.0.1]:54909 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfn0N-0003M8-6a for submit@debbugs.gnu.org; Mon, 11 Sep 2023 15:55:34 -0400 Received: from lists.gnu.org ([2001:470:142::17]:42952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qflCC-0003VM-Jo for submit@debbugs.gnu.org; Mon, 11 Sep 2023 13:59:38 -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 1qflC1-0004zt-PR for guix-patches@gnu.org; Mon, 11 Sep 2023 13:59:26 -0400 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qflBz-0001IM-4Y for guix-patches@gnu.org; Mon, 11 Sep 2023 13:59:25 -0400 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-501be2d45e0so7977222e87.3 for ; Mon, 11 Sep 2023 10:59:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694455157; x=1695059957; darn=gnu.org; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=uCQFG8KuknngWHgAfTq9QRn9nHjTZIaGhH/ROx5G48c=; b=W1zcFg5IobZeCJ5NcllksWsh4d5tuOso47FiYezbPwQnZ8hrwGLAkgU7GJdS4iGHKl Mm8yv9Y9aRRVeae491f4s6ShmgBuJ+06AamiZ//KNHhwA4c5R8585nFCuAfejZHrqjez w2LBDvTLhwptwJ5Ms2hxxawNiSzXhrAizOd9rMhD67njgqnDKKR+CoR1VYeaLWAus5vX WAVAHH6vcBtbmObDU8obusWNtk5TyYBnhQad3TVCNkO9Zvf46MyLAP4qxkeaDsqZQIAR r/UWAl+5W71EMB6hl5WcSmE3xRANv2eJS52UpYfepRc5DHrdwZMQcVTHRr/fYo6Ew/ED ws0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694455157; x=1695059957; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uCQFG8KuknngWHgAfTq9QRn9nHjTZIaGhH/ROx5G48c=; b=ZB/k/rJSM+Sgyoas+mp5bNTMlN8y9amTCPjduFW1F5q+mHP2q2hMKZTO/iULOiVLJN f6OS8bpZ5tKzBJdfXj0dMF8rVf+++9PDtPVGEczMqLg17YisL+ITUe+nN2kWYc2g/hET qZdBcP4FcWcu8sI1323ouFLGoccWHAbg1PERwBNbo8B7LHGLTpTSgWsTQV1G0mlJE66/ n/+ioTNAI7qSzAYox+PGlEUQ1//WVk3+Bay9fGGQHsh0ugN/nMDgzFX6kDyu8VsSZmSB LciWctQExZirPQ6nL9anZJybv/52vDZ7FHjjbrY52xKtMG0iVPVyg2BO+cbnsodCluEy 46Zw== X-Gm-Message-State: AOJu0YxmOFU+30fAn0u69nRpp7B6E1kx/e3BKuHLiRmY5HxpA00wBllh x7h/nR5PnEcN+l/YCQzd+pSe2T8k+ok= X-Google-Smtp-Source: AGHT+IHitJwuhnvEroj/PbAimq0uG57A6oUigIDmLzkAeakgtpYwW75jOId9GTILgMYLbBjC3mBV3A== X-Received: by 2002:a19:7b1b:0:b0:4ff:8d9e:d36f with SMTP id w27-20020a197b1b000000b004ff8d9ed36fmr4872478lfc.39.1694455157143; Mon, 11 Sep 2023 10:59:17 -0700 (PDT) Received: from localhost (78.79-160-60.customer.lyse.net. [79.160.60.78]) by smtp.gmail.com with ESMTPSA id i25-20020ac25239000000b00500a467914esm1410902lfl.38.2023.09.11.10.59.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Sep 2023 10:59:16 -0700 (PDT) Date: Mon, 11 Sep 2023 19:59:02 +0200 From: Lars Rustand To: guix-patches@gnu.org Subject: [PATCH] gnu: Add vendor-reset. Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=rustand.lars@gmail.com; helo=mail-lf1-x12e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 11 Sep 2023 15:55:30 -0400 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.0 (/) --- gnu/packages/linux.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index b1bcda5e70..297fecc018 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -1791,6 +1791,36 @@ (define-public xpadneo which need to be installed separately.") (license license:gpl3+))) +(define-public vendor-reset + (let ((commit "4b466e92a2d9f76ce1082cde982c7be0be91e248") + (revision "0")) + (package + (name "vendor-reset") + (version (git-version "0.1.0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gnif/vendor-reset") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1gaf4j20grng689c9fylcqri3j9ycnhr2bsva2z6qcdqvzl6yxbi")))) + (build-system linux-module-build-system) + (arguments + (list #:tests? #f)) ;no test suite + (home-page "https://github.com/gnif/vendor-reset") + (synopsis + "Kernel module that resets GPUs that are affected by the reset bug") + (description + "This package provides a kernel module that is capable of +resetting hardware devices into a state where they can be +re-initialized or passed through into a virtual machine (VFIO). +While it would be great to have these in the kernel as PCI quirks, +some of the reset procedures are very complex and would never be +accepted as a quirk (ie AMD Vega 10).") + (license license:gpl2)))) + ;;; ;;; Pluggable authentication modules (PAM). -- 2.41.0 ------------=_1696585742-3780-1--