mirror of
https://github.com/Frogging-Family/nvidia-all
synced 2024-10-30 15:20:10 +00:00
24 lines
809 B
Diff
24 lines
809 B
Diff
From 681303f341929adacb8fd493c501f3864716ae9c Mon Sep 17 00:00:00 2001
|
|
From: Tk-Glitch <ti3nou@gmail.com>
|
|
Date: Mon, 9 Sep 2019 12:05:43 +0200
|
|
Subject: nv-vm: Replace __GFP_NORETRY flag by __GFP_RETRY_MAYFAIL
|
|
This is a test for DXVK issue #1100, suggested by NVIDIA.
|
|
https://github.com/doitsujin/dxvk/issues/1100
|
|
|
|
|
|
diff --git a/kernel-dkms/nvidia/nv-vm.c b/kernel-dkms/nvidia/nv-vm.c
|
|
index 09cd39bda..e1fd7cfd2 100644
|
|
--- a/kernel-dkms/nvidia/nv-vm.c
|
|
+++ b/kernel-dkms/nvidia/nv-vm.c
|
|
@@ -235,8 +235,8 @@ static unsigned int nv_compute_gfp_mask(
|
|
gfp_mask = NV_GFP_DMA32;
|
|
}
|
|
}
|
|
-#if defined(__GFP_NORETRY)
|
|
- gfp_mask |= __GFP_NORETRY;
|
|
+#if defined(__GFP_RETRY_MAYFAIL)
|
|
+ gfp_mask |= __GFP_RETRY_MAYFAIL;
|
|
#endif
|
|
#if defined(__GFP_ZERO)
|
|
if (at->flags & NV_ALLOC_TYPE_ZEROED)
|