/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_vcn.c | 101 (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG)) in amdgpu_vcn_sw_init() 111 (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG)) in amdgpu_vcn_sw_init() 117 (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG)) in amdgpu_vcn_sw_init() 123 (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG)) in amdgpu_vcn_sw_init() 129 (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG)) in amdgpu_vcn_sw_init() 135 (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG)) in amdgpu_vcn_sw_init() 141 (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG)) in amdgpu_vcn_sw_init() 147 (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG)) in amdgpu_vcn_sw_init() 153 (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG)) in amdgpu_vcn_sw_init() 159 (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG)) in amdgpu_vcn_sw_init() [all …]
|
D | nv.c | 1077 adev->pg_flags = AMD_PG_SUPPORT_VCN | in nv_common_early_init() 1099 adev->pg_flags = AMD_PG_SUPPORT_VCN | in nv_common_early_init() 1121 adev->pg_flags = AMD_PG_SUPPORT_VCN | in nv_common_early_init() 1145 adev->pg_flags = AMD_PG_SUPPORT_VCN | in nv_common_early_init() 1153 adev->pg_flags = 0; in nv_common_early_init() 1169 adev->pg_flags = AMD_PG_SUPPORT_VCN | in nv_common_early_init() 1193 adev->pg_flags = AMD_PG_SUPPORT_GFX_PG | in nv_common_early_init() 1212 adev->pg_flags = AMD_PG_SUPPORT_VCN | in nv_common_early_init() 1230 adev->pg_flags = AMD_PG_SUPPORT_VCN | in nv_common_early_init() 1256 adev->pg_flags = AMD_PG_SUPPORT_GFX_PG | in nv_common_early_init() [all …]
|
D | soc15.c | 1181 adev->pg_flags = 0; in soc15_common_early_init() 1204 adev->pg_flags = 0; in soc15_common_early_init() 1227 adev->pg_flags = 0; in soc15_common_early_init() 1261 adev->pg_flags = AMD_PG_SUPPORT_SDMA | AMD_PG_SUPPORT_VCN; in soc15_common_early_init() 1281 adev->pg_flags = AMD_PG_SUPPORT_SDMA | in soc15_common_early_init() 1303 adev->pg_flags = AMD_PG_SUPPORT_SDMA | AMD_PG_SUPPORT_VCN; in soc15_common_early_init() 1322 adev->pg_flags = AMD_PG_SUPPORT_VCN | AMD_PG_SUPPORT_VCN_DPG; in soc15_common_early_init() 1351 adev->pg_flags = AMD_PG_SUPPORT_SDMA | in soc15_common_early_init() 1366 adev->pg_flags = AMD_PG_SUPPORT_VCN_DPG; in soc15_common_early_init()
|
D | vi.c | 1510 adev->pg_flags = 0; in vi_common_early_init() 1531 adev->pg_flags = 0; in vi_common_early_init() 1548 adev->pg_flags = 0; in vi_common_early_init() 1571 adev->pg_flags = 0; in vi_common_early_init() 1594 adev->pg_flags = 0; in vi_common_early_init() 1617 adev->pg_flags = 0; in vi_common_early_init() 1641 adev->pg_flags = 0; in vi_common_early_init() 1661 adev->pg_flags = 0; in vi_common_early_init() 1663 adev->pg_flags |= AMD_PG_SUPPORT_GFX_SMG | in vi_common_early_init() 1686 adev->pg_flags = AMD_PG_SUPPORT_GFX_PG | in vi_common_early_init()
|
D | vcn_v1_0.c | 218 (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG)?"DPG Mode":"SPG Mode"); in vcn_v1_0_hw_init() 236 if ((adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) || in vcn_v1_0_hw_fini() 696 if (adev->pg_flags & AMD_PG_SUPPORT_VCN) { in vcn_1_0_disable_static_power_gating() 731 if (adev->pg_flags & AMD_PG_SUPPORT_VCN) in vcn_1_0_disable_static_power_gating() 741 if (adev->pg_flags & AMD_PG_SUPPORT_VCN) { in vcn_1_0_enable_static_power_gating() 1107 if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) in vcn_v1_0_start() 1204 if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) in vcn_v1_0_stop() 1415 if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) in vcn_v1_0_dec_ring_set_wptr() 1798 if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) { in vcn_v1_0_idle_work_handler() 1856 if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) { in vcn_v1_0_set_pg_for_begin_use()
|
D | vcn_v2_0.c | 253 (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG)?"DPG Mode":"SPG Mode"); in vcn_v2_0_hw_init() 271 if ((adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) || in vcn_v2_0_hw_fini() 708 if (adev->pg_flags & AMD_PG_SUPPORT_VCN) { in vcn_v2_0_disable_static_power_gating() 743 if (adev->pg_flags & AMD_PG_SUPPORT_VCN) in vcn_v2_0_disable_static_power_gating() 757 if (adev->pg_flags & AMD_PG_SUPPORT_VCN) { in vcn_v2_0_enable_static_power_gating() 940 if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) in vcn_v2_0_start() 1135 if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) { in vcn_v2_0_stop() 1356 if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) in vcn_v2_0_dec_ring_set_wptr()
|
D | jpeg_v3_0.c | 262 if (adev->pg_flags & AMD_PG_SUPPORT_JPEG) { in jpeg_v3_0_disable_static_power_gating() 297 if (adev->pg_flags & AMD_PG_SUPPORT_JPEG) { in jpeg_v3_0_enable_static_power_gating()
|
D | vcn_v3_0.c | 260 if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) in vcn_v3_0_sw_init() 377 (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG)?"DPG Mode":"SPG Mode"); in vcn_v3_0_hw_init() 401 if ((adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) || in vcn_v3_0_hw_fini() 612 if (adev->pg_flags & AMD_PG_SUPPORT_VCN) { in vcn_v3_0_disable_static_power_gating() 652 if (adev->pg_flags & AMD_PG_SUPPORT_VCN) in vcn_v3_0_disable_static_power_gating() 663 if (adev->pg_flags & AMD_PG_SUPPORT_VCN) { in vcn_v3_0_enable_static_power_gating() 1124 if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG){ in vcn_v3_0_start() 1549 if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) { in vcn_v3_0_stop() 1738 if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) { in vcn_v3_0_dec_ring_set_wptr()
|
D | gfx_v7_0.c | 3735 if (enable && (adev->pg_flags & AMD_PG_SUPPORT_RLC_SMU_HS)) in gfx_v7_0_enable_sclk_slowdown_on_pu() 3749 if (enable && (adev->pg_flags & AMD_PG_SUPPORT_RLC_SMU_HS)) in gfx_v7_0_enable_sclk_slowdown_on_pd() 3762 if (enable && (adev->pg_flags & AMD_PG_SUPPORT_CP)) in gfx_v7_0_enable_cp_pg() 3775 if (enable && (adev->pg_flags & AMD_PG_SUPPORT_GDS)) in gfx_v7_0_enable_gds_pg() 3796 if (enable && (adev->pg_flags & AMD_PG_SUPPORT_GFX_PG)) { in gfx_v7_0_enable_gfx_cgpg() 3868 if (enable && (adev->pg_flags & AMD_PG_SUPPORT_GFX_SMG)) in gfx_v7_0_enable_gfx_static_mgpg() 3882 if (enable && (adev->pg_flags & AMD_PG_SUPPORT_GFX_DMG)) in gfx_v7_0_enable_gfx_dynamic_mgpg() 4049 if (adev->pg_flags & (AMD_PG_SUPPORT_GFX_PG | in gfx_v7_0_init_pg() 4057 if (adev->pg_flags & AMD_PG_SUPPORT_GFX_PG) { in gfx_v7_0_init_pg() 4069 if (adev->pg_flags & (AMD_PG_SUPPORT_GFX_PG | in gfx_v7_0_fini_pg() [all …]
|
D | uvd_v4_2.c | 727 if (adev->pg_flags & AMD_PG_SUPPORT_UVD && !adev->pm.dpm_enabled) { in uvd_v4_2_set_powergating_state() 738 if (adev->pg_flags & AMD_PG_SUPPORT_UVD && !adev->pm.dpm_enabled) { in uvd_v4_2_set_powergating_state()
|
D | gfx_v6_0.c | 2688 if (enable && (adev->pg_flags & AMD_PG_SUPPORT_CP)) in gfx_v6_0_enable_cp_pg() 2770 if (enable && (adev->pg_flags & AMD_PG_SUPPORT_GFX_PG)) { in gfx_v6_0_enable_gfx_cgpg() 2798 if (enable && (adev->pg_flags & AMD_PG_SUPPORT_GFX_SMG)) in gfx_v6_0_enable_gfx_static_mgpg() 2812 if (enable && (adev->pg_flags & AMD_PG_SUPPORT_GFX_DMG)) in gfx_v6_0_enable_gfx_dynamic_mgpg() 2919 if (adev->pg_flags & (AMD_PG_SUPPORT_GFX_PG | in gfx_v6_0_init_pg() 2927 if (adev->pg_flags & AMD_PG_SUPPORT_GFX_PG) { in gfx_v6_0_init_pg() 2947 if (adev->pg_flags & (AMD_PG_SUPPORT_GFX_PG | in gfx_v6_0_fini_pg() 2954 if (adev->pg_flags & AMD_PG_SUPPORT_GFX_PG) { in gfx_v6_0_fini_pg() 3455 if (adev->pg_flags & (AMD_PG_SUPPORT_GFX_PG | in gfx_v6_0_set_powergating_state() 3462 if (adev->pg_flags & AMD_PG_SUPPORT_GFX_PG) { in gfx_v6_0_set_powergating_state()
|
D | vcn_v2_5.c | 222 if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) in vcn_v2_5_sw_init() 312 (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG)?"DPG Mode":"SPG Mode"); in vcn_v2_5_hw_init() 335 if ((adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) || in vcn_v2_5_hw_fini() 927 if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) { in vcn_v2_5_start() 941 if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) in vcn_v2_5_start() 1340 if (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG) { in vcn_v2_5_stop()
|
D | cik.c | 2039 adev->pg_flags = 0; in cik_common_early_init() 2059 adev->pg_flags = 0; in cik_common_early_init() 2078 adev->pg_flags = in cik_common_early_init() 2114 adev->pg_flags = in cik_common_early_init()
|
D | jpeg_v2_0.c | 231 if (adev->pg_flags & AMD_PG_SUPPORT_JPEG) { in jpeg_v2_0_disable_power_gating() 254 if (adev->pg_flags & AMD_PG_SUPPORT_JPEG) { in jpeg_v2_0_enable_power_gating()
|
D | si.c | 2060 adev->pg_flags = 0; in si_common_early_init() 2081 adev->pg_flags = 0; in si_common_early_init() 2102 adev->pg_flags = 0; in si_common_early_init() 2122 adev->pg_flags = 0; in si_common_early_init() 2140 adev->pg_flags = 0; in si_common_early_init()
|
D | gfx_v8_0.c | 5397 if ((adev->pg_flags & AMD_PG_SUPPORT_GFX_PG) && enable) { in cz_update_gfx_cg_power_gating() 5399 if (adev->pg_flags & AMD_PG_SUPPORT_GFX_PIPELINE) in cz_update_gfx_cg_power_gating() 5416 if (adev->pg_flags & (AMD_PG_SUPPORT_GFX_SMG | in gfx_v8_0_set_powergating_state() 5425 if (adev->pg_flags & AMD_PG_SUPPORT_RLC_SMU_HS) { in gfx_v8_0_set_powergating_state() 5432 if (adev->pg_flags & AMD_PG_SUPPORT_CP) in gfx_v8_0_set_powergating_state() 5439 if ((adev->pg_flags & AMD_PG_SUPPORT_GFX_SMG) && enable) in gfx_v8_0_set_powergating_state() 5444 if ((adev->pg_flags & AMD_PG_SUPPORT_GFX_DMG) && enable) in gfx_v8_0_set_powergating_state() 5452 if ((adev->pg_flags & AMD_PG_SUPPORT_GFX_SMG) && enable) in gfx_v8_0_set_powergating_state() 5457 if ((adev->pg_flags & AMD_PG_SUPPORT_GFX_DMG) && enable) in gfx_v8_0_set_powergating_state() 5462 if ((adev->pg_flags & AMD_PG_SUPPORT_GFX_QUICK_MG) && enable) in gfx_v8_0_set_powergating_state() [all …]
|
D | gfx_v9_0.c | 1335 adev->pg_flags |= AMD_PG_SUPPORT_GFX_PG | in gfx_v9_0_check_if_need_gfxoff() 1341 adev->pg_flags |= AMD_PG_SUPPORT_GFX_PG | in gfx_v9_0_check_if_need_gfxoff() 2910 if (adev->pg_flags & (AMD_PG_SUPPORT_GFX_PG | in gfx_v9_0_init_gfx_power_gating() 3061 if (adev->pg_flags & (AMD_PG_SUPPORT_GFX_PG | in gfx_v9_0_init_pg() 4892 if ((adev->pg_flags & AMD_PG_SUPPORT_GFX_PG) && enable) { in gfx_v9_0_update_gfx_cg_power_gating() 4894 if (adev->pg_flags & AMD_PG_SUPPORT_GFX_PIPELINE) in gfx_v9_0_update_gfx_cg_power_gating() 4898 if (adev->pg_flags & AMD_PG_SUPPORT_GFX_PIPELINE) in gfx_v9_0_update_gfx_cg_power_gating() 4911 if ((adev->pg_flags & AMD_PG_SUPPORT_GFX_SMG) && enable) in gfx_v9_0_update_gfx_mg_power_gating() 4916 if ((adev->pg_flags & AMD_PG_SUPPORT_GFX_DMG) && enable) in gfx_v9_0_update_gfx_mg_power_gating() 5208 if (adev->pg_flags & AMD_PG_SUPPORT_RLC_SMU_HS) { in gfx_v9_0_set_powergating_state() [all …]
|
D | uvd_v5_0.c | 662 if (adev->pg_flags & AMD_PG_SUPPORT_UVD) in uvd_v5_0_enable_clock_gating()
|
D | amdgpu_virt.c | 62 adev->pg_flags = 0; in amdgpu_virt_init_setting()
|
/drivers/gpu/drm/radeon/ |
D | radeon_asic.c | 2504 rdev->pg_flags = 0; in radeon_asic_init() 2523 rdev->pg_flags = 0; in radeon_asic_init() 2542 rdev->pg_flags = 0 | in radeon_asic_init() 2562 rdev->pg_flags = 0; in radeon_asic_init() 2579 rdev->pg_flags = 0; in radeon_asic_init() 2583 rdev->pg_flags = 0; in radeon_asic_init() 2611 rdev->pg_flags = 0; in radeon_asic_init() 2629 rdev->pg_flags = 0; in radeon_asic_init() 2654 rdev->pg_flags = 0; in radeon_asic_init() 2682 rdev->pg_flags = 0; in radeon_asic_init()
|
D | cik.c | 6358 if (enable && (rdev->pg_flags & RADEON_PG_SUPPORT_RLC_SMU_HS)) in cik_enable_sck_slowdown_on_pu() 6372 if (enable && (rdev->pg_flags & RADEON_PG_SUPPORT_RLC_SMU_HS)) in cik_enable_sck_slowdown_on_pd() 6385 if (enable && (rdev->pg_flags & RADEON_PG_SUPPORT_CP)) in cik_enable_cp_pg() 6398 if (enable && (rdev->pg_flags & RADEON_PG_SUPPORT_GDS)) in cik_enable_gds_pg() 6499 if (enable && (rdev->pg_flags & RADEON_PG_SUPPORT_GFX_PG)) { in cik_enable_gfx_cgpg() 6586 if (enable && (rdev->pg_flags & RADEON_PG_SUPPORT_GFX_SMG)) in cik_enable_gfx_static_mgpg() 6600 if (enable && (rdev->pg_flags & RADEON_PG_SUPPORT_GFX_DMG)) in cik_enable_gfx_dynamic_mgpg() 6766 if (rdev->pg_flags) { in cik_init_pg() 6769 if (rdev->pg_flags & RADEON_PG_SUPPORT_GFX_PG) { in cik_init_pg() 6781 if (rdev->pg_flags) { in cik_fini_pg() [all …]
|
D | si.c | 5234 if (enable && (rdev->pg_flags & RADEON_PG_SUPPORT_SDMA)) in si_enable_dma_pg() 5258 if (enable && (rdev->pg_flags & RADEON_PG_SUPPORT_GFX_PG)) { in si_enable_gfx_cgpg() 5776 if (rdev->pg_flags) { in si_init_pg() 5777 if (rdev->pg_flags & RADEON_PG_SUPPORT_SDMA) { in si_init_pg() 5781 if (rdev->pg_flags & RADEON_PG_SUPPORT_GFX_PG) { in si_init_pg() 5797 if (rdev->pg_flags) { in si_fini_pg()
|
/drivers/gpu/drm/amd/pm/swsmu/smu12/ |
D | smu_v12_0.c | 124 if (!(smu->adev->pg_flags & AMD_PG_SUPPORT_GFX_PG) || smu->adev->in_s0ix) in smu_v12_0_set_gfx_cgpg()
|
/drivers/gpu/drm/amd/pm/powerplay/ |
D | kv_dpm.c | 2824 pi->caps_uvd_pg = (adev->pg_flags & AMD_PG_SUPPORT_UVD) ? true : false; in kv_dpm_init() 2826 pi->caps_vce_pg = (adev->pg_flags & AMD_PG_SUPPORT_VCE) ? true : false; in kv_dpm_init() 2827 pi->caps_samu_pg = (adev->pg_flags & AMD_PG_SUPPORT_SAMU) ? true : false; in kv_dpm_init() 2828 pi->caps_acp_pg = (adev->pg_flags & AMD_PG_SUPPORT_ACP) ? true : false; in kv_dpm_init()
|
/drivers/gpu/drm/amd/pm/swsmu/smu11/ |
D | navi10_ppt.c | 328 if (smu->adev->pg_flags & AMD_PG_SUPPORT_MMHUB) in navi10_get_allowed_feature_mask() 331 if (smu->adev->pg_flags & AMD_PG_SUPPORT_ATHUB) in navi10_get_allowed_feature_mask() 334 if (smu->adev->pg_flags & AMD_PG_SUPPORT_VCN) in navi10_get_allowed_feature_mask() 337 if (smu->adev->pg_flags & AMD_PG_SUPPORT_JPEG) in navi10_get_allowed_feature_mask()
|