Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp14195390ybl; Mon, 30 Dec 2019 05:51:41 -0800 (PST) X-Google-Smtp-Source: APXvYqzClptQXL3Y+P+4nbLxZIzHlbiu37Z1CiKrA+Qb8I9WcnbAzGo//NvqIIqC9nb2qhR3Okq+ X-Received: by 2002:a9d:62c2:: with SMTP id z2mr72260594otk.309.1577713901133; Mon, 30 Dec 2019 05:51:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577713901; cv=none; d=google.com; s=arc-20160816; b=qIAcr9bC6+njAnWaJFZCreJbxb5iZo09fTIqGUQiIXD3aCGMPE2jiG0ENSbLP+Wccj 44RoCNibeZGkf8LSx/V9M7qXxGSz/eBQodPWLKbKmRwlAjoX1PGj5N4i+s3zDSNw5xcb puZVtK7pxqGk5UIq1vFc7Z1qN7yCF000SnbUlK6s6wRAc+neo1tXpTs1mY69Qchcmfie TiAkWY8AwD/UMfx4mLYNacG3VmOe3X6sPqlCzxGf7IeEYR7SDL2m9++j2C+FlPL0Y1Td rhXNKft726Kqj09rfSfGyMC/7weE5zURlDUeVba9WBGw1ecj2hRy/DOXes3cqxcoEvHo aXXA== 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=XkMGH5DQxq4vpQ2V6RpbSRMhiMiNZc/V1Nq34hSwIJk=; b=hVdNgRyMQbiN1oLG817eSYgf9kWfdXEHuGZg9swDPEDWpjhmnumCykFTQ82WrI98SC 4+gaMazLp4EpStKIpVh7SUAbZC3IdNJcUBlAa8SDPyDiEl4QGyniLSOEqDmUUnWgnSLH vFYMoVhkQcqZ1SfzSxkiCVYTgvqKKEnTRhSZspzsugDWwf8MO5uyLge5phvmEo/Zbo/K bP/2s+Tlq5qC4E5pO+PrMfXnPOYaEqvCu8S7a162RW4pAgAd83VV1Zer8y1EwonkAHZ2 HsFf6YqYYqAUPQQ/4IXtjxUG8ahdXGp189YtLrsqDu8Rl2IzzMta6DnxyjibnKSwmuH1 Cf6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CdmuDXJV; 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 14si21137554oie.181.2019.12.30.05.51.27; Mon, 30 Dec 2019 05:51:41 -0800 (PST) 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=CdmuDXJV; 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 S1727496AbfL3Nur (ORCPT + 99 others); Mon, 30 Dec 2019 08:50:47 -0500 Received: from mail-vk1-f179.google.com ([209.85.221.179]:33014 "EHLO mail-vk1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727445AbfL3Nuq (ORCPT ); Mon, 30 Dec 2019 08:50:46 -0500 Received: by mail-vk1-f179.google.com with SMTP id i78so8281091vke.0; Mon, 30 Dec 2019 05:50:46 -0800 (PST) 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=XkMGH5DQxq4vpQ2V6RpbSRMhiMiNZc/V1Nq34hSwIJk=; b=CdmuDXJVWhggBHQW+pJHb6TNOzPvoOAZ7687gifPylrQZxVlozKmptWbBXg6ZvIkZu cSqCpWBasg60LSZFxQc68XKGx9tGCTYU/1glw3qAd+j+PnScVx8y7/q7mH8JpjHAT5W9 Z/9McLaAraQ3JOb8JHt6V0DPC6dpkL0tKD7GiqySLNj0KbpcRoSq8VLLF/YFzGp4277e yuOUGCFS3HHDim9Piq8i4Ve//zYDej7JIhFASN0gjkPfAca7mPla61VF7h1NhswQaTSP Bh/xohmtzFWp2TZ40Oq/berVwITGSAmsaECxo+5Kdz28ttDCRmv2KCr0fO77F+miqcHk Vwfw== 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=XkMGH5DQxq4vpQ2V6RpbSRMhiMiNZc/V1Nq34hSwIJk=; b=QjVyWzHhxhTz1NxB8qEZgYOjO4TBt/FVZAotivmP9xNRDsOsdqAMD9vEPUjplQYNJ3 ynlCfLH5iSjnuWYveRhtzsfMNGx1RIiu3UO6R8pUjpnubLy6vDDqXfrA98y0BwKe3IwY 8MAYvtI9JqRa8N0AX4n0G1A7tdc9ODFYDYulTZARudGTsHDR2Gv/YgXOCqYT7TH+rfP1 30nqfg+K2G4Jr9aLE9ZipmLEGKxI0nPFSMXDzHLEp6N7OL6Ep2ERcbxyiG/DIG0KSMSK 3KWVcHIJ5jgYgwiN0yTEDPr+6LPjJXdY9BDOVtUOSOiUfvBhtuvcGAgN14ByQg24E3S1 eXWA== X-Gm-Message-State: APjAAAUu2pnmN04if3jKOUXSoXGGgv6UpHOR0kp8BQMbnQ+FuWlEfE2d VWXJ2UXblWOcROHKV6d9Z5+kp3d2JNUELuZd3/XKE2eQ X-Received: by 2002:a1f:7c0c:: with SMTP id x12mr38200964vkc.41.1577713845386; Mon, 30 Dec 2019 05:50:45 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Pintu Agarwal Date: Mon, 30 Dec 2019 19:20:34 +0530 Message-ID: Subject: Re: interrupt handler not getting called after resume To: anish singh Cc: Kernelnewbies , linux-pm@vger.kernel.org, open list , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" 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 Dear Anish, On Thu, 5 Dec 2019 at 00:55, anish singh wrote: > > On Wed, Dec 4, 2019 at 1:49 AM Pintu Agarwal wrote: > > > > On Wed, 4 Dec 2019 at 00:28, anish singh wrote: > > > > > > On Tue, Dec 3, 2019 at 6:12 AM Pintu Agarwal wrote: > > > > > > > > Hi All, > > > > > > > > I have one general query. > > > > > > > > If an interrupt handler is NOT getting called (for one device) after > > > > the system resume (from snapshot image), then what could be the issue? > > > > > > Most likely during resume the interrupt was not enabled. So check > > > irq status registers to see in the working and non working case. > > > > > Oh sorry, I forgot to mention one thing. > > After resume, I can see that the interrupts are visible under /proc/interrupts. > > # cat /proc/interrupts > > CPU0 CPU1 > > [...] > > 416: 1 0 IPU (null) > > 417: 0 0 IPU (null) > > 418: 0 0 IPU imx_drm ===> HDMI > > 419: 2242 2 IPU imx_drm ===> LCD > > [...] > > > > The interrupts are coming only for LCD display and thus its irq > > handler is getting called. > > But the interrupts are not coming for HDMI case, thus HDMI gives > > "vblank timeout issue". Just wanted to update you that I have resolved the "vblank timeout issue" for HDMI (by restoring clock data during resume path). Now the ipu-v3 interrupts are coming even for HDMI crtc. But HDMI display is still not working. May be this is another issue. Anyways, thank you so much for your support :) Regards, Pintu