Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp351539ybd; Tue, 25 Jun 2019 22:51:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwiGnuAVUaM40By8w9ArOjLaYI/hqGQ6zEgaTu/qgjryMvgXrTv+eNOzBEjp4VPKVYhebEf X-Received: by 2002:a17:902:100a:: with SMTP id b10mr3165663pla.338.1561528299355; Tue, 25 Jun 2019 22:51:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561528299; cv=none; d=google.com; s=arc-20160816; b=L5ZSrn8YPtI3tyxInJD5jJ2x4LpTh4Z8AB8Mm5JEYqez5Z4O1RizN2QXsAzEwu6xWE YfjxRokDQwrxGafguWfVvqNAJjad5B5K/DGA7XPd6Gbi0c3D05A0eBbC2LIsy9tENfJL 2rLhzloeSQrz1f2iW4NWuTj6FeuwWwlE3UVCyoPpgXAf27o8x7CFCCKT1cTfVSboxHx+ +9E5aOJDG+rIQcWXCg5NVcqQ1dcqldjRrtns38OUwlXQhULnA5t2A3e78csnrjryHYIA RFPp5RO0w55hGssbX25I72vZ8K09CA017l7vMNj9fC+5U0Blyui3VJwt4ILrrSf4p1IK hF5g== 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=FLRyyUyuqTKbfuiIxj3YsbjK74R9lyj03vqxwLtsrQA=; b=TmeuDSFLpvhU+BibAzSi42iX+7MYJFFtMVSWlDg7zYA+DMSjPDdtmMe6YWalhSHibW F+Awrlx+9ErB0yX5B3p4YgZfX3OCTsyPefnBhwypP/m54aYi20lUgeb+nA7tovUYgvQ5 /2K5POV3/mxJ2K9sWxH4MVMmuNW954ieTG8pKPWbIa6iM6ZK0osc+rlifyGjz0gMr+qV uNDCvfTmhCcNRjF/DHg5Gp3HyJEOasPPGwD4bbDdIp9iZw/GE6swh8sGeUs/iXJ8RSmg asjLJtgyUQMShnEsIUHqjdlpT0mtY6d7cy4cc/RDXN3TBFI0xELsEKkGuQLYXXwJb/uH HqQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BguRsox6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z11si1209315pjn.72.2019.06.25.22.51.23; Tue, 25 Jun 2019 22:51:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BguRsox6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726654AbfFZFtg (ORCPT + 99 others); Wed, 26 Jun 2019 01:49:36 -0400 Received: from mail-yb1-f193.google.com ([209.85.219.193]:37498 "EHLO mail-yb1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725790AbfFZFtg (ORCPT ); Wed, 26 Jun 2019 01:49:36 -0400 Received: by mail-yb1-f193.google.com with SMTP id p201so405133ybg.4; Tue, 25 Jun 2019 22:49:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=FLRyyUyuqTKbfuiIxj3YsbjK74R9lyj03vqxwLtsrQA=; b=BguRsox6h/qJV4eeNuftnjwImpoOBaTMM+ZxODhqBau2qM0uqSm3DbQhxrF+09eatF yEujr0vRThsycLh+ocSTu6M+2l1lDStjThzWGIWJo4joANPDqr6xxPJu1Fr27bl3Bf0u 511zsXeswlJWII9yjG7ewy+pdNUXdsEG6iquXU3Y+2VNZnKFjrqeNHvY+T+rJ9icGMZY NDFbakjdcW2I2+1dCnNRYVtpmJ59RbX+mgG/Xqh9x8ORjMEpSyq+kDES+rsgILFih8Gt srdVNSrwT+q/Alxpi4bhZ/gh8w39Pv1SqrViab0mgdxdm4SXQV7iqF658d3r5hKv/Cyq dkVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=FLRyyUyuqTKbfuiIxj3YsbjK74R9lyj03vqxwLtsrQA=; b=tPy3vac01WcElU3QxOSC7nx7ndPxFQm7R/O1VIAgh6Y1M6Rddck94OE4Bg1ZjoMBst B5jeHsw/BvhgUsymtJjiZz2zmoogItaip/zMqvcHfceFUzCeWdGaUuE/mZpCBOSVIfTN 5y+ackupt13E8O10XaEjLmWhw8PbGNcPVY2by4T8s+KcukaNunF0/L/UyUqlFI1DQMeI MscadTjyBVUbEDYTbweKRXjeDvFiLEerQC3ukSiraSM5WUBQTLDBw5m+quzYOLWNIX/o hhGpK9HzOYRYt2+ZWeO3LdAzBls6SI+3kzQ7bYY3AQzGTFyB2P60QNVICG1bAeFAX7V0 Q1TQ== X-Gm-Message-State: APjAAAUDH4sXG9J4LNIYYj+vuw4YmZFY61OM12Y3JZRL9cAetqXqESLN McJZOVCY49Qr4knOn5oaEVY= X-Received: by 2002:a25:1f09:: with SMTP id f9mr1507101ybf.184.1561528175767; Tue, 25 Jun 2019 22:49:35 -0700 (PDT) Received: from [192.168.43.210] (mobile-166-172-58-106.mycingular.net. [166.172.58.106]) by smtp.gmail.com with ESMTPSA id 135sm1623784ywk.46.2019.06.25.22.49.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Jun 2019 22:49:35 -0700 (PDT) Subject: Re: [RESEND PATCH v1 0/5] Solve postboot supplier cleanup and optimize probe ordering To: Sandeep Patil , Greg Kroah-Hartman Cc: Saravana Kannan , Rob Herring , Mark Rutland , "Rafael J. Wysocki" , David Collins , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@android.com References: <20190604003218.241354-1-saravanak@google.com> <20190624223707.GH203031@google.com> <20190625035313.GA13239@kroah.com> <20190626043052.GF212690@google.com> From: Frank Rowand Message-ID: Date: Tue, 25 Jun 2019 22:49:32 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.1 MIME-Version: 1.0 In-Reply-To: <20190626043052.GF212690@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/25/19 9:30 PM, Sandeep Patil wrote: > On Tue, Jun 25, 2019 at 11:53:13AM +0800, Greg Kroah-Hartman wrote: >> On Mon, Jun 24, 2019 at 03:37:07PM -0700, Sandeep Patil wrote: >>> We are trying to make sure that all (most) drivers in an Aarch64 system can >>> be kernel modules for Android, like any other desktop system for >>> example. There are a number of problems we need to fix before that happens >>> ofcourse. >> >> I will argue that this is NOT an android-specific issue. If the goal of >> creating an arm64 kernel that will "just work" for a wide range of >> hardware configurations without rebuilding is going to happen, we need >> to solve this problem with DT. This goal was one of the original wishes >> of the arm64 development effort, let's not loose sight of it as >> obviously, this is not working properly just yet. > > I believe the proposed solution in this patch series is just that. I am not > sure what the alternatives are. The alternative suggested was to reuse Look at the responses from myself and from Rob to patch 0. No one responded to our comments. -Frank > pre-existing dt-bindings for dependency based probe re-ordering and resolution. > > However, it seems we had no way to *really* check if these dependencies are > the real. So, a device may or may not actually depend on the other device for > probe / initialization when the dependency is mentioned in it's dt node. From > DT's point of view, there is no way to tell this .. > > I don't know how this is handled in x86. With DT, I don't see how we can do > this unless DT dependencies are _really_ tied with runtime dependencies (The > cycles would have been apparent if that was the case. > > Honestly, the "depends-on" property suggested here just piles on to the > existing state. So, it is somewhat doubling the exiting bindings. It says, > you must use depends-on property to define probe / initialization dependency. > The existing bindings like 'clock', 'interrupt', '*-supply' do not enforce > that right now, so you will have device nodes that have these bindings right > now but don't necessarily need them for successful probe for example. > >> >> It just seems that Android is the first one to actually try and >> implement that goal :) > > I guess :) > > - ssp > >> >> thanks, >> >> greg k-h >