drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c- Extension
.c- Size
- 61346 bytes
- Lines
- 1966
- Domain
- Driver Families
- Bucket
- drivers/gpu
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/firmware.hamdgpu.hamdgpu_dpm.hamdgpu_smu.hatomfirmware.hamdgpu_atomfirmware.hamdgpu_atombios.hsmu_v11_0.hsmu11_driver_if_arcturus.hsoc15_common.hatom.harcturus_ppt.hsmu_v11_0_pptable.harcturus_ppsmc.hnbio/nbio_7_4_offset.hnbio/nbio_7_4_sh_mask.hthm/thm_11_0_2_offset.hthm/thm_11_0_2_sh_mask.hamdgpu_xgmi.hlinux/i2c.hlinux/pci.hamdgpu_ras.hsmu_cmn.h
Detected Declarations
function arcturus_tables_initfunction arcturus_select_plpd_policyfunction arcturus_allocate_dpm_contextfunction arcturus_init_smc_tablesfunction arcturus_init_allowed_featuresfunction arcturus_set_default_dpm_tablefunction arcturus_check_bxco_supportfunction arcturus_check_fan_supportfunction arcturus_check_powerplay_tablefunction arcturus_store_powerplay_tablefunction arcturus_append_powerplay_tablefunction arcturus_setup_pptablefunction arcturus_run_btcfunction arcturus_populate_umd_state_clkfunction arcturus_get_smu_metrics_datafunction arcturus_get_current_clk_freq_by_tablefunction arcturus_emit_clk_levelsfunction arcturus_upload_dpm_levelfunction arcturus_force_clk_levelsfunction arcturus_get_thermal_temperature_rangefunction arcturus_read_sensorfunction arcturus_set_fan_static_modefunction arcturus_get_fan_speed_rpmfunction arcturus_set_fan_speed_pwmfunction arcturus_set_fan_speed_rpmfunction arcturus_get_fan_speed_pwmfunction arcturus_get_fan_parametersfunction arcturus_get_power_limitfunction arcturus_get_power_profile_modefunction arcturus_set_power_profile_mode_coefffunction arcturus_set_power_profile_modefunction arcturus_set_performance_levelfunction arcturus_is_dpm_runningfunction arcturus_dpm_set_vcn_enablefunction arcturus_i2c_xferfunction arcturus_i2c_funcfunction arcturus_i2c_control_initfunction arcturus_i2c_control_finifunction arcturus_get_unique_idfunction arcturus_set_df_cstatefunction arcturus_log_thermal_throttling_eventfunction arcturus_get_current_pcie_link_speedfunction arcturus_get_gpu_metricsfunction arcturus_set_ppt_funcs
Annotated Snippet
if (ret) {
dev_err(smu->adev->dev, "%s gfx clk Failed!", attempt_string);
return ret;
}
single_dpm_table = &(dpm_context->dpm_tables.gfx_table);
ret = smu_cmn_print_dpm_clk_levels(smu, single_dpm_table,
cur_value, buf, offset);
if (ret < 0)
return ret;
break;
case SMU_MCLK:
ret = arcturus_get_current_clk_freq_by_table(smu, SMU_UCLK, &cur_value);
if (ret) {
dev_err(smu->adev->dev, "%s mclk Failed!", attempt_string);
return ret;
}
single_dpm_table = &(dpm_context->dpm_tables.uclk_table);
ret = smu_cmn_print_dpm_clk_levels(smu, single_dpm_table,
cur_value, buf, offset);
if (ret < 0)
return ret;
break;
case SMU_SOCCLK:
ret = arcturus_get_current_clk_freq_by_table(smu, SMU_SOCCLK, &cur_value);
if (ret) {
dev_err(smu->adev->dev, "%s socclk Failed!", attempt_string);
return ret;
}
single_dpm_table = &(dpm_context->dpm_tables.soc_table);
ret = smu_cmn_print_dpm_clk_levels(smu, single_dpm_table,
cur_value, buf, offset);
if (ret < 0)
return ret;
break;
case SMU_FCLK:
ret = arcturus_get_current_clk_freq_by_table(smu, SMU_FCLK, &cur_value);
if (ret) {
dev_err(smu->adev->dev, "%s fclk Failed!", attempt_string);
return ret;
}
single_dpm_table = &(dpm_context->dpm_tables.fclk_table);
ret = smu_cmn_print_dpm_clk_levels(smu, single_dpm_table,
cur_value, buf, offset);
if (ret < 0)
return ret;
break;
case SMU_VCLK:
ret = arcturus_get_current_clk_freq_by_table(smu, SMU_VCLK, &cur_value);
if (ret) {
dev_err(smu->adev->dev, "%s vclk Failed!", attempt_string);
return ret;
}
single_dpm_table = &(dpm_context->dpm_tables.vclk_table);
ret = smu_cmn_print_dpm_clk_levels(smu, single_dpm_table,
cur_value, buf, offset);
if (ret < 0)
return ret;
break;
case SMU_DCLK:
ret = arcturus_get_current_clk_freq_by_table(smu, SMU_DCLK, &cur_value);
if (ret) {
dev_err(smu->adev->dev, "%s dclk Failed!", attempt_string);
return ret;
}
single_dpm_table = &(dpm_context->dpm_tables.dclk_table);
ret = smu_cmn_print_dpm_clk_levels(smu, single_dpm_table,
cur_value, buf, offset);
if (ret < 0)
return ret;
break;
case SMU_PCIE:
gen_speed = smu_v11_0_get_current_pcie_link_speed_level(smu);
lane_width = smu_v11_0_get_current_pcie_link_width_level(smu);
pcie_table = &(dpm_context->dpm_tables.pcie_table);
/* Populate with current state - arcturus only has boot level lclk */
pcie_table->lclk_levels = 1;
pcie_table->pcie_gen[0] = gen_speed;
pcie_table->pcie_lane[0] = lane_width;
pcie_table->lclk_freq[0] =
smu->smu_table.boot_values.lclk / 100;
ret = smu_cmn_print_pcie_levels(smu, pcie_table, gen_speed,
lane_width, buf, offset);
if (ret < 0)
return ret;
Annotation
- Immediate include surface: `linux/firmware.h`, `amdgpu.h`, `amdgpu_dpm.h`, `amdgpu_smu.h`, `atomfirmware.h`, `amdgpu_atomfirmware.h`, `amdgpu_atombios.h`, `smu_v11_0.h`.
- Detected declarations: `function arcturus_tables_init`, `function arcturus_select_plpd_policy`, `function arcturus_allocate_dpm_context`, `function arcturus_init_smc_tables`, `function arcturus_init_allowed_features`, `function arcturus_set_default_dpm_table`, `function arcturus_check_bxco_support`, `function arcturus_check_fan_support`, `function arcturus_check_powerplay_table`, `function arcturus_store_powerplay_table`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.