[PATCH] nouveau/gsp: get zeroed pages for any device allocations we need
Dave Airlie
airlied at gmail.com
Tue Jun 17 05:09:04 UTC 2025
From: Dave Airlie <airlied at redhat.com>
This seems to remove some random behaviour around suspend/resume
operations, and ordering of memory allocations.
Cc: stable at vger.kernel.org
Reviewed-by: Ben Skeggs <bskeggs at nvidia.com>
Signed-off-by: Dave Airlie <airlied at redhat.com>
---
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c b/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c
index baf42339f93e..4460da3239b5 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c
@@ -1583,7 +1583,7 @@ nvkm_gsp_sg(struct nvkm_device *device, u64 size, struct sg_table *sgt)
return ret;
for_each_sgtable_sg(sgt, sgl, i) {
- struct page *page = alloc_page(GFP_KERNEL);
+ struct page *page = alloc_page(GFP_KERNEL | __GFP_ZERO);
if (!page) {
nvkm_gsp_sg_free(device, sgt);
--
2.49.0
More information about the Nouveau
mailing list