OpenCloudOS-Kernel/drivers/gpu/drm/nouveau/dispnv04
Ilia Mirkin bd6e07e72f drm/nouveau/kms/nv04: use vzalloc for nv04_display
The struct is giant, and triggers an order-7 allocation (512K). There is
no reason for this to be kmalloc-type memory, so switch to vmalloc. This
should help loading nouveau on low-memory and/or long-running systems.

Reported-by: Nathan E. Egge <unlord@xiph.org>
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: stable@vger.kernel.org
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Link: https://gitlab.freedesktop.org/drm/nouveau/-/merge_requests/10
2021-11-12 23:46:04 +01:00
..
Kbuild drm/nouveau: fix bogus GPL-2 license header 2019-07-19 16:26:51 +10:00
arb.c drm/nouveau: Remove references to struct drm_device.pdev 2021-01-13 09:04:04 +01:00
crtc.c drm/nouveau: stop using TTM placement flags 2020-09-11 13:31:23 +02:00
cursor.c drm/nouveau: drop use of drmp.h 2019-08-23 12:55:31 +10:00
dac.c drm/nouveau/kms: Search for encoders' connectors properly 2020-08-31 19:10:08 -04:00
dfp.c drm/nouveau: Remove references to struct drm_device.pdev 2021-01-13 09:04:04 +01:00
disp.c drm/nouveau/kms/nv04: use vzalloc for nv04_display 2021-11-12 23:46:04 +01:00
disp.h drm/nouveau: Remove references to struct drm_device.pdev 2021-01-13 09:04:04 +01:00
hw.c drm/nouveau: Remove references to struct drm_device.pdev 2021-01-13 09:04:04 +01:00
hw.h drm/nouveau: drop drmP.h from all header files 2019-08-23 12:55:30 +10:00
nvreg.h
overlay.c drm/nouveau: stop using TTM placement flags 2020-09-11 13:31:23 +02:00
tvmodesnv17.c drm/nouveau: drop use of drmp.h 2019-08-23 12:55:31 +10:00
tvnv04.c drm/nouveau/kms: Search for encoders' connectors properly 2020-08-31 19:10:08 -04:00
tvnv17.c drm/nouveau/kms: Search for encoders' connectors properly 2020-08-31 19:10:08 -04:00
tvnv17.h drm/nouveau: allocate device object for every client 2017-02-17 15:15:04 +10:00