projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65ec01a
)
drm/nouveau: fix bug causing pinned buffers to lose their NO_EVICT flag
author
Ben Skeggs
<bskeggs@redhat.com>
Wed, 16 Dec 2009 06:22:42 +0000
(16:22 +1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Wed, 16 Dec 2009 07:06:13 +0000
(17:06 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_bo.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nouveau_bo.c
b/drivers/gpu/drm/nouveau/nouveau_bo.c
index 2f5d470211061b3486e41a03beeaf0eb54b141d6..0cad6d834eb28cc386ca82e4df36b83374371e98 100644
(file)
--- a/
drivers/gpu/drm/nouveau/nouveau_bo.c
+++ b/
drivers/gpu/drm/nouveau/nouveau_bo.c
@@
-154,6
+154,11
@@
nouveau_bo_placement_set(struct nouveau_bo *nvbo, uint32_t memtype)
nvbo->placement.busy_placement = nvbo->placements;
nvbo->placement.num_placement = n;
nvbo->placement.num_busy_placement = n;
+
+ if (nvbo->pin_refcnt) {
+ while (n--)
+ nvbo->placements[n] |= TTM_PL_FLAG_NO_EVICT;
+ }
}
int