summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2016-08-17 13:44:20 +0200
committerAlex Deucher <alexander.deucher@amd.com>2016-08-22 13:47:23 -0400
commit1fdc0b76ea9b6f6a50aa76b7cb7a025f87c1319d (patch)
tree9c387a6cb4ef2029946a1167a9ef66847eefd419 /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
parent8cc5e80641ed5e3973bd44c170529a756742e990 (diff)
downloadtalos-obmc-linux-1fdc0b76ea9b6f6a50aa76b7cb7a025f87c1319d.tar.gz
talos-obmc-linux-1fdc0b76ea9b6f6a50aa76b7cb7a025f87c1319d.zip
drm/amdgpu: fix lru size grouping v2
Adding a BO can make it the insertion point for larger sizes as well. v2: add a comment about the guard structure. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Felix Kuehling <felix.kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
index 4d3927605309..72f6bfc15d8f 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h
@@ -61,6 +61,8 @@ struct amdgpu_mman {
/* custom LRU management */
struct amdgpu_mman_lru log2_size[AMDGPU_TTM_LRU_SIZE];
+ /* guard for log2_size array, don't add anything in between */
+ struct amdgpu_mman_lru guard;
};
int amdgpu_copy_buffer(struct amdgpu_ring *ring,
OpenPOWER on IntegriCloud