From c312f3f37db99e709846d6b948e6bad489d742e5 Mon Sep 17 00:00:00 2001 From: Lyude Date: Mon, 6 Mar 2017 18:57:38 -0500 Subject: [PATCH] nouveau: Let FDO people use their GTX 970s This is a very dirty hack that just prevents nouveau from initializing the last 512 MiB of ram. Less VRAM, but it stops your GPU from exploding on boot. Signed-off-by: Lyude --- drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c index 6758da9..ae69a74 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c @@ -589,6 +589,13 @@ gf100_ram_ctor(const struct nvkm_ram_func *func, struct nvkm_fb *fb, size += psize; } + if ((size >> 20 > 3578)) { + nvkm_info(subdev, + "Card wants to use %d MiB, but we know we can't do that. Limiting to 3.5GiB\n", + (size >> 20)); + size -= (536870912); + } + ret = nvkm_ram_ctor(func, fb, type, size, 0, ram); if (ret) return ret; -- 2.9.3