diff options
author | Christian König <christian.koenig@amd.com> | 2016-08-17 13:44:20 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-08-22 13:47:23 -0400 |
commit | 1fdc0b76ea9b6f6a50aa76b7cb7a025f87c1319d (patch) | |
tree | 9c387a6cb4ef2029946a1167a9ef66847eefd419 /drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h | |
parent | 8cc5e80641ed5e3973bd44c170529a756742e990 (diff) | |
download | talos-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.h | 2 |
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, |