From d0c03c4f4dd4c9ec89d97b5b100a843da4433784 Mon Sep 17 00:00:00 2001 From: jsg Date: Sun, 30 Jul 2023 12:16:20 +0000 Subject: [PATCH] change __GFP_KSWAPD_RECLAIM from 0 to M_NOWAIT aja@ reported a panic where __i915_gpu_coredump() used a combination of gfp flags which resulted in neither M_WAITOK or M_NOWAIT. --- sys/dev/pci/drm/include/linux/gfp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/include/linux/gfp.h b/sys/dev/pci/drm/include/linux/gfp.h index 008e5483f11..7733a0bca43 100644 --- a/sys/dev/pci/drm/include/linux/gfp.h +++ b/sys/dev/pci/drm/include/linux/gfp.h @@ -16,7 +16,7 @@ #define __GFP_RETRY_MAYFAIL 0 #define __GFP_MOVABLE 0 #define __GFP_COMP 0 -#define __GFP_KSWAPD_RECLAIM 0 +#define __GFP_KSWAPD_RECLAIM M_NOWAIT #define __GFP_HIGHMEM 0 #define __GFP_RECLAIMABLE 0 #define __GFP_NOMEMALLOC 0 -- 2.20.1