summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorRalph Campbell <rcampbell@nvidia.com>2020-04-22 01:11:07 +0200
committerBen Skeggs <bskeggs@redhat.com>2020-05-22 03:13:52 +0200
commit1d7f940c3a16623adb25706b10d81f8b822d53f9 (patch)
treecff2ddf173d379166584548bc70d898d6fa0217d /net
parentdrm/nouveau/kms/nv50-: Share DP SST mode_valid() handling with MST (diff)
downloadlinux-1d7f940c3a16623adb25706b10d81f8b822d53f9.tar.xz
linux-1d7f940c3a16623adb25706b10d81f8b822d53f9.zip
drm/nouveau/nouveau/hmm: fix nouveau_dmem_chunk allocations
In nouveau_dmem_init(), a number of struct nouveau_dmem_chunk are allocated and put on the dmem->chunk_empty list. Then in nouveau_dmem_pages_alloc(), a nouveau_dmem_chunk is removed from the list and GPU memory is allocated. However, the nouveau_dmem_chunk is never removed from the chunk_empty list nor placed on the chunk_free or chunk_full lists. This results in only one chunk ever being actually used (2MB) and quickly leads to migration to device private memory failures. Fix this by having just one list of free device private pages and if no pages are free, allocate a chunk of device private pages and GPU memory. Signed-off-by: Ralph Campbell <rcampbell@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions