diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-07-23 03:06:52 +0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-08-17 05:58:56 +0400 |
commit | 415e6186f17136075f7cc825ba3835d005773637 (patch) | |
tree | f6f837734b05a7006cab9b6badcda8590e1e4d24 /drivers/gpu/drm/drm_dp_i2c_helper.c | |
parent | 56dfc58ea094e7a8607786f4762c65b09cd85738 (diff) | |
download | linux-415e6186f17136075f7cc825ba3835d005773637.tar.xz |
drm/nouveau: fix race condition when under memory pressure
When VRAM is running out it's possible that the client's push buffers get
evicted to main memory. When they're validated back in, the GPU may
be used for the copy back to VRAM, but the existing synchronisation code
only deals with inter-channel sync, not sync between PFIFO and PGRAPH on
the same channel. This leads to PFIFO fetching from command buffers that
haven't quite been copied by PGRAPH yet.
This patch marks push buffers as so, and forces any GPU-assisted buffer
moves to be done on a different channel, which triggers the correct
synchronisation to happen before we submit them.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_dp_i2c_helper.c')
0 files changed, 0 insertions, 0 deletions