From patchwork Mon Sep 11 17:59:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lars Rustand X-Patchwork-Id: 53740 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A6E1627BBEA; Mon, 11 Sep 2023 22:14:06 +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_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=ham 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 C20DB27BBE2 for ; Mon, 11 Sep 2023 22:14:05 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfoEG-0003hR-UF; Mon, 11 Sep 2023 17:13:56 -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 1qfn0p-00060w-0E for guix-patches@gnu.org; Mon, 11 Sep 2023 15:56:00 -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 1qfn0o-0007F4-NT for guix-patches@gnu.org; Mon, 11 Sep 2023 15:55:58 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qfn0s-0003Mv-8p for guix-patches@gnu.org; Mon, 11 Sep 2023 15:56:02 -0400 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-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-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 X-Mailman-Approved-At: Mon, 11 Sep 2023 17:13:55 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches --- gnu/packages/linux.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) ;;; Pluggable authentication modules (PAM). --- 2.41.0 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)))) + ;;;