diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2015-08-16 22:55:02 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2015-08-17 16:50:31 -0400 |
commit | b80d8475c1fdf5f4bcabb65168b2e8a9c3d77731 (patch) | |
tree | 0e07771878992e8e4d5bd5a3c2cc7c7f810aad4c /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | a72ce6f84109c1dec1ab236d65979d3250668af3 (diff) |
drm/amdgpu: add scheduler initialization
1. Add kernel parameter option, default 0
2. Add scheduler initialization for amdgpu
Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Acked-by: Christian K?nig <christian.koenig@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index a9ead9731b35..815d40f5e6e1 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -53,6 +53,8 @@ | |||
53 | #include "amdgpu_ucode.h" | 53 | #include "amdgpu_ucode.h" |
54 | #include "amdgpu_gds.h" | 54 | #include "amdgpu_gds.h" |
55 | 55 | ||
56 | #include "gpu_scheduler.h" | ||
57 | |||
56 | /* | 58 | /* |
57 | * Modules parameters. | 59 | * Modules parameters. |
58 | */ | 60 | */ |
@@ -77,6 +79,7 @@ extern int amdgpu_bapm; | |||
77 | extern int amdgpu_deep_color; | 79 | extern int amdgpu_deep_color; |
78 | extern int amdgpu_vm_size; | 80 | extern int amdgpu_vm_size; |
79 | extern int amdgpu_vm_block_size; | 81 | extern int amdgpu_vm_block_size; |
82 | extern int amdgpu_enable_scheduler; | ||
80 | 83 | ||
81 | #define AMDGPU_MAX_USEC_TIMEOUT 100000 /* 100 ms */ | 84 | #define AMDGPU_MAX_USEC_TIMEOUT 100000 /* 100 ms */ |
82 | #define AMDGPU_FENCE_JIFFIES_TIMEOUT (HZ / 2) | 85 | #define AMDGPU_FENCE_JIFFIES_TIMEOUT (HZ / 2) |
@@ -860,6 +863,7 @@ struct amdgpu_ring { | |||
860 | struct amdgpu_device *adev; | 863 | struct amdgpu_device *adev; |
861 | const struct amdgpu_ring_funcs *funcs; | 864 | const struct amdgpu_ring_funcs *funcs; |
862 | struct amdgpu_fence_driver fence_drv; | 865 | struct amdgpu_fence_driver fence_drv; |
866 | struct amd_gpu_scheduler *scheduler; | ||
863 | 867 | ||
864 | struct mutex *ring_lock; | 868 | struct mutex *ring_lock; |
865 | struct amdgpu_bo *ring_obj; | 869 | struct amdgpu_bo *ring_obj; |