Home
last modified time | relevance | path

Searched refs:harvest_config (Results 1 – 22 of 22) sorted by relevance

/openbmc/linux/drivers/gpu/drm/amd/amdgpu/
H A Dvce_v3_0.c83 if (adev->vce.harvest_config == 0 || in vce_v3_0_ring_get_rptr()
84 adev->vce.harvest_config == AMDGPU_VCE_HARVEST_VCE1) in vce_v3_0_ring_get_rptr()
86 else if (adev->vce.harvest_config == AMDGPU_VCE_HARVEST_VCE0) in vce_v3_0_ring_get_rptr()
115 if (adev->vce.harvest_config == 0 || in vce_v3_0_ring_get_wptr()
116 adev->vce.harvest_config == AMDGPU_VCE_HARVEST_VCE1) in vce_v3_0_ring_get_wptr()
118 else if (adev->vce.harvest_config == AMDGPU_VCE_HARVEST_VCE0) in vce_v3_0_ring_get_wptr()
146 if (adev->vce.harvest_config == 0 || in vce_v3_0_ring_set_wptr()
147 adev->vce.harvest_config == AMDGPU_VCE_HARVEST_VCE1) in vce_v3_0_ring_set_wptr()
149 else if (adev->vce.harvest_config == AMDGPU_VCE_HARVEST_VCE0) in vce_v3_0_ring_set_wptr()
272 if (adev->vce.harvest_config & (1 << idx)) in vce_v3_0_start()
[all …]
H A Djpeg_v2_5.c68 adev->jpeg.harvest_config |= 1 << i; in jpeg_v2_5_early_init()
70 if (adev->jpeg.harvest_config == (AMDGPU_JPEG_HARVEST_JPEG0 | in jpeg_v2_5_early_init()
95 if (adev->jpeg.harvest_config & (1 << i)) in jpeg_v2_5_sw_init()
126 if (adev->jpeg.harvest_config & (1 << i)) in jpeg_v2_5_sw_init()
187 if (adev->jpeg.harvest_config & (1 << i)) in jpeg_v2_5_hw_init()
219 if (adev->jpeg.harvest_config & (1 << i)) in jpeg_v2_5_hw_fini()
330 if (adev->jpeg.harvest_config & (1 << i)) in jpeg_v2_5_start()
384 if (adev->jpeg.harvest_config & (1 << i)) in jpeg_v2_5_stop()
495 if (adev->jpeg.harvest_config & (1 << i)) in jpeg_v2_5_is_idle()
512 if (adev->jpeg.harvest_config & (1 << i)) in jpeg_v2_5_wait_for_idle()
[all …]
H A Dvcn_v2_5.c87 adev->vcn.harvest_config = 0; in vcn_v2_5_early_init()
96 adev->vcn.harvest_config |= 1 << i; in vcn_v2_5_early_init()
98 if (adev->vcn.harvest_config == (AMDGPU_VCN_HARVEST_VCN0 | in vcn_v2_5_early_init()
128 if (adev->vcn.harvest_config & (1 << j)) in vcn_v2_5_sw_init()
164 if (adev->vcn.harvest_config & (1 << j)) in vcn_v2_5_sw_init()
261 if (adev->vcn.harvest_config & (1 << i)) in vcn_v2_5_sw_fini()
299 if (adev->vcn.harvest_config & (1 << j)) in vcn_v2_5_hw_init()
350 if (adev->vcn.harvest_config & (1 << i)) in vcn_v2_5_hw_fini()
421 if (adev->vcn.harvest_config & (1 << i)) in vcn_v2_5_mc_resume()
578 if (adev->vcn.harvest_config & (1 << i)) in vcn_v2_5_disable_clock_gating()
[all …]
H A Duvd_v7_0.c376 adev->uvd.harvest_config |= 1 << i; in uvd_v7_0_early_init()
379 if (adev->uvd.harvest_config == (AMDGPU_UVD_HARVEST_UVD0 | in uvd_v7_0_early_init()
406 if (adev->uvd.harvest_config & (1 << j)) in uvd_v7_0_sw_init()
443 if (adev->uvd.harvest_config & (1 << j)) in uvd_v7_0_sw_init()
506 if (adev->uvd.harvest_config & (1 << j)) in uvd_v7_0_sw_fini()
536 if (adev->uvd.harvest_config & (1 << j)) in uvd_v7_0_hw_init()
677 if (adev->uvd.harvest_config & (1 << i)) in uvd_v7_0_mc_resume()
756 if (adev->uvd.harvest_config & (1 << i)) in uvd_v7_0_mmsch_start()
814 if (adev->uvd.harvest_config & (1 << i)) in uvd_v7_0_sriov_start()
959 if (adev->uvd.harvest_config & (1 << k)) in uvd_v7_0_start()
[all …]
H A Damdgpu_jpeg.c51 if (adev->jpeg.harvest_config & (1 << i)) in amdgpu_jpeg_sw_fini()
83 if (adev->jpeg.harvest_config & (1 << i)) in amdgpu_jpeg_idle_work_handler()
258 if (adev->jpeg.harvest_config & (1 << i) || in amdgpu_jpeg_ras_late_init()
H A Dvcn_v3_0.c94 adev->vcn.harvest_config = 0; in vcn_v3_0_early_init()
98 if (adev->vcn.harvest_config == (AMDGPU_VCN_HARVEST_VCN0 | in vcn_v3_0_early_init()
156 if (adev->vcn.harvest_config & (1 << i)) in vcn_v3_0_sw_init()
266 if (adev->vcn.harvest_config & (1 << i)) in vcn_v3_0_sw_fini()
308 if (adev->vcn.harvest_config & (1 << i)) in vcn_v3_0_hw_init()
339 if (adev->vcn.harvest_config & (1 << i)) in vcn_v3_0_hw_init()
383 if (adev->vcn.harvest_config & (1 << i)) in vcn_v3_0_hw_fini()
1105 if (adev->vcn.harvest_config & (1 << i)) in vcn_v3_0_start()
1323 if (adev->vcn.harvest_config & (1 << i)) in vcn_v3_0_start_sriov()
1528 if (adev->vcn.harvest_config & (1 << i)) in vcn_v3_0_stop()
[all …]
H A Dvcn_v4_0.c84 adev->vcn.harvest_config = VCN_HARVEST_MMSCH; in vcn_v4_0_early_init()
87 adev->vcn.harvest_config |= 1 << i; in vcn_v4_0_early_init()
129 if (adev->vcn.harvest_config & (1 << i)) in vcn_v4_0_sw_init()
217 if (adev->vcn.harvest_config & (1 << i)) in vcn_v4_0_sw_fini()
259 if (adev->vcn.harvest_config & (1 << i)) in vcn_v4_0_hw_init()
271 if (adev->vcn.harvest_config & (1 << i)) in vcn_v4_0_hw_init()
309 if (adev->vcn.harvest_config & (1 << i)) in vcn_v4_0_hw_fini()
1259 if (adev->vcn.harvest_config & (1 << i)) in vcn_v4_0_start_sriov()
1653 if (p->adev->vcn.harvest_config & AMDGPU_VCN_HARVEST_VCN0) in vcn_v4_0_limit_sched()
1849 if (adev->vcn.harvest_config & (1 << i)) in vcn_v4_0_set_unified_ring_funcs()
[all …]
H A Damdgpu_jpeg.h56 unsigned harvest_config; member
H A Damdgpu_vce.h50 unsigned harvest_config; member
H A Damdgpu_uvd.h67 unsigned harvest_config; member
H A Damdgpu_vcn.c190 if (adev->vcn.harvest_config & (1 << i)) in amdgpu_vcn_sw_init()
239 if (adev->vcn.harvest_config & (1 << j)) in amdgpu_vcn_sw_fini()
297 if (adev->vcn.harvest_config & (1 << i)) in amdgpu_vcn_suspend()
324 if (adev->vcn.harvest_config & (1 << i)) in amdgpu_vcn_resume()
369 if (adev->vcn.harvest_config & (1 << j)) in amdgpu_vcn_idle_work_handler()
1042 if (adev->vcn.harvest_config & (1 << i)) in amdgpu_vcn_setup_ucode()
1207 if (adev->vcn.harvest_config & (1 << i) || in amdgpu_vcn_ras_late_init()
H A Dsoc21.c153 if (adev->vcn.num_vcn_inst == hweight8(adev->vcn.harvest_config)) in soc21_query_video_codecs()
161 if ((adev->vcn.harvest_config & AMDGPU_VCN_HARVEST_VCN0) || in soc21_query_video_codecs()
174 if ((adev->vcn.harvest_config & AMDGPU_VCN_HARVEST_VCN0)) { in soc21_query_video_codecs()
708 if ((adev->vcn.harvest_config & AMDGPU_VCN_HARVEST_VCN0) || in soc21_common_late_init()
H A Damdgpu_uvd.c323 if (adev->uvd.harvest_config & (1 << j)) in amdgpu_uvd_sw_init()
378 if (adev->uvd.harvest_config & (1 << j)) in amdgpu_uvd_sw_fini()
441 if (adev->uvd.harvest_config & (1 << j)) in amdgpu_uvd_suspend()
477 if (adev->uvd.harvest_config & (1 << i)) in amdgpu_uvd_resume()
1262 if (adev->uvd.harvest_config & (1 << i)) in amdgpu_uvd_idle_work_handler()
H A Dnv.c214 if (adev->vcn.num_vcn_inst == hweight8(adev->vcn.harvest_config)) in nv_query_video_codecs()
222 if (adev->vcn.harvest_config & AMDGPU_VCN_HARVEST_VCN0) { in nv_query_video_codecs()
234 if (adev->vcn.harvest_config & AMDGPU_VCN_HARVEST_VCN0) { in nv_query_video_codecs()
960 if (adev->vcn.harvest_config & AMDGPU_VCN_HARVEST_VCN0) { in nv_common_late_init()
H A Damdgpu_kms.c403 if (adev->uvd.harvest_config & (1 << i)) in amdgpu_hw_ip_info()
423 if (adev->uvd.harvest_config & (1 << i)) in amdgpu_hw_ip_info()
436 if (adev->vcn.harvest_config & (1 << i)) in amdgpu_hw_ip_info()
448 if (adev->vcn.harvest_config & (1 << i)) in amdgpu_hw_ip_info()
463 if (adev->jpeg.harvest_config & (1 << i)) in amdgpu_hw_ip_info()
864 dev_info->vce_harvest_config = adev->vce.harvest_config; in amdgpu_info_ioctl()
H A Daqua_vanjaram.c657 adev->vcn.harvest_config = 0; in aqua_vanjaram_init_soc_config()
660 adev->jpeg.harvest_config = 0; in aqua_vanjaram_init_soc_config()
H A Dvce_v4_0.c705 mask |= (adev->vce.harvest_config & AMDGPU_VCE_HARVEST_VCE0) ? 0 : SRBM_STATUS2__VCE0_BUSY_MASK;
706 mask |= (adev->vce.harvest_config & AMDGPU_VCE_HARVEST_VCE1) ? 0 : SRBM_STATUS2__VCE1_BUSY_MASK;
937 if (adev->vce.harvest_config & (1 << i))
H A Damdgpu_vcn.h278 unsigned harvest_config; member
H A Damdgpu_discovery.c336 adev->vcn.harvest_config |= AMDGPU_VCN_HARVEST_VCN1; in amdgpu_discovery_harvest_config_quirk()
575 adev->vcn.harvest_config |= AMDGPU_VCN_HARVEST_VCN0; in amdgpu_discovery_read_harvest_bit_per_ip()
581 adev->vcn.harvest_config |= AMDGPU_VCN_HARVEST_VCN1; in amdgpu_discovery_read_harvest_bit_per_ip()
631 adev->vcn.harvest_config |= in amdgpu_discovery_read_from_harvest_table()
633 adev->jpeg.harvest_config |= in amdgpu_discovery_read_from_harvest_table()
H A Damdgpu_debugfs.c2168 if (adev->vcn.harvest_config & (1 << i)) in amdgpu_debugfs_init()
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/smu13/
H A Dsmu_v13_0.c1831 if (adev->vcn.harvest_config & (1 << i)) in smu_v13_0_set_performance_level()
1846 if (adev->vcn.harvest_config & (1 << i)) in smu_v13_0_set_performance_level()
2071 if (adev->vcn.harvest_config & (1 << i)) in smu_v13_0_set_vcn_enable()
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/smu11/
H A Dsienna_cichlid_ppt.c1017 if (adev->vcn.harvest_config & (1 << i)) in sienna_cichlid_set_default_dpm_table()
1040 if (adev->vcn.harvest_config & (1 << i)) in sienna_cichlid_set_default_dpm_table()
1141 if (adev->vcn.harvest_config & (1 << i)) in sienna_cichlid_dpm_set_vcn_enable()