Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1070656rwb; Tue, 29 Nov 2022 08:37:22 -0800 (PST) X-Google-Smtp-Source: AA0mqf4wnCQrUrvTeEABIgIlHJ3vkwTwI4t0SZziBJaDESA0W249/izsS7wQKiUqq0mvfd8RttPK X-Received: by 2002:a17:90a:9f09:b0:218:6158:b081 with SMTP id n9-20020a17090a9f0900b002186158b081mr62369991pjp.66.1669739842011; Tue, 29 Nov 2022 08:37:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669739842; cv=none; d=google.com; s=arc-20160816; b=NDpe7uygT9FVK6Lt9S6lG0wSPO7hbzcHMqsPsq4VBDjtCocDgBrT0y7Le+28dtzJG4 /q4ai3PkFA3cNY1yBHnpZkEJMDvwxr3Uq946E7ObgKtdCbE4YB/S5JSVQMSVOMPwdwTE ISH1mtO8Kt0iCxlYlpQiVJvAjEs4TR3jT8WavTLlyy+5sUpViY7BO7Jq2OufrTMtT0+R CGeNOSdpq73xLvZlxIjm2FLsWeU+Jvl8j+8PxB77JiU1CXCAfsZ+NxwRqlatUMbw1h49 Ulex7ISyAiS4SGO0bNNZp/n2yeJEeMRFunl04DnmYL88CDWdD3LCkoxrwydXyhkid3Fu 8npA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=kNFxlZ5UZHdqkY5D469ZlAF99iMQpaT7Z5Tb3gRNO6s=; b=qEhxDohhlu37Y2Sbb5gSkd00WE6hFiDCyMVncAtHbe1Uyj7j5HWUwmSFMNU4g+95+H xFBC3NUhAgwdNPChufqWGrOTwqotr5vIWYnm8awwUxRhhM2vJtzAhZzabHhYMr9PYAQk rkPeYsSKDOjg/IKCfsUimzPHdWGFc/Jhl2e76IfhqzHDPbKv8Rf+0NtgJrugnM+7X21G 4OTfJJGmGnDpTMlrnhPcPV5Jbvptk44NuHLdHFk3qFVJF+jvPUVZKGw4dCFO0q83LtTA r8Bs68pwcBwcRNTcnTn5WfoaXLSBU+sEogwtXdBt822OjwV9xga3LRCNMmTkk9t39jsV eBmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mklqGGWo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jd21-20020a170903261500b001895e356ee8si13826727plb.154.2022.11.29.08.37.09; Tue, 29 Nov 2022 08:37:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mklqGGWo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235917AbiK2QOw (ORCPT + 85 others); Tue, 29 Nov 2022 11:14:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235517AbiK2QOV (ORCPT ); Tue, 29 Nov 2022 11:14:21 -0500 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3999D637B for ; Tue, 29 Nov 2022 08:14:19 -0800 (PST) Received: by mail-pj1-x1033.google.com with SMTP id w15-20020a17090a380f00b0021873113cb4so13958016pjb.0 for ; Tue, 29 Nov 2022 08:14:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=kNFxlZ5UZHdqkY5D469ZlAF99iMQpaT7Z5Tb3gRNO6s=; b=mklqGGWoIM/Kk03/T+/9GKUrA6BxCbIlOnGYi47ya+PsGaq5PuQ79ArfHzHUmocpKh UWYRyw2YoIeBkjr3Eqm6k/Gdwca1jZhoqdZYMEv0kDpavQqW0uemlTyNhrp3s8Lyp0wf dfoVI3AWKhWpEbKWDtpXW8RUcscnpr6oqcIWCY5X0aF1OS5tSH/X9xee82Tifpp8sMRD co8Ej+77pmSyRY25H4eiRVWk8ImjBJxYvrt7ksEMgk4BwtOVGzzQd6dW7IwDPPvW45Db MMLLaFIp/OL9/QILpT4+Emv8SB0DSzXuP/u0J5ZxNBL52B7jukWPRDqx1Ry5wVQdlurk K0rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kNFxlZ5UZHdqkY5D469ZlAF99iMQpaT7Z5Tb3gRNO6s=; b=iTRxdmTN/S5SUrq+V205xEfepLavcl1FacBfEiWaCvzSaRPcn3lUiFlxOaS60jS6Vt MEZWe2K1SQK0Bo0qXC3jpl+RiStp4vK3kV8ji+K/FXSzkuf87hEnZO485NkA9YKhr7OZ cchYVo7IWZ1YdZpgCa+lHwZobPD1y+40P5M/rm/vVNMVc2eRIQ6sQZTYsCZoCu7lYFOd U3wQYp9n6rZ+BWbqCaTH59f5pm50aFGb98E2W3d+ePY81xl8/EymKSuaGNCaIwQ+76ZI WPkMDkx8yhsLNzVCItvTOBZFG5tdXJlmq6W+LdyhZ93QJ0eaIkNmG8BFFqrkTW3B/oZ2 ljVA== X-Gm-Message-State: ANoB5plpqxMHZZwCt2VdYiceSD1xv7GXE7MN7q2oGDdU0AZcOQoSZfzw aHCzfAkdxHUBJBNCGTJ32OgQ00vVYwI3y3I/o++afg== X-Received: by 2002:a17:90b:1d45:b0:218:6db5:fd98 with SMTP id ok5-20020a17090b1d4500b002186db5fd98mr61969036pjb.164.1669738459171; Tue, 29 Nov 2022 08:14:19 -0800 (PST) MIME-Version: 1.0 References: <20221128142912.16022-1-marcan@marcan.st> <20221128142912.16022-3-marcan@marcan.st> <41c6882a-bff0-378c-edd3-160b54be7c1d@marcan.st> In-Reply-To: <41c6882a-bff0-378c-edd3-160b54be7c1d@marcan.st> From: Ulf Hansson Date: Tue, 29 Nov 2022 17:13:42 +0100 Message-ID: Subject: Re: [PATCH v5 2/4] dt-bindings: cpufreq: apple,soc-cpufreq: Add binding for Apple SoC cpufreq To: Hector Martin Cc: "Rafael J. Wysocki" , Viresh Kumar , Matthias Brugger , Sven Peter , Alyssa Rosenzweig , Rob Herring , Krzysztof Kozlowski , Stephen Boyd , Marc Zyngier , Mark Kettenis , asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Linus Torvalds Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 29 Nov 2022 at 15:00, Hector Martin wrote: > > On 29/11/2022 20.36, Ulf Hansson wrote: > > On Mon, 28 Nov 2022 at 15:29, Hector Martin wrote: > >> +examples: > >> + - | > >> + // This example shows a single CPU per domain and 2 domains, > >> + // with two p-states per domain. > >> + // Shipping hardware has 2-4 CPUs per domain and 2-6 domains. > >> + cpus { > >> + #address-cells = <2>; > >> + #size-cells = <0>; > >> + > >> + cpu@0 { > >> + compatible = "apple,icestorm"; > >> + device_type = "cpu"; > >> + reg = <0x0 0x0>; > >> + operating-points-v2 = <&ecluster_opp>; > > > > To me, it looks like the operating-points-v2 phandle better belongs in > > the performance-domains provider node. I mean, isn't the OPPs really a > > description of the performance-domain provider? > > > > That said, I suggest we try to extend the generic performance-domain > > binding [1] with an "operating-points-v2". In that way, we should > > instead be able to reference it from this binding. > > > > In fact, that would be very similar to what already exists for the > > generic power-domain binding [2]. I think it would be rather nice to > > follow a similar pattern for the performance-domain binding. > > While I agree with the technical rationale and the proposed approach > being better in principle... > > We're at v5 of bikeshedding this trivial driver's DT binding, and the > comment could've been made at v3. To quote IRC just now: It could and I certainly apologize for that. It's simply been a busy period for me, so I haven't been able to look closer at the DT bindings, until now. > > > this way the machines will be obsolete before things are fully upstreamed > > I think it's long overdue for the kernel community to take a deep look > at itself and its development and review process, because it is quite > honestly insane how pathologically inefficient it is compared to, > basically, every other large and healthy open source project of similar > or even greater impact and scope. > > Cc Linus, because this is for your Mac and I assume you care. We're at > v5 here for this silly driver. Meanwhile, rmk recently threw the towel > on upstreaming macsmc for us. We're trying, and I'll keep trying because > I actually get paid (by very generous donors) to do this, but if I > weren't I'd have given up a long time ago. And while I won't give up, I > can't deny this situation affects my morale and willingness to keep > pushing on upstreaming on a regular basis. > > Meanwhile, OpenBSD has been *shipping* full M1 support for a while now > in official release images (and since Linux is the source of truth for > DT bindings, every time we re-bikeshed it we break their users because > they, quite reasonably, aren't interested in waiting for us Linux > slowpokes to figure it out first). > > Please, let's introspect about this for a moment. Something is deeply > broken if people with 25+ years being an arch maintainer can't get a > 700-line mfd driver upstreamed before giving up. I don't know how we > expect to ever get a Rust GPU driver merged if it takes 6+ versions to > upstream the world's easiest cpufreq hardware. > > - Hector I didn't intend to bikesheed this, while I do understand your valid concerns from the above statements. Instead, my intent was to help, by reviewing. Simply, because I care about this too. If you think incorporating the changes I proposed is a too big deal at this point, let me not stand in the way of applying this. In the end, it's the DT maintainers' decision. Kind regards Uffe