Github messages for voidlinux
 help / color / mirror / Atom feed
From: abenson <abenson@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] nvidia470: update to 470.182.03.
Date: Mon, 03 Apr 2023 13:29:27 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-43237@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 510 bytes --]

There is a new pull request by abenson against master on the void-packages repository

https://github.com/abenson/void-packages nvidia470_470.182.03
https://github.com/void-linux/void-packages/pull/43237

nvidia470: update to 470.182.03.
Please test!

#### Testing the changes
- I tested the changes in this PR: **briefly**

#### Local build testing
- I built this PR locally for my native architecture, x86_64


A patch file from https://github.com/void-linux/void-packages/pull/43237.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-nvidia470_470.182.03-43237.patch --]
[-- Type: text/x-diff, Size: 7724 bytes --]

From 85741c6357cc46a1b8b66140e2ed99f4cf7d1465 Mon Sep 17 00:00:00 2001
From: Andrew Benson <abenson+void@gmail.com>
Date: Mon, 3 Apr 2023 06:28:09 -0500
Subject: [PATCH] nvidia470: update to 470.182.03.

---
 .../patches/nvidia-470xx-fix-linux-6.2.patch  | 145 ------------------
 srcpkgs/nvidia470/template                    |   6 +-
 2 files changed, 3 insertions(+), 148 deletions(-)
 delete mode 100644 srcpkgs/nvidia470/patches/nvidia-470xx-fix-linux-6.2.patch

