Module: Mesa Branch: master Commit: ee035c75d42606a18ad54bd45ae1a751c421c98a URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ee035c75d42606a18ad54bd45ae1a751c421c98a
Author: Karol Herbst <[email protected]> Date: Sat Aug 15 12:57:03 2020 +0200 nouveau: hide SVM support behing a variable for now as kernel space is broken Reviewed-by: Dave Airlie <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7069> --- src/gallium/drivers/nouveau/nouveau_screen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/nouveau/nouveau_screen.c b/src/gallium/drivers/nouveau/nouveau_screen.c index e725f37f0e2..ef5b13396dd 100644 --- a/src/gallium/drivers/nouveau/nouveau_screen.c +++ b/src/gallium/drivers/nouveau/nouveau_screen.c @@ -234,9 +234,10 @@ nouveau_screen_init(struct nouveau_screen *screen, struct nouveau_device *dev) size = sizeof(nvc0_data); } + bool enable_svm = debug_get_bool_option("NOUVEAU_SVM", false); screen->has_svm = false; /* we only care about HMM with OpenCL enabled */ - if (dev->chipset > 0x130 && screen->force_enable_cl) { + if (dev->chipset > 0x130 && screen->force_enable_cl && enable_svm) { /* Before being able to enable SVM we need to carve out some memory for * driver bo allocations. Let's just base the size on the available VRAM. * _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
