Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20289131rwd; Wed, 28 Jun 2023 23:39:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ45emGsOXx7wqE+vcy+iSbZOrNAPDe92jM+7kzqmjo4FNsmHGsrVOAVu5LeCKNBX7Fp8X6q X-Received: by 2002:a9d:7350:0:b0:6b7:4aa6:77b4 with SMTP id l16-20020a9d7350000000b006b74aa677b4mr13272338otk.4.1688020785422; Wed, 28 Jun 2023 23:39:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688020785; cv=none; d=google.com; s=arc-20160816; b=OvgynMqXmQZVYD5rxfluwKWpZZp4TeaCAZoSAITHK4vS/Z4BX0ARU4kYl5L/Dc17oz 7xGzOtOaqO9zivKR13K7O3z5QJLrcr/tWDmaPpP1KpHH7o91yyVg51vQz9NoX3DjKPJn cAnUOXM5OwpG/411b7WmuwCJVJPk8hRqwQ7yXCm5d72MDBudS5DN7HdEIrFeLRnnU9zH 8YPUbEvoWb1etrSmFocK95qN5osPk1QKyuc0+3gggxF2fCu3/D/khk8XhKw8w9eSSuT+ gsJUZzrCf9DCDsuK03zosxfoerHr4PZx2J0YvI9igEy+VvXrhkQanMUCsZZE69Kg8fO6 U0tA== 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=BxPmChzKXR1dj/ko+9tzcHvICaNxDCij9PscVU1CwGY=; fh=lIOyrOS+mV31ZcuxHA+WRNvPfdzpo7UUaTqiUtJDUnQ=; b=lqjk0IzYhAnHmSEdHC64pnfbB3LYQN+fVf3ynKwFtBnSWMcoB3ghyCtMt77QMct3w7 oITEo99pYBwmt+qmziU4EbDvA5ySbJgJpRhnjuP4+th5fV2JV28Zpef48Ukui9I/vapq 06LdINV1vCoeE46+LgDGfSeVDYaVpSDiKL4K9ejvngQI1tQ24I23Mc+65MWQyNrsrINT rs2ERDuQ8QiROoJsCSrresuzznSokNBkXRA6rrdei/c8PYyeu1qOvbqYweft8gLlPD07 v7J55w57en7jg0mpdN1sw0AyOfEQKRtCend0T0HentCKA4FMDdZ92Dx8oFHJ6J3TfI6Q J0CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@resnulli-us.20221208.gappssmtp.com header.s=20221208 header.b="g4spu/YT"; 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 t32-20020a634460000000b00517a4a75528si4578421pgk.162.2023.06.28.23.39.31; Wed, 28 Jun 2023 23:39:45 -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="g4spu/YT"; 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 S231315AbjF2GOg (ORCPT + 99 others); Thu, 29 Jun 2023 02:14:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231303AbjF2GOd (ORCPT ); Thu, 29 Jun 2023 02:14:33 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B0EE2690 for ; Wed, 28 Jun 2023 23:14:29 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-314172bb818so317627f8f.1 for ; Wed, 28 Jun 2023 23:14:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20221208.gappssmtp.com; s=20221208; t=1688019267; x=1690611267; 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=BxPmChzKXR1dj/ko+9tzcHvICaNxDCij9PscVU1CwGY=; b=g4spu/YTypGbdobXCPpsNMEE7fZgSTh6dwO8ck/RlyJzKG32ec8qbcH4voInoYNI6o nG6/zJ1n82WItH1lu3qQCRFI8uw3L8ph8dhnODO74Jobt9mAAC6aVPmcAOEeHa3CijaY GQ0EQQTgLWtAzMyQV8sZkz9pP1Q5sB+jGzX0IRtVzmIH7vRZDqd7kAqk/QYf3QTa8aEJ QSuo/h0rl0fcrDEeomgjT4HhlbHIS1Bzm651nwZXtQyAM08WdVMOLO0uppwo8McOoT1j 8CGh366oXSh0q2wYy6HTFoOLtXKgeVtSm3qpnqhqbheagjwO+/UJVS4tnevaSr7XLabv Rrig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688019267; x=1690611267; 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=BxPmChzKXR1dj/ko+9tzcHvICaNxDCij9PscVU1CwGY=; b=kQm/LWJIKjAevlLfViRuFsySQEx7gd/wy2AWeDaM99oRe/f89pkzqQtchU90RqrKNm utnFAVK/JzgryDbYXDB6fcP9HTwTFkes/e2vC6yvVMLzuxAPjsGznYLsTgC5bWMBNcKl KaS0uIWg47BEJmSE0cytCL35+mXd0HSWTYHM2ZOwk6cfUunR5H/zgpAokyVFs5Dj/o9u AezviSPQTeqY8v1WoB+9ZnTe0RNQb4/Zw1FFNcf14CEQfBTk18uo5rdmBw54r7WW7Qf9 khrGSUJZkAwdtqzV6BjZKBbgnGfvrtj6klU4IAQV9AZGP/r+Y4VgFJ0SE/hwdRetcD+t AhEQ== X-Gm-Message-State: AC+VfDy25BgntO9ecW447yFPWp84+NWqd0uG+Wy1WHrWKuoPVkGctVTC dO52V/Pj0Yk6kXEYsbp+t6Rjzw== X-Received: by 2002:a05:6000:181:b0:30f:d218:584a with SMTP id p1-20020a056000018100b0030fd218584amr32939868wrx.23.1688019267545; Wed, 28 Jun 2023 23:14:27 -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 b7-20020a5d45c7000000b003141a3c4353sm460558wrs.30.2023.06.28.23.14.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jun 2023 23:14:26 -0700 (PDT) Date: Thu, 29 Jun 2023 08:14:25 +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 Wed, Jun 21, 2023 at 02:29:59PM CEST, jiri@resnulli.us wrote: >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? Arkadiusz, could you please reply to this? Thanks! > > >> >>Thank you! >>Arkadiusz