/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_vcn.c | 71 INIT_DELAYED_WORK(&adev->vcn.idle_work, amdgpu_vcn_idle_work_handler); in amdgpu_vcn_sw_init() 72 mutex_init(&adev->vcn.vcn_pg_lock); in amdgpu_vcn_sw_init() 73 mutex_init(&adev->vcn.vcn1_jpeg1_workaround); in amdgpu_vcn_sw_init() 74 atomic_set(&adev->vcn.total_submission_cnt, 0); in amdgpu_vcn_sw_init() 75 for (i = 0; i < adev->vcn.num_vcn_inst; i++) in amdgpu_vcn_sw_init() 76 atomic_set(&adev->vcn.inst[i].dpg_enc_submission_cnt, 0); in amdgpu_vcn_sw_init() 91 adev->vcn.indirect_sram = true; in amdgpu_vcn_sw_init() 101 adev->vcn.indirect_sram = true; in amdgpu_vcn_sw_init() 107 adev->vcn.indirect_sram = true; in amdgpu_vcn_sw_init() 113 adev->vcn.indirect_sram = true; in amdgpu_vcn_sw_init() [all …]
|
D | vcn_v2_5.c | 80 adev->vcn.num_vcn_inst = 2; in vcn_v2_5_early_init() 81 adev->vcn.harvest_config = 0; in vcn_v2_5_early_init() 82 adev->vcn.num_enc_rings = 1; in vcn_v2_5_early_init() 86 adev->vcn.num_vcn_inst = VCN25_MAX_HW_INSTANCES_ARCTURUS; in vcn_v2_5_early_init() 87 for (i = 0; i < adev->vcn.num_vcn_inst; i++) { in vcn_v2_5_early_init() 90 adev->vcn.harvest_config |= 1 << i; in vcn_v2_5_early_init() 92 if (adev->vcn.harvest_config == (AMDGPU_VCN_HARVEST_VCN0 | in vcn_v2_5_early_init() 97 adev->vcn.num_enc_rings = 2; in vcn_v2_5_early_init() 120 for (j = 0; j < adev->vcn.num_vcn_inst; j++) { in vcn_v2_5_sw_init() 121 if (adev->vcn.harvest_config & (1 << j)) in vcn_v2_5_sw_init() [all …]
|
D | vcn_v2_0.c | 72 adev->vcn.num_vcn_inst = 1; in vcn_v2_0_early_init() 74 adev->vcn.num_enc_rings = 1; in vcn_v2_0_early_init() 76 adev->vcn.num_enc_rings = 2; in vcn_v2_0_early_init() 102 &adev->vcn.inst->irq); in vcn_v2_0_sw_init() 107 for (i = 0; i < adev->vcn.num_enc_rings; ++i) { in vcn_v2_0_sw_init() 110 &adev->vcn.inst->irq); in vcn_v2_0_sw_init() 121 hdr = (const struct common_firmware_header *)adev->vcn.fw->data; in vcn_v2_0_sw_init() 123 adev->firmware.ucode[AMDGPU_UCODE_ID_VCN].fw = adev->vcn.fw; in vcn_v2_0_sw_init() 133 ring = &adev->vcn.inst->ring_dec; in vcn_v2_0_sw_init() 136 ring->doorbell_index = adev->doorbell_index.vcn.vcn_ring0_1 << 1; in vcn_v2_0_sw_init() [all …]
|
D | vcn_v3_0.c | 86 adev->vcn.num_vcn_inst = VCN_INSTANCES_SIENNA_CICHLID; in vcn_v3_0_early_init() 87 adev->vcn.harvest_config = 0; in vcn_v3_0_early_init() 88 adev->vcn.num_enc_rings = 1; in vcn_v3_0_early_init() 95 adev->vcn.num_vcn_inst = VCN_INSTANCES_SIENNA_CICHLID; in vcn_v3_0_early_init() 96 for (i = 0; i < adev->vcn.num_vcn_inst; i++) { in vcn_v3_0_early_init() 99 adev->vcn.harvest_config |= 1 << i; in vcn_v3_0_early_init() 102 if (adev->vcn.harvest_config == (AMDGPU_VCN_HARVEST_VCN0 | in vcn_v3_0_early_init() 107 adev->vcn.num_vcn_inst = 1; in vcn_v3_0_early_init() 109 adev->vcn.num_enc_rings = 2; in vcn_v3_0_early_init() 139 hdr = (const struct common_firmware_header *)adev->vcn.fw->data; in vcn_v3_0_sw_init() [all …]
|
D | vcn_v1_0.c | 70 adev->vcn.num_vcn_inst = 1; in vcn_v1_0_early_init() 71 adev->vcn.num_enc_rings = 2; in vcn_v1_0_early_init() 97 VCN_1_0__SRCID__UVD_SYSTEM_MESSAGE_INTERRUPT, &adev->vcn.inst->irq); in vcn_v1_0_sw_init() 102 for (i = 0; i < adev->vcn.num_enc_rings; ++i) { in vcn_v1_0_sw_init() 104 &adev->vcn.inst->irq); in vcn_v1_0_sw_init() 114 adev->vcn.idle_work.work.func = vcn_v1_0_idle_work_handler; in vcn_v1_0_sw_init() 118 hdr = (const struct common_firmware_header *)adev->vcn.fw->data; in vcn_v1_0_sw_init() 120 adev->firmware.ucode[AMDGPU_UCODE_ID_VCN].fw = adev->vcn.fw; in vcn_v1_0_sw_init() 130 ring = &adev->vcn.inst->ring_dec; in vcn_v1_0_sw_init() 132 r = amdgpu_ring_init(adev, ring, 512, &adev->vcn.inst->irq, 0, in vcn_v1_0_sw_init() [all …]
|
D | vega10_reg_init.c | 83 adev->doorbell_index.vcn.vcn_ring0_1 = AMDGPU_DOORBELL64_VCN0_1; in vega10_doorbell_index_init() 84 adev->doorbell_index.vcn.vcn_ring2_3 = AMDGPU_DOORBELL64_VCN2_3; in vega10_doorbell_index_init() 85 adev->doorbell_index.vcn.vcn_ring4_5 = AMDGPU_DOORBELL64_VCN4_5; in vega10_doorbell_index_init() 86 adev->doorbell_index.vcn.vcn_ring6_7 = AMDGPU_DOORBELL64_VCN6_7; in vega10_doorbell_index_init()
|
D | vega20_reg_init.c | 89 adev->doorbell_index.vcn.vcn_ring0_1 = AMDGPU_VEGA20_DOORBELL64_VCN0_1; in vega20_doorbell_index_init() 90 adev->doorbell_index.vcn.vcn_ring2_3 = AMDGPU_VEGA20_DOORBELL64_VCN2_3; in vega20_doorbell_index_init() 91 adev->doorbell_index.vcn.vcn_ring4_5 = AMDGPU_VEGA20_DOORBELL64_VCN4_5; in vega20_doorbell_index_init() 92 adev->doorbell_index.vcn.vcn_ring6_7 = AMDGPU_VEGA20_DOORBELL64_VCN6_7; in vega20_doorbell_index_init()
|
D | jpeg_v1_0.c | 594 bool set_clocks = !cancel_delayed_work_sync(&adev->vcn.idle_work); in jpeg_v1_0_ring_begin_use() 597 mutex_lock(&adev->vcn.vcn1_jpeg1_workaround); in jpeg_v1_0_ring_begin_use() 599 if (amdgpu_fence_wait_empty(&adev->vcn.inst->ring_dec)) in jpeg_v1_0_ring_begin_use() 602 for (cnt = 0; cnt < adev->vcn.num_enc_rings; cnt++) { in jpeg_v1_0_ring_begin_use() 603 if (amdgpu_fence_wait_empty(&adev->vcn.inst->ring_enc[cnt])) in jpeg_v1_0_ring_begin_use()
|
D | amdgpu_vcn.h | 142 *adev->vcn.inst[inst_idx].dpg_sram_curr_addr++ = offset; \ 143 *adev->vcn.inst[inst_idx].dpg_sram_curr_addr++ = value; \
|
D | jpeg_v3_0.c | 94 ring->doorbell_index = (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + 1; in jpeg_v3_0_sw_init() 141 (adev->doorbell_index.vcn.vcn_ring0_1 << 1), 0); in jpeg_v3_0_hw_init() 163 cancel_delayed_work_sync(&adev->vcn.idle_work); in jpeg_v3_0_hw_fini()
|
D | jpeg_v2_5.c | 115 ring->doorbell_index = (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + 1 + 8 * i; in jpeg_v2_5_sw_init() 168 (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + 8 * i, i); in jpeg_v2_5_hw_init() 192 cancel_delayed_work_sync(&adev->vcn.idle_work); in jpeg_v2_5_hw_fini()
|
D | jpeg_v2_0.c | 108 ring->doorbell_index = (adev->doorbell_index.vcn.vcn_ring0_1 << 1) + 1; in jpeg_v2_0_sw_init() 155 (adev->doorbell_index.vcn.vcn_ring0_1 << 1), 0); in jpeg_v2_0_hw_init() 175 cancel_delayed_work_sync(&adev->vcn.idle_work); in jpeg_v2_0_hw_fini()
|
D | amdgpu_kms.c | 235 fw_info->ver = adev->vcn.fw_version; in amdgpu_firmware_info() 407 for (i = 0; i < adev->vcn.num_vcn_inst; i++) { in amdgpu_hw_ip_info() 411 if (adev->vcn.inst[i].ring_dec.sched.ready) in amdgpu_hw_ip_info() 419 for (i = 0; i < adev->vcn.num_vcn_inst; i++) { in amdgpu_hw_ip_info() 423 for (j = 0; j < adev->vcn.num_enc_rings; j++) in amdgpu_hw_ip_info() 424 if (adev->vcn.inst[i].ring_enc[j].sched.ready) in amdgpu_hw_ip_info()
|
D | nv.c | 661 adev->doorbell_index.vcn.vcn_ring0_1 = AMDGPU_NAVI10_DOORBELL64_VCN0_1; in nv_init_doorbell_index() 662 adev->doorbell_index.vcn.vcn_ring2_3 = AMDGPU_NAVI10_DOORBELL64_VCN2_3; in nv_init_doorbell_index() 663 adev->doorbell_index.vcn.vcn_ring4_5 = AMDGPU_NAVI10_DOORBELL64_VCN4_5; in nv_init_doorbell_index() 664 adev->doorbell_index.vcn.vcn_ring6_7 = AMDGPU_NAVI10_DOORBELL64_VCN6_7; in nv_init_doorbell_index()
|
D | amdgpu_doorbell.h | 64 } vcn; member
|
D | amdgpu_virt.c | 508 POPULATE_UCODE_INFO(vf2pf_info, AMD_SRIOV_UCODE_ID_VCN, adev->vcn.fw_version); in amdgpu_virt_populate_vf2pf_ucode_info()
|
D | amdgpu_ucode.c | 436 FW_VERSION_ATTR(vcn_fw_version, 0444, vcn.fw_version);
|
D | amdgpu.h | 902 struct amdgpu_vcn vcn; member
|
/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
D | sienna_cichlid_ppt.c | 678 if (adev->vcn.num_vcn_inst > 1) { in sienna_cichlid_set_default_dpm_table() 717 if (adev->vcn.num_vcn_inst > 1) { in sienna_cichlid_set_default_dpm_table() 823 if (adev->vcn.num_vcn_inst > 1) { in sienna_cichlid_dpm_set_vcn_enable() 835 if (adev->vcn.num_vcn_inst > 1) { in sienna_cichlid_dpm_set_vcn_enable()
|