Hello, Of course I forgot to attach the patch, here it is now. Please review it and do not apply it blindly.
Regards, -- Héctor Orón -.. . -... .. .- -. -.. . ...- . .-.. --- .--. . .-.
diff -Nru nvidia-graphics-drivers-384.90/debian/changelog nvidia-graphics-drivers-387.22/debian/changelog --- nvidia-graphics-drivers-384.90/debian/changelog 2017-10-30 02:16:27.000000000 +0100 +++ nvidia-graphics-drivers-387.22/debian/changelog 2017-11-08 14:11:38.000000000 +0100 @@ -1,3 +1,9 @@ +nvidia-graphics-drivers (387.22-0.1) UNRELEASED; urgency=medium + + * New upstream release + + -- Héctor Orón MartÃnez <zu...@debian.org> Wed, 08 Nov 2017 14:11:38 +0100 + nvidia-graphics-drivers (384.90-2) experimental; urgency=medium * Merge changes from 375.82-7. (Closes: #876766) diff -Nru nvidia-graphics-drivers-384.90/debian/copyright nvidia-graphics-drivers-387.22/debian/copyright --- nvidia-graphics-drivers-384.90/debian/copyright 2017-07-01 17:38:28.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/copyright 2017-11-08 12:09:59.000000000 +0100 @@ -168,6 +168,11 @@ OF THE USE OF OR INABILITY TO USE THE SOFTWARE, EVEN IF NVIDIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. . + 6.3 Specific Use. SOFTWARE is licensed only for use with NVIDIA products. + Customerâs use of NVIDIA products with any other firmware is at its own + risk and may cause an NVIDIA product to become non-compliant with certain + of its certification markings. + . 7. MISCELLANEOUS . The United Nations Convention on Contracts for the International diff -Nru nvidia-graphics-drivers-384.90/debian/libegl1-nvidia.symbols nvidia-graphics-drivers-387.22/debian/libegl1-nvidia.symbols --- nvidia-graphics-drivers-384.90/debian/libegl1-nvidia.symbols 2017-07-01 17:38:29.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/libegl1-nvidia.symbols 2017-11-08 12:50:48.000000000 +0100 @@ -12,14 +12,21 @@ eglBindAPI@Base 331 eglBindTexImage@Base 331 eglChooseConfig@Base 331 + eglClientWaitSync@Base 387.22 eglCopyBuffers@Base 331 eglCreateContext@Base 331 + eglCreateImage@Base 387.22 eglCreatePbufferFromClientBuffer@Base 331 eglCreatePbufferSurface@Base 331 eglCreatePixmapSurface@Base 331 + eglCreatePlatformPixmapSurface@Base 387.22 + eglCreatePlatformWindowSurface@Base 387.22 + eglCreateSync@Base 387.22 eglCreateWindowSurface@Base 331 eglDestroyContext@Base 331 + eglDestroyImage@Base 387.22 eglDestroySurface@Base 331 + eglDestroySync@Base 387.22 eglGetConfigAttrib@Base 331 eglGetConfigs@Base 331 eglGetCurrentContext@Base 331 @@ -27,7 +34,9 @@ eglGetCurrentSurface@Base 331 eglGetDisplay@Base 331 eglGetError@Base 331 + eglGetPlatformDisplay@Base 387.22 eglGetProcAddress@Base 331 + eglGetSyncAttrib@Base 387.22 eglInitialize@Base 331 eglMakeCurrent@Base 331 eglQueryAPI@Base 331 @@ -43,6 +52,7 @@ eglWaitClient@Base 331 eglWaitGL@Base 331 eglWaitNative@Base 331 + eglWaitSync@Base 387.22 #MISSING: 384# (arch=i386)glvnd_asprintf@Base 375 #MISSING: 384# (arch=i386)glvnd_byte_swap16@Base 375 #MISSING: 384# (arch=i386)glvnd_vasprintf@Base 375 diff -Nru nvidia-graphics-drivers-384.90/debian/libegl-nvidia0.symbols nvidia-graphics-drivers-387.22/debian/libegl-nvidia0.symbols --- nvidia-graphics-drivers-384.90/debian/libegl-nvidia0.symbols 2017-07-01 17:38:29.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/libegl-nvidia0.symbols 2017-11-08 12:50:48.000000000 +0100 @@ -1,4 +1,5 @@ libEGL_nvidia.so.0 #PACKAGE# #MINVER# + NvEglApiGetAccess@Base 387.22 NvEglDevtoolsQuery@Base 384 NvEglRegClientApi@Base 378 __egl_Main@Base 355 diff -Nru nvidia-graphics-drivers-384.90/debian/libgl1-nvidia-glx.symbols nvidia-graphics-drivers-387.22/debian/libgl1-nvidia-glx.symbols --- nvidia-graphics-drivers-384.90/debian/libgl1-nvidia-glx.symbols 2017-09-05 11:02:25.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/libgl1-nvidia-glx.symbols 2017-11-08 14:00:40.000000000 +0100 @@ -3,9 +3,12 @@ glAlphaToCoverageDitherControlNV@Base 370 glBufferStorageMemEXT@Base 384.69 glConservativeRasterParameteriNV@Base 367 + glClearTexImageEXT@Base 387.22 + glClearTexSubImageEXT@Base 387.22 glCreateMemoryObjectsEXT@Base 384.69 glDebugControlNVX@Base 177 glDeleteMemoryObjectsEXT@Base 384.69 + glDeleteQueryResourceTagNV@Base 387.22 glDeleteSemaphoresEXT@Base 384.69 glDepthRangeArrayfvOES@Base 378 glDepthRangeIndexedfOES@Base 378 @@ -15,6 +18,7 @@ glGenSemaphoresEXT@Base 384.69 glGetFloati_vOES@Base 378 glGetMemoryObjectParameterivEXT@Base 384.69 + glGenQueryResourceTagNV@Base 387.22 glGetSemaphoreParameterui64vEXT@Base 384.69 glGetUnsignedBytei_vEXT@Base 384.69 glGetUnsignedBytevEXT@Base 384.69 @@ -25,9 +29,14 @@ glIsMemoryObjectEXT@Base 384.69 glIsSemaphoreEXT@Base 384.69 glLogTokenFlushNVX@Base 364 + glMaxShaderCompilerThreadsKHR@Base 387.22 glMemoryObjectParameterivEXT@Base 384.69 + glMultiDrawArraysIndirectCount@Base 387.22 + glMultiDrawElementsIndirectCount@Base 387.22 glNamedBufferStorageMemEXT@Base 384.69 - glQueryResourceNVX@Base 355 + glPolygonOffsetClamp@Base 387.22 + glQueryResourceNV@Base 387.22 + glQueryResourceTagNV@Base 387.22 glScissorArrayvOES@Base 378 glScissorIndexedOES@Base 378 glScissorIndexedvOES@Base 378 @@ -35,6 +44,7 @@ glSignalSemaphoreEXT@Base 384.69 glSignalVkFenceNV@Base 364 glSignalVkSemaphoreNV@Base 364 + glSpecializeShader@Base 387.22 glSpecializeShaderARB@Base 367.36.02 glTexStorageMem1DEXT@Base 384.69 glTexStorageMem2DEXT@Base 384.69 diff -Nru nvidia-graphics-drivers-384.90/debian/libgl1-nvidia-glx.symbols.common nvidia-graphics-drivers-387.22/debian/libgl1-nvidia-glx.symbols.common --- nvidia-graphics-drivers-384.90/debian/libgl1-nvidia-glx.symbols.common 2017-10-13 14:25:43.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/libgl1-nvidia-glx.symbols.common 2017-11-08 13:56:12.000000000 +0100 @@ -155,7 +155,9 @@ glClearNamedFramebufferuiv@Base 346 glClearStencil@Base 1.0.4349 glClearTexImage@Base 331 +#MISSING: 387.22# glClearTexImageEXT@Base 387.22 glClearTexSubImage@Base 331 +#MISSING: 387.22# glClearTexSubImageEXT@Base 387.22 glClientActiveTexture@Base 1.0.4349 glClientActiveTextureARB@Base 1.0.4349 glClientAttribDefaultEXT@Base 180 @@ -365,6 +367,7 @@ glDeleteQueries@Base 1.0.6106 glDeleteQueriesARB@Base 1.0.5328 glDeleteQueriesEXT@Base 331 +#MISSING: 387.22# glDeleteQueryResourceTagNV@Base 387.22 glDeleteRenderbuffers@Base 180 glDeleteRenderbuffersEXT@Base 1.0.7664 glDeleteRenderbuffersOES@Base 325 @@ -596,6 +599,7 @@ glGenQueries@Base 1.0.6106 glGenQueriesARB@Base 1.0.5328 glGenQueriesEXT@Base 331 +#MISSING: 387.22# glGenQueryResourceTagNV@Base 387.22 glGenRenderbuffers@Base 180 glGenRenderbuffersEXT@Base 1.0.7664 glGenRenderbuffersOES@Base 325 @@ -1207,6 +1211,7 @@ glMatrixTranslatedEXT@Base 180 glMatrixTranslatefEXT@Base 180 glMaxShaderCompilerThreadsARB@Base 358 +#MISSING: 387.22# glMaxShaderCompilerThreadsKHR@Base 387.22 glMemoryBarrier@Base 285 glMemoryBarrierByRegion@Base 337 glMemoryBarrierEXT@Base 195 @@ -1228,6 +1233,7 @@ glMultiDrawArraysIndirectAMD@Base 302 glMultiDrawArraysIndirectBindlessCountNV@Base 340 glMultiDrawArraysIndirectBindlessNV@Base 325 +#MISSING: 387.22# glMultiDrawArraysIndirectCount@Base 387.22 glMultiDrawArraysIndirectCountARB@Base 331 glMultiDrawArraysIndirectEXT@Base 346 glMultiDrawElements@Base 1.0.4349 @@ -1237,6 +1243,7 @@ glMultiDrawElementsIndirectAMD@Base 302 glMultiDrawElementsIndirectBindlessCountNV@Base 340 glMultiDrawElementsIndirectBindlessNV@Base 325 +#MISSING: 387.22# glMultiDrawElementsIndirectCount@Base 387.22 glMultiDrawElementsIndirectCountARB@Base 331 glMultiDrawElementsIndirectEXT@Base 346 glMultiTexBufferEXT@Base 180 @@ -1484,6 +1491,7 @@ glPolygonMode@Base 1.0.4349 glPolygonModeNV@Base 349 glPolygonOffset@Base 1.0.4349 +#MISSING: 387.22# glPolygonOffsetClamp@Base 387.22 glPolygonOffsetClampEXT@Base 346 glPolygonOffsetx@Base 302 glPolygonStipple@Base 1.0.4349 diff -Nru nvidia-graphics-drivers-384.90/debian/libgles-nvidia1.symbols nvidia-graphics-drivers-387.22/debian/libgles-nvidia1.symbols --- nvidia-graphics-drivers-384.90/debian/libgles-nvidia1.symbols 2017-07-01 17:38:28.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/libgles-nvidia1.symbols 2017-11-08 12:50:48.000000000 +0100 @@ -1,5 +1,6 @@ libGLESv1_CM_nvidia.so.1 #PACKAGE# #MINVER# - NvGlEsInit@Base 361 + NvGlApiInit@Base 387.22 +#MISSING: 387.22# NvGlEsInit@Base 361 glActiveTexture@Base 361 glAlphaFunc@Base 361 glAlphaFuncx@Base 361 diff -Nru nvidia-graphics-drivers-384.90/debian/libgles-nvidia2.symbols nvidia-graphics-drivers-387.22/debian/libgles-nvidia2.symbols --- nvidia-graphics-drivers-384.90/debian/libgles-nvidia2.symbols 2017-07-01 17:38:28.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/libgles-nvidia2.symbols 2017-11-08 12:50:48.000000000 +0100 @@ -1,6 +1,7 @@ libGLESv2_nvidia.so.2 #PACKAGE# #MINVER# NvClientRedirInit@Base 361 - NvGlEs2Init@Base 361 + NvGlApiInit@Base 387.22 +#MISSING: 387.22# NvGlEs2Init@Base 361 glActiveShaderProgram@Base 361 glActiveTexture@Base 361 glAttachShader@Base 361 diff -Nru nvidia-graphics-drivers-384.90/debian/libglx-nvidia0.symbols nvidia-graphics-drivers-387.22/debian/libglx-nvidia0.symbols --- nvidia-graphics-drivers-384.90/debian/libglx-nvidia0.symbols 2017-09-05 11:02:25.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/libglx-nvidia0.symbols 2017-11-08 12:50:48.000000000 +0100 @@ -156,7 +156,9 @@ glClearNamedFramebufferuiv@Base 361.28 glClearStencil@Base 361.28 glClearTexImage@Base 361.28 + glClearTexImageEXT@Base 387.22 glClearTexSubImage@Base 361.28 + glClearTexSubImageEXT@Base 387.22 glClientActiveTexture@Base 361.28 glClientActiveTextureARB@Base 361.28 glClientAttribDefaultEXT@Base 361.28 @@ -367,6 +369,7 @@ glDeleteQueries@Base 361.28 glDeleteQueriesARB@Base 361.28 glDeleteQueriesEXT@Base 361.28 + glDeleteQueryResourceTagNV@Base 387.22 glDeleteRenderbuffers@Base 361.28 glDeleteRenderbuffersEXT@Base 361.28 glDeleteRenderbuffersOES@Base 361.28 @@ -604,6 +607,7 @@ glGenQueries@Base 361.28 glGenQueriesARB@Base 361.28 glGenQueriesEXT@Base 361.28 + glGenQueryResourceTagNV@Base 387.22 glGenRenderbuffers@Base 361.28 glGenRenderbuffersEXT@Base 361.28 glGenRenderbuffersOES@Base 361.28 @@ -1219,6 +1223,7 @@ glMatrixTranslatedEXT@Base 361.28 glMatrixTranslatefEXT@Base 361.28 glMaxShaderCompilerThreadsARB@Base 361.28 + glMaxShaderCompilerThreadsKHR@Base 387.22 glMemoryBarrier@Base 361.28 glMemoryBarrierByRegion@Base 361.28 glMemoryBarrierEXT@Base 361.28 @@ -1241,6 +1246,7 @@ glMultiDrawArraysIndirectAMD@Base 361.28 glMultiDrawArraysIndirectBindlessCountNV@Base 361.28 glMultiDrawArraysIndirectBindlessNV@Base 361.28 + glMultiDrawArraysIndirectCount@Base 387.22 glMultiDrawArraysIndirectCountARB@Base 361.28 glMultiDrawArraysIndirectEXT@Base 361.28 glMultiDrawElements@Base 361.28 @@ -1250,6 +1256,7 @@ glMultiDrawElementsIndirectAMD@Base 361.28 glMultiDrawElementsIndirectBindlessCountNV@Base 361.28 glMultiDrawElementsIndirectBindlessNV@Base 361.28 + glMultiDrawElementsIndirectCount@Base 387.22 glMultiDrawElementsIndirectCountARB@Base 361.28 glMultiDrawElementsIndirectEXT@Base 361.28 glMultiTexBufferEXT@Base 361.28 @@ -1498,6 +1505,7 @@ glPolygonMode@Base 361.28 glPolygonModeNV@Base 361.28 glPolygonOffset@Base 361.28 + glPolygonOffsetClamp@Base 387.22 glPolygonOffsetClampEXT@Base 361.28 glPolygonOffsetx@Base 361.28 glPolygonStipple@Base 361.28 @@ -1715,7 +1723,9 @@ glQueryCounter@Base 361.28 glQueryCounterEXT@Base 361.28 glQueryCounterNV@Base 361.28 - glQueryResourceNVX@Base 361.28 + glQueryResourceNV@Base 387.22 +#MISSING: 387.22# glQueryResourceNVX@Base 361.28 + glQueryResourceTagNV@Base 387.22 glRasterPos2d@Base 361.28 glRasterPos2dv@Base 361.28 glRasterPos2f@Base 361.28 @@ -1854,6 +1864,7 @@ glSignalSemaphoreEXT@Base 384.69 glSignalVkFenceNV@Base 364 glSignalVkSemaphoreNV@Base 364 + glSpecializeShader@Base 387.22 glSpecializeShaderARB@Base 367.36.02 glStateCaptureNV@Base 361.28 glStencilFillPathInstancedNV@Base 361.28 diff -Nru nvidia-graphics-drivers-384.90/debian/libnvcuvid1.symbols nvidia-graphics-drivers-387.22/debian/libnvcuvid1.symbols --- nvidia-graphics-drivers-384.90/debian/libnvcuvid1.symbols 2017-07-01 17:38:29.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/libnvcuvid1.symbols 2017-11-08 12:50:48.000000000 +0100 @@ -1,5 +1,6 @@ libnvcuvid.so.1 #PACKAGE# #MINVER# __std_1U4S4U_X02@Base 310 + __std_2U4S4U_X08@Base 387.22 cuvidCreateDecoder@Base 260 cuvidCreateVideoParser@Base 260 cuvidCreateVideoSource@Base 275 diff -Nru nvidia-graphics-drivers-384.90/debian/libnvidia-eglcore.symbols.in nvidia-graphics-drivers-387.22/debian/libnvidia-eglcore.symbols.in --- nvidia-graphics-drivers-384.90/debian/libnvidia-eglcore.symbols.in 2017-09-05 11:02:25.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/libnvidia-eglcore.symbols.in 2017-11-08 12:50:48.000000000 +0100 @@ -156,7 +156,9 @@ _glClearNamedFramebufferuiv@Base 346 _glClearStencil@Base 346 _glClearTexImage@Base 346 + _glClearTexImageEXT@Base 387.22 _glClearTexSubImage@Base 346 + _glClearTexSubImageEXT@Base 387.22 _glClientActiveTexture@Base 346 _glClientActiveTextureARB@Base 346 _glClientAttribDefaultEXT@Base 346 @@ -367,6 +369,7 @@ _glDeleteQueries@Base 346 _glDeleteQueriesARB@Base 346 _glDeleteQueriesEXT@Base 346 + _glDeleteQueryResourceTagNV@Base 387.22 _glDeleteRenderbuffers@Base 346 _glDeleteRenderbuffersEXT@Base 346 _glDeleteRenderbuffersOES@Base 346 @@ -606,6 +609,7 @@ _glGenQueries@Base 346 _glGenQueriesARB@Base 346 _glGenQueriesEXT@Base 346 + _glGenQueryResourceTagNV@Base 387.22 _glGenRenderbuffers@Base 346 _glGenRenderbuffersEXT@Base 346 _glGenRenderbuffersOES@Base 346 @@ -1221,6 +1225,7 @@ _glMatrixTranslatedEXT@Base 346 _glMatrixTranslatefEXT@Base 346 _glMaxShaderCompilerThreadsARB@Base 358 + _glMaxShaderCompilerThreadsKHR@Base 387.22 _glMemoryBarrier@Base 346 _glMemoryBarrierByRegion@Base 346 _glMemoryBarrierEXT@Base 346 @@ -1243,6 +1248,7 @@ _glMultiDrawArraysIndirectAMD@Base 346 _glMultiDrawArraysIndirectBindlessCountNV@Base 346 _glMultiDrawArraysIndirectBindlessNV@Base 346 + _glMultiDrawArraysIndirectCount@Base 387.22 _glMultiDrawArraysIndirectCountARB@Base 346 _glMultiDrawArraysIndirectEXT@Base 346 _glMultiDrawElements@Base 346 @@ -1252,6 +1258,7 @@ _glMultiDrawElementsIndirectAMD@Base 346 _glMultiDrawElementsIndirectBindlessCountNV@Base 346 _glMultiDrawElementsIndirectBindlessNV@Base 346 + _glMultiDrawElementsIndirectCount@Base 387.22 _glMultiDrawElementsIndirectCountARB@Base 346 _glMultiDrawElementsIndirectEXT@Base 346 _glMultiTexBufferEXT@Base 346 @@ -1499,6 +1506,7 @@ _glPolygonMode@Base 346 _glPolygonModeNV@Base 349 _glPolygonOffset@Base 346 + _glPolygonOffsetClamp@Base 387.22 _glPolygonOffsetClampEXT@Base 346 _glPolygonOffsetx@Base 346 _glPolygonStipple@Base 346 @@ -1716,7 +1724,9 @@ _glQueryCounter@Base 346 _glQueryCounterEXT@Base 346 _glQueryCounterNV@Base 346 - _glQueryResourceNVX@Base 355 + _glQueryResourceNV@Base 387.22 +#MISSING: 387.22# _glQueryResourceNVX@Base 355 + _glQueryResourceTagNV@Base 387.22 _glRasterPos2d@Base 346 _glRasterPos2dv@Base 346 _glRasterPos2f@Base 346 @@ -1855,6 +1865,7 @@ _glSignalSemaphoreEXT@Base 384.69 _glSignalVkFenceNV@Base 364 _glSignalVkSemaphoreNV@Base 364 + _glSpecializeShader@Base 387.22 _glSpecializeShaderARB@Base 367.36.02 _glStateCaptureNV@Base 346 _glStencilFillPathInstancedNV@Base 346 diff -Nru nvidia-graphics-drivers-384.90/debian/libnvidia-egl-wayland1.install.in nvidia-graphics-drivers-387.22/debian/libnvidia-egl-wayland1.install.in --- nvidia-graphics-drivers-384.90/debian/libnvidia-egl-wayland1.install.in 2017-07-01 17:38:28.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/libnvidia-egl-wayland1.install.in 2017-11-08 12:10:11.000000000 +0100 @@ -1 +1 @@ -libnvidia-egl-wayland.so.1.0.1 #LIBDIR#/ +libnvidia-egl-wayland.so.1.0.2 #LIBDIR#/ diff -Nru nvidia-graphics-drivers-384.90/debian/libnvidia-egl-wayland1.symbols.in nvidia-graphics-drivers-387.22/debian/libnvidia-egl-wayland1.symbols.in --- nvidia-graphics-drivers-384.90/debian/libnvidia-egl-wayland1.symbols.in 2017-07-01 17:38:28.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/libnvidia-egl-wayland1.symbols.in 2017-11-08 12:50:48.000000000 +0100 @@ -1,2 +1,3 @@ -libnvidia-egl-wayland.so.1.0.1 #PACKAGE# #MINVER# +libnvidia-egl-wayland.so.1.0.2 #PACKAGE# #MINVER# loadEGLExternalPlatform@Base 378 + wl_eglstream_controller_interface@Base 387.22 diff -Nru nvidia-graphics-drivers-384.90/debian/module/debian/patches/arm-outer-sync.patch nvidia-graphics-drivers-387.22/debian/module/debian/patches/arm-outer-sync.patch --- nvidia-graphics-drivers-384.90/debian/module/debian/patches/arm-outer-sync.patch 2017-07-01 17:38:28.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/module/debian/patches/arm-outer-sync.patch 2017-11-08 12:07:05.000000000 +0100 @@ -3,8 +3,10 @@ From kernel 4.3 and newer (commit f81309067ff2) ARM function outer_sync is no longer present. Instead, behind a CONFIG_ARM_HEAVY_MB flag, arm_heavy_mb is defined. Fall back to no memory barrier at all if that is not configured. ---- a/common/inc/nv-linux.h -+++ b/common/inc/nv-linux.h +Index: nvidia-current-387.22/common/inc/nv-linux.h +=================================================================== +--- nvidia-current-387.22.orig/common/inc/nv-linux.h 2017-11-08 12:07:04.636292059 +0100 ++++ nvidia-current-387.22/common/inc/nv-linux.h 2017-11-08 12:07:04.636292059 +0100 @@ -461,7 +461,13 @@ #if defined(CONFIG_OUTER_CACHE) #define OUTER_FLUSH_RANGE(start, end) outer_flush_range((start),(end)) @@ -19,8 +21,10 @@ #elif defined(NVCPU_AARCH64) static inline void nv_flush_cache_cpu(void *info) { ---- a/nvidia-drm/nvidia-drm-linux.c -+++ b/nvidia-drm/nvidia-drm-linux.c +Index: nvidia-current-387.22/nvidia-drm/nvidia-drm-linux.c +=================================================================== +--- nvidia-current-387.22.orig/nvidia-drm/nvidia-drm-linux.c 2017-11-08 12:07:04.636292059 +0100 ++++ nvidia-current-387.22/nvidia-drm/nvidia-drm-linux.c 2017-11-08 12:07:04.636292059 +0100 @@ -23,6 +23,7 @@ #include <linux/module.h> #include <linux/slab.h> @@ -29,7 +33,7 @@ #include "nvidia-drm-os-interface.h" #include "nvidia-drm.h" -@@ -95,7 +95,13 @@ +@@ -70,7 +71,13 @@ #define WRITE_COMBINE_FLUSH() asm volatile("sfence":::"memory") #elif defined(NVCPU_FAMILY_ARM) #if defined(NVCPU_ARM) diff -Nru nvidia-graphics-drivers-384.90/debian/module/debian/patches/cc_version_check-gcc5.patch nvidia-graphics-drivers-387.22/debian/module/debian/patches/cc_version_check-gcc5.patch --- nvidia-graphics-drivers-384.90/debian/module/debian/patches/cc_version_check-gcc5.patch 2017-07-01 17:38:28.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/module/debian/patches/cc_version_check-gcc5.patch 2017-11-08 12:06:53.000000000 +0100 @@ -3,9 +3,11 @@ starting with GCC 5, the major version will be bumped for each release and __GNUC_MINOR__ will only denote bugfix releases ---- a/conftest.sh -+++ b/conftest.sh -@@ -1747,7 +1747,7 @@ case "$6" in +Index: nvidia-current-387.22/conftest.sh +=================================================================== +--- nvidia-current-387.22.orig/conftest.sh 2017-11-08 12:06:52.300164868 +0100 ++++ nvidia-current-387.22/conftest.sh 2017-11-08 12:06:52.296164827 +0100 +@@ -3161,7 +3161,7 @@ kernel_cc_minor=`echo ${kernel_cc_version} | cut -d '.' -f 2` echo " diff -Nru nvidia-graphics-drivers-384.90/debian/module/debian/patches/conftest-verbose.patch nvidia-graphics-drivers-387.22/debian/module/debian/patches/conftest-verbose.patch --- nvidia-graphics-drivers-384.90/debian/module/debian/patches/conftest-verbose.patch 2017-07-01 17:38:28.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/module/debian/patches/conftest-verbose.patch 2017-11-08 12:06:51.000000000 +0100 @@ -1,9 +1,11 @@ Author: Andreas Beckmann <a...@debian.org> Description: dump the generated conftest headers ---- a/Kbuild -+++ b/Kbuild -@@ -107,6 +107,15 @@ NV_CONFTEST_HEADERS += $(obj)/conftest/h +Index: nvidia-current-387.22/Kbuild +=================================================================== +--- nvidia-current-387.22.orig/Kbuild 2017-11-08 12:06:50.240143637 +0100 ++++ nvidia-current-387.22/Kbuild 2017-11-08 12:06:50.240143637 +0100 +@@ -108,6 +108,15 @@ NV_CONFTEST_HEADERS += $(NV_CONFTEST_COMPILE_TEST_HEADERS) @@ -19,7 +21,7 @@ # # Generate a header file for a single conftest compile test. Each compile test # header depends on conftest.sh, as well as the generated conftest/headers.h -@@ -131,6 +140,8 @@ define NV_GENERATE_COMPILE_TEST_HEADER +@@ -132,6 +141,8 @@ @mkdir -p $(obj)/conftest @# concatenate /dev/null to prevent cat from hanging when $$^ is empty @cat $$^ /dev/null > $$@ @@ -28,7 +30,7 @@ endef # -@@ -150,13 +161,17 @@ $(eval $(call NV_GENERATE_COMPILE_TEST_H +@@ -151,13 +162,17 @@ $(eval $(call NV_GENERATE_COMPILE_TEST_HEADER,symbols,$(NV_CONFTEST_SYMBOL_COMPILE_TESTS))) $(eval $(call NV_GENERATE_COMPILE_TEST_HEADER,types,$(NV_CONFTEST_TYPE_COMPILE_TESTS))) diff -Nru nvidia-graphics-drivers-384.90/debian/module/debian/patches/ignore_xen_on_arm.patch nvidia-graphics-drivers-387.22/debian/module/debian/patches/ignore_xen_on_arm.patch --- nvidia-graphics-drivers-384.90/debian/module/debian/patches/ignore_xen_on_arm.patch 2017-07-01 17:38:28.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/module/debian/patches/ignore_xen_on_arm.patch 2017-11-08 12:07:03.000000000 +0100 @@ -10,9 +10,12 @@ It is recommended to build an armmp kernel with CONFIG_XEN disabled (or with CONFIG_XEN_PARAVIRT enabled) to use the Nvidia drivers. ---- a/common/inc/nv-linux.h -+++ b/common/inc/nv-linux.h -@@ -42,5 +42,10 @@ +Index: nvidia-current-387.22/common/inc/nv-linux.h +=================================================================== +--- nvidia-current-387.22.orig/common/inc/nv-linux.h 2017-11-08 12:07:02.448269494 +0100 ++++ nvidia-current-387.22/common/inc/nv-linux.h 2017-11-08 12:07:02.444269453 +0100 +@@ -42,6 +42,11 @@ + #include <linux/version.h> #include <linux/utsname.h> +#if defined(NVCPU_ARM) && LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0) @@ -23,7 +26,7 @@ #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 9) #error "This driver does not support kernels older than 2.6.9!" #elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 7, 0) -@@ -258,7 +263,7 @@ NV_STATUS nvos_forward_error_to_cray(str +@@ -280,7 +285,7 @@ * NVIDIA graphics driver has no way of knowing and is unlikely * to work correctly. */ @@ -32,9 +35,11 @@ #include <asm/maddr.h> #include <xen/interface/memory.h> #define NV_XEN_SUPPORT_FULLY_VIRTUALIZED_KERNEL ---- a/conftest.sh -+++ b/conftest.sh -@@ -39,7 +39,8 @@ +Index: nvidia-current-387.22/conftest.sh +=================================================================== +--- nvidia-current-387.22.orig/conftest.sh 2017-11-08 12:07:02.448269494 +0100 ++++ nvidia-current-387.22/conftest.sh 2017-11-08 12:07:02.444269453 +0100 +@@ -48,7 +48,8 @@ # CONFIG_XEN and CONFIG_PARAVIRT are present, text_xen() treats # the kernel as a stand-alone kernel. # diff -Nru nvidia-graphics-drivers-384.90/debian/module/debian/patches/include-swiotlb-header-on-arm.patch nvidia-graphics-drivers-387.22/debian/module/debian/patches/include-swiotlb-header-on-arm.patch --- nvidia-graphics-drivers-384.90/debian/module/debian/patches/include-swiotlb-header-on-arm.patch 2017-07-01 17:38:28.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/module/debian/patches/include-swiotlb-header-on-arm.patch 2017-11-08 12:07:01.000000000 +0100 @@ -4,9 +4,11 @@ includes it if CONFIG_ARM64 is set. Patch nv-linux.h to also include it if CONFIG_ARM is set. ---- a/common/inc/nv-linux.h -+++ b/common/inc/nv-linux.h -@@ -150,7 +150,7 @@ +Index: nvidia-current-387.22/common/inc/nv-linux.h +=================================================================== +--- nvidia-current-387.22.orig/common/inc/nv-linux.h 2017-11-08 12:07:00.272247055 +0100 ++++ nvidia-current-387.22/common/inc/nv-linux.h 2017-11-08 12:07:00.268247014 +0100 +@@ -177,7 +177,7 @@ #include <linux/dma-mapping.h> #endif diff -Nru nvidia-graphics-drivers-384.90/debian/module/debian/patches/nvidia-drm-arm-cflags.patch nvidia-graphics-drivers-387.22/debian/module/debian/patches/nvidia-drm-arm-cflags.patch --- nvidia-graphics-drivers-384.90/debian/module/debian/patches/nvidia-drm-arm-cflags.patch 2017-07-01 17:38:28.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/module/debian/patches/nvidia-drm-arm-cflags.patch 2017-11-08 12:07:07.000000000 +0100 @@ -7,9 +7,11 @@ block -- `movne r0,#1' As a workaround, add -Wa,-mimplicit-it=thumb to the CFLAGS if building on arm. ---- a/conftest.sh -+++ b/conftest.sh -@@ -146,7 +146,7 @@ +Index: nvidia-current-387.22/conftest.sh +=================================================================== +--- nvidia-current-387.22.orig/conftest.sh 2017-11-08 12:07:06.680313141 +0100 ++++ nvidia-current-387.22/conftest.sh 2017-11-08 12:07:06.676313100 +0100 +@@ -177,7 +177,7 @@ done if [ "$ARCH" = "arm" ]; then diff -Nru nvidia-graphics-drivers-384.90/debian/module/debian/patches/nvidia-drm-crtc.patch nvidia-graphics-drivers-387.22/debian/module/debian/patches/nvidia-drm-crtc.patch --- nvidia-graphics-drivers-384.90/debian/module/debian/patches/nvidia-drm-crtc.patch 2017-10-13 14:25:45.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/module/debian/patches/nvidia-drm-crtc.patch 2017-11-08 12:06:05.000000000 +0100 @@ -4,9 +4,11 @@ "enable" has been changed to "atomic_enable". From commit e6fc3b68558e4c6d a new parameter has been added to drm_universal_plane_init, a pointer to a format modifier that is not used yet. ---- a/nvidia-drm/nvidia-drm-crtc.c -+++ b/nvidia-drm/nvidia-drm-crtc.c -@@ -33,6 +33,8 @@ +Index: nvidia-current-387.22/nvidia-drm/nvidia-drm-crtc.c +=================================================================== +--- nvidia-current-387.22.orig/nvidia-drm/nvidia-drm-crtc.c 2017-11-08 12:04:48.286891016 +0100 ++++ nvidia-current-387.22/nvidia-drm/nvidia-drm-crtc.c 2017-11-08 12:04:48.282890975 +0100 +@@ -35,6 +35,8 @@ #include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> @@ -15,7 +17,7 @@ static const u32 nv_default_supported_plane_drm_formats[] = { DRM_FORMAT_ARGB1555, DRM_FORMAT_XRGB1555, -@@ -162,7 +164,11 @@ +@@ -169,7 +171,11 @@ } @@ -27,45 +29,3 @@ { } -@@ -170,7 +176,11 @@ - static const struct drm_crtc_helper_funcs nv_crtc_helper_funcs = { - .prepare = nvidia_crtc_prepare, - .commit = nvidia_crtc_commit, -+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0) - .enable = nvidia_crtc_enable, -+#else -+ .atomic_enable = nvidia_crtc_enable, -+#endif - .disable = nvidia_crtc_disable, - .mode_fixup = nvidia_crtc_mode_fixup, - }; -@@ -223,6 +233,9 @@ - dev, - plane, crtc_mask, funcs, - formats, formats_count, -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0) -+ NULL, -+#endif - plane_type - #if defined(NV_DRM_INIT_FUNCTIONS_HAVE_NAME_ARG) - , NULL ---- a/conftest.sh -+++ b/conftest.sh -@@ -2183,6 +2183,7 @@ - # - CODE=" - #include <drm/drmP.h> -+ #include <linux/version.h> - int conftest_drm_init_functions_have_name_arg(void) { - return - drm_universal_plane_init( -@@ -2192,6 +2193,9 @@ - NULL, /* const struct drm_plane_funcs *funcs */ - NULL, /* const uint32_t *formats */ - 0, /* unsigned int format_count */ -+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0) -+ NULL, -+ #endif - DRM_PLANE_TYPE_PRIMARY, - NULL) /* const char *name */ - && diff -Nru nvidia-graphics-drivers-384.90/debian/module/debian/patches/nvidia-modeset-use-ARCH.o_binary.patch nvidia-graphics-drivers-387.22/debian/module/debian/patches/nvidia-modeset-use-ARCH.o_binary.patch --- nvidia-graphics-drivers-384.90/debian/module/debian/patches/nvidia-modeset-use-ARCH.o_binary.patch 2017-07-01 17:38:28.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/module/debian/patches/nvidia-modeset-use-ARCH.o_binary.patch 2017-11-08 12:06:59.000000000 +0100 @@ -1,9 +1,11 @@ Author: Andreas Beckmann <a...@debian.org> Description: select the correct nv-modeset-kernel.o blob for the target architecture ---- a/nvidia-modeset/nvidia-modeset.Kbuild -+++ b/nvidia-modeset/nvidia-modeset.Kbuild -@@ -35,7 +35,11 @@ NV_KERNEL_MODULE_TARGETS += $(NVIDIA_MOD +Index: nvidia-current-387.22/nvidia-modeset/nvidia-modeset.Kbuild +=================================================================== +--- nvidia-current-387.22.orig/nvidia-modeset/nvidia-modeset.Kbuild 2017-11-08 12:06:57.912222722 +0100 ++++ nvidia-current-387.22/nvidia-modeset/nvidia-modeset.Kbuild 2017-11-08 12:06:57.908222680 +0100 +@@ -35,7 +35,11 @@ # But, the target for the symlink rule should be prepended with $(obj). # diff -Nru nvidia-graphics-drivers-384.90/debian/module/debian/patches/nvidia-use-ARCH.o_binary.patch nvidia-graphics-drivers-387.22/debian/module/debian/patches/nvidia-use-ARCH.o_binary.patch --- nvidia-graphics-drivers-384.90/debian/module/debian/patches/nvidia-use-ARCH.o_binary.patch 2017-07-01 17:38:28.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/module/debian/patches/nvidia-use-ARCH.o_binary.patch 2017-11-08 12:06:56.000000000 +0100 @@ -5,9 +5,11 @@ This patch makes the build system select the correct one depending on the kernel architecture the module is built for. ---- a/nvidia/nvidia.Kbuild -+++ b/nvidia/nvidia.Kbuild -@@ -37,7 +37,11 @@ NVIDIA_KO = nvidia/nvidia.ko +Index: nvidia-current-387.22/nvidia/nvidia.Kbuild +=================================================================== +--- nvidia-current-387.22.orig/nvidia/nvidia.Kbuild 2017-11-08 12:06:54.524187794 +0100 ++++ nvidia-current-387.22/nvidia/nvidia.Kbuild 2017-11-08 12:06:54.520187752 +0100 +@@ -62,7 +62,11 @@ # and needs to be re-executed. # @@ -19,4 +21,4 @@ +NVIDIA_BINARY_OBJECT := $(src)/nvidia/$(NVIDIA_BINARY_OBJECT-y) NVIDIA_BINARY_OBJECT_O := nvidia/nv-kernel.o - quiet_cmd_symlink = SYMLINK $@ + # diff -Nru nvidia-graphics-drivers-384.90/debian/module/debian/patches/use-kbuild-compiler.patch nvidia-graphics-drivers-387.22/debian/module/debian/patches/use-kbuild-compiler.patch --- nvidia-graphics-drivers-384.90/debian/module/debian/patches/use-kbuild-compiler.patch 2017-07-01 17:38:28.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/module/debian/patches/use-kbuild-compiler.patch 2017-11-08 12:06:40.000000000 +0100 @@ -5,13 +5,15 @@ the kernel itself. Remove the CC parameter from upstream's Makefile's make invocation. ---- a/Makefile -+++ b/Makefile -@@ -78,7 +78,7 @@ else +Index: nvidia-current-387.22/Makefile +=================================================================== +--- nvidia-current-387.22.orig/Makefile 2017-11-08 12:06:12.451754571 +0100 ++++ nvidia-current-387.22/Makefile 2017-11-08 12:06:33.307969208 +0100 +@@ -81,7 +81,7 @@ .PHONY: modules module clean clean_conftest modules_install modules clean modules_install: -- $(MAKE) "CC=$(CC)" $(KBUILD_PARAMS) $@ +- @$(MAKE) "CC=$(CC)" $(KBUILD_PARAMS) $@ + $(MAKE) $(KBUILD_PARAMS) $@ @if [ "$@" = "modules" ]; then \ for module in $(NV_KERNEL_MODULES); do \ diff -Nru nvidia-graphics-drivers-384.90/debian/module/debian/patches/use-kbuild-flags.patch nvidia-graphics-drivers-387.22/debian/module/debian/patches/use-kbuild-flags.patch --- nvidia-graphics-drivers-384.90/debian/module/debian/patches/use-kbuild-flags.patch 2017-07-01 17:38:28.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/module/debian/patches/use-kbuild-flags.patch 2017-11-08 12:06:46.000000000 +0100 @@ -3,9 +3,11 @@ allows building a amd64 kernel module with i386 user space skip -Werror=* since that breaks how conftest.sh detects stuff ---- a/Kbuild -+++ b/Kbuild -@@ -94,6 +94,7 @@ NV_CONFTEST_CMD := /bin/sh $(NV_CONFTEST +Index: nvidia-current-387.22/Kbuild +=================================================================== +--- nvidia-current-387.22.orig/Kbuild 2017-11-08 12:06:44.656086095 +0100 ++++ nvidia-current-387.22/Kbuild 2017-11-08 12:06:44.652086054 +0100 +@@ -95,6 +95,7 @@ "$(CC)" "$(HOST_CC)" $(ARCH) $(NV_KERNEL_SOURCES) $(NV_KERNEL_OUTPUT) NV_CONFTEST_CFLAGS := $(shell $(NV_CONFTEST_CMD) build_cflags) @@ -13,9 +15,11 @@ NV_CONFTEST_COMPILE_TEST_HEADERS := $(obj)/conftest/macros.h NV_CONFTEST_COMPILE_TEST_HEADERS += $(obj)/conftest/functions.h ---- a/nvidia/nvidia.Kbuild -+++ b/nvidia/nvidia.Kbuild -@@ -87,7 +87,7 @@ NVIDIA_INTERFACE := nvidia/nv-interface. +Index: nvidia-current-387.22/nvidia/nvidia.Kbuild +=================================================================== +--- nvidia-current-387.22.orig/nvidia/nvidia.Kbuild 2017-11-08 12:06:44.656086095 +0100 ++++ nvidia-current-387.22/nvidia/nvidia.Kbuild 2017-11-08 12:06:44.652086054 +0100 +@@ -181,7 +181,7 @@ always += $(NVIDIA_INTERFACE) $(obj)/$(NVIDIA_INTERFACE): $(addprefix $(obj)/,$(NVIDIA_OBJECTS)) @@ -24,9 +28,11 @@ # ---- a/Makefile -+++ b/Makefile -@@ -111,7 +111,7 @@ else +Index: nvidia-current-387.22/Makefile +=================================================================== +--- nvidia-current-387.22.orig/Makefile 2017-11-08 12:06:44.656086095 +0100 ++++ nvidia-current-387.22/Makefile 2017-11-08 12:06:44.652086054 +0100 +@@ -114,7 +114,7 @@ # cannot be defined in the *Kbuild files, which are only used during stage 1. %-linux.o: modules @@ -35,9 +41,11 @@ $(subst nv,nvidia,$*).mod.o $(subst nv,nvidia,$*)/$*-interface.o # Kbuild's "clean" rule won't clean up the conftest headers on its own, and ---- a/nvidia-modeset/nvidia-modeset.Kbuild -+++ b/nvidia-modeset/nvidia-modeset.Kbuild -@@ -70,7 +70,7 @@ NVIDIA_MODESET_INTERFACE := nvidia-modes +Index: nvidia-current-387.22/nvidia-modeset/nvidia-modeset.Kbuild +=================================================================== +--- nvidia-current-387.22.orig/nvidia-modeset/nvidia-modeset.Kbuild 2017-11-08 12:06:44.656086095 +0100 ++++ nvidia-current-387.22/nvidia-modeset/nvidia-modeset.Kbuild 2017-11-08 12:06:44.652086054 +0100 +@@ -70,7 +70,7 @@ always += $(NVIDIA_MODESET_INTERFACE) $(obj)/$(NVIDIA_MODESET_INTERFACE): $(addprefix $(obj)/,$(NVIDIA_MODESET_OBJECTS)) diff -Nru nvidia-graphics-drivers-384.90/debian/module/debian/patches/use-kbuild-gcc-plugins.patch nvidia-graphics-drivers-387.22/debian/module/debian/patches/use-kbuild-gcc-plugins.patch --- nvidia-graphics-drivers-384.90/debian/module/debian/patches/use-kbuild-gcc-plugins.patch 2017-10-30 01:54:01.000000000 +0100 +++ nvidia-graphics-drivers-387.22/debian/module/debian/patches/use-kbuild-gcc-plugins.patch 2017-11-08 12:06:49.000000000 +0100 @@ -2,9 +2,11 @@ Description: ignore GCC plugins fixes build failure when a kernel is built with CONFIG_GCC_PLUGINS, CONFIG_GCC_PLUGIN_STRUCTLEAK and CONFIG_GCC_PLUGIN_RANDSTRUCT. ---- a/Kbuild -+++ b/Kbuild -@@ -94,7 +94,7 @@ NV_CONFTEST_CMD := /bin/sh $(NV_CONFTEST +Index: nvidia-current-387.22/Kbuild +=================================================================== +--- nvidia-current-387.22.orig/Kbuild 2017-11-08 12:06:47.972120264 +0100 ++++ nvidia-current-387.22/Kbuild 2017-11-08 12:06:47.968120222 +0100 +@@ -95,7 +95,7 @@ "$(CC)" "$(HOST_CC)" $(ARCH) $(NV_KERNEL_SOURCES) $(NV_KERNEL_OUTPUT) NV_CONFTEST_CFLAGS := $(shell $(NV_CONFTEST_CMD) build_cflags) diff -Nru nvidia-graphics-drivers-384.90/debian/nv-readme.ids nvidia-graphics-drivers-387.22/debian/nv-readme.ids --- nvidia-graphics-drivers-384.90/debian/nv-readme.ids 2017-10-03 20:42:15.000000000 +0200 +++ nvidia-graphics-drivers-387.22/debian/nv-readme.ids 2017-11-07 19:34:34.000000000 +0100 @@ -332,11 +332,13 @@ 10DE1BB6 10DE1BB7 10DE1BB8 +10DE1BC7 10DE1BE0 10DE1BE1 10DE1C02 10DE1C03 10DE1C07 +10DE1C09 10DE1C20 10DE1C21 10DE1C22 @@ -354,3 +356,5 @@ 10DE1D01 10DE1D10 10DE1D12 +10DE1DB1 +10DE1DB4 diff -Nru nvidia-graphics-drivers-384.90/i386/NVIDIA-Linux-x86-384.90.run nvidia-graphics-drivers-387.22/i386/NVIDIA-Linux-x86-384.90.run \ No hi ha cap carà cter de salt de lÃnia al final del fitxer diff -Nru nvidia-graphics-drivers-384.90/i386/NVIDIA-Linux-x86-387.22.run nvidia-graphics-drivers-387.22/i386/NVIDIA-Linux-x86-387.22.run \ No hi ha cap carà cter de salt de lÃnia al final del fitxer