From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E624A1382C5 for ; Mon, 7 Dec 2020 12:58:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1D398E0CBB; Mon, 7 Dec 2020 12:58:00 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 02F52E0CBB for ; Mon, 7 Dec 2020 12:57:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D8B94340C93 for ; Mon, 7 Dec 2020 12:57:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 49BD5474 for ; Mon, 7 Dec 2020 12:57:57 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1607345861.477b1935411fdc4646c5ef49a1414faeda70058d.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-drivers/nvidia-drivers/, x11-drivers/nvidia-drivers/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-drivers/nvidia-drivers/files/nvidia-drivers-455.45.01-reduce-kmalloc-limit.patch x11-drivers/nvidia-drivers/nvidia-drivers-455.45.01-r1.ebuild x11-drivers/nvidia-drivers/nvidia-drivers-455.45.01.ebuild X-VCS-Directories: x11-drivers/nvidia-drivers/ x11-drivers/nvidia-drivers/files/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: 477b1935411fdc4646c5ef49a1414faeda70058d X-VCS-Branch: master Date: Mon, 7 Dec 2020 12:57:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 43c0b084-2577-4e32-9f80-30333d36c024 X-Archives-Hash: d09883d4c1b2e94fdf116f670eeb0f31 commit: 477b1935411fdc4646c5ef49a1414faeda70058d Author: David Seifert gentoo org> AuthorDate: Mon Dec 7 12:57:41 2020 +0000 Commit: David Seifert gentoo org> CommitDate: Mon Dec 7 12:57:41 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=477b1935 x11-drivers/nvidia-drivers: Add patch for modesetting allocation failures Bug: https://bugs.gentoo.org/755497 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Suggested-by: Gregory Beauregard gably.net> Signed-off-by: David Seifert gentoo.org> ...nvidia-drivers-455.45.01-reduce-kmalloc-limit.patch | 18 ++++++++++++++++++ ...45.01.ebuild => nvidia-drivers-455.45.01-r1.ebuild} | 1 + 2 files changed, 19 insertions(+) diff --git a/x11-drivers/nvidia-drivers/files/nvidia-drivers-455.45.01-reduce-kmalloc-limit.patch b/x11-drivers/nvidia-drivers/files/nvidia-drivers-455.45.01-reduce-kmalloc-limit.patch new file mode 100644 index 00000000000..c61033bf2a9 --- /dev/null +++ b/x11-drivers/nvidia-drivers/files/nvidia-drivers-455.45.01-reduce-kmalloc-limit.patch @@ -0,0 +1,18 @@ +Patch taken from + https://forums.developer.nvidia.com/t/455-23-04-page-allocation-failure-in-kernel-module-at-random-points/155250/55 +Bug: https://bugs.gentoo.org/755497 +Credits go to Gregory Beauregard for pointing this out + +--- a/kernel/nvidia-modeset/nvidia-modeset-linux.c ++++ b/kernel/nvidia-modeset/nvidia-modeset-linux.c +@@ -282,8 +282,8 @@ + * are called while nvkms_lock is held. + *************************************************************************/ + +-/* Don't use kmalloc for allocations larger than 128k */ +-#define KMALLOC_LIMIT (128 * 1024) ++/* Don't use kmalloc for allocations larger than one page */ ++#define KMALLOC_LIMIT PAGE_SIZE + + void* NVKMS_API_CALL nvkms_alloc(size_t size, NvBool zero) + { diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-455.45.01.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-455.45.01-r1.ebuild similarity index 99% rename from x11-drivers/nvidia-drivers/nvidia-drivers-455.45.01.ebuild rename to x11-drivers/nvidia-drivers/nvidia-drivers-455.45.01-r1.ebuild index 836ce3fa124..f549e169c64 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-455.45.01.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-455.45.01-r1.ebuild @@ -78,6 +78,7 @@ QA_PREBUILT="opt/* usr/lib*" S=${WORKDIR}/ PATCHES=( "${FILESDIR}"/${PN}-440.26-locale.patch + "${FILESDIR}"/${PN}-455.45.01-reduce-kmalloc-limit.patch ) NV_KV_MAX_PLUS="5.10" CONFIG_CHECK="