Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2599266ybt; Tue, 16 Jun 2020 09:59:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhuIGEd50xHcVlO/qR8k3dOLVPo1u4sLkfgWhAi7EacbPu6vSMz0R/tRqI6I/I6oNjbqh0 X-Received: by 2002:a17:906:31d2:: with SMTP id f18mr3620132ejf.110.1592326782630; Tue, 16 Jun 2020 09:59:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592326782; cv=none; d=google.com; s=arc-20160816; b=JUJR18A+1RK3q5SVS8tWWUs7Q3hhT7gqOdyzBIGOBhou0VWMBP0ZEZP+WSLcgwXmvG yF+9XwlxCZw1vLaBbqU7RLSq2ibyYxHlcalmr9oCj9dd5Qh8pbIVipfifxWIMBMLJn86 d6EKlLjzfLgQeuDeiNCSaD8vfUJOZoP6+uAPJYfkRWu8zB/W8/mOoLSlYbkbOFbh+BRo +KvtX1nwrYroI8SzsxbtdFxQpI9T7vil8wQJinkhMqqJN2pSUVKbCv7fZC7WDS7YE5w2 +QVPYO4NMyu+1yc8LFeRYcyCHhouCLfWl8SbDQESDRbEzZ31zVX6IPE5KSC8h9hSGNzE oRmg== 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=5SNJOnx/JOfRnrAoSOCyZsNKVPe0vOboLu2yYA8Qo+g=; b=vkj6tABKg/rne185lKiuGjKoeunKZ0yRCC3MPpkB9U5Tf99Kh+QeXSP9HsJ33piYjn +UidKuVQhUztRlEw8LTIzKXEIf87vE9Vl8ssacr0IgRZySzO8Hk6NIqNEUJZXm6SkWgV LHpS8UXhCy0YTrN0v1VcSiUETis1E73SYDbTdh4vV5vFG1qg6cPTu8PkNDeG2x2JVMPh vR5hVKrpHBtWHZkCnK8lQVfzAdgdJBLJ/dHB7a/dFeOkk82Kfu4+iCFqBQV2CeAHDeHt pZw3CoCzPcNmlFDFae1GgIBD0z06LW76iCM7KnRJeazsY5s+WacZixbp2FP9LYeeS8pr ZCxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=p7Di1GMM; 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 l23si11525122ejc.94.2020.06.16.09.59.19; Tue, 16 Jun 2020 09:59: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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=p7Di1GMM; 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 S1730372AbgFPQ5S (ORCPT + 99 others); Tue, 16 Jun 2020 12:57:18 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:58050 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728861AbgFPQ5R (ORCPT ); Tue, 16 Jun 2020 12:57:17 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 05GGv4c5039757; Tue, 16 Jun 2020 11:57:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1592326624; bh=5SNJOnx/JOfRnrAoSOCyZsNKVPe0vOboLu2yYA8Qo+g=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=p7Di1GMM11digdmvF0BR+ZWyhf2oS8veOe9hLPwIC443TStcKogKOcDElHepmLxDs X80+pB0bLhqVfDFcgPlnHehgK2MOwQXu+aeb9HssxCD4mSb2uyp+eVTNt0w/W6z9bX 4bsapM7NawXR5nmJoTuYU1Xv2smugOwMEg/P49oI= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 05GGv44v029523; Tue, 16 Jun 2020 11:57:04 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 16 Jun 2020 11:57:03 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE114.ent.ti.com (157.170.170.25) 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, 16 Jun 2020 11:57:03 -0500 Received: from [10.250.100.73] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 05GGuwQT087296; Tue, 16 Jun 2020 11:56:59 -0500 Subject: Re: [PATCH 1/5] drm/omap: Fix suspend resume regression after platform data removal To: Tony Lindgren , Tomi Valkeinen CC: , "Andrew F . Davis" , Dave Gerlach , Faiz Abbas , Greg Kroah-Hartman , 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> <9ed70121-2a53-d2b3-051a-88eb83e6c53f@ti.com> <592501c9-2d94-b266-ae76-e383d3bffa29@ti.com> <20200616153042.GZ37466@atomide.com> From: Grygorii Strashko Message-ID: <3f2855cc-48b8-ecb8-5d92-beeabe344b26@ti.com> Date: Tue, 16 Jun 2020 19:56:59 +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: <20200616153042.GZ37466@atomide.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit 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 16/06/2020 18:30, Tony Lindgren wrote: > * Tomi Valkeinen [200616 13:02]: >> On 11/06/2020 17:00, Grygorii Strashko wrote: >>> I think, suspend might be fixed if all devices, which are now child of ti-sysc, will do >>> pm_runtime_force_xxx() calls at noirq suspend stage by adding: >>> >>>     SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, >>>                       pm_runtime_force_resume) >>> >>> Am I missing smth? >> >> Isn't this almost exactly the same my patch does? I just used suspend_late >> and resume_early. Is noirq phase better than late & early? > > Well up to you as far as I'm concerned. The noirq phase comes with serious > limitations, for let's say i2c bus usage if needed. Probably also harder > to debug for suspend and resume. Unfortunately, you can't use PM runtime force API at .suspend() stage as pm_runtime_get will still work and there is no sync between suspend and pm_runtime. The PM runtime force API can be used only during late/noirq as at this time pm_runtime is disabled. -- Best regards, grygorii