Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750917AbdL3Mgn (ORCPT ); Sat, 30 Dec 2017 07:36:43 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:64381 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750762AbdL3Mgl (ORCPT ); Sat, 30 Dec 2017 07:36:41 -0500 From: Hans-Peter Jansen To: Greg KH Cc: linux-kernel@vger.kernel.org Subject: Re: 4.14.9 broke nvidia 384.98 kernel module Date: Sat, 30 Dec 2017 13:36:33 +0100 Message-ID: <3907598.31jH6naT2q@xrated> User-Agent: KMail/4.14.10 (Linux/4.14.6-3-default; KDE/4.14.28; x86_64; ; ) In-Reply-To: <20171229092356.GA19798@kroah.com> References: <11951640.VTVQv5kjZe@xrated> <20171229092356.GA19798@kroah.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart2962170.LM5udgoD9k" Content-Transfer-Encoding: 7Bit X-Provags-ID: V03:K0:rKTxC4wlZlehRg0ThgyGeL1hq2rdZuR9AXy3CJd4cc5jbkpZBDf bkrjdnMIHjnzSlrmwRw/838BB85e9zoIkjEUik+kLEpOXzAp5Co254erZ+wx5rTNrQfgLFI PrSUQocMaGczTIPicZ42ZOVUU83lriYjRjRJT57BP4a9Vu2jzMKVVuuDw7+DVS8NdZdkSAi 33N0zN0Lt/abUnoiK/tZA== X-UI-Out-Filterresults: notjunk:1;V01:K0:q9aU6uLWrvQ=:MOF90o2zly71SCW7UVZgW0 Cm4DzXsFrZ2tACbA7vBRQ7KP/+AAoEOH9nk598UFJnNw3ZpJEYSo4tFLva83xjrXPeFWkBg/p YIiZ5xfGKDMt/Oglc/qsx/ppTlwqLySnp3g1bN7RCB0pPYHVVO59GEM9MnUxLWZF0x17DYqLh Nl6oSgildNGd/T1DtNIHkXuHoMUZcaKn4NY9XeA3YZwlphTaFfC4CaPRk/V9KwrkN+ApOUASp LyfrP0+ELkOQZ6vaVhEemZ4Y/G3SViDTKlbxy+WhUFNjgJPXQ1ElwaKpO/dQVraHDJe3F9tqf 7yK4x5PJhL/b1Wrp81JtQEqnIQeRP9DYOvZvf14/+mXxOVySfcNABcRr1bEm6RVDRS+uW6km/ jk9KF6Wq938g1eO1nujj4t+pUHf6xrgoojlSh0BGoA3fsssP0VK8aiaey7cNnb0aHnnwkwZP6 gWqtw5nHbVRT83PlrM2BCtKmM2aKLTQSlH8qITh0n8stlTvZN2aaRZ1/h7shHs3WUCJ7Fhwls KxKfCpqTI1ZJFNELiicVeVFjcJ2/UOi5iSDAzc8SLsxEFV0/y+GFYC/RoWy4hRngCGAgzSRy9 vfF9OOVGjtz2s0amsDdDDC+Ehg+h075aXmUqxa/hQmlrtm27r/AtE8WC19S8qiRxMRip5yp8X ILNKGO/z6vt9NqKNtb4U0aOUikFeo2d89YWbTMXAHFclI48QVUywxOHlQwmxnKhfs2h3CmTlY /y1Eiks+wC32HKNrxk+i4OfFgSjMNhv+u7GJOA== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1902 Lines: 55 This is a multi-part message in MIME format. --nextPart2962170.LM5udgoD9k Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" On Freitag, 29. Dezember 2017 10:23:56 Greg KH wrote: > On Fri, Dec 29, 2017 at 02:08:08AM +0100, Hans-Peter Jansen wrote: > > Hi Greg, > > > > I know, everybody hates NVidia and their proprietary stuff around here. > > > > Anyway, I wanted to let you and followers of 4.14 know, that changes > > between> > > 4.14.8 and 4.14.9 broke both current nvidia kernel drivers. See: > > https://devtalk.nvidia.com/default/topic/1028016/linux/patch-for-compilin > > g-v384-98-modules-with-linux-v4-14-9-/ > Should be fixed in 4.14.10-rc1, right? Hmm, building with 4.14.10 without the patch results in: [ 19s] + make -f Makefile nv-linux.o SYSSRC=/lib/modules/4.14.10-3- default/source SYSOUT=/usr/src/linux-obj/x86_64/default [...] [ 88s] /home/abuild/rpmbuild/BUILD/nvidia- gfxG04-384.98/obj/default/384.98/nvidia-uvm/uvm8_va_block.c:8771:41: error: implicit declaration of function 'task_stack_page' [-Werror=implicit-function- declaration] With the patch applied (attached for reference), the build succeeds.. Cheers, Pete --nextPart2962170.LM5udgoD9k Content-Disposition: attachment; filename="nvidia-gfxG04-kernel-4.14.9.patch" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="UTF-8"; name="nvidia-gfxG04-kernel-4.14.9.patch" diff -durN nvidia-384-orig/nvidia-uvm/uvm8_va_block.c nvidia-384/nvidia-uvm/uvm8_va_block.c --- a/kernel/nvidia-uvm/uvm8_va_block.c 2017-12-26 11:20:17.097715622 +0100 +++ b/kernel/nvidia-uvm/uvm8_va_block.c 2017-12-26 11:20:29.674381760 +0100 @@ -36,6 +36,10 @@ #include "uvm8_perf_prefetch.h" #include "uvm8_mem.h" +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,9) +#include +#endif + typedef enum { BLOCK_PTE_OP_MAP, --nextPart2962170.LM5udgoD9k--