Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp801672ybi; Wed, 19 Jun 2019 08:07:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/5awH5pAM6IqxrZg7XbMy+V39svLmd6qQ64xmtG56WBbaPBkqgwrQXRi2ga5/EbO1LW0t X-Received: by 2002:a65:4544:: with SMTP id x4mr8322075pgr.323.1560956839013; Wed, 19 Jun 2019 08:07:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560956839; cv=none; d=google.com; s=arc-20160816; b=aJE7W08ZGXVXMA4Ot5cMNkVxMi0r8+nOel2nyz8jqztxsO+Yce8mjvM2rn8hDLrNJX nwZTxyHgNgPuR027KNPWNLSkPaU51h/iNRFdpvCXL5H72Qw1yxNuxCS50gShNby9km4r egk2xgjWljOiS9fGoiJoFEWgaGKQqdsw5knnyWUGiYnzw0TXbSM2lQtvzXADUxmXfd+C MCE1VUw2pDXBkhwzqRCzxbH3zskgMuzNK0FnKaHVrNwu8DIuLLbNgg57azBzpVz/KrQS /yt/jd8l+4+nERxqHq0vsKUMpt6MudTVTcFpw0xkaPWk9O/YU2fHigxfI4VIjoUim18D FCDA== 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=pkwqFDU1m9y1SmwwSPbuxARBXbcsz4Hg+ImtIjkxe0I=; b=biinqSzw/PEmmzwbHlz9Ah6uOhlD/H2zQiyLW7dNudkO9MCFJ2GT34Hu+NPosWaXXv 51gpzhitqxlHnfPntR9hEKfYHCbc4wqDz8eyPsotTXNfr4OxQpyhsUyP9UK0RjtPj1RH TneCjGwm8be6hvTvEDMkg+KNSiTGRGQyzSHww+HHmb6Q8tZ9tcezkeYuigckrRM2nQhi C9EKdjXjfuveovneQPfFVA7ZMDdQ65/rgM853nd9cFJ969qeOjQ0RUGGDLH9jfBKmvoh QeHg/DkcgyBf9HRvAM2NdrBcN49qWv+aIMRE+YTtuMRVhofKiL4g08cLVlzGAR3fo/oh DU8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fU0DJtyN; 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 z2si15249070pln.247.2019.06.19.08.07.01; Wed, 19 Jun 2019 08:07:18 -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=fU0DJtyN; 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 S1729903AbfFSPFI (ORCPT + 99 others); Wed, 19 Jun 2019 11:05:08 -0400 Received: from mail-ua1-f68.google.com ([209.85.222.68]:39768 "EHLO mail-ua1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726238AbfFSPFI (ORCPT ); Wed, 19 Jun 2019 11:05:08 -0400 Received: by mail-ua1-f68.google.com with SMTP id j8so10173460uan.6; Wed, 19 Jun 2019 08:05:07 -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=pkwqFDU1m9y1SmwwSPbuxARBXbcsz4Hg+ImtIjkxe0I=; b=fU0DJtyNLrcixK/O0KvTyH0V+rJYMHK4QbYcOjT2Rh7QaHKwWZOt+i3x+KCpYcfPVe /ifw9OBIcAIwu0gj3TlxpRPlmtzmnNdySQvWwbR7E3+WQWLRc6A4icFLP5pupx82L+4K GjG7iQvhlJi5aPBzh2l1p5k44weDEcw0zJHTLqTx6hMNG5bkDtHRrTD0ajwbF47PvVvB 1+RMqBuvg1de+T4WXa44lUd0lF42/Sf2Kqb8mqtmqoUoTToWxAAX6qeumOA/DdjL9W2D atuV1iDF4pnKrsCvPOYsoUKV/RlDsYZjwv8KtKUHaqlYGtw+ek1WErJN8v/kIHXqN1+7 T3/A== 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=pkwqFDU1m9y1SmwwSPbuxARBXbcsz4Hg+ImtIjkxe0I=; b=DVFv1xuwwzCLM42DYZVrkKgx+0ykSGA3YraB7h09H0Nhej0hWBGEG1XMdHTEtYa8Ri pzSsSziVCgWK9w2X8v7DiNkZK+M3VfRHcl+u26WLaQuWpDIUKyt9RgNJXQkOSyL3ZBqA PtsmAJhn7oW9NGvCmzg+Pdpsf9/r7QMuO4dzqKDTeu52hCslHLyLHrHvALN3naHR3ib8 W9stPb//Ik00uymV/yr+0K8+tgDNMd6bUYnbrRePXD4ynQ6ItlisPECZIKmzBpJzbFmq 3vikrtNtagYzU+mV3is3r5HZ+k7GQVA1C52VW/AgjRD+fIuoB9c8ljRLgQm80IHbqUrF 2ePw== X-Gm-Message-State: APjAAAVbrXaP5FzpMi+Edn1S81x08KJV53BGqRgIw+PmigSGswHzfu0Z /GEaYDbVHM9GC0HggVb9ssYqPUwUT1AhWV1yC0A= X-Received: by 2002:a67:e419:: with SMTP id d25mr6657505vsf.196.1560956706613; Wed, 19 Jun 2019 08:05:06 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Pintu Agarwal Date: Wed, 19 Jun 2019 20:34:55 +0530 Message-ID: Subject: Re: [IMX] [DRM]: suspend/resume support To: Fabio Estevam 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 Wed, Jun 19, 2019 at 7:14 PM Fabio Estevam wrote: > > On Wed, Jun 19, 2019 at 10:33 AM Pintu Agarwal wrote: > > > You can think that the version I am using right now is almost 4.9 itself. > > "almost 4.9" does not help, sorry. > > > Upgrading again to higher kernel version is again difficult, also > > customer does not want it. > > dw-hdmi is well supported on i.MX6 with mainline, so you could simply try that. > > Try booting 5.1.11 on your custom board with a very minimal dts with > HDMI support. > Okay. I will surely try it on another IMX6 fresh board. With 5.1.11 you mean the kernel from mainline kernel.org Or, is there a separate kernel repo for imx6. If yes, please let me know. > Then you can test suspend/resume and see if HDMI hangs or not. > By this suspend/resume, you mean "suspend-to-ram" or "suspend-to-disk" ? > > Another approach I tried is, installing hdmi {dw-hdmi.ko, > > dw_hdmi-imx.ko} as a module, just after the resume. > > With this also system hangs during installation of dw_hdmi-imx.ko at > > below location: > > > > imx_drm_driver_load(..) > > | > > |--> component_bind_all(...) > > | > > |-> component_bind(ipu) > > | > > | > > ipu_drm_bind(..) > > | > > |-> ipu_crtc_init(..) > > | > > |-> ipu_plane_irq(..) > > | > > | ----> << __HANGS HERE__ >> > > I am not able to reproduce this hang. As I mentioned yesterday > suspend/resume is working just fine. > This scenario is not with suspend/resume. This hang is, when we make hdmi as a loadable module (.ko) and trying to install it after resume. In this case, suspend/resume will not come into picture. Not sure why it still hangs. Do you have any clue for this scenario?