Defined in 1 files as a function:
Referenced in 11 files:
- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
- drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c
- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c, line 1495
- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
- drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
- drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
- drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c
- drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c
- drivers/gpu/drm/amd/amdgpu/sdma_v7_1.c
Smatch caller information:
19f4aff6129bc862 gfx_v9_0_ring_preempt_ib() -> amdgpu_ring_set_preempt_cond_exec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 1 | cond_exec | 0 |
| DATA_SOURCE | 0 | ring | $0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &kiq->ring_lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | &adev->reset_domain->sem | ||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &mux->lock | ||
| TYPE_LOCK | (struct amdgpu_kiq)->ring_lock |
19f4aff6129bc862 gfx_v9_0_ring_preempt_ib() -> amdgpu_ring_set_preempt_cond_exec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->cond_exe_cpu_addr | 4096-ptr_max |
| PARAM_VALUE | 0 | *ring->cond_exe_cpu_addr | 0 |
| PARAM_VALUE | 1 | cond_exec | 1 |
| DATA_SOURCE | 0 | ring | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &adev->reset_domain->sem | ||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &mux->lock |
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c amdgpu_multi_ring_reset_helper_begin() -> amdgpu_ring_set_preempt_cond_exec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 1 | cond_exec | 0 |
| NOCHECK_CALL | |||
| LOCK2 | &adev->reset_domain->sem | ||
| LOCK2 | global &drm_unplug_srcu | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct amdgpu_reset_domain)->sem |
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c amdgpu_multi_ring_reset_helper_end() -> amdgpu_ring_set_preempt_cond_exec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 1 | cond_exec | 1 |
| NOCHECK_CALL | |||
| LOCK2 | &adev->reset_domain->sem | ||
| LOCK2 | global &drm_unplug_srcu | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct amdgpu_reset_domain)->sem |
drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c sdma_v7_0_ring_preempt_ib() -> amdgpu_ring_set_preempt_cond_exec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 1 | cond_exec | 0 |
| CAPPED_DATA | 0 | ring | 1 |
| CAPPED_DATA | 0 | ring->adev->sdma.num_instances | 1 |
| DATA_SOURCE | 0 | ring | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &adev->reset_domain->sem | ||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &mux->lock |
drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c sdma_v7_0_ring_preempt_ib() -> amdgpu_ring_set_preempt_cond_exec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->cond_exe_cpu_addr | 4096-ptr_max |
| PARAM_VALUE | 0 | *ring->cond_exe_cpu_addr | 0 |
| PARAM_VALUE | 1 | cond_exec | 1 |
| CAPPED_DATA | 0 | ring | 1 |
| CAPPED_DATA | 0 | ring->adev->sdma.num_instances | 1 |
| DATA_SOURCE | 0 | ring | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &adev->reset_domain->sem | ||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &mux->lock |
drivers/gpu/drm/amd/amdgpu/sdma_v7_1.c sdma_v7_1_ring_preempt_ib() -> amdgpu_ring_set_preempt_cond_exec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 1 | cond_exec | 0 |
| CAPPED_DATA | 0 | ring | 1 |
| CAPPED_DATA | 0 | ring->adev->sdma.num_instances | 1 |
| DATA_SOURCE | 0 | ring | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &adev->reset_domain->sem | ||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &mux->lock |
drivers/gpu/drm/amd/amdgpu/sdma_v7_1.c sdma_v7_1_ring_preempt_ib() -> amdgpu_ring_set_preempt_cond_exec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->cond_exe_cpu_addr | 4096-ptr_max |
| PARAM_VALUE | 0 | *ring->cond_exe_cpu_addr | 0 |
| PARAM_VALUE | 1 | cond_exec | 1 |
| CAPPED_DATA | 0 | ring | 1 |
| CAPPED_DATA | 0 | ring->adev->sdma.num_instances | 1 |
| DATA_SOURCE | 0 | ring | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &adev->reset_domain->sem | ||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &mux->lock |
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c sdma_v6_0_ring_preempt_ib() -> amdgpu_ring_set_preempt_cond_exec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 1 | cond_exec | 0 |
| CAPPED_DATA | 0 | ring | 1 |
| CAPPED_DATA | 0 | ring->adev->sdma.num_instances | 1 |
| DATA_SOURCE | 0 | ring | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &adev->reset_domain->sem | ||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &mux->lock |
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c sdma_v6_0_ring_preempt_ib() -> amdgpu_ring_set_preempt_cond_exec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->cond_exe_cpu_addr | 4096-ptr_max |
| PARAM_VALUE | 0 | *ring->cond_exe_cpu_addr | 0 |
| PARAM_VALUE | 1 | cond_exec | 1 |
| CAPPED_DATA | 0 | ring | 1 |
| CAPPED_DATA | 0 | ring->adev->sdma.num_instances | 1 |
| DATA_SOURCE | 0 | ring | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &adev->reset_domain->sem | ||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &mux->lock |
drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c vpe_ring_preempt_ib() -> amdgpu_ring_set_preempt_cond_exec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 1 | cond_exec | 0 |
| DATA_SOURCE | 0 | ring | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &adev->reset_domain->sem | ||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &mux->lock |
drivers/gpu/drm/amd/amdgpu/amdgpu_vpe.c vpe_ring_preempt_ib() -> amdgpu_ring_set_preempt_cond_exec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->cond_exe_cpu_addr | 4096-ptr_max |
| PARAM_VALUE | 0 | *ring->cond_exe_cpu_addr | 0 |
| PARAM_VALUE | 1 | cond_exec | 1 |
| DATA_SOURCE | 0 | ring | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &adev->reset_domain->sem | ||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &mux->lock |
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c amdgpu_gfx_ring_preempt_ib() -> amdgpu_ring_set_preempt_cond_exec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 1 | cond_exec | 0 |
| DATA_SOURCE | 0 | ring | $0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &kiq->ring_lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | &adev->reset_domain->sem | ||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &mux->lock | ||
| TYPE_LOCK | (struct amdgpu_kiq)->ring_lock |
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c amdgpu_gfx_ring_preempt_ib() -> amdgpu_ring_set_preempt_cond_exec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->cond_exe_cpu_addr | 4096-ptr_max |
| PARAM_VALUE | 0 | *ring->cond_exe_cpu_addr | 0 |
| PARAM_VALUE | 1 | cond_exec | 1 |
| DATA_SOURCE | 0 | ring | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &adev->reset_domain->sem | ||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &mux->lock |
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c gfx_v8_0_do_edc_gpr_workarounds() -> amdgpu_ring_set_preempt_cond_exec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 1 | cond_exec | 1 |
| BUF_SIZE | 0 | ring | 80896 |
| BUF_SIZE | 0 | ring | 80896 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &adev->reset_domain->sem | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | global &drm_unplug_srcu |
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c gfx_v10_0_ring_preempt_ib() -> amdgpu_ring_set_preempt_cond_exec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 1 | cond_exec | 0 |
| DATA_SOURCE | 0 | ring | $0 |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &kiq->ring_lock | ||
| LOCK2 | flags | ||
| HALF_LOCKED2 | &adev->reset_domain->sem | ||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &mux->lock | ||
| TYPE_LOCK | (struct amdgpu_kiq)->ring_lock |
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c gfx_v10_0_ring_preempt_ib() -> amdgpu_ring_set_preempt_cond_exec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->cond_exe_cpu_addr | 4096-ptr_max |
| PARAM_VALUE | 0 | *ring->cond_exe_cpu_addr | 0 |
| PARAM_VALUE | 1 | cond_exec | 1 |
| DATA_SOURCE | 0 | ring | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &adev->reset_domain->sem | ||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &mux->lock |
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c sdma_v5_2_ring_preempt_ib() -> amdgpu_ring_set_preempt_cond_exec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 1 | cond_exec | 0 |
| CAPPED_DATA | 0 | ring | 1 |
| CAPPED_DATA | 0 | ring->adev->sdma.num_instances | 1 |
| DATA_SOURCE | 0 | ring | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &adev->reset_domain->sem | ||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &mux->lock |
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c sdma_v5_2_ring_preempt_ib() -> amdgpu_ring_set_preempt_cond_exec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->cond_exe_cpu_addr | 4096-ptr_max |
| PARAM_VALUE | 0 | *ring->cond_exe_cpu_addr | 0 |
| PARAM_VALUE | 1 | cond_exec | 1 |
| CAPPED_DATA | 0 | ring | 1 |
| CAPPED_DATA | 0 | ring->adev->sdma.num_instances | 1 |
| DATA_SOURCE | 0 | ring | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &adev->reset_domain->sem | ||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &mux->lock |
drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c sdma_v5_0_ring_preempt_ib() -> amdgpu_ring_set_preempt_cond_exec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 1 | cond_exec | 0 |
| CAPPED_DATA | 0 | ring | 1 |
| CAPPED_DATA | 0 | ring->adev->sdma.num_instances | 1 |
| DATA_SOURCE | 0 | ring | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &adev->reset_domain->sem | ||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &mux->lock |
drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c sdma_v5_0_ring_preempt_ib() -> amdgpu_ring_set_preempt_cond_exec()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ring | 4096-ptr_max |
| PARAM_VALUE | 0 | ring->cond_exe_cpu_addr | 4096-ptr_max |
| PARAM_VALUE | 0 | *ring->cond_exe_cpu_addr | 0 |
| PARAM_VALUE | 1 | cond_exec | 1 |
| CAPPED_DATA | 0 | ring | 1 |
| CAPPED_DATA | 0 | ring->adev->sdma.num_instances | 1 |
| DATA_SOURCE | 0 | ring | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &adev->reset_domain->sem | ||
| HALF_LOCKED2 | &attr->mutex | ||
| HALF_LOCKED2 | &mux->lock |