Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8991353ybi; Tue, 23 Jul 2019 19:36:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyiN+f/+CWehPBDPG8KmHPDcfvtjJtuwqzDD3bY/nHrHRs6x+SnlpR1UBG5PxwFwWXcDCK X-Received: by 2002:a17:90a:3225:: with SMTP id k34mr84120333pjb.31.1563935779945; Tue, 23 Jul 2019 19:36:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563935779; cv=none; d=google.com; s=arc-20160816; b=IQACqxDXxVjj2R1uvGQi+j3/DxjKViYaq4Umsj/dPGH9XK2dw2I+V2vCoWyuuIoWze Gr9GDim3YPAtXT3In3w8/7TyqHwg7/JlYsnygISwaXpuzsCe7bgfU9+Z/VUaNhmON1gX 1cUEG4lxhgiAT0giw4Wse6y7VqBcpa5EsqLuz1J52tjc5UDRw0GzCUGvGY6SEGdQ52IF arHBnnrBUNYPIV25OIeROhVi5Wt1yORa8mGSTP66L34V4OCMn8xeqaq72gBtPnSNyJZ2 7J4mihbM4UbnDaBF8oEVYivNFF/+Xg/9HoAcTi4hKpA03HhrJeJzuCiou5KQf9e0e7MC ulSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=HEWjLSp+3ZYUNuS4KEhJxXUV1NrMjDNJTyQjAT98l0c=; b=ueV/BRUQuVyOqhF0M3qnENFTHQVkbbz/G12npVhhRdKLobRwF8hmIVWBrSxMV93HmR Y5r6HixruIGrmVaRe2I75A++xUCTm6g+nYc+feifc4RnY3hHHlQUOwjHpX0/9TlNLEwt 09ivZwqpvqg/mFftbqjVVD+tvui1euxKm7aGaslf74md6eRXN22j3nq9MThl7TpERLQq EIt6rBpMI1Ee0IANLBEEbOR68fQSNMXclZmzraUZWW9Wxi+hycvbc3F34/5tB2sz81vG +jrzpLLELQj4LKGOij9ga0oGQUQEuUhQKTOlIRLs7xej+rkiS7c2KgT/3V0wYWYC186G PTJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KyTmnzEV; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h189si3340019pge.36.2019.07.23.19.36.05; Tue, 23 Jul 2019 19:36:19 -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=@google.com header.s=20161025 header.b=KyTmnzEV; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727660AbfGXATI (ORCPT + 99 others); Tue, 23 Jul 2019 20:19:08 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:40165 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727265AbfGXATI (ORCPT ); Tue, 23 Jul 2019 20:19:08 -0400 Received: by mail-ot1-f67.google.com with SMTP id 60so6445727otr.7 for ; Tue, 23 Jul 2019 17:19:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HEWjLSp+3ZYUNuS4KEhJxXUV1NrMjDNJTyQjAT98l0c=; b=KyTmnzEVvpYk+8Vlka2lOIuadkdcTW/Tz8dySg662PkCDcfqcEtDIWJHSQjNaXMk0C haii7dxiHOazpNAsR3Z5uOs1P7uV2Vqw/MLZ02bTVjbLF8knC5hZGHCDpTU4NMPLpWuL Xhx3HY2Hw65F9lEzCn6KA48uIWF57MLOLQvoohWT9KUUMS/pA7OUMytCzoKMUioppvFj vWSTNw9ple229Kqqzr/vF/e++yp0Xaojca4wB+WeVU9cDFpKWtVztOMrEWXFACXsEgpL FOKqSw6cChnRDA39sXL1mdr0XGu4PW1KThKsddz652YlAEIG+ce02Vei72xDob9tgh9J HffQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HEWjLSp+3ZYUNuS4KEhJxXUV1NrMjDNJTyQjAT98l0c=; b=ea2NUmhyc+NZwOZNgS/1vOiwyR3Is18bmnJ0TL5rUAPKPObzU2+H9LpUrg0FjExAfm XwyMCaej5uNkS5YAEPZzUM+T6M5CzAM8DpF7/gz14erfiPkAbvaFCNdMvDc2O6/+uZWW LKeO8IeG5ZRc828rrNLntTYKIVLsKqdT3OuW+C4FG0P1Ie4qOKsLn0VvzMm97XN2ZA96 BLCGwX8RmLKfzw1naaEOC8dxP/0hl6bkKTPwtYXXcAZcHzOlUwx3MGZebVjf52y8a7Af DKo5OGFxSs68IRVpBUlvKptaa8zXGIsQ3ROY8JHqOCfXsz+VsJUD9uKtpgryr+PXX0TN jW3Q== X-Gm-Message-State: APjAAAVEorL8W6HhcqhWX00kgwvSK1aEMYEWz/qvGNHqclOwt/fMZiMU zFlozDn1xXocfsqGxJn7DBAxyiA0D5C0Elepn4tMow== X-Received: by 2002:a05:6830:160c:: with SMTP id g12mr2293485otr.231.1563927547521; Tue, 23 Jul 2019 17:19:07 -0700 (PDT) MIME-Version: 1.0 References: <20190703011020.151615-1-saravanak@google.com> <20190703011020.151615-2-saravanak@google.com> <98b2e315-e8da-80ad-1ef8-e6b222c1c6fe@codeaurora.org> <20190722233501.GA19594@bogus> In-Reply-To: From: Saravana Kannan Date: Tue, 23 Jul 2019 17:18:31 -0700 Message-ID: Subject: Re: [PATCH v3 1/6] dt-bindings: opp: Introduce opp-peak-KBps and opp-avg-KBps bindings To: Rob Herring Cc: Sibi Sankar , Georgi Djakov , Mark Rutland , Viresh Kumar , Nishanth Menon , Stephen Boyd , "Rafael J. Wysocki" , Vincent Guittot , "Sweeney, Sean" , daidavid1@codeaurora.org, Rajendra Nayak , Bjorn Andersson , Evan Green , Android Kernel Team , Linux PM , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 23, 2019 at 7:27 AM Rob Herring wrote: > > On Mon, Jul 22, 2019 at 5:41 PM Saravana Kannan wrote: > > > > On Mon, Jul 22, 2019 at 4:35 PM Rob Herring wrote: > > > > > > On Tue, Jul 16, 2019 at 11:58:08AM -0700, Saravana Kannan wrote: > > > > On Tue, Jul 16, 2019 at 10:25 AM Sibi Sankar wrote: > > > > > > > > > > Hey Saravana, > > > > > > > > > > https://patchwork.kernel.org/patch/10850815/ > > > > > There was already a discussion ^^ on how bandwidth bindings were to be > > > > > named. > > > > > > > > Yes, I'm aware of that series. That series is trying to define a BW > > > > mapping for an existing frequency OPP table. This patch is NOT about > > > > adding a mapping to an existing table. This patch is about adding the > > > > notion of BW OPP tables where BW is the "key" instead of "frequency". > > > > > > > > So let's not mixed up these two series. > > > > > > Maybe different reasons, but in the end we'd end up with 2 bandwidth > > > properties. We need to sort out how they'd overlap/coexist. > > > > Oh, I totally agree! My point is that the other mapping isn't the > > right approach because it doesn't handle a whole swath of use cases. > > The one I'm proposing can act as a super set of the other (as in, can > > handle that use case too). > > > > > The same comment in that series about defining a standard unit suffix > > > also applies to this one. > > > > I thought I read that whole series and I don't remember reading about > > the unit suffix. But I'll take a closer look. I've chosen to keep the > > DT units at least as "high of a resolution" as what the APIs accept > > today. The APIs take KB/s. So I make sure DT can capture KB/s > > differences. If we all agree that KB/s is "too accurate" then I think > > we should change everything to MB/s. > > Either one is fine with me, but trying to align to what the OS picked > doesn't work. What does BSD use for example? More important is > aligning across DT properties so we don't have folks picking whatever > random unit they like. We generally try to go with the smallest units > that will have enough (32-bit) range for everyone, so that's probably > KB/s here. Yeah, that makes sense. -Saravana