diff options
| author | Ralph Campbell <rcampbell@nvidia.com> | 2020-03-03 16:13:37 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-04-23 10:36:36 +0200 |
| commit | f3955f1e58bec57ee2176aa81e6521461e977454 (patch) | |
| tree | 0530bd36f72490d88a3186cb95876459fd4aecc0 /include/linux/sync_core.h | |
| parent | a825ce86ebeddcb8467528297c5425fc5cd5edd8 (diff) | |
drm/nouveau/svm: check for SVM initialized before migrating
[ Upstream commit 822cab6150d3002952407a8297ff5a0d32bb7b54 ]
When migrating system memory to GPU memory, check that SVM has been
enabled. Even though most errors can be ignored since migration is
a performance optimization, return an error because this is a violation
of the API.
Signed-off-by: Ralph Campbell <rcampbell@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/sync_core.h')
0 files changed, 0 insertions, 0 deletions
