Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753163AbcKIJhS (ORCPT ); Wed, 9 Nov 2016 04:37:18 -0500 Received: from mailout4.w1.samsung.com ([210.118.77.14]:53578 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751654AbcKIJhB (ORCPT ); Wed, 9 Nov 2016 04:37:01 -0500 X-AuditID: cbfec7f4-f791c6d000006eac-0b-5822ee38421e Subject: Re: [PATCH v5 2/5] driver core: Functional dependencies tracking support To: Greg Kroah-Hartman , "Luis R. Rodriguez" Cc: Geert Uytterhoeven , Lukas Wunner , "Rafael J. Wysocki" , Linux PM list , Alan Stern , Linux Kernel Mailing List , Tomeu Vizoso , Mark Brown , Marek Szyprowski , Kevin Hilman , Ulf Hansson , Laurent Pinchart , Lars-Peter Clausen , Grant Likely , Mauro Carvalho Chehab , Dmitry Torokhov From: Andrzej Hajda Message-id: <32dbffe7-5c68-88f9-4631-7b9cd6bf445e@samsung.com> Date: Wed, 09 Nov 2016 10:36:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-version: 1.0 In-reply-to: <20161109064501.GA5252@kroah.com> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA01SaUwTURjM63a3S2PhWVA/8Yo1/vBCTDC+qCEa+bFRQzRGbfiBNrIBIy2k CwrGAzXh0MohIAgaEArKJQKVIEGBFltUJFg8UCnGg8uTWI8S40G7kPBvJjPzTeblsZTSRfuz B3VxvF6niVYxcmmjdbx7FfmiUge2dS8huW/eM8RSMoLI0Ms7EvKhq44hZ0prGTLY8E5CjNlF NEnLMspIb/NlhjjPdyAyMjyP1HQ4ZKQvcxCRqqEE0vXQTpPM3z0MSa+xM8RWs3eTkmtyGBF3 u8Ah4wpTL9FcfWUaw/U/a2E4syUVca1XqmWc8ZOZ5kwZExbT0xQ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CE1Lzk/JTMv3VYpNMRN10JJIS8xN9VWKULXNyRISaEsMacUyDMyQAMOzgHu wUr6dgluGU3t19kKnktWvD+5kK2B8YtIFyMnh4SAicSCnnPsELaYxIV769lAbCGBJYwSkw+p dzFyAdnPGCUar8xmBEkICwRLnPiwiAXEFhGIk7g5+zIjRNFPZomry26BOcwCB1glZn+5CjaK TUBT4u/mm2A2r4CdxKVnt8G6WQRUJbas28YMYosKREhs+jqHBaJGUOLH5HtgNqeAnsTlI81A NRxAQ/Uk7l/UAgkzC8hLbF7zlnkCo8AsJB2zEKpmIalawMi8ilEktbQ4Nz232FCvODG3uDQv XS85P3cTIzBJbDv2c/MOxksbgw8xCnAwKvHwZjxUjBBiTSwrrsw9xCjBwawkwrv/pVKEEG9K YmVValF+fFFpTmrxIUZToBcmMkuJJucDE1heSbyhiaG5paGRsYWFuZGRkjhvyYcr4UIC6Ykl qdmpqQWpRTB9TBycUg2Msv0X9Fguu95XWaDusVCh6r27xnzbuwwJwfdWn8ss7FQ8KPpd/PDj 3KdlfUpXbup/MNDiM/lUYRCx+NSR4uDfnsmT93ZM/2zG+0Z9L59WYuTzYtGoNLYbxbcKV1ge fBJ/Yh9vYuEhl9P36yR2vLOYH73FcbfvylRPZtXvPEcOxVxylFrFWRuhxFKckWioxVxUnAgA Ri4jiygDAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20161109093656eucas1p2459b78c9ac929ca0148606800e60dae0 X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?UTF-8?B?QW5kcnplaiBIYWpkYRtTUlBPTC1LZXJuZWwgKFRQKRvsgrw=?= =?UTF-8?B?7ISx7KCE7J6QG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Global-Sender: =?UTF-8?B?QW5kcnplaiBIYWpkYRtTUlBPTC1LZXJuZWwgKFRQKRtTYW1z?= =?UTF-8?B?dW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2FyZSBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20161109064501epcas1p1f941d54ffd06a051aa7072569d1cc2e3 X-RootMTR: 20161109064501epcas1p1f941d54ffd06a051aa7072569d1cc2e3 References: <27296716.H9VWo8ShOm@vostro.rjw.lan> <13957403.ZrB4mMbICz@vostro.rjw.lan> <2715729.9U1nlcpFb3@vostro.rjw.lan> <20161026111902.GA6447@wunner.de> <20161027152551.GA15718@kroah.com> <20161107212250.GH1764@wotan.suse.de> <20161108064541.GA13024@kroah.com> <20161108192103.GN1764@wotan.suse.de> <20161108194335.GA22680@kroah.com> <20161108205824.GA13978@wotan.suse.de> <20161109064501.GA5252@kroah.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3233 Lines: 68 On 09.11.2016 07:45, Greg Kroah-Hartman wrote: > On Tue, Nov 08, 2016 at 09:58:24PM +0100, Luis R. Rodriguez wrote: >>>> Furthermore -- how does this framework compare to Andrzej's resource tracking >>>> solution? I confess I have not had a chance yet to review yet but in light of >>>> this question it would be good to know if Andrzej's framework also requires >>>> deferred probe as similar concerns would exist there as well. >>> I have no idea what "framework" you are talking about here, do you have >>> a pointer to patches? >> I'm surprised given Andrzej did both Cc you on his patches [2] *and* chimed >> in on Rafael's patches to indicate that we likely can integrate PM concerns >> into his own "framework" [3]. There was no resolution to this discussion, however >> its not IMHO sufficient to brush off Andrzej's points in particular because >> Andrzej *is* indicating that his framework: > Dude, those patches were from 2014! I can't remember patches people > sent to me a month ago... > >> - Eliminates deferred probe and resulting late_initcall(), consumer registers >> callbacks informing when given resources (clock, regulator, etc) becomes >> available >> - Properly handle resource disappearance (driver unbind, hotplug) >> - Track resources which are not vital to the device, but can influence behavior >> - Offers simplified resource allocation >> - Can be easily expanded to help with power management >> >> Granted I have not reviewed this yet but it at least was on my radar, and >> I do believe its worth reviewing this further given the generally expressed >> interest to see if we can have a common framework to address both ordering >> problems, suspend and probe. At a quick glance the "ghost provider" idea >> seems like a rather crazy idea but hey, there may be some goods in there. > >From what I remember, and I could be totally wrong, these patches were > way too complex and required that every subsystem change their > interfaces. That's not going to work out well, but read the email > threads for the details... I haven't seen your comment on my patches, except few general questions regarding one of earlier version of the framework. So maybe you are talking about different framework. Regarding complexity, if the subsystem have simple way of '(un)publishing' resources it just adds single calls to restrack core: restrack_up, restrack_down in proper places. Additionally it adds quite simple stuff to encapsulate resource description and allocation routines into generic *_restrack_desc structure, see for example patch adding restrack to phy framework[1]. [1]: https://lists.freedesktop.org/archives/dri-devel/2014-December/073759.html Regards Andrzej > >> It was sad both Andrzej and yourself could not attend the complex dependencies >> tracks -- I think it would have been useful. > Sometimes real-life gets in the way of work, sorry :( > >> I don't expect us to address a >> resolution to probe ordering immediately -- but I am in the hopes we at least >> can keep an open mind about the similarity of the problems and see if we can >> aim for a clean elegant solution that might help both. > I'll always review patches of what people come up with. > > thanks, > > greg k-h > > >