diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2018-05-10 15:59:31 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-05-24 00:51:21 -0400 |
commit | 8f9b2e506129e6eb0d21d163f361dd68a050b974 (patch) | |
tree | ddfa553c370d19a7c6a0720efe418da98cc438de | |
parent | 99631045862e2994b47285a8cc96bc939ae5b42f (diff) |
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: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 03a2c0be0bf2..a59c07590cee 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -1401,6 +1401,8 @@ struct amdgpu_df_funcs { | |||
1401 | bool enable); | 1401 | bool enable); |
1402 | void (*get_clockgating_state)(struct amdgpu_device *adev, | 1402 | void (*get_clockgating_state)(struct amdgpu_device *adev, |
1403 | u32 *flags); | 1403 | u32 *flags); |
1404 | void (*enable_ecc_force_par_wr_rmw)(struct amdgpu_device *adev, | ||
1405 | bool enable); | ||
1404 | }; | 1406 | }; |
1405 | /* Define the HW IP blocks will be used in driver , add more if necessary */ | 1407 | /* Define the HW IP blocks will be used in driver , add more if necessary */ |
1406 | enum amd_hw_ip_block_type { | 1408 | enum amd_hw_ip_block_type { |