drm/amdgpu: abstract EDC counter clear to a separated function
authorDennis Li <Dennis.Li@amd.com>
Thu, 16 Jan 2020 03:25:08 +0000 (11:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 22 Jan 2020 21:36:14 +0000 (16:36 -0500)
commit504c5e72d781e48946c32bf427c665ed15d532d0
treed59a573c2e36f534de095042000ccf26e3c00940
parent5e66403e4d709decacf2b53e55deb55d8f6e6982
drm/amdgpu: abstract EDC counter clear to a separated function

1. Add IP prefix for the IP related codes.
2. Refactor the code to clear EDC counter.

Signed-off-by: Dennis Li <Dennis.Li@amd.com>
Reviewed-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c