Commit 8f9b2e50 authored by Alex Deucher's avatar Alex Deucher

drm/amdgpu: add new DF callback for ECC setup

The ForceParWrRMW setting needs to be enabled for ECC, but disabled
when ECC is not enabled.
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: default avatarJunwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 99631045
...@@ -1401,6 +1401,8 @@ struct amdgpu_df_funcs { ...@@ -1401,6 +1401,8 @@ struct amdgpu_df_funcs {
bool enable); bool enable);
void (*get_clockgating_state)(struct amdgpu_device *adev, void (*get_clockgating_state)(struct amdgpu_device *adev,
u32 *flags); u32 *flags);
void (*enable_ecc_force_par_wr_rmw)(struct amdgpu_device *adev,
bool enable);
}; };
/* Define the HW IP blocks will be used in driver , add more if necessary */ /* Define the HW IP blocks will be used in driver , add more if necessary */
enum amd_hw_ip_block_type { enum amd_hw_ip_block_type {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment