LM21 Ovladače Nvidia

Problémy a zkušenosti s hardwarem, perifériemi a jejich ovladači
Odpovědět
Zpráva
Autor
filla
Příspěvky: 3
Registrován: 21 srp 2022, 15:17

LM21 Ovladače Nvidia

#1 Příspěvek od filla »

Ahoj, V LM21 ve spravci ovladačů mi nenabízí proprietalni ovladač, jakmohu ovladač, konkrtně 340 přidat?. Díky

menom
Příspěvky: 2488
Registrován: 12 pro 2012, 15:10

Re: LM21 Ovladače Nvidia

#2 Příspěvek od menom »

.

Ahoj, zamakal som na tom a odpoved najdes na webe v odkaze:

https://www.linux-mint-czech.cz/2022/08 ... pre-lm-21/

.
.

filla
Příspěvky: 3
Registrován: 21 srp 2022, 15:17

Re: LM21 Ovladače Nvidia

#3 Příspěvek od filla »

Diky, dobra prace

menom
Příspěvky: 2488
Registrován: 12 pro 2012, 15:10

Re: LM21 Ovladače Nvidia

#4 Příspěvek od menom »

.

Nezaznamenal som ziadne problemy, oproti ovladacom 340-107, 340-108, ktore boli v predoslych verziach Ubuntu/LM.

Ano, ten clovek sa vyzna. Na launchpade bol este jeden podobne nadejny ovladac, ale pozadoval nejake subory xorg-video-abi-*.
Pre ich instalaciu boli potrebne dalsie kniznice alebo subory a tie uz neboli v ramci tejto distribucie.

Takze problem so zavislostami.
U tohto ovladaca bola odstranena podpora ABI a tak to funguje, je to vidiet v logu zmien (changelog) nvidia-graphics-drivers-340_340.108-4ppajammy4_340.108-4ppajammy5.diff:

Kód: Vybrat vše

diff -Nru nvidia-graphics-drivers-340-340.108/debian/changelog nvidia-graphics-drivers-340-340.108/debian/changelog
--- nvidia-graphics-drivers-340-340.108/debian/changelog	2022-02-18 20:33:06.000000000 +0000
+++ nvidia-graphics-drivers-340-340.108/debian/changelog	2022-04-14 10:23:44.000000000 +0000
@@ -1,3 +1,15 @@
+nvidia-graphics-drivers-340 (340.108-4ppajammy5) jammy; urgency=medium
+
+  * Added buildfix for Linux 5.18.
+
+ -- Gökhan Gökkaya <wirelessanten@gmail.com>  Thu, 14 Apr 2022 13:23:44 +0300
+
+nvidia-graphics-drivers-340 (340.108-4ppajammy4.1) jammy; urgency=medium
+
+  * Added IgnoreABI configuration for Xorg 1.21.
+
+ -- Gökhan Gökkaya <wirelessanten@gmail.com>  Fri, 18 Feb 2022 23:33:06 +0300
+
 nvidia-graphics-drivers-340 (340.108-4ppajammy4) jammy; urgency=medium
 
   * Added build patch for linux 5.17 series.
diff -Nru nvidia-graphics-drivers-340-340.108/debian/dkms.conf nvidia-graphics-drivers-340-340.108/debian/dkms.conf
--- nvidia-graphics-drivers-340-340.108/debian/dkms.conf	2022-02-18 20:14:29.000000000 +0000
+++ nvidia-graphics-drivers-340-340.108/debian/dkms.conf	2022-04-14 10:23:44.000000000 +0000
@@ -16,6 +16,7 @@
 PATCH[7]="buildfix_kernel_5.14.patch"
 PATCH[8]="buildfix_kernel_5.16.patch"
 PATCH[9]="buildfix_kernel_5.17.patch"
+PATCH[10]="buildfix_kernel_5.18.patch"
 #PATCH_MATCH[0]="^3.[8-9]"
 BUILT_MODULE_NAME[1]="nvidia-uvm"
 BUILT_MODULE_LOCATION[1]="uvm/"
diff -Nru nvidia-graphics-drivers-340-340.108/debian/dkms_nvidia/dkms.conf nvidia-graphics-drivers-340-340.108/debian/dkms_nvidia/dkms.conf
--- nvidia-graphics-drivers-340-340.108/debian/dkms_nvidia/dkms.conf	2022-02-18 20:14:36.000000000 +0000
+++ nvidia-graphics-drivers-340-340.108/debian/dkms_nvidia/dkms.conf	2022-04-14 10:23:44.000000000 +0000
@@ -16,6 +16,7 @@
 PATCH[7]="buildfix_kernel_5.14.patch"
 PATCH[8]="buildfix_kernel_5.16.patch"
 PATCH[9]="buildfix_kernel_5.17.patch"
+PATCH[10]="buildfix_kernel_5.18.patch"
 #PATCH_MATCH[0]="^3.[8-9]"
 BUILT_MODULE_NAME[1]="nvidia-uvm"
 BUILT_MODULE_LOCATION[1]="uvm/"
diff -Nru nvidia-graphics-drivers-340-340.108/debian/dkms_nvidia/patches/buildfix_kernel_5.18.patch nvidia-graphics-drivers-340-340.108/debian/dkms_nvidia/patches/buildfix_kernel_5.18.patch
--- nvidia-graphics-drivers-340-340.108/debian/dkms_nvidia/patches/buildfix_kernel_5.18.patch	1970-01-01 00:00:00.000000000 +0000
+++ nvidia-graphics-drivers-340-340.108/debian/dkms_nvidia/patches/buildfix_kernel_5.18.patch	2022-04-14 03:58:42.000000000 +0000
@@ -0,0 +1,75 @@
+diff -Naru a/nv-dma.c b/nv-dma.c
+--- a/nv-dma.c
++++ b/nv-dma.c
+@@ -13,6 +13,7 @@
+ 
+ #include "os-interface.h"
+ #include "nv-linux.h"
++#include <linux/version.h>
+ 
+ static void nv_fill_scatterlist
+ (
+@@ -136,10 +137,17 @@
+         return status;
+     }
+ 
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0))
++    dma_map->sg_map_count = dma_map_sg(&dma_map->dev->dev,
++            NV_DMA_MAP_SCATTERLIST(dma_map),
++            NV_DMA_MAP_SCATTERLIST_LENGTH(dma_map),
++            DMA_BIDIRECTIONAL);
++#else
+     dma_map->sg_map_count = pci_map_sg(dma_map->dev,
+             NV_DMA_MAP_SCATTERLIST(dma_map),
+             NV_DMA_MAP_SCATTERLIST_LENGTH(dma_map),
+             PCI_DMA_BIDIRECTIONAL);
++#endif
+     if (dma_map->sg_map_count == 0)
+     {
+         nv_printf(NV_DBG_ERRORS,
+@@ -211,8 +219,13 @@
+ 
+     if (dma_map->sg_map_count != 0)
+     {
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0))
++        dma_unmap_sg(&dma_map->dev->dev, NV_DMA_MAP_SCATTERLIST(dma_map),
++                NV_DMA_MAP_SCATTERLIST_LENGTH(dma_map), DMA_BIDIRECTIONAL);
++#else
+         pci_unmap_sg(dma_map->dev, NV_DMA_MAP_SCATTERLIST(dma_map),
+                 NV_DMA_MAP_SCATTERLIST_LENGTH(dma_map), PCI_DMA_BIDIRECTIONAL);
++#endif
+     }
+ 
+     *priv = dma_map->user_pages;
+diff -Naru a/nv-vm.c b/nv-vm.c
+--- a/nv-vm.c
++++ b/nv-vm.c
+@@ -12,6 +12,7 @@
+ #include "os-interface.h"
+ #include "nv.h"
+ #include "nv-linux.h"
++#include <linux/version.h>
+ 
+ static inline void nv_set_contig_memory_uc(nv_pte_t *page_ptr, NvU32 num_pages)
+ {
+@@ -169,12 +170,20 @@
+ 
+ static inline int nv_map_sg(struct pci_dev *dev, struct scatterlist *sg)
+ {
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0))
++    return dma_map_sg(&dev->dev, sg, 1, DMA_BIDIRECTIONAL);
++#else
+     return pci_map_sg(dev, sg, 1, PCI_DMA_BIDIRECTIONAL);
++#endif
+ }
+ 
+ static inline void nv_unmap_sg(struct pci_dev *dev, struct scatterlist *sg)
+ {
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 18, 0))
++    dma_unmap_sg(&dev->dev, sg, 1, DMA_BIDIRECTIONAL);
++#else
+     pci_unmap_sg(dev, sg, 1, PCI_DMA_BIDIRECTIONAL);
++#endif
+ }
+ 
+ #define NV_MAP_SG_MAX_RETRIES 16
diff -Nru nvidia-graphics-drivers-340-340.108/debian/dkms_nvidia.conf nvidia-graphics-drivers-340-340.108/debian/dkms_nvidia.conf
--- nvidia-graphics-drivers-340-340.108/debian/dkms_nvidia.conf	2022-02-18 20:33:06.000000000 +0000
+++ nvidia-graphics-drivers-340-340.108/debian/dkms_nvidia.conf	2022-04-14 10:23:44.000000000 +0000
@@ -16,6 +16,7 @@
 PATCH[7]="buildfix_kernel_5.14.patch"
 PATCH[8]="buildfix_kernel_5.16.patch"
 PATCH[9]="buildfix_kernel_5.17.patch"
