Skip to content

Commit 4f89cf4

Browse files
lumagRob Clark
authored andcommitted
drm/msm: bail out late_init_minor() if it is not a GPU device
Both perf and hangrd make sense only for GPU devices. Bail out if we are registering a KMS-only device. Signed-off-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/662583/ Signed-off-by: Rob Clark <[email protected]>
1 parent 98290b0 commit 4f89cf4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/gpu/drm/msm/msm_debugfs.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,11 +325,16 @@ static struct drm_info_list msm_debugfs_list[] = {
325325

326326
static int late_init_minor(struct drm_minor *minor)
327327
{
328+
struct drm_device *dev = minor->dev;
329+
struct msm_drm_private *priv = dev->dev_private;
328330
int ret;
329331

330332
if (!minor)
331333
return 0;
332334

335+
if (!priv->gpu_pdev)
336+
return 0;
337+
333338
ret = msm_rd_debugfs_init(minor);
334339
if (ret) {
335340
DRM_DEV_ERROR(minor->dev->dev, "could not install rd debugfs\n");

0 commit comments

Comments
 (0)