Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp611665ybg; Tue, 9 Jun 2020 08:31:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx00H4jr+m64QDCaZWDDHYjRDt7HR20ucocZQCFnqj9GeppoA8IdjIh4ak1Gx5Jht7SzYeV X-Received: by 2002:a05:6402:155a:: with SMTP id p26mr26484181edx.376.1591716671015; Tue, 09 Jun 2020 08:31:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591716671; cv=none; d=google.com; s=arc-20160816; b=X6StMpYsO8AgWfZ+EM85oPumLo/3hZigaAdyQNhmtPS/8beRVCCVV4idtbOmCPWpGM GwMoKkaZ/kEoYpT6pP4lCFVniZblRGYl52/CoyQdJNgXHM9MGMqUQbplbtg3HzLvn8+p 9IbamcSUNaBQIqGl5Fo/op58lmPxVRDd0meQFfxbpwyhODSN5Cvcz5OFqtAi5DArYOnN 09ZSimNrPMNH+n9cwuvHpLjPJuiiZFSTli/ozxSnvC7RpFHjuxOr54yO+rQadgjehRst Fn/OyCV7DFXJbvRuLhcZhJUkSx91Uiq4I/VcNmtxBIF4Opj9SmgVVfEowxJBKTr+kLHe r6Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=b2y0Z9lHjVbTdDJI+gowNTOtYPhQ4/O11hsyYQYGYbw=; b=SI24tqtLk/1N67lE7aIJnyXVayFHhVG7fBPnFIGiTOswvbSUDeDCod1B9qLlEU5mbN Ek2qiRGdO4btegLk+iCWrt6KM1nMCCXgcmM7JogyyNTjhSCuAjnmuCypma3z9AuwOo/E 8/tcG6aCmByx0nSjLcMryANI3QYbTYH1c4uwycg/CGSBboROORFYwrDpDfMMHAmxu+n6 Q52dOdYhX3ikD4M6IEGuF33MX+xlQzYcE35E4AB5W+LkCEVqAY9e3MCtMzqZD+B3GZ6H w+FIWi7cYTzng9vgBQZYlfGS29Kfh2hW2/zAPPhU20El8x3MCeiISoHZ7dD0499yhVwX Pjqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="NM/Q1KIV"; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qn20si10373141ejb.367.2020.06.09.08.30.46; Tue, 09 Jun 2020 08:31:11 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="NM/Q1KIV"; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730004AbgFIP0o (ORCPT + 99 others); Tue, 9 Jun 2020 11:26:44 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:33380 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726395AbgFIP0l (ORCPT ); Tue, 9 Jun 2020 11:26:41 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 059FQVk8025874; Tue, 9 Jun 2020 10:26:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1591716391; bh=b2y0Z9lHjVbTdDJI+gowNTOtYPhQ4/O11hsyYQYGYbw=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=NM/Q1KIVU9p5v8dRAq0vTOu/+MLVqokNfJBx6vwOykd4tvFA89FhrVzPt+yCWeQyg CpZwyl2+kAGmy0br/XsUocQ/bIUPGGUtWIVM58hwIq+uotM7cZGd6973A+ybtcNadU wo/kcgJYYh8xbH604xU4auA6DtPDEi5YLI/PBa54= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 059FQVvA056533 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 9 Jun 2020 10:26:31 -0500 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 9 Jun 2020 10:26:30 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Tue, 9 Jun 2020 10:26:30 -0500 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 059FQQVY052033; Tue, 9 Jun 2020 10:26:27 -0500 Subject: Re: [PATCH 1/5] drm/omap: Fix suspend resume regression after platform data removal To: Tony Lindgren CC: , "Andrew F . Davis" , Dave Gerlach , Faiz Abbas , Greg Kroah-Hartman , Grygorii Strashko , Keerthy , Nishanth Menon , Peter Ujfalusi , Roger Quadros , Suman Anna , Tero Kristo , , , , Laurent Pinchart References: <20200531193941.13179-1-tony@atomide.com> <20200531193941.13179-2-tony@atomide.com> <16ba1808-5c7f-573d-8dd0-c80cac2f476e@ti.com> <20200603140639.GG37466@atomide.com> <47e286dd-f87a-4440-5bde-1f7b53e8b672@ti.com> <20200609151943.GL37466@atomide.com> From: Tomi Valkeinen Message-ID: <9ed70121-2a53-d2b3-051a-88eb83e6c53f@ti.com> Date: Tue, 9 Jun 2020 18:26:26 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200609151943.GL37466@atomide.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/06/2020 18:19, Tony Lindgren wrote: >> But there's an extra runtime PM reference (dev.power.usage_count) that seems >> to come out of nowhere. So when omap_drm_suspend is finished, there's still >> usage_count of 1, and dispc never suspends fully. > > Hmm no idea about that. My guess is that there might be an issue that was > masked earlier with omap_device calling the child runtime_suspend. Yes. It's how PM works. It calls pm_runtime_get_noresume() before starting the suspend of a device. So I guess omapdrm's suspend has been broken all the time, but it was "fixed" by omap_device. > Currently I'm only able to rmmod -f omapdrm, not sure if these issues might > be related. Hmm, I always use modules, and can unload omapdrm and drm fine. But there's a sequence that must be followed. However, the sequence starts with unloading omapdrm... What behavior you see with rmmod? Tomi -- Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki