From patchwork Fri Jan 27 20:40:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 9544165 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5A3A860415 for ; Sun, 29 Jan 2017 14:58:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4BDAF27F80 for ; Sun, 29 Jan 2017 14:58:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3EF0627F90; Sun, 29 Jan 2017 14:58:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C9E8D27F80 for ; Sun, 29 Jan 2017 14:58:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2A32E6E11C; Sun, 29 Jan 2017 14:57:47 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id DEE8E6EE39 for ; Fri, 27 Jan 2017 20:40:09 +0000 (UTC) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3v99dg5xtKz3hjdd; Fri, 27 Jan 2017 21:40:07 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3v99dg58BHzvkWJ; Fri, 27 Jan 2017 21:40:07 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id plyQXJSxxJ2V; Fri, 27 Jan 2017 21:40:06 +0100 (CET) X-Auth-Info: vS5C3qPhi1QFK599oLizm7l99ifGMiC4E/XL1JfPxPM= Received: from [IPv6:::1] (unknown [195.140.253.167]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Fri, 27 Jan 2017 21:40:06 +0100 (CET) Subject: Re: drm: mxsfb: Kernel panic on 4.10.0-rc5 To: Breno Matheus Lima , airlied@linux.ie References: From: Marek Vasut Message-ID: Date: Fri, 27 Jan 2017 21:40:02 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: X-Mailman-Approved-At: Sun, 29 Jan 2017 14:57:39 +0000 Cc: Breno Matheus Lima , fabio.estevam@nxp.com, dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP On 01/27/2017 05:04 PM, Breno Matheus Lima wrote: > Hi, Hi, > I'm trying to use kernel 4.10.0-rc5 and DRM_MXS driver on a i.MX6SX SabreSD > Rev A, but it crashes during the boot, I'm also disabling the FB_MXS driver > to avoid any conflict. By using the driver FB_MXS the board boots normally > and the display is working as well. OK > I would like to know if is possible to use the DRM_MXS driver with the > deprecated bindings as according to the documentation located at > Documentation/devicetree/bindings/display/mxsfb.txt, or if is just possible > to > use the DRM driver with the new bindings. No, the deprecated bindings are deprecated and DO NOT WORK with this driver. Use the new of-graph stuff. > Please find below the log: > > [ 1.076530] [drm] Initialized > [ 1.086305] etnaviv gpu-subsystem: bound 1800000.gpu (ops gpu_ops) > [ 1.092590] etnaviv-gpu 1800000.gpu: model: GC400, revision: 4645 > [ 1.098703] etnaviv-gpu 1800000.gpu: Need to move linear window on > MC1.0, disabling TS > [ 1.154691] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). > [ 1.161425] [drm] No driver support for vblank timestamp query. > [ 1.167799] OF: graph: no port node found in /soc/aips-bus@02200000 > /spba-bus@02200000/lcdif@02220000 > [ 1.177132] Unable to handle kernel NULL pointer dereference at virtual > address 00000004 Try with this patch please: diff --git a/drivers/gpu/drm/mxsfb/mxsfb_out.c b/drivers/gpu/drm/mxsfb/mxsfb_out.c index fa8d17399407..b8e81422d4e2 100644 --- a/drivers/gpu/drm/mxsfb/mxsfb_out.c +++ b/drivers/gpu/drm/mxsfb/mxsfb_out.c @@ -112,6 +112,7 @@ static int mxsfb_attach_endpoint(struct drm_device *drm, int mxsfb_create_output(struct drm_device *drm) { + struct mxsfb_drm_private *mxsfb = drm->dev_private; struct device_node *ep_np = NULL; struct of_endpoint ep; int ret; @@ -127,5 +128,8 @@ int mxsfb_create_output(struct drm_device *drm) } } + if (!mxsfb->panel) + return -EPROBE_DEFER; + return 0; }