[PATCH] drm/amd: fix hotplug race at startup

2019-06-14 Thread Young Xiao
We should check mode_config_initialized flag in amdgpu_hotplug_work_func. See commit 7f98ca454ad3 ("drm/radeon: fix hotplug race at startup") for details. Signed-off-by: Young Xiao <92siuy...@gmail.com> --- drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c | 3 +++ 1 file changed, 3 ins

[PATCH] drm/radeon: avoid a possible arrary overflow

2019-06-02 Thread Young Xiao
When looking up the connector type make sure the index is valid. Avoids a later crash if we read past the end of the array. This bug is similar to the issue which was fixed in commit e1718d97aa88 ("drm/amdgpu: avoid a possible array overflow"). Signed-off-by: Young Xiao <92siuy

[PATCH] drm/amd/powerplay: avoid possible buffer overflow

2019-05-28 Thread Young Xiao
Make sure the clock level enforced is within the allowed ranges in case PP_SCLK and PP_MCLK. Signed-off-by: Young Xiao <92siuy...@gmail.com> --- drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/amd/pow