diff --git a/srcpkgs/nvidia470/patches/nvidia-470xx-fix-linux-6.2.patch b/srcpkgs/nvidia470/patches/nvidia-470xx-fix-linux-6.2.patch
deleted file mode 100644
index e88c982de973..000000000000
--- a/srcpkgs/nvidia470/patches/nvidia-470xx-fix-linux-6.2.patch
+++ /dev/null
@@ -1,145 +0,0 @@
-From 5db7eb5a62003bbe04f3f07d089fcf5445b34a29 Mon Sep 17 00:00:00 2001
-From: Joan Bruguera <joanbrugueram@gmail.com>
-Date: Sun, 25 Dec 2022 22:05:14 +0000
-Subject: [PATCH] Tentative fix for NVIDIA 470.161.03 driver for Linux 6.2-rc1
-
----
- nvidia-drm/nvidia-drm-connector.c | 22 ++++++++++++++++++++++
- nvidia-drm/nvidia-drm-drv.c       |  4 ++++
- nvidia/nv-acpi.c                  | 19 ++++++++++++++++---
- 3 files changed, 42 insertions(+), 3 deletions(-)
-
-diff --git a/nvidia-drm/nvidia-drm-connector.c b/nvidia-drm/nvidia-drm-connector.c
-index 6fbcd63..a5ab9e9 100644
---- a/nvidia-drm/nvidia-drm-connector.c
-+++ b/nvidia-drm/nvidia-drm-connector.c
-@@ -20,6 +20,8 @@
-  * DEALINGS IN THE SOFTWARE.
-  */
- 
-+#include <linux/version.h>
-+#include <drm/drm_edid.h>
- #include "nvidia-drm-conftest.h" /* NV_DRM_ATOMIC_MODESET_AVAILABLE */
- 
- #if defined(NV_DRM_ATOMIC_MODESET_AVAILABLE)
-@@ -98,6 +100,7 @@ __nv_drm_detect_encoder(struct NvKmsKapiDynamicDisplayParams *pDetectParams,
-             break;
-     }
- 
-+#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 2, 0)
-     if (connector->override_edid) {
-         const struct drm_property_blob *edid = connector->edid_blob_ptr;
- 
-@@ -110,6 +113,25 @@ __nv_drm_detect_encoder(struct NvKmsKapiDynamicDisplayParams *pDetectParams,
-                     sizeof(pDetectParams->edid.buffer));
-         }
-     }
-+#else
-+    // Rel. commit "drm/edid: detach debugfs EDID override from EDID property update" (Jani Nikula, 24 Oct 2022)
-+    // NOTE: HUGE HACK!
-+    mutex_lock(&connector->edid_override_mutex);
-+    if (connector->edid_override) {
-+        const struct edid *edid = drm_edid_raw(connector->edid_override);
-+        size_t edid_length = EDID_LENGTH * (edid->extensions + 1);
-+        if (edid_length <= sizeof(pDetectParams->edid.buffer)) {
-+            memcpy(pDetectParams->edid.buffer, edid, edid_length);
-+            pDetectParams->edid.bufferSize = edid_length;
-+            pDetectParams->overrideEdid = NV_TRUE;
-+        } else {
-+            WARN_ON(edid_length >
-+                    sizeof(pDetectParams->edid.buffer));
-+        }
-+    }
-+    mutex_unlock(&connector->edid_override_mutex);
-+
-+#endif
- 
-     if (!nvKms->getDynamicDisplayInfo(nv_dev->pDevice, pDetectParams)) {
-         NV_DRM_DEV_LOG_ERR(
-diff --git a/nvidia-drm/nvidia-drm-drv.c b/nvidia-drm/nvidia-drm-drv.c
-index 6d007b1..d08ab4c 100644
---- a/nvidia-drm/nvidia-drm-drv.c
-+++ b/nvidia-drm/nvidia-drm-drv.c
-@@ -20,6 +20,7 @@
-  * DEALINGS IN THE SOFTWARE.
-  */
- 
-+#include <linux/version.h>
- #include "nvidia-drm-conftest.h" /* NV_DRM_AVAILABLE and NV_DRM_DRM_GEM_H_PRESENT */
- 
- #include "nvidia-drm-priv.h"
-@@ -240,9 +241,12 @@ nv_drm_init_mode_config(struct nv_drm_device *nv_dev,
-     dev->mode_config.preferred_depth = 24;
-     dev->mode_config.prefer_shadow = 1;
- 
-+// Rel. commit "drm: Remove drm_mode_config::fb_base" (Zack Rusin, 18 Oct 2022)
-+#if defined(CONFIG_FB) && LINUX_VERSION_CODE < KERNEL_VERSION(6, 2, 0)
-     /* Currently unused. Update when needed. */
- 
-     dev->mode_config.fb_base = 0;
-+#endif
- 
- #if defined(NV_DRM_CRTC_STATE_HAS_ASYNC_FLIP) || \
-     defined(NV_DRM_CRTC_STATE_HAS_PAGEFLIP_FLAGS)
-diff --git a/nvidia/nv-acpi.c b/nvidia/nv-acpi.c
-index 07501eb..1fdf71c 100644
---- a/nvidia/nv-acpi.c
-+++ b/nvidia/nv-acpi.c
-@@ -8,6 +8,7 @@
-  * _NVRM_COPYRIGHT_END_
-  */
- 
-+#include <linux/version.h>
- #define  __NO_VERSION__
- 
- #include "os-interface.h"
-@@ -24,7 +25,10 @@ static NV_STATUS   nv_acpi_extract_object  (const union acpi_object *, void *, N
- 
- static int         nv_acpi_add             (struct acpi_device *);
- 
--#if !defined(NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT) || (NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT == 2)
-+// Rel. commit "ACPI: make remove callback of ACPI driver void" (Dawei Li, 14 Nov 2022)
-+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 2, 0))
-+static void        nv_acpi_remove_one_arg_void(struct acpi_device *device);
-+#elif !defined(NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT) || (NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT == 2)
- static int         nv_acpi_remove_two_args(struct acpi_device *device, int type);
- #else
- static int         nv_acpi_remove_one_arg(struct acpi_device *device);
-@@ -80,7 +84,10 @@ static const struct acpi_driver nv_acpi_driver_template = {
-     .ids = nv_video_device_ids,
-     .ops = {
-         .add = nv_acpi_add,
--#if !defined(NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT) || (NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT == 2)
-+// Rel. commit "ACPI: make remove callback of ACPI driver void" (Dawei Li, 14 Nov 2022)
-+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 2, 0))
-+        .remove = nv_acpi_remove_one_arg_void,
-+#elif !defined(NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT) || (NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT == 2)
-         .remove = nv_acpi_remove_two_args,
- #else
-         .remove = nv_acpi_remove_one_arg,
-@@ -342,7 +349,10 @@ static int nv_acpi_add(struct acpi_device *device)
-     return 0;
- }
- 
--#if !defined(NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT) || (NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT == 2)
-+// Rel. commit "ACPI: make remove callback of ACPI driver void" (Dawei Li, 14 Nov 2022)
-+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(6, 2, 0))
-+static void nv_acpi_remove_one_arg_void(struct acpi_device *device)
-+#elif !defined(NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT) || (NV_ACPI_DEVICE_OPS_REMOVE_ARGUMENT_COUNT == 2)
- static int nv_acpi_remove_two_args(struct acpi_device *device, int type)
- #else
- static int nv_acpi_remove_one_arg(struct acpi_device *device)
-@@ -396,7 +406,10 @@ static int nv_acpi_remove_one_arg(struct acpi_device *device)
-         device->driver_data = NULL;
-     }
- 
-+// Rel. commit "ACPI: make remove callback of ACPI driver void" (Dawei Li, 14 Nov 2022)
-+#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 2, 0))
-     return status;
-+#endif
- }
- 
- /*
--- 
-2.39.0
-
diff --git a/srcpkgs/nvidia470/template b/srcpkgs/nvidia470/template
index b509017677f1..fbe3efc323a2 100644
--- a/srcpkgs/nvidia470/template
+++ b/srcpkgs/nvidia470/template
@@ -3,8 +3,8 @@
 _desc="NVIDIA drivers (GKxxx “Kepler”)"
 
 pkgname=nvidia470
-version=470.161.03
-revision=4
+version=470.182.03
+revision=1
 maintainer="Andrew Benson <abenson+void@gmail.com>"
 license="custom:NVIDIA Proprietary"
 homepage="https://www.nvidia.com/en-us/drivers/unix/"
@@ -19,7 +19,7 @@ conflicts="xserver-abi-video>25_1 nvidia390>=0"
 
 _pkg="NVIDIA-Linux-x86_64-${version}"
 distfiles="http://uk.download.nvidia.com/XFree86/Linux-x86_64/${version}/${_pkg}.run"
-checksum=5da82a7f8c76e781e7d7f0be7b798db4d344f26bd4facf9abcf3c71c71fe7640
+checksum=3dbc1408fc48b865d3ddacefc45f4a3fc13b90b83a628ee546b0082ab2c3fc79
 # subpackages need to be processed in this specific order
 subpackages="nvidia470-gtklibs nvidia470-dkms nvidia470-opencl nvidia470-libs nvidia470-libs-32bit"
 depends="nvidia470-libs-${version}_${revision}

             reply	other threads:[~2023-04-03 11:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-03 11:29 abenson [this message]
2023-04-07 12:06 ` [PR PATCH] [Closed]: " abenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-43237@inbox.vuxu.org \
    --to=abenson@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).