Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2021-06-04 | drm/amdgpu: add mode2 reset support for yellow carp | Aaron Liu | 2 | -0/+27 | |
This patch adds mode2 reset support for yellow carp. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amd/pm: add set_performance_level function for yellow carp | Xiaomeng Hou | 1 | -0/+84 | |
This patch enables editing sysfs file power_dpm_force_performance_level for yellow carp. User could thus adjust the dpm forced level. v2: enable fine grain control of GFXCLK only when in manual performance level mode. In other mode, the min/max range of GFXCLK will be reset to corresponding values. Ex: To enable min 300MHz / max 600MHz gfx clocks 1) echo manual > /sys/bus/pci/devices/.../power_dpm_force_performance_level 2) echo s 0 300 > /sys/bus/pci/devices/.../pp_od_clk_voltage 3) echo s 1 600 > /sys/bus/pci/devices/.../pp_od_clk_voltage 4) echo c > /sys/bus/pci/devices/.../pp_od_clk_voltage Signed-off-by: Xiaomeng Hou <[email protected]> Acked-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu: correct the cu and rb info for yellow carp | Xiaomeng Hou | 1 | -2/+4 | |
Skip disabled sa to correct the cu_info and active_rbs for yellow carp. Signed-off-by: Xiaomeng Hou <[email protected]> Suggested-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu: add gpu harvest support for yellow carp (v2) | Xiaomeng Hou | 3 | -0/+48 | |
Register callback in gfxhub functions to program the bypass groups in gc_utcl2 corresponding to harvested SA. v2: update comments (Alex) Signed-off-by: Xiaomeng Hou <[email protected]> Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amd/pm: add the interface to dump smu metrics table for yellow carp | Xiaomeng Hou | 1 | -1/+55 | |
This patch is to add the interface to dump smu metrics table for yellow carp. Signed-off-by: Xiaomeng Hou <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amd/pm: add callbacks to read/write sysfs file pp_power_profile_mode | Xiaomeng Hou | 1 | -0/+86 | |
Implement the sysfs API for getting/setting pp_power_profile_mode for yellow carp. Signed-off-by: Xiaomeng Hou <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amd/pm: add callback get_dpm_ultimate_freq for yellow carp | Xiaomeng Hou | 1 | -0/+111 | |
Add callback function to get the hard frequency range of a clock domain for yellow carp. Signed-off-by: Xiaomeng Hou <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amd/pm: add callback to get bootup values for yellow carp | Xiaomeng Hou | 3 | -0/+139 | |
Add get_vbios_bootup_values function to get the bootup values for yellow carp. Signed-off-by: Xiaomeng Hou <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu: Load TA firmware for yellow carp | Nicholas Kazlauskas | 1 | -0/+4 | |
Add TA firmware to module firmware list for yellow carp and call psp_init_ta_microcode to parse the TA firmware for HDCP support. Cc: Aaron Liu <[email protected]> Acked-by: Huang Rui <[email protected]> Signed-off-by: Nicholas Kazlauskas <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amd/pm: add PrepareMp1ForUnload support for yellow carp | Aaron Liu | 1 | -0/+4 | |
Driver needs to notify the PMFW when the RLC is disabled. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amd/pm: add callback force_clk_levels for yellow carp | Xiaomeng Hou | 1 | -0/+114 | |
Implement the sysfs API to set a range of allowed DPM levels for specific clock domain. v2: return error directly if the specified clock type not supported Acked-by: Huang Rui <[email protected]> Signed-off-by: Xiaomeng Hou <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amd/pm: initialize feature_enabled/feature_support bitmap for yellow carp | Xiaomeng Hou | 1 | -0/+25 | |
Initialize the feature_enabled and feature_supported bitmap for yellow carp. Acked-by: Huang Rui <[email protected]> Signed-off-by: Xiaomeng Hou <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amd/pm: implement is_dpm_running() callback for yellow carp | Xiaomeng Hou | 1 | -9/+21 | |
Implement function to check if DPM is running for yellow carp. Acked-by: Huang Rui <[email protected]> Signed-off-by: Xiaomeng Hou <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amd/pm: add feature map for yellow carp | Xiaomeng Hou | 1 | -0/+42 | |
Add feature map for yellow carp. Acked-by: Huang Rui <[email protected]> Signed-off-by: Xiaomeng Hou <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amd/pm: add support to get dpm clock value for yellow carp | Xiaomeng Hou | 1 | -1/+127 | |
Implement the sysfs API for getting values of pp dpm clocks(pp_dpm_socclk/mclk/fclk/vclk/dclk) for yellow carp. Signed-off-by: Xiaomeng Hou <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amd/pm: add the fine grain tuning function for yellow carp | Xiaomeng Hou | 1 | -0/+116 | |
Use the pp_od_clk_voltage sysfs file to configure the min and max value of gfx clock frequency or to restore the default values. Command guide: echo "s level value" > pp_od_clk_voltage "s" - set the sclk frequency "level" - 0 or 1, "0" represents the min value, "1" represents the max value "value" - the target value of sclk frequency, it should be limited in the safe range echo "r" > pp_od_clk_voltage "r" - reset the sclk frequency, restore the default value echo "c" > pp_od_clk_voltage "c" - commit the min and max value of sclk frequency to the system only after the commit command, the setting target values by "s" command will take effect Example: 1) check the default sclk frequency $ cat pp_od_clk_voltage OD_SCLK: 0: 200Mhz 1: 600Mhz OD_RANGE: SCLK: 200MHz 600MHz 2) use "s" -- set command to configure the min or max sclk frequency $ echo "s 0 300" > pp_od_clk_voltage $ echo "s 1 500" > pp_od_clk_voltage $ echo "c" > pp_od_clk_voltage $ cat pp_od_clk_voltage OD_SCLK: 0: 300Mhz 1: 500Mhz OD_RANGE: SCLK: 200MHz 600MHz 3) use "r" -- reset command to restore the min and max sclk frequency $ echo "r" > pp_od_clk_voltage $ echo "c" > pp_od_clk_voltage $ cat pp_od_clk_voltage OD_SCLK: 0: 200Mhz 1: 600Mhz OD_RANGE: SCLK: 200MHz 600MHz v2: modify the description of reset command usage - need to do "commit" after set the restore command Signed-off-by: Xiaomeng Hou <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amd/pm: add set_watermarks_table function for yellow carp | Xiaomeng Hou | 1 | -0/+61 | |
Add callback function set_watermarks_table for yellow carp. Acked-by: Huang Rui <[email protected]> Signed-off-by: Xiaomeng Hou <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amd/pm: add read_sensor function for yellow carp | Xiaomeng Hou | 1 | -0/+140 | |
Add callback function read_sensor for yellow carp. Acked-by: Huang Rui <[email protected]> Signed-off-by: Xiaomeng Hou <[email protected]> Reviewed-by: Kevin Wang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu: add timestamp counter query support for yellow carp | Aaron Liu | 1 | -0/+1 | |
Allows software to query HW counters to timestamp submissions. This patch can address KFDPerfCountersTest. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Reviewed-by: chen gong <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu: add RLC_PG_DELAY_3 for yellow carp | Aaron Liu | 1 | -5/+16 | |
RLC_PG_DELAY_3 is to make RLC in safe mode to prevent any misalignment or conflict in middle of any power feature entry/exit sequence when CGPG feature is enabled. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu/pm: support smu_post_init for yellow carp | Aaron Liu | 1 | -3/+3 | |
Add smu_post_init support for yellow carp. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu: enable VCN PG and CG for yellow carp | Aaron Liu | 1 | -2/+6 | |
Enable VCN 3.0 PG and CG for Yellow Carp by setting up flags. Acked-by: Huang Rui <[email protected]> Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: James Zhu <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu: enable vcn dpg mode on yellow carp | James Zhu | 1 | -1/+2 | |
Enable vcn dpg mode on yellow carp. Signed-off-by: James Zhu <[email protected]> Reviewed-by: Leo Liu <[email protected]> Reviewed-by: Aaron Liu <[email protected]> Acked-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu: enable vcn/jpeg on yellow carp | James Zhu | 1 | -0/+3 | |
Enable vcn/jpeg IP on yellow carp. Signed-off-by: James Zhu <[email protected]> Reviewed-by: Leo Liu <[email protected]> Reviewed-by: Aaron Liu <[email protected]> Acked-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu/vcn: add vcn support for yellow carp | James Zhu | 1 | -0/+8 | |
Add vcn firmware support for yellow carp Signed-off-by: James Zhu <[email protected]> Reviewed-by: Leo Liu <[email protected]> Reviewed-by: Aaron Liu <[email protected]> Acked-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu/jpeg: Remove harvest checking on CHIP_YELLOW_CARP | James Zhu | 1 | -3/+6 | |
Register CC_UVD_HARVESTING is obsolete on CHIP_YELLOW_CARP. Signed-off-by: James Zhu <[email protected]> Reviewed-by: Leo Liu <[email protected]> Reviewed-by: Aaron Liu <[email protected]> Acked-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amd/pm: add vcn/jepg enable functions for yellow carp | Huang Rui | 1 | -0/+33 | |
This patch is to add vcn/jepg enable functions to power up/down them with smu messages. VCN/JEPG are poweroff by default. Signed-off-by: Huang Rui <[email protected]> Reviewed-by: James Zhu <[email protected]> Tested-by: James Zhu <[email protected]> Reviewed-by: Leo Liu <[email protected]> Reviewed-by: Aaron Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu: add IH Clock Gating support for yellow carp | Aaron Liu | 1 | -1/+2 | |
IH CG need to be enabled by driver. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu: add ATHUB Clock Gating support for yellow carp | Aaron Liu | 1 | -1/+3 | |
ATHUB MGCG/MGLS is enabled by default. Adding ATHUB MGCG/MGLS flag to ensure athub mgcg/ls enabled. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu: add HDP Clock Gating support for yellow carp | Aaron Liu | 1 | -1/+3 | |
HDP MGCG is enabled by default. Adding AMD_CG_SUPPORT_HDP_MGCG to ensure hdp mgcg enabled. HDP MGLS need to be enabled by driver. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu: add SDMA Clock Gating support for yellow carp | Aaron Liu | 1 | -1/+2 | |
Add AMD_CG_SUPPORT_SDMA_LS support. SDMA MGCG programming is migrated to RLC. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu/pm: enable gfx_off in yellow carp smu post init | Aaron Liu | 1 | -0/+13 | |
Enable gfx_off in smu_late_init for yellow carp. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu/pm: add gfx_off_control for yellow carp | Aaron Liu | 3 | -0/+24 | |
This patch implements gfx_off_control. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu/pm: enable smu_hw_init for yellow carp | Aaron Liu | 1 | -3/+0 | |
This patch is to enable smu_hw_init for yellow carp. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu: add GFX Power Gating support for yellow carp | Aaron Liu | 1 | -1/+1 | |
Add GFX Power Gating support. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu: add MMHUB Clock Gating support for yellow carp | Aaron Liu | 1 | -1/+3 | |
Add AMD_CG_SUPPORT_MC_MGCG/AMD_CG_SUPPORT_MC_LS support. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu: add GFX Clock Gating support for yellow carp | Aaron Liu | 1 | -1/+9 | |
Add below supports: GFX Coarse Grain Clock Gating(CGCG) GFX Coarse grain light sleep/deep sleep(CGLS) GFX Medium Grain Clock Gating(MGCG) GFX Medium Grain light sleep/deep sleep(MGLS) GFX Fine Grain Clock Gating(FGCG) RLC MGLS CP MGLS Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu/pm: add set_driver_table_location implementation for yellow carp | Aaron Liu | 3 | -0/+25 | |
This patch adds set_driver_table_location implementation for yellow carp. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu/pm: set_pp_feature is unsupport for yellow carp | Aaron Liu | 1 | -2/+1 | |
For yellow carp, SMU firmware just only supports get_pp_feature. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu: enable psp_v13 for yellow carp | Aaron Liu | 2 | -0/+6 | |
This patch enables psp_v13 for yellow carp. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu: add psp_v13 support for yellow carp | Aaron Liu | 1 | -7/+26 | |
This patch adds psp_v13 support for yellow carp. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu: add mmhub client support for yellow carp | Alex Deucher | 1 | -0/+1 | |
To help debugging GPUVM page faults. Acked-by: Huang Rui <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu: reserved buffer is not needed with ip discovery enabled | Aaron Liu | 1 | -4/+7 | |
When IP discovery enabled, the reserved buffer has been alloacted. Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu: introduce a stolen reserved buffer to protect specific buffer ↵ | Huang Rui | 5 | -0/+32 | |
region (v2) Some ASICs such as Yellow Carp needs to reserve a region of video memory to avoid access from driver. So this patch is to introduce a stolen reserved buffer to protect specific buffer region. v2: free this buffer in amdgpu_ttm_fini. Signed-off-by: Huang Rui <[email protected]> Acked-and-Tested-by: Aaron Liu <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu: add gfx golden settings for yellow carp (v3) | Aaron Liu | 1 | -0/+29 | |
This patch is to add gfx golden settings for yellow carp post si. v2: squash in updates (Alex) v3: squash in LDS update (Alex) Signed-off-by: Aaron Liu <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu: add smu ip block for yellow carp(V3) | Aaron Liu | 3 | -1/+5 | |
Yellow carp smu ip version: 13_0_1. V2: rename smu_v13_0 to smu_v13_0_1. V3: reuse smu_v13_0 with aldebaran. Signed-off-by: Aaron Liu <[email protected]> Acked-by: Alex Deucher <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amd/pm: partially enable swsmu for yellow carp(V2) | Aaron Liu | 1 | -0/+6 | |
This patch is to partially enable swSMU for yellow carp for the moment. V2: rename smu_v13_0 to smu_v13_0_1. Signed-off-by: Aaron Liu <[email protected]> Acked-by: Alex Deucher <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amd/pm: add yellow_carp_ppt implementation(V3) | Aaron Liu | 3 | -1/+192 | |
yellow_carp_ppt is swsmu layer 2 code for yellow carp. V2: rename smu_v13_0 to smu_v13_0_1 V3: cleanup code. Signed-off-by: Aaron Liu <[email protected]> Acked-by: Alex Deucher <[email protected]> Reviewed-by: Huang Rui <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amd/pm: add smu13 ip support for moment(V3) | Aaron Liu | 4 | -1/+185 | |
For supporting yellow carp, we need to add smu13 ip support for the moment. V2: add smu_v13_0_1.c|h dedicated for apu. V3: cleanup code. Signed-off-by: Aaron Liu <[email protected]> Acked-by: Alex Deucher <[email protected]> Reviewed-by: Huang Rui <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]> | |||||
2021-06-04 | drm/amdgpu/pm: add smu v13.0.1 smc header for yellow carp (v2) | Aaron Liu | 1 | -0/+97 | |
This patch is to add smu v13.0.1 smc header for yellow carp. v2: squash in updates (Alex) Signed-off-by: Aaron Liu <[email protected]> Acked-by: Alex Deucher <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]> |