Bug 249505 - [patch]x11/nvidia-driver and x11/linux-nvidia-libs: Update to latest 460.32.03
Summary: [patch]x11/nvidia-driver and x11/linux-nvidia-libs: Update to latest 460.32.03
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Alexey Dokuchaev
Depends on:
Blocks: 247219
  Show dependency treegraph
Reported: 2020-09-21 11:22 UTC by Tomoaki AOKI
Modified: 2021-08-15 21:44 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (x11)

Patch for x11/nvidia-driver (9.11 KB, patch)
2020-09-21 11:22 UTC, Tomoaki AOKI
no flags Details | Diff
Patch for x11/linux-nvidia-libs (3.93 KB, patch)
2020-09-21 11:25 UTC, Tomoaki AOKI
no flags Details | Diff
Patch for x11/linux-nvidia-libs (rev2) (3.93 KB, patch)
2020-09-21 21:58 UTC, Tomoaki AOKI
no flags Details | Diff
Update to 450.80.02 (12.96 KB, patch)
2020-12-09 00:17 UTC, Jung-uk Kim
no flags Details | Diff
Update to 450.80.02 (Rev. 2) (12.30 KB, patch)
2020-12-09 00:21 UTC, Jung-uk Kim
no flags Details | Diff
Update to 460.32.03 (14.74 KB, patch)
2021-01-17 02:43 UTC, Tomoaki AOKI
no flags Details | Diff
Update to 460.32.03 (rev.2) (14.74 KB, patch)
2021-01-26 13:37 UTC, Tomoaki AOKI
no flags Details | Diff
Ad-hoc patch for 460.39, applicable over port r564088 (2.94 KB, patch)
2021-02-05 14:42 UTC, Tomoaki AOKI
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomoaki AOKI 2020-09-21 11:22:58 UTC
Created attachment 218141 [details]
Patch for x11/nvidia-driver

Update x11/nvidia-driver and x11/linux-nvidia-libs to latest 450.66.
Minimal changes, possibly incomplete. No new files are checked.
Applicable on /usr/ports after r549424.
(Conflicts with glesv1 libs installed by graphics/mesa-libs before it.)

Note: libnvidia-fatbinaryloader.so is removed from linux-nvidia-libs at 450.57.
      See [1] below for detail.

[1] https://www.nvidia.com/Download/driverResults.aspx/162107/en-us
Comment 1 Tomoaki AOKI 2020-09-21 11:25:13 UTC
Created attachment 218142 [details]
Patch for x11/linux-nvidia-libs

Patch for x11/linux-nvidia-libs.
Applicable on /usr/ports.
Comment 2 Tomoaki AOKI 2020-09-21 21:58:53 UTC
Created attachment 218162 [details]
Patch for x11/linux-nvidia-libs (rev2)