+PATCH[10]="buildfix_kernel_5.18.patch"
 #PATCH_MATCH[0]="^3.[8-9]"
 BUILT_MODULE_NAME[1]="nvidia-uvm"
 BUILT_MODULE_LOCATION[1]="uvm/"
diff -Nru nvidia-graphics-drivers-340-340.108/debian/nvidia-drm-outputclass-ubuntu.conf nvidia-graphics-drivers-340-340.108/debian/nvidia-drm-outputclass-ubuntu.conf
--- nvidia-graphics-drivers-340-340.108/debian/nvidia-drm-outputclass-ubuntu.conf	2022-02-18 20:33:06.000000000 +0000
+++ nvidia-graphics-drivers-340-340.108/debian/nvidia-drm-outputclass-ubuntu.conf	2022-04-14 10:23:44.000000000 +0000
@@ -15,3 +15,7 @@
     Driver "nvidia"
     VendorName "NVIDIA Corporation"
 EndSection
+
+Section "ServerFlags"
+  Option "IgnoreABI" "1"
+EndSection
diff -Nru nvidia-graphics-drivers-340-340.108/debian/substvars nvidia-graphics-drivers-340-340.108/debian/substvars
--- nvidia-graphics-drivers-340-340.108/debian/substvars	2020-04-16 12:09:35.000000000 +0000
+++ nvidia-graphics-drivers-340-340.108/debian/substvars	2022-03-02 13:35:56.000000000 +0000
@@ -1,2 +1,2 @@
-xviddriver:Depends=xorg-video-abi-11|xorg-video-abi-12|xorg-video-abi-13|xorg-video-abi-14|xorg-video-abi-15|xorg-video-abi-18|xorg-video-abi-19|xorg-video-abi-20|xorg-video-abi-23|xorg-video-abi-24, xserver-xorg-core (>= 2:1.19.6-1ubuntu2)|xserver-xorg-core-hwe-18.04
+xviddriver:Depends=xorg-video-abi-11|xorg-video-abi-12|xorg-video-abi-13|xorg-video-abi-14|xorg-video-abi-15|xorg-video-abi-18|xorg-video-abi-19|xorg-video-abi-20|xorg-video-abi-23|xorg-video-abi-24|xorg-video-abi-25, xserver-xorg-core (>= 2:1.19.6-1ubuntu2)|xserver-xorg-core-hwe-18.04|xserver-xorg-core-hwe-20.04
 xviddriver:Provides=xorg-driver-video
diff -Nru nvidia-graphics-drivers-340-340.108/debian/templates/dkms_nvidia.conf.in nvidia-graphics-drivers-340-340.108/debian/templates/dkms_nvidia.conf.in
--- nvidia-graphics-drivers-340-340.108/debian/templates/dkms_nvidia.conf.in	2022-02-18 20:14:50.000000000 +0000
+++ nvidia-graphics-drivers-340-340.108/debian/templates/dkms_nvidia.conf.in	2022-04-14 10:23:44.000000000 +0000
@@ -16,6 +16,7 @@
 PATCH[7]="buildfix_kernel_5.14.patch"
 PATCH[8]="buildfix_kernel_5.16.patch"
 PATCH[9]="buildfix_kernel_5.17.patch"
+PATCH[10]="buildfix_kernel_5.18.patch"
 #PATCH_MATCH[0]="^3.[8-9]"
 BUILT_MODULE_NAME[1]="nvidia-uvm"
 BUILT_MODULE_LOCATION[1]="uvm/"
diff -Nru nvidia-graphics-drivers-340-340.108/debian/templates/nvidia-drm-outputclass-ubuntu.conf.in nvidia-graphics-drivers-340-340.108/debian/templates/nvidia-drm-outputclass-ubuntu.conf.in
--- nvidia-graphics-drivers-340-340.108/debian/templates/nvidia-drm-outputclass-ubuntu.conf.in	2021-02-25 18:36:52.000000000 +0000
+++ nvidia-graphics-drivers-340-340.108/debian/templates/nvidia-drm-outputclass-ubuntu.conf.in	2022-03-02 13:40:46.000000000 +0000
@@ -15,3 +15,7 @@
     Driver "nvidia"
     VendorName "NVIDIA Corporation"
 EndSection
+
+Section "ServerFlags"
+  Option "IgnoreABI" "1"
+EndSection

Dokonca su aplikovane patchy, takze sa da predpokladat, ze ovladac bude fungovat s jadrami 5.16, 5.17, 5,18 .

.
.

filla
Příspěvky: 3
Registrován: 21 srp 2022, 15:17

Re: LM21 Ovladače Nvidia

#5 Příspěvek od filla »

Ja ma laptop se starsi NV quadro, s noveau v lm20 bez problemu (vykreslovani na webu) noveau v lm21 tragedie, na to prekotne doplnovani knihoven jsem take narazil a po 2h vzdal

Odpovědět