/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | vce_v3_0.c | 83 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 D | jpeg_v2_5.c | 68 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 D | vcn_v2_5.c | 87 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 D | uvd_v7_0.c | 376 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 D | amdgpu_jpeg.c | 51 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 D | vcn_v3_0.c | 94 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 D | vcn_v4_0.c | 84 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 D | amdgpu_jpeg.h | 56 unsigned harvest_config; member
|
H A D | amdgpu_vce.h | 50 unsigned harvest_config; member
|
H A D | amdgpu_uvd.h | 67 unsigned harvest_config; member
|
H A D | amdgpu_vcn.c | 190 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 D | soc21.c | 153 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 D | amdgpu_uvd.c | 323 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 D | nv.c | 214 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 D | amdgpu_kms.c | 403 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 D | aqua_vanjaram.c | 657 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 D | vce_v4_0.c | 705 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 D | amdgpu_vcn.h | 278 unsigned harvest_config; member
|
H A D | amdgpu_discovery.c | 336 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 D | amdgpu_debugfs.c | 2168 if (adev->vcn.harvest_config & (1 << i)) in amdgpu_debugfs_init()
|
/openbmc/linux/drivers/gpu/drm/amd/pm/swsmu/smu13/ |
H A D | smu_v13_0.c | 1831 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 D | sienna_cichlid_ppt.c | 1017 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()
|