Created previous patch against accidentally edited Makefile.
This revision should apply OK on /usr/ports.
Comment 3 Alex S 2020-09-22 19:49:44 UTC
(In reply to Tomoaki AOKI from comment #2)

I'll leave this as a reference: https://github.com/shkhln/revird-aidivn/commit/c862309d3b5e6f0e95af2053d3d38fda5f4f2ecf.
Comment 4 Yuri Pankov freebsd_committer 2020-12-08 19:07:22 UTC
nvidia-driver is the main part here, reassign.
Comment 5 Jung-uk Kim freebsd_committer 2020-12-09 00:17:26 UTC
Created attachment 220379 [details]
Update to 450.80.02

The latest LTS version is 450.80.02 AFAICT.  I've updated the patches to it.
Comment 6 Jung-uk Kim freebsd_committer 2020-12-09 00:21:32 UTC
Created attachment 220380 [details]
Update to 450.80.02 (Rev. 2)

Sorry, I screwed up distinfo.  Corrected.
Comment 7 Tomoaki AOKI 2021-01-17 02:43:48 UTC
Created attachment 221657 [details]
Update to 460.32.03

Now latest Production Branch of nvidia-driver is at 460.32.03, so follow it.

Beware! This patch is...
  *Based on Jung-uk Kim's latest patch.

  *Minimal update for successful build.

  *Some patches on files/ are no longer applicable to 460.32.03
   and this updated patch no longer mentions 450.x driver.
   So with this patch, building 450.x driver should fail.

  *All ports included in this patch are built successfull for me,
   but only nvidia-driver, linux-nvidia-libs and nvidia-settings are
   installed / tested on my daily use.
   Encountered no NEW regression, but some known-to-me regressions are left.

  *Newly introduced files are not-at-all checked, so something should be missed.
Comment 8 Alex S 2021-01-17 05:14:35 UTC
(In reply to Tomoaki AOKI from comment #7)

> but some known-to-me regressions are left

Eh, what?
Comment 9 Tomoaki AOKI 2021-01-17 06:10:19 UTC
(In reply to Alex S from comment #8)

Menus of gtk2 apps like mail/sylpheed SOMETIMES rendered as black panel.
(Partially shown on redraw under mouse cursor or other window, though.)

Possibly not of nvidia-driver, but not tested on other drivers.
Maybe racy, as it's USUALLY OK.

SOMETIMES nvidia-driver initialization fails and X does not start.
Almost always OK after reboot.
Not encountered yet after I've switched to 460.32.03, but no warranty.
Possibly xorg problem, but unclear.

nvidia-settings does not properly fetch screen geometory.
Resolution is OK, but recognized as huge physical screen with 96 DPI.
Actually, 15.6 inch 4K panel on ThinkPad P52.

Some (not all) buttons with CJK characters are not properly rendered.
Button text are rendered too large and overflow.

Possibly something I've forgotton...
Comment 10 Tomoaki AOKI 2021-01-26 13:37:07 UTC
Created attachment 221933 [details]
Update to 460.32.03 (rev.2)

Update patch to allow building/installing on 14-current (git main) following stable/13 branch.
Just loosing OS version check. Only 2 bytes changed.
No other investigations done.
Comment 11 commit-hook freebsd_committer 2021-02-05 07:28:33 UTC
A commit references this bug:

Author: danfe
Date: Fri Feb  5 07:27:58 UTC 2021
New revision: 564088
URL: https://svnweb.freebsd.org/changeset/ports/564088

  Update nVidia main driver, Linux libraries, and tools to version 460.36.

  PR:	249505, 250277

Comment 12 Alexey Dokuchaev freebsd_committer 2021-02-05 07:34:23 UTC
The driver and ancillary ports have been updated to the latest stable version 460.39 as of ports r564088.
Comment 13 Tomoaki AOKI 2021-02-05 14:34:14 UTC
Reopen. nvidia-driver.ko cannot be kldloaded at least a configuration
as reported at [1].

Ad-hoc patch would be uploaded shortly.


[1] https://lists.freebsd.org/pipermail/svn-ports-head/2021-February/271645.html
Comment 14 Tomoaki AOKI 2021-02-05 14:42:20 UTC
Created attachment 222183 [details]
Ad-hoc patch for 460.39, applicable over port r564088

Ad-hoc patch for port r564088 to allow kldloading nvidia.ko.

Would fix following error reported (or I was going to report, if not) by Christoph Moench-Tegeder. [1]

  kernel: link_elf_obj: symbol nvidia_driver_name undefined
  kernel: KLD file nvidia.ko - could not finalize loading
  kernel: KLD file nvidia-modeset.ko - cannot find dependency "nvidia"

[1] https://lists.freebsd.org/pipermail/svn-ports-head/2021-February/271645.html
Comment 15 Kevin Bowling freebsd_committer 2021-08-15 21:44:23 UTC
This bug seems to have outgrown its original purpose.  If you have packaging improvements for the current driver please rebase on ports main and submit a new PR.