Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2236170ybi; Mon, 1 Jul 2019 08:30:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCmCaaJVe9KefF6FzDujDOFqmJ5wMqvPzp0FM+yF5I62ZA32fALsZ70BsE4u49G/eOIDw7 X-Received: by 2002:a17:902:b592:: with SMTP id a18mr30040709pls.278.1561995016358; Mon, 01 Jul 2019 08:30:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561995016; cv=none; d=google.com; s=arc-20160816; b=c+vdJlhLraljmvu1aQwTHyyNrOEm9ctS1LuGn7N0D3u+wojVoWfNnpNjGQvARHcsW6 7oNI3xahhLaE6dqlIKKiPKmYCETsm7cpiP557UHRTdrf8NS/4UKdTkkslQX0yW4Kstux SZDHcSnbKPiDkjD9GyXFP+1xtXapSfaIBTjLub3YYqDFqUTV4XGmBzcG+v5gJw2VTjPG NaxLiM6e29BL/RCgbAp65/vdJ86dt9R7UVn+1TS9O54navZcrgvygsT965QrAmbTWi1E bZGi+SyqPtlUgsqSvqyRrIJR9yiYCiHAKdUINse5LAv+cGi9L1/gI2RzwmrxYzldamVf y6eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=prX1E0RG7UeUBzCLq0Q5Oi12RHYXNZyfW5bTMLlL8JI=; b=zRcc6pmi4+Ah+t28Xiej+m4ivNQJa7fGKrN8sfDMMbh+GZdauym7IgG2TN1kGW9iBz fDPHCiVq4rif20MrbS3GZTQhZGiLPQScGbtg7kMc8Palzkst6H5yx44e/wJowURTxxUK Njta48CxKzSgCuu1jgZx7oV0vkPOj6rKnEw604wxlahxhfAoUom4rXxuFINUlot71HuJ SeLOrkDM8twufCOULOBI7ZW+TRC+OAVXjWL91+xCyLwXkJFkc1H6xnDMeuDy70wvibxR BidMgKfXCGj3N4dl2ZQByDuDkcKJ/lW7U9lMKGQx1ixbVUEYYIfGnTq1vgMIZF4/ga3j DlLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=arAwgdST; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q19si10795703pjp.24.2019.07.01.08.30.01; Mon, 01 Jul 2019 08:30:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=arAwgdST; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729618AbfGAOZw (ORCPT + 99 others); Mon, 1 Jul 2019 10:25:52 -0400 Received: from mail-vs1-f68.google.com ([209.85.217.68]:38831 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729532AbfGAOZw (ORCPT ); Mon, 1 Jul 2019 10:25:52 -0400 Received: by mail-vs1-f68.google.com with SMTP id k9so9021339vso.5; Mon, 01 Jul 2019 07:25:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=prX1E0RG7UeUBzCLq0Q5Oi12RHYXNZyfW5bTMLlL8JI=; b=arAwgdST9DjY9vxXrFWg7C4mcvo7W/JT82sW+gnGtZsku0jghjgd5ceLmlW/DD9MeW SXkWG25P0KqPSmuIRtC+91B/URngWnXzXO8GJCmxhhbMGJQqlEiWIiugydsHUWvn4xMP fLUMKKSyPDRVGraoestBcMoB/SGklheTHS1bG1NorskLUwMXCHe8BQZPTckzxHVWrkH0 dSgyjWmIUs2c0Togy+4bsvPsYEpRzGGfMHrKl0nRw4vnMSAFdwJFAi62yo8VoJYFgkFK k+mbzCq1HV6m3HieHAh0vw3OvFpjQBSH70WCR/VZt+fI0mNEPME9QrW2RFWol/gfdiYe BMAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=prX1E0RG7UeUBzCLq0Q5Oi12RHYXNZyfW5bTMLlL8JI=; b=fWcH1c2e2BWsgAVqJBzDq1uO+5UTSeiEbml5rmhhoubanbWfTubZtiL3jkVVYSaMNB FjoSUcYxXhhGiYrwLEsZjRKmr5tv/T3oNXnpXr/BY91NEXkFI3okG2oRrr41oMpElMHw Lhe/Oo0MpEj10dS5lL3EN/WCVgz4LVLXDTFYoVQGQpGewst0JX/0OJh2Dp/zXeGB4f84 ht3c0LWh6YsBAk3RSfqM4bnWWSKvY3MjFhbZLIPGpLvE0zxzZvq899mSJQyDmVSAUZx/ Ymag80MuDT7k9NWyiAM1SS8+rXGGJkJoDZ4ynFCzMectXmauiizmseYMbstShiwwTCh7 i9+Q== X-Gm-Message-State: APjAAAVBVg5PzvajzcbhHHbD8uK6k+A8clL/MMEIjsyomqGVQuMILCU0 wmIOO2Inm3alzqRMl8Yaj98cwcgz9epZ1yYtGtI= X-Received: by 2002:a67:3195:: with SMTP id x143mr15188071vsx.144.1561991151262; Mon, 01 Jul 2019 07:25:51 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pintu Agarwal Date: Mon, 1 Jul 2019 19:55:39 +0530 Message-ID: Subject: Re: [IMX] [DRM]: suspend/resume support To: Fabio Estevam , s.hauer@pengutronix.de, p.zabel@pengutronix.de Cc: open list , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , Kernelnewbies , linux-pm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 22, 2019 at 1:43 PM Pintu Agarwal wrote: > > On Fri, Jun 21, 2019 at 9:09 PM Fabio Estevam wrote: > > > > On Fri, Jun 21, 2019 at 12:13 PM Pintu Agarwal wrote: > > > > > Okay there is some update on the 2nd part. > > > Now I am able to successfully install all imx modules after the resume > > > (no hang). > > > But, I got some errors after install finish: > > > [drm] disabling vblank on crtc 1 > > > [IMX]: imx_drm_disable_vblank - called > > > [drm:drm_atomic_helper_commit_cleanup_done] *ERROR* [CRTC:24:crtc-0] > > > flip_done timed out > > > > > > Also I am able to start the weston successfully. > > > But I see LCD/HDMI display is not working (only some backlight is visible). > > > > > > And, I noticed, weston also reports the following errors: > > > imx-ipuv3 2400000.ipu: DC stop timeout after 50 ms > > > [IMX]: drm_crtc_vblank_off - called > > > [IMX]: imx_drm_disable_vblank - called > > > INFO: rcu_preempt detected stalls on CPUs/tasks: { 1} (detected by 0, > > > t=6002 jiffies, g=289, c=288, q=8) > > > Task dump for CPU 1: > > > weston R running 0 306 1 0x00000000 > > > [] (__schedule) from [<00080193>] (0x80193) > > > > > > Do you have any clue about these errors ? > > > > Which kernel version is this? > Now, I am using Kernel 4.9 (custom) with some internal changes. After the hibernate-resume, I am trying to install the modules in following order: insmod imxdrm.ko insmod parallel-display.ko insmod dw-hdmi.ko insmod dw_hdmi-imx.ko insmod imx-ipu-v3.ko insmod imx-ipuv3-crtc.ko insmod imx-ldb.ko I noticed that if I don't install the "crtc" or "ldb" module at last, then system will hang. Otherwise, the modules are installed successfully. But, I get following errors: [drm:drm_atomic_helper_wait_for_flip_done] *ERROR* [CRTC:24:crtc-0] flip_done timed out [drm:drm_atomic_helper_commit_cleanup_done] *ERROR* [CRTC:24:crtc-0] flip_done timed out But, hdmi could be detected from the logs: dwhdmi-imx 120000.hdmi: Detected HDMI controller 0x13:0x1a:0xa0:0xc1 However, after I start weston, there is no display in LCD and HDMI. I can only see the backlight. One more thing, I observed that, there was a huge delay after component_bind_all(): [IMX]: imx_drm_driver_load - component_bind_all - DONE <-------------- delay ---------------> Then we get flip_done timeout. So, my question is: 1) If we have to test hibernation on iMX6/7 then which is the suitable way? 2) Is it possible to support this feature by performing module installation after resume? 3) If yes, then which modules should be chosen as loadable, and which can be in-built? (So, we don't have to implement suspend/resume for each module) 4) I also compared clock_summary in normal boot and after resume (with module installed). I found below difference in clock frequency (pll5, pll4) Example: - pll5 1 1 1188000007 + pll5 1 1 1040000015 what does this indicates? Is there any issue?