Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp531501ybg; Wed, 3 Jun 2020 07:09:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeFyn3IOcqaaoRIfR5RxNrY/aM2/xLCFl7tBBYu7X7RXJ1SkM50rboo0sT7VSEVcGkz2QM X-Received: by 2002:a05:6402:b21:: with SMTP id bo1mr7039492edb.169.1591193382597; Wed, 03 Jun 2020 07:09:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591193382; cv=none; d=google.com; s=arc-20160816; b=S2HqF3R/d1K/+Q7+5P2QWHEGqbf2ooBQFaM4UKzK2wbFbkjH1gRGvbOp8OdPvLlpLu 3g7PDaiNFOpdQ8RCaUUATkqBFBEXq2OjDUb2VtSmZP2mTT5mXkbeqAxz1w7z8QZjDqaY n3I66N0aWcwdjb4KOLKcFG5uOI6ESRXCJ9/bxCuuZiKt7acvkUKenb74uQm9RzJeilnW iBDPPiT4cbzMTji+2IHukDkaooLPk1VLjsZ5BKaIMb92nU9ZGE7ydTad4/37+98IDH6G msKtJuYtzRjrgy4hWxCn0sxa32/AlEgF9+Areuks9oKiJvjiai99fgDNOak35Rurqh3I 1gjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=lR3xqL5JOBOQCknhHW/Xt0b+IaDOSZ+8SZU8LlZWnG4=; b=V2nPeqiXCSAeFLdWKYhPqcgvMl0itOeb72f+DhjRzdDJxc06KYno6FK+Q5nmj2KW6O ZleKfwgNPAHxQNLjDkVP9aqZztJawnaK+rKOowyZqj6nl1xsyU+rGT2aLXvIxBRWjEDH NHnwF2Zv9GCuKYuILx5Wdf4w4Jb2xZbWK0UxWNQzfIh7ZO5dkKz2vHljQOnLc5UbSst5 nQpDe0nxIUPm26114slgsafyawTX2ZmGcw0BfvXs/VTvTFdtSsvP+uj25JQqiVQXbdun dUILA70pKlfh7ZiIOOxGcO0LVC+SPD77boZ3nOJ45KjzBg+X6dtJ1ukY+FwmlgwGIKlb b6zQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ly20si1228506ejb.474.2020.06.03.07.09.17; Wed, 03 Jun 2020 07:09:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726080AbgFCOGo (ORCPT + 99 others); Wed, 3 Jun 2020 10:06:44 -0400 Received: from muru.com ([72.249.23.125]:56886 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725833AbgFCOGn (ORCPT ); Wed, 3 Jun 2020 10:06:43 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id B20A1809C; Wed, 3 Jun 2020 14:07:32 +0000 (UTC) Date: Wed, 3 Jun 2020 07:06:39 -0700 From: Tony Lindgren To: Tomi Valkeinen Cc: linux-omap@vger.kernel.org, "Andrew F . Davis" , Dave Gerlach , Faiz Abbas , Greg Kroah-Hartman , Grygorii Strashko , Keerthy , Nishanth Menon , Peter Ujfalusi , Roger Quadros , Suman Anna , Tero Kristo , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, Laurent Pinchart Subject: Re: [PATCH 1/5] drm/omap: Fix suspend resume regression after platform data removal Message-ID: <20200603140639.GG37466@atomide.com> References: <20200531193941.13179-1-tony@atomide.com> <20200531193941.13179-2-tony@atomide.com> <16ba1808-5c7f-573d-8dd0-c80cac2f476e@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16ba1808-5c7f-573d-8dd0-c80cac2f476e@ti.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Tomi Valkeinen [200603 12:34]: > Hi Tony, > > On 31/05/2020 22:39, Tony Lindgren wrote: > > When booting without legacy platform data, we no longer have omap_device > > calling PM runtime suspend for us on suspend. This causes the driver > > context not be saved as we have no suspend and resume functions defined. > > > > Let's fix the issue by switching over to use UNIVERSAL_DEV_PM_OPS as it > > will call the existing PM runtime suspend functions on suspend. > > I don't think we can use UNIVERSAL_DEV_PM_OPS, as we can't disable DSS > modules in any order, but things have to be shut down in orderly manner. OK. I presume you talk about the order of dss child devices here. > omapdrm hasn't relied on omap_device calling runtime suspend for us (I > didn't know it does that). We have system suspend hooks in omap_drv.c: We had omap_device sort of brute forcing things to idle on suspend which only really works for interconnect target modules with one device in them. > SIMPLE_DEV_PM_OPS(omapdrm_pm_ops, omap_drm_suspend, omap_drm_resume) > > omap_drm_suspend() is supposed to turn off the displays, which then cause > dispc_runtime_put (and other runtime_puts) to be called, which result in > dispc_runtime_suspend (and other runtime PM suspends). OK thanks for explaining, I missed that part. > So... For some reason that's no longer happening? I need to try to find a > board with which suspend/resume works (without DSS)... Yes it seems something has changed. When diffing the dmesg debug output on suspend and resume, context save and restore functions are no longer called as the PM runtime suspend and resume functions are no longer called on suspend and resume. I'll drop this patch, and will be applying the rest of the series to fixes if no objections. Thanks, Tony