linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_powertune.c

/*
 * Copyright 2016 Advanced Micro Devices, Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 */

#include "hwmgr.h"
#include "vega10_hwmgr.h"
#include "vega10_smumgr.h"
#include "vega10_powertune.h"
#include "vega10_ppsmc.h"
#include "vega10_inc.h"
#include "pp_debug.h"
#include "soc15_common.h"

static const struct vega10_didt_config_reg SEDiDtTuningCtrlConfig_Vega10[] =;

static const struct vega10_didt_config_reg SEDiDtCtrl3Config_vega10[] =;

static const struct vega10_didt_config_reg SEDiDtCtrl2Config_Vega10[] =;

static const struct vega10_didt_config_reg SEDiDtCtrl1Config_Vega10[] =;


static const struct vega10_didt_config_reg SEDiDtWeightConfig_Vega10[] =;

static const struct vega10_didt_config_reg SEDiDtCtrl0Config_Vega10[] =;


static const struct vega10_didt_config_reg SEDiDtStallCtrlConfig_vega10[] =;

static const struct vega10_didt_config_reg SEDiDtStallPatternConfig_vega10[] =;

static const struct vega10_didt_config_reg SELCacConfig_Vega10[] =;


static const struct vega10_didt_config_reg SEEDCStallPatternConfig_Vega10[] =;

static const struct vega10_didt_config_reg SEEDCForceStallPatternConfig_Vega10[] =;

static const struct vega10_didt_config_reg SEEDCStallDelayConfig_Vega10[] =;

static const struct vega10_didt_config_reg SEEDCThresholdConfig_Vega10[] =;

static const struct vega10_didt_config_reg SEEDCCtrlResetConfig_Vega10[] =;

static const struct vega10_didt_config_reg SEEDCCtrlConfig_Vega10[] =;

static const struct vega10_didt_config_reg SEEDCCtrlForceStallConfig_Vega10[] =;

static const struct vega10_didt_config_reg    GCDiDtDroopCtrlConfig_vega10[] =;

static const struct vega10_didt_config_reg    GCDiDtCtrl0Config_vega10[] =;


static const struct vega10_didt_config_reg   PSMSEEDCStallPatternConfig_Vega10[] =;

static const struct vega10_didt_config_reg   PSMSEEDCStallDelayConfig_Vega10[] =;

static const struct vega10_didt_config_reg   PSMSEEDCCtrlResetConfig_Vega10[] =;

static const struct vega10_didt_config_reg   PSMSEEDCCtrlConfig_Vega10[] =;

static const struct vega10_didt_config_reg   PSMGCEDCDroopCtrlConfig_vega10[] =;

static const struct vega10_didt_config_reg   PSMGCEDCCtrlResetConfig_vega10[] =;

static const struct vega10_didt_config_reg   PSMGCEDCCtrlConfig_vega10[] =;

static const struct vega10_didt_config_reg    AvfsPSMResetConfig_vega10[] =;

static const struct vega10_didt_config_reg    AvfsPSMInitConfig_vega10[] =;

static int vega10_program_didt_config_registers(struct pp_hwmgr *hwmgr, const struct vega10_didt_config_reg *config_regs, enum vega10_didt_config_reg_type reg_type)
{}

static int vega10_program_gc_didt_config_registers(struct pp_hwmgr *hwmgr, const struct vega10_didt_config_reg *config_regs)
{}

static void vega10_didt_set_mask(struct pp_hwmgr *hwmgr, const bool enable)
{}

static int vega10_enable_cac_driving_se_didt_config(struct pp_hwmgr *hwmgr)
{}

static int vega10_disable_cac_driving_se_didt_config(struct pp_hwmgr *hwmgr)
{}

static int vega10_enable_psm_gc_didt_config(struct pp_hwmgr *hwmgr)
{}

static int vega10_disable_psm_gc_didt_config(struct pp_hwmgr *hwmgr)
{}

static int vega10_enable_se_edc_config(struct pp_hwmgr *hwmgr)
{}

static int vega10_disable_se_edc_config(struct pp_hwmgr *hwmgr)
{}

static int vega10_enable_psm_gc_edc_config(struct pp_hwmgr *hwmgr)
{}

static int vega10_disable_psm_gc_edc_config(struct pp_hwmgr *hwmgr)
{}

static int vega10_enable_se_edc_force_stall_config(struct pp_hwmgr *hwmgr)
{}

static int vega10_disable_se_edc_force_stall_config(struct pp_hwmgr *hwmgr)
{}

int vega10_enable_didt_config(struct pp_hwmgr *hwmgr)
{}

int vega10_disable_didt_config(struct pp_hwmgr *hwmgr)
{}

void vega10_initialize_power_tune_defaults(struct pp_hwmgr *hwmgr)
{}

int vega10_set_power_limit(struct pp_hwmgr *hwmgr, uint32_t n)
{}

int vega10_enable_power_containment(struct pp_hwmgr *hwmgr)
{}

int vega10_disable_power_containment(struct pp_hwmgr *hwmgr)
{}

static void vega10_set_overdrive_target_percentage(struct pp_hwmgr *hwmgr,
		uint32_t adjust_percent)
{}

int vega10_power_control_set_level(struct pp_hwmgr *hwmgr)
{}