From: Alex Deucher Date: Thu, 10 May 2018 19:59:31 +0000 (-0500) Subject: drm/amdgpu: add new DF callback for ECC setup X-Git-Tag: v5.15~8594^2~6^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f9b2e506129e6eb0d21d163f361dd68a050b974;p=platform%2Fkernel%2Flinux-starfive.git 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 Reviewed-by: Junwei Zhang Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 03a2c0be..a59c075 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 { bool enable); void (*get_clockgating_state)(struct amdgpu_device *adev, 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 */ enum amd_hw_ip_block_type {