drm/amd/powerplay: add interface to set tool table location (v2)
This patch adds interface to set tool table location for smu. Set PMSTATUSLOG table bo address with SetToolsDramAddr MSG for tools. v2: add detailed info to describe this function Signed-off-by: Huang Rui <ray.huang@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>hifive-unleashed-5.2
parent
a7ebb6d2fd
commit
206bc589ed
|
@ -208,7 +208,12 @@ static int smu_smc_table_hw_init(struct smu_context *smu)
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
return 0;
|
/*
|
||||||
|
* Set PMSTATUSLOG table bo address with SetToolsDramAddr MSG for tools.
|
||||||
|
*/
|
||||||
|
ret = smu_set_tool_table_location(smu);
|
||||||
|
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int smu_hw_init(void *handle)
|
static int smu_hw_init(void *handle)
|
||||||
|
|
|
@ -47,6 +47,7 @@ struct smu_funcs
|
||||||
int (*check_fw_version)(struct smu_context *smu);
|
int (*check_fw_version)(struct smu_context *smu);
|
||||||
int (*write_pptable)(struct smu_context *smu);
|
int (*write_pptable)(struct smu_context *smu);
|
||||||
int (*set_min_dcef_deep_sleep)(struct smu_context *smu);
|
int (*set_min_dcef_deep_sleep)(struct smu_context *smu);
|
||||||
|
int (*set_tool_table_location)(struct smu_context *smu);
|
||||||
};
|
};
|
||||||
|
|
||||||
#define smu_init_microcode(smu) \
|
#define smu_init_microcode(smu) \
|
||||||
|
@ -75,6 +76,8 @@ struct smu_funcs
|
||||||
((smu)->funcs->write_pptable ? (smu)->funcs->write_pptable((smu)) : 0)
|
((smu)->funcs->write_pptable ? (smu)->funcs->write_pptable((smu)) : 0)
|
||||||
#define smu_set_min_dcef_deep_sleep(smu) \
|
#define smu_set_min_dcef_deep_sleep(smu) \
|
||||||
((smu)->funcs->set_min_dcef_deep_sleep ? (smu)->funcs->set_min_dcef_deep_sleep((smu)) : 0)
|
((smu)->funcs->set_min_dcef_deep_sleep ? (smu)->funcs->set_min_dcef_deep_sleep((smu)) : 0)
|
||||||
|
#define smu_set_tool_table_location(smu) \
|
||||||
|
((smu)->funcs->set_tool_table_location ? (smu)->funcs->set_tool_table_location((smu)) : 0)
|
||||||
|
|
||||||
|
|
||||||
extern const struct amd_ip_funcs smu_ip_funcs;
|
extern const struct amd_ip_funcs smu_ip_funcs;
|
||||||
|
|
Loading…
Reference in New Issue