Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp538095rdb; Sat, 19 Aug 2023 12:01:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFjej6yeAWjTdhPvCnbbclSAPnNh508Oph/SZwJo+EgetVMv4mEcAVxy+XnEY0PFGpMst7y X-Received: by 2002:a17:902:ec87:b0:1b8:b55d:4cff with SMTP id x7-20020a170902ec8700b001b8b55d4cffmr3201132plg.2.1692471682453; Sat, 19 Aug 2023 12:01:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692471682; cv=none; d=google.com; s=arc-20160816; b=JBDEWMe2M5+F38sXb6NwQOUILWEBcAkfg80zjoj/yddfPOFY2hh1DnqhYwyDuq7w7Z 2PdFjiwPUZrk1VmE9Zj55v2uJtUJKf7mX6aGd7Sgn8QkTx/FnMZIqI7jNxs9Tixtkwa8 AoZ36rQSNsEss8Ot64QSwGvuexT/UZVYkPK6McYcJ83bdH2O/71lcaWrqv7+SQO5FC1L qiOb/BZJ1bGEkXbhtSBn1CGCFKorTNTU7jFqQ0erezUU41wsZezkNPN+6fJbbJb6UlIw G63At9fXATd9YCugUDyJo1V92/cExbZzYoa3UMF+HtOUAy7ZL8or6A+pifeQg26Rx0rt TVMw== 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=YNNAiuiyjQM0aKUBYB8pkWssLs37+SVlo97PtIMIvSQ=; fh=oUvUHI1UxLWCq7aDXnO9+O0v9ACt+gprwyPs9GZfa7U=; b=GDImxiMKlZNt++bnge+tK1/0YM7V/1Ijq9Pe9VHBMDaNHALRjAj37TGiyHTaGSN2zC oJdTLNKWfW/6IDR6uk1d6zOd6B/CGGYg0YBxbjhxZoNHv41tj5WoM3T3lyPRYeYvUqGo shGo6TuuQc4miK+AMOylJATFWHRRUP9PzKhdr15VOv+yiwdadFqQUZTjWO7CrwR4rnxv 8DhSs6sROY0OMh9CMJp49BKaYX4/Br2ERpE06+G9aNGc4/ANWzBZ/ICjwPpQ8dkxs5qD RPl7Py12GFTC3tBXO6ZYe79pZT7QfdXXnra47h5pRxDRp3TamvUhpa/w0ezTTka49yH8 98ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="Yuz/ixHt"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id a6-20020a17090ad80600b0026803b4ddfcsi3924233pjv.103.2023.08.19.12.01.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Aug 2023 12:01:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="Yuz/ixHt"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D4A1867B55; Sat, 19 Aug 2023 01:34:27 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376829AbjHRMQx (ORCPT + 99 others); Fri, 18 Aug 2023 08:16:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376876AbjHRMQj (ORCPT ); Fri, 18 Aug 2023 08:16:39 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CBD7E4216; Fri, 18 Aug 2023 05:16:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=YNNAiuiyjQM0aKUBYB8pkWssLs37+SVlo97PtIMIvSQ=; b=Yuz/ixHtPmL/xbOo4WY5uoYK9v GE80t63vdZwvVIqDw1o4Eys5X1OLhGColcCqH80XP/G6S7aOEYz50zzxkIQB3q5ES6dC5WYhRUA8T obOBRWICrC6xUn413/XtI3LPmNI0gSGLGkCurFgXT1SO4IVCUz5/Fk+54anQGGHT0wds=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qWyOo-004URv-S6; Fri, 18 Aug 2023 14:16:18 +0200 Date: Fri, 18 Aug 2023 14:16:18 +0200 From: Andrew Lunn To: Justin Lai Cc: "kuba@kernel.org" , "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" Subject: Re: [PATCH net-next v3 1/2] net/ethernet/realtek: Add Realtek automotive PCIe driver code Message-ID: <4b630aeb-3098-4108-b8dc-7da6e55a7cf1@lunn.ch> References: <20230815143756.106623-1-justinlai0215@realtek.com> <20230815143756.106623-2-justinlai0215@realtek.com> <95f079a4-19f9-4501-90d9-0bcd476ce68d@lunn.ch> <4955506dbf6b4ebdb67cbb738750fbc8@realtek.com> <4951391892534eaeb2da96f052364e4c@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4951391892534eaeb2da96f052364e4c@realtek.com> 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_BLOCKED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED 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 > > Is the 'line' speed of the MAC fixed? It operates at one speed, and that is it? > > Hi, Andrew > > The "line" speed of the MAC is fixed 5G, but the throughput will be > determined according to the speed of the PCIe link. For example, if > the link speed is gen 3, the throughput will be 5G. if the link > speed is gen 2, the throughput will be 2.5G. if the link speed is > gen 1, the throughput will be 1G. ksettings does not return throughput, it returns the line speed. throughput is determined by a lot of different things, can the CPU handle frames fast enough, is the memory bandwidth high enough, what is happening on other ports of the PCIe switch etc. There is at least one driver i know of which reports a warning at probe time, if it finds the device is on a bus which cannot support the full bandwidth. Maybe copy that. > There is no extra fields in DMA descriptors for tagging > protocol. The tag added by switch hardware instead of this driver. > > Are the I2C, MDIO and SPI bus masters also hanging off a PCIE endpoint? Can > > they probe independently? I'm just want to check this should not be part of an > > MFD driver. > > The I2C, MDIO and SPI bus masters are not hanging off the PCIE > endpoints, but on the switch core. So the switch core is also an PCIE endpoint? Andrew