Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp36732988rwd; Tue, 11 Jul 2023 05:10:33 -0700 (PDT) X-Google-Smtp-Source: APBJJlHh3v6M30U8aYT6lae+WGb092NH7Bvt184zFzY/fdc4dN7AU18w8GOFhXnKendi1+YdiIxU X-Received: by 2002:a05:6402:1857:b0:51e:281a:66a4 with SMTP id v23-20020a056402185700b0051e281a66a4mr15649065edy.38.1689077433439; Tue, 11 Jul 2023 05:10:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689077433; cv=none; d=google.com; s=arc-20160816; b=Xs5Sp9BQNvXQTdvg+OkzNcQeyrNQWIHvf3xhHg0dcKYQgzLMhITIrL1jVl1/L4Zjv1 yxXG/R7rQRrTuOl2MRrBKybUhMiHXCHK24AGdiCnKupQOC0ZFujOyaS8JT7ux8OEPIXB YTZbbrWSMWnpeV4OuovxKwFRxO8Teomm+0t49omrZig5Y43aKedRDgkKfAIc2A73j9JM DaI9zmlfY7CD5r6At7vJEvdQ8RBk53Z8NB+HV1iqlgg3Z6ZCKAP3QQKyuOoD5d40LHcM i0rtMJ7VPg2juMC9kpM4vC2d9+T9yERWo9DZrvPGVKySgJj+F7ZyXHq+dfiNvhYXT+DH gpAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VMmzAbnQPb+hff08oGBX7AMmQrEjQkPWbeWYbWnEb2s=; fh=lr7jvbpzhOxWUzQyb46beSQk7gNZvB5yDKIePrjxFKE=; b=u2t9xuAvwSZQtXfiZmjHsuWU40rLt9AkX/WAkgkS5+hWx5HWS27l4mT3V9irzwybjV HGIrkynmm/nkAU3M2aeNcFdim9mCU7UYi1PM1UHqvtBo8WmIQ1Zkj0C1ZNYNox4023rk 6zBRzaAbJROvdI2N3Xq4uFuhebeT0RGaTdiOCwF8JPuZ1dW4S7En7ojiTdSydh/flkDD Bu38nK1KU2ByhqKii0qNCOXIYqRa1xb/3ivx0mAVvj9CIsq6u9sgqKO1LY7yG241zT0y 6kUidpbp5uAjZv3l9Qo/TO4wS50k5189iLGP5GAGb0sKj9fgtwKiv5dJ76iEQYpEUEmP Lafg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20221208.gappssmtp.com header.s=20221208 header.b=R6I4rQhZ; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w16-20020a056402071000b0051e24e393eesi1882704edx.341.2023.07.11.05.10.09; Tue, 11 Jul 2023 05:10:33 -0700 (PDT) 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=@resnulli-us.20221208.gappssmtp.com header.s=20221208 header.b=R6I4rQhZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231267AbjGKLw5 (ORCPT + 99 others); Tue, 11 Jul 2023 07:52:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231516AbjGKLwz (ORCPT ); Tue, 11 Jul 2023 07:52:55 -0400 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDBC410E7 for ; Tue, 11 Jul 2023 04:52:47 -0700 (PDT) Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-51e56749750so3088751a12.0 for ; Tue, 11 Jul 2023 04:52:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20221208.gappssmtp.com; s=20221208; t=1689076366; x=1691668366; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=VMmzAbnQPb+hff08oGBX7AMmQrEjQkPWbeWYbWnEb2s=; b=R6I4rQhZNuJhcRNVBlXhhbzoUBbtJugUPtDeDqspmlhc0LV6PhoXCtdxQT2Fj0bM/Z D3kIChr40ply4orCGt+9ajW59qGsXI0q8dwmTjUCDnDH0ulp9uyX3O+SsEKbO2t7vinl 8gTJudbGuaMlUr/F2U1aCITw8lqIDA7UGsx63ZT1ftAReQn3Gp7VbkcsmETP/cRAyQai lkIOqNqDJFzyv3RRj/Q+MFuMldUziVBZazHL8K6x6ggiatiMyxzswv65kZTUd+/j30i/ ceCU0hZSdHB7C1BCm/DJGmgVIEJr/TryA/39HtCJ72a1xnXsajO8AG8nwixG6ViSclLN u3GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689076366; x=1691668366; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=VMmzAbnQPb+hff08oGBX7AMmQrEjQkPWbeWYbWnEb2s=; b=B8QiYD0hrSJYHuBU/xDJYvnKbITRJXhdS6yafo1g3jviKqfrDaEZ6R0aUtDwUK073v S3ybL/9TLU2gmsdVoHGsrYk6EmJJZmlnNo9xWREn/HoUGlCFkjftzzXtdTVSEy4NRdVf T96C5f/YxpglyFfcEkzW9CBXXuMq7gv57AlZb8VXhwlSr7+kuK0HduMIj6jGG+dkH1sg 6Kmg1xBZ4061RJUMINrkQZHY8KFUCwxj6B1esLw7RuVxGu9JbrtkiebQBJugf0iFNAic 5NpI40Bb3ufU1qZW9MO+O+WpdMH/ygQwVJC9+3MfYLnqK9S7DqCTwRdFiq6oalYzwcGJ OpcQ== X-Gm-Message-State: ABy/qLbaSBdZQGibyuk1pahT9k+dX9KRPY0fAK+Pdz1m5G0yV+8WLMQx BoWT9lqeL4pBmf56+xuATH7xZw== X-Received: by 2002:a05:6402:506:b0:51e:26c8:25f7 with SMTP id m6-20020a056402050600b0051e26c825f7mr14275781edv.42.1689076365929; Tue, 11 Jul 2023 04:52:45 -0700 (PDT) Received: from localhost (host-213-179-129-39.customer.m-online.net. [213.179.129.39]) by smtp.gmail.com with ESMTPSA id u8-20020aa7d888000000b0051e0f21c43fsm1148663edq.31.2023.07.11.04.52.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 04:52:45 -0700 (PDT) Date: Tue, 11 Jul 2023 13:52:43 +0200 From: Jiri Pirko To: "Kubalewski, Arkadiusz" Cc: "kuba@kernel.org" , "vadfed@meta.com" , "jonathan.lemon@gmail.com" , "pabeni@redhat.com" , "corbet@lwn.net" , "davem@davemloft.net" , "edumazet@google.com" , "vadfed@fb.com" , "Brandeburg, Jesse" , "Nguyen, Anthony L" , "M, Saeed" , "leon@kernel.org" , "richardcochran@gmail.com" , "sj@kernel.org" , "javierm@redhat.com" , "ricardo.canuelo@collabora.com" , "mst@redhat.com" , "tzimmermann@suse.de" , "Michalik, Michal" , "gregkh@linuxfoundation.org" , "jacek.lawrynowicz@linux.intel.com" , "airlied@redhat.com" , "ogabbay@kernel.org" , "arnd@arndb.de" , "nipun.gupta@amd.com" , "axboe@kernel.dk" , "linux@zary.sk" , "masahiroy@kernel.org" , "benjamin.tissoires@redhat.com" , "geert+renesas@glider.be" , "Olech, Milena" , "kuniyu@amazon.com" , "liuhangbin@gmail.com" , "hkallweit1@gmail.com" , "andy.ren@getcruise.com" , "razor@blackwall.org" , "idosch@nvidia.com" , "lucien.xin@gmail.com" , "nicolas.dichtel@6wind.com" , "phil@nwl.cc" , "claudiajkang@gmail.com" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "intel-wired-lan@lists.osuosl.org" , "linux-rdma@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , poros , mschmidt , "linux-clk@vger.kernel.org" , "vadim.fedorenko@linux.dev" Subject: Re: [RFC PATCH v9 00/10] Create common DPLL configuration API Message-ID: References: <20230623123820.42850-1-arkadiusz.kubalewski@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham 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 Tue, Jul 11, 2023 at 12:34:11PM CEST, arkadiusz.kubalewski@intel.com wrote: >>From: Jiri Pirko >>Sent: Monday, July 10, 2023 2:10 PM >> >>Mon, Jul 10, 2023 at 12:07:30PM CEST, arkadiusz.kubalewski@intel.com wrote: >>>>From: Jiri Pirko >>>>Sent: Wednesday, June 28, 2023 1:16 PM >>>>Wed, Jun 28, 2023 at 11:15:11AM CEST, arkadiusz.kubalewski@intel.com >>wrote: >>>>>>From: Jiri Pirko >>>>>>Sent: Tuesday, June 27, 2023 12:18 PM >>>>>> >>>>>>Fri, Jun 23, 2023 at 02:38:10PM CEST, arkadiusz.kubalewski@intel.com >>>>>>wrote: >>>>>> >>>>>>>v8 -> v9: >>>>>> >>>>>>Could you please address all the unresolved issues from v8 and send v10? >>>>>>I'm not reviewing this one. >>>>>> >>>>>>Thanks! >>>>> >>>>>Sure, will do, but first missing to-do/discuss list: >>>>>1) remove mode_set as not used by any driver >>> >>>I have implemented in ice (also added back the DPLL_MODE_FREERUN). >> >>Uh :/ Why exactly is it needed in this initial submission? >> > >Without mode-set there is no need for device-set at all, right? >So it is better to implement at least one set command, so we don't >need remove device-set command entirely. The enum cmd valu could stay as a placeholder, the rest can go. > >> >>> >>>>>2) remove "no-added-value" static functions descriptions in >>>>> dpll_core/dpll_netlink >>> >>>Removed. >>> >>>>>3) merge patches [ 03/10, 04/10, 05/10 ] into patches that are compiling >>>>> after each patch apply >>> >>>Hope Vadim will decide on this, the thing is merging in two patches >>>doesn't make much sense as there won't be any linking until both patches >>>are there, so most sense it would be if 3 are merged into one, but >>>then we will be back to one big blob patch issue. >>> >>>>>4) remove function return values descriptions/lists >>> >>>Fixed. >>> >>>>>5) Fix patch [05/10]: >>>>> - status Supported >>>>> - additional maintainers >>>>> - remove callback: >>>>> int (*source_pin_idx_get)(...) from `struct dpll_device_ops` >>>>>6) Fix patch [08/10]: rethink ice mutex locking scheme >>> >>>Fixed. >>> >>>>>7) Fix patch [09/10]: multiple comments on >>>>>https://lore.kernel.org/netdev/ZIQu+%2Fo4J0ZBspVg@nanopsycho/#t >>>>>8) add PPS DPLL phase offset to the netlink get-device API >>>>> >>> >>>Added few things on this matter >>>- 1 dpll level attribute: >>> - phase-shift - measuring the phase difference between dpll input >>> and it's output >>>- 1 dpll-pin tuple level attribute: >>> - pin-phase-adjust - set/get phase adjust of a pin on a dpll >>>- 2 pin level attributes: >>> - pin-phase-adjust-min - provide user with min value that can be set >>> - pin-phase-adjust-max - provide user with max value that can be set >>>- a constant: >>> - DPLL_PHASE_SHIFT_DIVIDER similar to DPLL_TEMP_DIVIDER for producing >>> fraction value of measured DPLL_A_PHASE_SHIFT >> >>Again, why do we need this in this initial submission? Why it can't be a >>follow-up patchset to extend this? This way we never converge :/ >>Please focus on what we have now and bring it in. Let the extensions to >>be addressed later on, please. >> > >Well AFAIK, RHEL is doing some monitoring software, so the end-users need this. They need it for the initial submission? Why? Why can't they wait 1 week for follow-up patchset? > >> >> >>>- implemented in dpll netlink and in ice >>> >>>> >>>>You are missing removal of pin->prop.package_label = dev_name(dev); in >>>>ice. >>>> >>> >>>I didn't touch it, as we still need to discuss it, Jakub didn't respond >>>on v8 thread. >>>I don't see why we shall not name it the way. This is most meaningful >>>label for those pins for the user right now. >> >>This is not meaningful, at all. dev_name() changes upon which pci slot >>you plug the card into. package_label should be an actual label on a >>silicon package. Why you think this two are related in aby way, makes me >>really wonder. Could you elaborate the meaningfulness of this? >> > >Without this, from end-user perspective, it would be very confusing. >As in ice without any label there would 4 pins which differs only with id. There you go, it does not have any label, yet you are trying hard to make up some. Does not make sense. >What names would you suggest? That is the point I made previously. For synce usecase, the label does not make sense. There should be no label. You reference the pin by ID from netdev, that is enough. I think better to add the check to pin-register so future synce pin users don't have similar weird ideas. Could you please add this check? Thanks! > >Thank you! >Arkadiusz > >> >>> >>>Thank you! >>>Arkadiusz >>> >>>> >>>>>Thank you! >>>>>Arkadiusz