/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/ |
D | vega20_reg_init.c | 60 adev->doorbell_index.kiq = AMDGPU_VEGA20_DOORBELL_KIQ; in vega20_doorbell_index_init() 61 adev->doorbell_index.mec_ring0 = AMDGPU_VEGA20_DOORBELL_MEC_RING0; in vega20_doorbell_index_init() 62 adev->doorbell_index.mec_ring1 = AMDGPU_VEGA20_DOORBELL_MEC_RING1; in vega20_doorbell_index_init() 63 adev->doorbell_index.mec_ring2 = AMDGPU_VEGA20_DOORBELL_MEC_RING2; in vega20_doorbell_index_init() 64 adev->doorbell_index.mec_ring3 = AMDGPU_VEGA20_DOORBELL_MEC_RING3; in vega20_doorbell_index_init() 65 adev->doorbell_index.mec_ring4 = AMDGPU_VEGA20_DOORBELL_MEC_RING4; in vega20_doorbell_index_init() 66 adev->doorbell_index.mec_ring5 = AMDGPU_VEGA20_DOORBELL_MEC_RING5; in vega20_doorbell_index_init() 67 adev->doorbell_index.mec_ring6 = AMDGPU_VEGA20_DOORBELL_MEC_RING6; in vega20_doorbell_index_init() 68 adev->doorbell_index.mec_ring7 = AMDGPU_VEGA20_DOORBELL_MEC_RING7; in vega20_doorbell_index_init() 69 adev->doorbell_index.userqueue_start = AMDGPU_VEGA20_DOORBELL_USERQUEUE_START; in vega20_doorbell_index_init() [all …]
|
D | vega10_reg_init.c | 60 adev->doorbell_index.kiq = AMDGPU_DOORBELL64_KIQ; in vega10_doorbell_index_init() 61 adev->doorbell_index.mec_ring0 = AMDGPU_DOORBELL64_MEC_RING0; in vega10_doorbell_index_init() 62 adev->doorbell_index.mec_ring1 = AMDGPU_DOORBELL64_MEC_RING1; in vega10_doorbell_index_init() 63 adev->doorbell_index.mec_ring2 = AMDGPU_DOORBELL64_MEC_RING2; in vega10_doorbell_index_init() 64 adev->doorbell_index.mec_ring3 = AMDGPU_DOORBELL64_MEC_RING3; in vega10_doorbell_index_init() 65 adev->doorbell_index.mec_ring4 = AMDGPU_DOORBELL64_MEC_RING4; in vega10_doorbell_index_init() 66 adev->doorbell_index.mec_ring5 = AMDGPU_DOORBELL64_MEC_RING5; in vega10_doorbell_index_init() 67 adev->doorbell_index.mec_ring6 = AMDGPU_DOORBELL64_MEC_RING6; in vega10_doorbell_index_init() 68 adev->doorbell_index.mec_ring7 = AMDGPU_DOORBELL64_MEC_RING7; in vega10_doorbell_index_init() 69 adev->doorbell_index.userqueue_start = AMDGPU_DOORBELL64_USERQUEUE_START; in vega10_doorbell_index_init() [all …]
|
D | soc21.c | 464 adev->doorbell_index.kiq = AMDGPU_NAVI10_DOORBELL_KIQ; in soc21_init_doorbell_index() 465 adev->doorbell_index.mec_ring0 = AMDGPU_NAVI10_DOORBELL_MEC_RING0; in soc21_init_doorbell_index() 466 adev->doorbell_index.mec_ring1 = AMDGPU_NAVI10_DOORBELL_MEC_RING1; in soc21_init_doorbell_index() 467 adev->doorbell_index.mec_ring2 = AMDGPU_NAVI10_DOORBELL_MEC_RING2; in soc21_init_doorbell_index() 468 adev->doorbell_index.mec_ring3 = AMDGPU_NAVI10_DOORBELL_MEC_RING3; in soc21_init_doorbell_index() 469 adev->doorbell_index.mec_ring4 = AMDGPU_NAVI10_DOORBELL_MEC_RING4; in soc21_init_doorbell_index() 470 adev->doorbell_index.mec_ring5 = AMDGPU_NAVI10_DOORBELL_MEC_RING5; in soc21_init_doorbell_index() 471 adev->doorbell_index.mec_ring6 = AMDGPU_NAVI10_DOORBELL_MEC_RING6; in soc21_init_doorbell_index() 472 adev->doorbell_index.mec_ring7 = AMDGPU_NAVI10_DOORBELL_MEC_RING7; in soc21_init_doorbell_index() 473 adev->doorbell_index.userqueue_start = AMDGPU_NAVI10_DOORBELL_USERQUEUE_START; in soc21_init_doorbell_index() [all …]
|
D | nv.c | 598 adev->doorbell_index.kiq = AMDGPU_NAVI10_DOORBELL_KIQ; in nv_init_doorbell_index() 599 adev->doorbell_index.mec_ring0 = AMDGPU_NAVI10_DOORBELL_MEC_RING0; in nv_init_doorbell_index() 600 adev->doorbell_index.mec_ring1 = AMDGPU_NAVI10_DOORBELL_MEC_RING1; in nv_init_doorbell_index() 601 adev->doorbell_index.mec_ring2 = AMDGPU_NAVI10_DOORBELL_MEC_RING2; in nv_init_doorbell_index() 602 adev->doorbell_index.mec_ring3 = AMDGPU_NAVI10_DOORBELL_MEC_RING3; in nv_init_doorbell_index() 603 adev->doorbell_index.mec_ring4 = AMDGPU_NAVI10_DOORBELL_MEC_RING4; in nv_init_doorbell_index() 604 adev->doorbell_index.mec_ring5 = AMDGPU_NAVI10_DOORBELL_MEC_RING5; in nv_init_doorbell_index() 605 adev->doorbell_index.mec_ring6 = AMDGPU_NAVI10_DOORBELL_MEC_RING6; in nv_init_doorbell_index() 606 adev->doorbell_index.mec_ring7 = AMDGPU_NAVI10_DOORBELL_MEC_RING7; in nv_init_doorbell_index() 607 adev->doorbell_index.userqueue_start = AMDGPU_NAVI10_DOORBELL_USERQUEUE_START; in nv_init_doorbell_index() [all …]
|
D | nbio_v7_0.c | 69 bool use_doorbell, int doorbell_index, int doorbell_size) in nbio_v7_0_sdma_doorbell_range() argument 77 doorbell_range = REG_SET_FIELD(doorbell_range, BIF_SDMA0_DOORBELL_RANGE, OFFSET, doorbell_index); in nbio_v7_0_sdma_doorbell_range() 86 int doorbell_index, int instance) in nbio_v7_0_vcn_doorbell_range() argument 95 doorbell_index); in nbio_v7_0_vcn_doorbell_range() 118 bool use_doorbell, int doorbell_index) in nbio_v7_0_ih_doorbell_range() argument 123 …h_doorbell_range = REG_SET_FIELD(ih_doorbell_range, BIF_IH_DOORBELL_RANGE, OFFSET, doorbell_index); in nbio_v7_0_ih_doorbell_range()
|
D | nbio_v4_3.c | 65 bool use_doorbell, int doorbell_index, in nbio_v4_3_sdma_doorbell_range() argument 83 doorbell_index); in nbio_v4_3_sdma_doorbell_range() 103 int doorbell_index, int instance) in nbio_v4_3_vcn_doorbell_range() argument 124 doorbell_index); in nbio_v4_3_vcn_doorbell_range() 182 bool use_doorbell, int doorbell_index) in nbio_v4_3_ih_doorbell_range() argument 198 doorbell_index); in nbio_v4_3_ih_doorbell_range() 494 bool use_doorbell, int doorbell_index) in nbio_v4_3_sriov_ih_doorbell_range() argument 499 bool use_doorbell, int doorbell_index, in nbio_v4_3_sriov_sdma_doorbell_range() argument 505 int doorbell_index, int instance) in nbio_v4_3_sriov_vcn_doorbell_range() argument
|
D | vega10_ih.c | 188 ih->doorbell_index); in vega10_ih_doorbell_rptr() 294 adev->irq.ih.doorbell_index); in vega10_ih_irq_init() 399 WDOORBELL32(ih->doorbell_index, ih->rptr); in vega10_ih_irq_rearm() 424 WDOORBELL32(ih->doorbell_index, ih->rptr); in vega10_ih_set_rptr() 493 adev->irq.ih.doorbell_index = adev->doorbell_index.ih << 1; in vega10_ih_sw_init() 501 adev->irq.ih1.doorbell_index = (adev->doorbell_index.ih + 1) << 1; in vega10_ih_sw_init() 508 adev->irq.ih2.doorbell_index = (adev->doorbell_index.ih + 2) << 1; in vega10_ih_sw_init()
|
D | nbio_v7_7.c | 66 bool use_doorbell, int doorbell_index, in nbio_v7_7_sdma_doorbell_range() argument 75 OFFSET, doorbell_index); in nbio_v7_7_sdma_doorbell_range() 89 int doorbell_index, int instance) in nbio_v7_7_vcn_doorbell_range() argument 97 doorbell_index); in nbio_v7_7_vcn_doorbell_range() 147 bool use_doorbell, int doorbell_index) in nbio_v7_7_ih_doorbell_range() argument 155 doorbell_index); in nbio_v7_7_ih_doorbell_range()
|
D | amdgpu_mes.c | 40 unsigned int *doorbell_index) in amdgpu_mes_alloc_process_doorbells() argument 46 *doorbell_index = r; in amdgpu_mes_alloc_process_doorbells() 52 unsigned int doorbell_index) in amdgpu_mes_free_process_doorbells() argument 54 if (doorbell_index) in amdgpu_mes_free_process_doorbells() 55 ida_simple_remove(&adev->mes.doorbell_ida, doorbell_index); in amdgpu_mes_free_process_doorbells() 60 uint32_t doorbell_index, in amdgpu_mes_get_doorbell_dw_offset_in_bar() argument 63 return ((doorbell_index * in amdgpu_mes_get_doorbell_dw_offset_in_bar() 70 int ip_type, uint64_t *doorbell_index) in amdgpu_mes_queue_doorbell_get() argument 75 offset = adev->doorbell_index.sdma_engine[0]; in amdgpu_mes_queue_doorbell_get() 91 *doorbell_index = amdgpu_mes_get_doorbell_dw_offset_in_bar(adev, in amdgpu_mes_queue_doorbell_get() [all …]
|
D | vega20_ih.c | 192 ih->doorbell_index); in vega20_ih_doorbell_rptr() 345 adev->irq.ih.doorbell_index); in vega20_ih_irq_init() 451 WDOORBELL32(ih->doorbell_index, ih->rptr); in vega20_ih_irq_rearm() 476 WDOORBELL32(ih->doorbell_index, ih->rptr); in vega20_ih_set_rptr() 545 adev->irq.ih.doorbell_index = adev->doorbell_index.ih << 1; in vega20_ih_sw_init() 552 adev->irq.ih1.doorbell_index = (adev->doorbell_index.ih + 1) << 1; in vega20_ih_sw_init() 559 adev->irq.ih2.doorbell_index = (adev->doorbell_index.ih + 2) << 1; in vega20_ih_sw_init()
|
D | amdgpu_nbio.h | 70 bool use_doorbell, int doorbell_index, int doorbell_size); 72 int doorbell_index, int instance); 79 bool use_doorbell, int doorbell_index);
|
D | nbio_v7_2.c | 109 bool use_doorbell, int doorbell_index, in nbio_v7_2_sdma_doorbell_range() argument 118 OFFSET, doorbell_index); in nbio_v7_2_sdma_doorbell_range() 132 int doorbell_index, int instance) in nbio_v7_2_vcn_doorbell_range() argument 140 doorbell_index); in nbio_v7_2_vcn_doorbell_range() 190 bool use_doorbell, int doorbell_index) in nbio_v7_2_ih_doorbell_range() argument 197 doorbell_index); in nbio_v7_2_ih_doorbell_range()
|
D | nbio_v2_3.c | 109 bool use_doorbell, int doorbell_index, in nbio_v2_3_sdma_doorbell_range() argument 122 doorbell_index); in nbio_v2_3_sdma_doorbell_range() 135 int doorbell_index, int instance) in nbio_v2_3_vcn_doorbell_range() argument 145 doorbell_index); in nbio_v2_3_vcn_doorbell_range() 187 bool use_doorbell, int doorbell_index) in nbio_v2_3_ih_doorbell_range() argument 194 doorbell_index); in nbio_v2_3_ih_doorbell_range()
|
D | jpeg_v4_0.c | 91 ring->doorbell_index = (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + 1; in jpeg_v4_0_sw_init() 138 (adev->doorbell_index.vcn.vcn_ring0_1 << 1), 0); in jpeg_v4_0_hw_init() 141 ring->doorbell_index << VCN_JPEG_DB_CTRL__OFFSET__SHIFT | in jpeg_v4_0_hw_init() 445 WDOORBELL32(ring->doorbell_index, lower_32_bits(ring->wptr)); in jpeg_v4_0_dec_ring_set_wptr()
|
D | amdgpu_mes.h | 146 uint32_t doorbell_index; member 367 unsigned int *doorbell_index); 369 unsigned int doorbell_index); 372 uint32_t doorbell_index,
|
D | tonga_ih.c | 148 OFFSET, adev->irq.ih.doorbell_index); in tonga_ih_irq_init() 274 WDOORBELL32(ih->doorbell_index, ih->rptr); in tonga_ih_set_rptr() 304 adev->irq.ih.doorbell_index = adev->doorbell_index.ih; in tonga_ih_sw_init()
|
D | nbio_v6_1.c | 90 bool use_doorbell, int doorbell_index, int doorbell_size) in nbio_v6_1_sdma_doorbell_range() argument 98 doorbell_range = REG_SET_FIELD(doorbell_range, BIF_SDMA0_DOORBELL_RANGE, OFFSET, doorbell_index); in nbio_v6_1_sdma_doorbell_range() 134 bool use_doorbell, int doorbell_index) in nbio_v6_1_ih_doorbell_range() argument 139 …h_doorbell_range = REG_SET_FIELD(ih_doorbell_range, BIF_IH_DOORBELL_RANGE, OFFSET, doorbell_index); in nbio_v6_1_ih_doorbell_range()
|
D | nbio_v7_4.c | 140 bool use_doorbell, int doorbell_index, int doorbell_size) in nbio_v7_4_sdma_doorbell_range() argument 172 doorbell_range = REG_SET_FIELD(doorbell_range, BIF_SDMA0_DOORBELL_RANGE, OFFSET, doorbell_index); in nbio_v7_4_sdma_doorbell_range() 181 int doorbell_index, int instance) in nbio_v7_4_vcn_doorbell_range() argument 199 doorbell_index); in nbio_v7_4_vcn_doorbell_range() 235 bool use_doorbell, int doorbell_index) in nbio_v7_4_ih_doorbell_range() argument 240 …h_doorbell_range = REG_SET_FIELD(ih_doorbell_range, BIF_IH_DOORBELL_RANGE, OFFSET, doorbell_index); in nbio_v7_4_ih_doorbell_range()
|
D | ih_v6_0.c | 217 ih->doorbell_index); in ih_v6_0_doorbell_rptr() 328 ih[0]->doorbell_index); in ih_v6_0_irq_init() 443 WDOORBELL32(ih->doorbell_index, ih->rptr); in ih_v6_0_irq_rearm() 464 WDOORBELL32(ih->doorbell_index, ih->rptr); in ih_v6_0_set_rptr() 540 adev->irq.ih.doorbell_index = adev->doorbell_index.ih << 1; in ih_v6_0_sw_init()
|
D | navi10_ih.c | 243 ih->doorbell_index); in navi10_ih_doorbell_rptr() 362 ih[0]->doorbell_index); in navi10_ih_irq_init() 469 WDOORBELL32(ih->doorbell_index, ih->rptr); in navi10_ih_irq_rearm() 494 WDOORBELL32(ih->doorbell_index, ih->rptr); in navi10_ih_set_rptr() 573 adev->irq.ih.doorbell_index = adev->doorbell_index.ih << 1; in navi10_ih_sw_init()
|
D | vi.c | 2239 adev->doorbell_index.kiq = AMDGPU_DOORBELL_KIQ; in legacy_doorbell_index_init() 2240 adev->doorbell_index.mec_ring0 = AMDGPU_DOORBELL_MEC_RING0; in legacy_doorbell_index_init() 2241 adev->doorbell_index.mec_ring1 = AMDGPU_DOORBELL_MEC_RING1; in legacy_doorbell_index_init() 2242 adev->doorbell_index.mec_ring2 = AMDGPU_DOORBELL_MEC_RING2; in legacy_doorbell_index_init() 2243 adev->doorbell_index.mec_ring3 = AMDGPU_DOORBELL_MEC_RING3; in legacy_doorbell_index_init() 2244 adev->doorbell_index.mec_ring4 = AMDGPU_DOORBELL_MEC_RING4; in legacy_doorbell_index_init() 2245 adev->doorbell_index.mec_ring5 = AMDGPU_DOORBELL_MEC_RING5; in legacy_doorbell_index_init() 2246 adev->doorbell_index.mec_ring6 = AMDGPU_DOORBELL_MEC_RING6; in legacy_doorbell_index_init() 2247 adev->doorbell_index.mec_ring7 = AMDGPU_DOORBELL_MEC_RING7; in legacy_doorbell_index_init() 2248 adev->doorbell_index.gfx_ring0 = AMDGPU_DOORBELL_GFX_RING0; in legacy_doorbell_index_init() [all …]
|
D | jpeg_v3_0.c | 102 ring->doorbell_index = (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + 1; in jpeg_v3_0_sw_init() 149 (adev->doorbell_index.vcn.vcn_ring0_1 << 1), 0); in jpeg_v3_0_hw_init() 448 WDOORBELL32(ring->doorbell_index, lower_32_bits(ring->wptr)); in jpeg_v3_0_dec_ring_set_wptr()
|
D | sdma_v6_0.c | 202 ring->doorbell_index, ring->wptr << 2); in sdma_v6_0_ring_set_wptr() 203 WDOORBELL64(ring->doorbell_index, ring->wptr << 2); in sdma_v6_0_ring_set_wptr() 206 ring->doorbell_index, ring->wptr << 2); in sdma_v6_0_ring_set_wptr() 207 WDOORBELL64(ring->doorbell_index, ring->wptr << 2); in sdma_v6_0_ring_set_wptr() 226 ring->doorbell_index, ring->wptr << 2); in sdma_v6_0_ring_set_wptr() 227 WDOORBELL64(ring->doorbell_index, ring->wptr << 2); in sdma_v6_0_ring_set_wptr() 547 OFFSET, ring->doorbell_index); in sdma_v6_0_gfx_resume() 556 ring->doorbell_index, in sdma_v6_0_gfx_resume() 557 adev->doorbell_index.sdma_doorbell_range * adev->sdma.num_instances); in sdma_v6_0_gfx_resume() 860 prop->doorbell_index << SDMA0_QUEUE0_DOORBELL_OFFSET__OFFSET__SHIFT; in sdma_v6_0_mqd_init() [all …]
|
D | sdma_v5_0.c | 383 ring->doorbell_index, ring->wptr << 2); in sdma_v5_0_ring_set_wptr() 384 WDOORBELL64(ring->doorbell_index, ring->wptr << 2); in sdma_v5_0_ring_set_wptr() 387 ring->doorbell_index, ring->wptr << 2); in sdma_v5_0_ring_set_wptr() 388 WDOORBELL64(ring->doorbell_index, ring->wptr << 2); in sdma_v5_0_ring_set_wptr() 407 ring->doorbell_index, ring->wptr << 2); in sdma_v5_0_ring_set_wptr() 408 WDOORBELL64(ring->doorbell_index, ring->wptr << 2); in sdma_v5_0_ring_set_wptr() 789 OFFSET, ring->doorbell_index); in sdma_v5_0_gfx_resume() 798 ring->doorbell_index, 20); in sdma_v5_0_gfx_resume() 994 prop->doorbell_index << SDMA0_RLC0_DOORBELL_OFFSET__OFFSET__SHIFT; in sdma_v5_0_mqd_init() 1414 ring->doorbell_index = (i == 0) ? in sdma_v5_0_sw_init() [all …]
|
/linux-6.1.9/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_doorbell.c | 258 pdd->doorbell_index in kfd_get_doorbell_dw_offset_in_bar() 265 pdd->doorbell_index, doorbell_id); in kfd_get_doorbell_dw_offset_in_bar() 280 if (!pdd->doorbell_index) { in kfd_get_process_doorbells() 282 &pdd->doorbell_index); in kfd_get_process_doorbells() 288 pdd->doorbell_index * kfd_doorbell_process_slice(pdd->dev); in kfd_get_process_doorbells() 291 int kfd_alloc_process_doorbells(struct kfd_dev *kfd, unsigned int *doorbell_index) in kfd_alloc_process_doorbells() argument 301 doorbell_index); in kfd_alloc_process_doorbells() 304 *doorbell_index = r; in kfd_alloc_process_doorbells() 312 void kfd_free_process_doorbells(struct kfd_dev *kfd, unsigned int doorbell_index) in kfd_free_process_doorbells() argument 314 if (doorbell_index) { in kfd_free_process_doorbells() [all …]
|