Skip to content

Commit

Permalink
drm/amdkcl: [4.8] fix Centos7.4 modprobe hang problem
Browse files Browse the repository at this point in the history
[Why]
adev->ddev->mode_config.helper_private =
&amdgpu_dm_mode_config_helperfuncs;
will not be used when using 4.12 as drm control version.
So the hang problem happens.

[How]
Using 4.8 as drm control version according to old kcl patch:
drm/amdkcl: [RHEL 6] Include kernel.h in chash.c for pr_fmt definition
The use of helper_private can be traced to patch:
drm/atomic-helper: nonblocking commit support
This patch is introduced in drm version(4.8.0).
So we need to use 4.8 as drm control version.

Change-Id: I19c57332c8f744e4edccc11a6d5758bbc20f1cc5
Signed-off-by: changzhu <Changfeng.Zhu@amd.com>
Reviewed-by: Tianci Yin <tianci.yin@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
  • Loading branch information
changzhu authored and changzhu committed Mar 14, 2019
1 parent 4bd9f83 commit 9d9c33f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1782,7 +1782,7 @@ static int amdgpu_dm_mode_config_init(struct amdgpu_device *adev)
adev->mode_info.mode_config_initialized = true;

adev->ddev->mode_config.funcs = (void *)&amdgpu_dm_mode_funcs;
#if DRM_VERSION_CODE >= DRM_VERSION(4, 12, 0)
#if DRM_VERSION_CODE >= DRM_VERSION(4, 8, 0)
adev->ddev->mode_config.helper_private = &amdgpu_dm_mode_config_helperfuncs;
#endif

Expand Down

0 comments on commit 9d9c33f

Please sign in to comment.