[PATCH] drm/amdgpu: don't add files at control minor debugfs directory

2016-12-05 Thread Alex Deucher
Since commit 8a357d10043c ("drm: Nerf DRM_CONTROL nodes"), a struct drm_device's ->control member is always NULL. In the case of CONFIG_DEBUG_FS=y, amdgpu_debugfs_add_files() accesses ->control->debugfs_root though. This results in the following Oops: [9.627636] BUG: unable to handle kernel N

Re: [PATCH] drm/amdgpu: don't add files at control minor debugfs directory

2016-12-05 Thread Michel Dänzer
On 06/12/16 05:07 AM, Alex Deucher wrote: > Since commit 8a357d10043c ("drm: Nerf DRM_CONTROL nodes"), a > struct drm_device's ->control member is always NULL. > > In the case of CONFIG_DEBUG_FS=y, amdgpu_debugfs_add_files() accesses > ->control->debugfs_root though. This results in the following

Re: [PATCH] drm/amdgpu: don't add files at control minor debugfs directory

2016-12-06 Thread Christian König
Am 06.12.2016 um 02:00 schrieb Michel Dänzer: On 06/12/16 05:07 AM, Alex Deucher wrote: Since commit 8a357d10043c ("drm: Nerf DRM_CONTROL nodes"), a struct drm_device's ->control member is always NULL. In the case of CONFIG_DEBUG_FS=y, amdgpu_debugfs_add_files() accesses ->control->debugfs_root

Re: [PATCH] drm/amdgpu: don't add files at control minor debugfs directory

2016-12-08 Thread Shawn Starr
On Tuesday, December 6, 2016 8:59:09 AM EST Christian König wrote: > Am 06.12.2016 um 02:00 schrieb Michel Dänzer: > > On 06/12/16 05:07 AM, Alex Deucher wrote: > >> Since commit 8a357d10043c ("drm: Nerf DRM_CONTROL nodes"), a > >> struct drm_device's ->control member is always NULL. > >> > >> In