diff options
author | Michel Dänzer <[email protected]> | 2017-03-24 19:01:09 +0900 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2017-03-27 16:17:30 -0400 |
commit | ce4b4f228e51219b0b79588caf73225b08b5b779 (patch) | |
tree | 992a2ba61ad8a19f91314e09b3cfad6bd40690e2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | d64a04720b0e64c1cd0726a3a27b360822fbee22 (diff) |
drm/radeon: Override fpfn for all VRAM placements in radeon_evict_flags
We were accidentally only overriding the first VRAM placement. For BOs
with the RADEON_GEM_NO_CPU_ACCESS flag set,
radeon_ttm_placement_from_domain creates a second VRAM placment with
fpfn == 0. If VRAM is almost full, the first VRAM placement with
fpfn > 0 may not work, but the second one with fpfn == 0 always will
(the BO's current location trivially satisfies it). Because "moving"
the BO to its current location puts it back on the LRU list, this
results in an infinite loop.
Fixes: 2a85aedd117c ("drm/radeon: Try evicting from CPU accessible to
inaccessible VRAM first")
Reported-by: Zachary Michaels <[email protected]>
Reported-and-Tested-by: Julien Isorce <[email protected]>
Reviewed-by: Christian König <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Signed-off-by: Michel Dänzer <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Cc: [email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions