diff options
| author | jqdeng <[email protected]> | 2020-07-30 06:48:40 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-08-18 22:22:10 +0000 |
| commit | 8e1d88f948f33f2e34dbf13c3e9fc4228f1331af (patch) | |
| tree | 35cf8ad4a8a59ce9b2fbc2796a114e836044fe65 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | drm/amdgpu: Fix repeatly flr issue (diff) | |
| download | kernel-8e1d88f948f33f2e34dbf13c3e9fc4228f1331af.tar.gz kernel-8e1d88f948f33f2e34dbf13c3e9fc4228f1331af.zip | |
drm/amdgpu: Limit the error info print rate
Use function printk_ratelimit to limit the print rate.
Signed-off-by: jqdeng <[email protected]>
Acked-by: Nirmoy Das <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index 10c0779aba73..e84a6e0bc784 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c @@ -1305,7 +1305,8 @@ int amdgpu_cs_ioctl(struct drm_device *dev, void *data, struct drm_file *filp) r = amdgpu_cs_parser_init(&parser, data); if (r) { - DRM_ERROR("Failed to initialize parser %d!\n", r); + if (printk_ratelimit()) + DRM_ERROR("Failed to initialize parser %d!\n", r); goto out; } |
