Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp464312ybt; Wed, 17 Jun 2020 05:52:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyiAmpsifRKZcNRw4xYwSP2SI8Dt6AhAEsUL8OmV36QANPuHEiMdST1fgfMFaNtX7s4Ivp6 X-Received: by 2002:a17:906:4a8d:: with SMTP id x13mr7101337eju.26.1592398351781; Wed, 17 Jun 2020 05:52:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592398351; cv=none; d=google.com; s=arc-20160816; b=iNpasMcaLWs9frJSMF8ucUrho+9IFWFMxB6bjBZWHi2no9IQbJQTDhVSH3rovylnnr mXxDwdEOL3mPpe25OXAapcfncq0M99ATDivO+erK9e48vNTqX9OmoX37Qw1Ag5BNewSB KQVQDc+M8FvaM/bwr4V2yVn0lK1iN3z2iCwqDwK/4cmpEAdTfcySj4EBgz2Teb/p5oii Y8AhQb+WiMaTlhP8/C2OVZ7nauAm9/jCPyZeYP1xfHdA2wWAP4Zhd6AFyr0GQy47TAJs Upn3Ok81mAej6rj3fDOd3CC4SffSYc3JgS/G4nx9x33Wffl/PNOvlXi0ybuEIBuCcxzQ 8kaw== 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=BXXLlXyiZ34Pa+skFKuCFmgnUEithsnyVV/ercr7hMg=; b=UNp8XuYNSMHoDVHJ9/0u3CnvbBIpUK7vsm5k1idTvgUCB7xvLbq0Rg5CCHEoetC5W3 NeL7cPtx7C77C279ri1kZG9H0d96/xzphetv5Oip2CzoCYqswh3Ia6ROsWzLY1O0G6Ya SSwUTosXAl67WEoIUmGI0jd+8Q9ZWO9Yk0nqWGpTy171Jz3f8392Yt5BuXNyUovebJOt OOvSFeiTOdTDohZldR22AOr14Tlz6VdQm0ueT4QJxU6WtTejLO9UNXBsoQXlzLIQdyWG 4CLF3DulHyeIxN2PflhPcgYLC3KcF6V8bd9orOSXGi8x3aM7GCOXSTv11aP8xRlecvBe VJvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=g48g+UOO; 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 v9si11239577edr.417.2020.06.17.05.52.08; Wed, 17 Jun 2020 05:52:31 -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=g48g+UOO; 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 S1726331AbgFQMuP (ORCPT + 99 others); Wed, 17 Jun 2020 08:50:15 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:35752 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725894AbgFQMuO (ORCPT ); Wed, 17 Jun 2020 08:50:14 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 05HCo4X6095317; Wed, 17 Jun 2020 07:50:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1592398204; bh=BXXLlXyiZ34Pa+skFKuCFmgnUEithsnyVV/ercr7hMg=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=g48g+UOOzBxkV+1nKxOOKDEkHZOSrWF5cwzwCmXc3ket7nwIC2fo6XxfS/2UG8iLd q9MZK5aYhm3zhEnYh/JlgIPwoU3kll0336ljll0hrFOy+XzHuYjyh2GQVhO3QQhsyi kPwkG4NynPsW3rZEK7BHJhfTWI4YRrJ7dVX/zufo= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 05HCo4Nl128396 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 17 Jun 2020 07:50:04 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 17 Jun 2020 07:50:04 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE100.ent.ti.com (157.170.170.30) 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; Wed, 17 Jun 2020 07:50:04 -0500 Received: from [10.250.100.73] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 05HCnxCX006519; Wed, 17 Jun 2020 07:50:00 -0500 Subject: Re: [PATCH 1/5] drm/omap: Fix suspend resume regression after platform data removal To: Tomi Valkeinen , Tony Lindgren 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> <3f2855cc-48b8-ecb8-5d92-beeabe344b26@ti.com> From: Grygorii Strashko Message-ID: <8404d47b-33bb-499f-4d50-33501e7c5921@ti.com> Date: Wed, 17 Jun 2020 15:49: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: 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 17/06/2020 09:04, Tomi Valkeinen wrote: > On 16/06/2020 19:56, Grygorii Strashko wrote: >> >> >> 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. > > Yes, but which one... Do you know what the diff is with late/noirq from driver's perspective? I guess noirq is atomic context, late is nto? noirq is *not* atomic, jus IRQs (non-wakeup) will be disabled (disbale_irq()) > > Dispc's suspend uses synchronize_irq(), so that rules out noirq. Although the call is not needed if using noirq version, so that could also be managed with small change. But I wonder if there's any benefit in using noirq versus late. -- Best regards, grygorii