Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp9354427rwd; Wed, 21 Jun 2023 06:29:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4LFmfCI4IW5RrC6p9MKVev6YZc3pKi0nt16WZsAd92ZadAiPMsVTPtHxp/E0LMTjr6fu/5 X-Received: by 2002:a17:902:ab54:b0:1ae:8e58:eb25 with SMTP id ij20-20020a170902ab5400b001ae8e58eb25mr9475881plb.28.1687354197286; Wed, 21 Jun 2023 06:29:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687354197; cv=none; d=google.com; s=arc-20160816; b=gSbYphFSXc14S0kU7+B0K10ebMCYO7u7tI+jZbIJA3QSgPs76NN4+dSCCyGglKYoGU GfokA0qxvrXizueaGgp8P6hA+aoFavPYssKFo1lfovXKwxkxj4K3i3l+S4aVM5MO5aKv 6b5SSiFOAjJKwTftnfjH7A5U74Ztpy9TzbYMRrF1pLuqct5TX8Pl15RjLPSqykhvt8LA IktD20DRHejTki3DHqkUf/jtmWim9VVNBMnrUMq7YLYFJjOsTptXezPE+cOwdL7dx6Zn u5x6NgfrOOsdeFNX1c6oeUyHrcOqpggfB88pUKyjAnd5tztIXaVWypze26CiX4MYnBkY vrUQ== 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=R9RGfJqgepIeBvJ1OfKk1XmicseQJBOqqkZjFv/Sa90=; b=eObJuR25aXYxt2OIaVns6PSaQqpwBJK+pIV7S6K74K/oTaITIdVO8y/6iBch4huOT4 KW3Sd7SUcY5jYieOtcWO3jjjZ8Ha6DNpK7p5EaS2vchQ6w7MY5YsKSMvvHSe+9/6MnWM 79XGLhAmPO3L87VJNBbrwxXBEm3+FQIEYK4qxm7MGYGGCax/Qm725PF3PKHJkwpyzr0J mbTi5BNd6C6esam1LIdGce15sxit7RBNd+MbUUeesQrMglyjv9zKEzl04IRc5QPqL/kA REMppkI9DRL7ez2kiwn8UY1oYmq+/rjmR+1sLhysBRbpQguR2OULjuVMeTNf8oeKMV7W qEoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20221208.gappssmtp.com header.s=20221208 header.b=EkqoBWjM; 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 jo10-20020a170903054a00b001a97e24eb34si3936007plb.201.2023.06.21.06.29.44; Wed, 21 Jun 2023 06:29:57 -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=EkqoBWjM; 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 S230195AbjFUMaH (ORCPT + 99 others); Wed, 21 Jun 2023 08:30:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230098AbjFUMaF (ORCPT ); Wed, 21 Jun 2023 08:30:05 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5529D1730 for ; Wed, 21 Jun 2023 05:30:03 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4f8467e39cfso7837542e87.3 for ; Wed, 21 Jun 2023 05:30:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20221208.gappssmtp.com; s=20221208; t=1687350601; x=1689942601; 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=R9RGfJqgepIeBvJ1OfKk1XmicseQJBOqqkZjFv/Sa90=; b=EkqoBWjMr87RPy89et6BGhuw9VAPZh7M+VK6jbsmEABD22QZZD6QcVmEmD0YKxTD3i NFifzn2AbhccQE8IS2d4oMw6SbNGIvnDgO3+FnbrVyacR7rd3gQ33x9OKxIFKXHFgQxU Bv7htOjEJeg2jVHoz1cAzYz1FCO+UYTGSokSdXVKZJ8oWzrEjoc6oosLLIGauk35oxeB fcRL7THnuGMfucqzTYbmGsnzDX2XCIVoqReAHk3Uu0S52nmlVnY90+BNjuqKXwsIKpxr xS6Q2JQnfzg+Hegrb/1bzxj5Tzo1AKsS3qAAnNufUJ1JsCy6SOsxkScjyFjut5bGuZF1 Omtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687350601; x=1689942601; 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=R9RGfJqgepIeBvJ1OfKk1XmicseQJBOqqkZjFv/Sa90=; b=lkJov0p72afiH6mQzh9E5UeReX8UGJo6b1dAR/tjuRZoWL8q7mmLzIOojVxoFBgxDD zbnNLxi5dr3SzL6BgPP1oA2oLxTNOLuT24mdl6s/PyL/t76R/khXhkfGpK+OZKnagaCb zby2ce5VB28CtDJo5EzwhBrczZdOdFtCSxrpjGqSw7cBlGlLW9/s2HvGkcAG786QGXGq 2Ig7wmz9xAnrThoAeaJT9vfv6b0RFjSzZG6e1VenwE8GBMGk8tTlOR1A5uXYP7BZCjSL WYVor7zgIKADdnnTMM+e7XHDB2mWyspaW3AsUxb1eO2A0x3ui4InTlcGEvS73adY32CJ Bq/Q== X-Gm-Message-State: AC+VfDwg9z2VJRrlFQhJbQfhXEXNF1FMsIACVvDIK0C8Aksg0A4Kq7Gv +A1KJvx1tBYj38ZjGxIi0I9f6A== X-Received: by 2002:a19:7715:0:b0:4f9:5a87:1028 with SMTP id s21-20020a197715000000b004f95a871028mr998668lfc.30.1687350601263; Wed, 21 Jun 2023 05:30:01 -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 x1-20020a5d4441000000b00311d8c2561bsm4376924wrr.60.2023.06.21.05.30.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jun 2023 05:30:00 -0700 (PDT) Date: Wed, 21 Jun 2023 14:29:59 +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 v8 08/10] ice: implement dpll interface to control cgu Message-ID: References: <20230609121853.3607724-1-arkadiusz.kubalewski@intel.com> <20230609121853.3607724-9-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=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 Mon, Jun 19, 2023 at 10:34:12PM CEST, arkadiusz.kubalewski@intel.com wrote: >>From: Jiri Pirko >>Sent: Saturday, June 10, 2023 6:37 PM >> >>Fri, Jun 09, 2023 at 02:18:51PM CEST, arkadiusz.kubalewski@intel.com wrote: >> >>[...] >> >> >>>+static int ice_dpll_mode_get(const struct dpll_device *dpll, void *priv, >>>+ enum dpll_mode *mode, >>>+ struct netlink_ext_ack *extack) >>>+{ >>>+ *mode = DPLL_MODE_AUTOMATIC; >> >>I don't understand how the automatic mode could work with SyncE. The >>There is one pin exposed for one netdev. The SyncE daemon should select >>exacly one pin. How do you achieve that? >>Is is by setting DPLL_PIN_STATE_SELECTABLE on the pin-netdev you want to >>select and DPLL_PIN_STATE_DISCONNECTED on the rest? >> >> >>[...] > >AUTOMATIC mode autoselects highest priority valid signal. >As you have pointed out, for SyncE selection, the user must be able to manually >select a pin state to enable recovery of signal from particular port. > >In "ice" case there are 2 pins for network PHY clock signal recovery, and both >are parent pins (MUX-type). There are also 4 pins assigned to netdevs (one per >port). Thus passing a signal from PHY to the pin is done through the MUX-pin, >by selecting proper state on pin-parent pair (where parent pins is highest prio >pin on dpll). Could you show me some examples please? > >Thank you! >Arkadiusz