Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp3059082lqo; Tue, 21 May 2024 05:56:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVrO61m1VgMyj8dCOYEBx/POzMkjdoVeqOmm44qr2VTijocs1BJx9bA0SZZCb/umGpPpaC/YJ3h3y2Ybdw7Y2x2Je1ph8MWAhkSwRp1YQ== X-Google-Smtp-Source: AGHT+IGbjte6YTH3rkXNDkFgZNKK05Kjjexp9DAoVNJZVOiHwP4mQDsCOLmZ/OY37HwU6ez6TDly X-Received: by 2002:a17:902:f710:b0:1f2:fcea:6c9f with SMTP id d9443c01a7336-1f2fcea6ee9mr83153345ad.40.1716296160543; Tue, 21 May 2024 05:56:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716296160; cv=pass; d=google.com; s=arc-20160816; b=wEBJu4ATsR+vnkGXwUlMx9SxJWu3C5AIEe76Uohtt2MKV3hAfG4Rw4HOTEsWxVjNon QaiasOXOPioiG6Yx4WRNYmL+C3S0U5hFKR6q57RNFcF0nRQyh9dYCJdWB5TNpejzYsYe 6/hoKNzZTnLgmhoZJJ5xQnXcM1VoTvzAHcD/1TeF3X8ROC+yqhNUOe4olKoE4WrUEeeT OVLSDcQrnleuTqz19CLR/ZiSK3paJFKXFPmt+C44cjjJ4A474xuxvdIDhV6zW4aRGP5j 7Se0pls/F7sYchgE5bTdIqPrFTj3FWFWX7Ff58xipZSUFPZTrv6dF4UfUk2HYqvwcgZ5 XT+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Ubv672vfpBfLZf0g0gqsR9OC8qCCoIkzl2ciJouZUwg=; fh=DB5yUXOhRg8cl/G2+VBxKNleqW5Gby7uwQrP/0HdStM=; b=ANZMnw5F4arsx05VyrujY8JY7G/9nDrS48Lcn0TeJs7FnYKZIEsrZzj7IcGWOyYvid BbMN5z0FCgJj1e8/AefQcaKwXUZZ/pJzYosnWPWUUUfRPB2tBmkRSanK6bS306Z7TwbS 181iqERLA1d03QNIVo0ppdNQIOZlmd9e1TSqVEHZxSf6Hj9qKrXhFOOZFY1447Be4YIj m26eJ2+jiqmANiHW76rUmxoNY+lKJRrreSD8mBgc/CSH8+mVcUcjusZyraD7vkrGpjPE t6a6U3LcP018oLn8a0p7xrVa9GyPVgmLiFto7dN4sF0UtAaXU+qWTTcVOMufdCb6To45 enQQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=WS0nnLue; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-184959-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184959-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0bad63d3si42335395ad.139.2024.05.21.05.56.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 May 2024 05:56:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184959-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=WS0nnLue; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-184959-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184959-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EABBB283FCE for ; Tue, 21 May 2024 12:48:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 10FB1770EE; Tue, 21 May 2024 12:48:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="WS0nnLue" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B72632F5B; Tue, 21 May 2024 12:48:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716295695; cv=none; b=Yj93+ikYfDmTptvmNkCSBr84GoEX3arj1jMsG6JRche+EeuBH31B3jpxgx3DFRN4fgD2FVW+PCulkSWV5Qc85nSbIUHRY47HjHdRbsKYYy74ZF0F9eeaU3qp/VNKeLGlQppyTicRdJJx8YBbueNGs+SN63lOwI9ryCfxD2a9QHk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716295695; c=relaxed/simple; bh=WH6yHvZe8ZnUhsEU59EABadEg8fdoJa3lZaDRDvNCIM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jHXM7nh0zHkBBgrcBlBnbvKNWOaLMyomSoRj/lbY4EnThABqdZ0d2WtdXzcx+fSWVAI7KVsOm/ocYR2rzgMesKTkAUT1VCVog3xHDpdAezk8XiSJH7XZtR+RP5xlKaOU6GkS2KpmqOIKLAHROX38wQxmZijw3cTAC+q/R1+m51k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=WS0nnLue; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch 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=Ubv672vfpBfLZf0g0gqsR9OC8qCCoIkzl2ciJouZUwg=; b=WS0nnLuevgRcN5fKDdqcjtMzBH WNi1Fp5E4puGALwTpiMuOEB1UGAN3YooKD6lYWKjiiaM7/3Uf3dGcDE+bIRVcXL5yuQFx/oIWOMPA V5Nv7PjFhaphyUCya/FcAUIm2X/iCUt0JJAGdOK6LsQQ9c3466KdaEVf/v2tdn5p0Z28=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1s9OuJ-00Fl8b-QO; Tue, 21 May 2024 14:47:55 +0200 Date: Tue, 21 May 2024 14:47:55 +0200 From: Andrew Lunn To: Larry Chiu Cc: Justin Lai , "kuba@kernel.org" , "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "jiri@resnulli.us" , "horms@kernel.org" , Ping-Ke Shih Subject: Re: [PATCH net-next v19 01/13] rtase: Add pci table supported in this module Message-ID: <97e30c5f-1656-46d0-b06c-3607a90ec96f@lunn.ch> References: <20240517075302.7653-1-justinlai0215@realtek.com> <20240517075302.7653-2-justinlai0215@realtek.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Tue, May 21, 2024 at 06:20:04AM +0000, Larry Chiu wrote: > > >> + * Below is a simplified block diagram of the chip and its relevant interfaces. > >> + * > >> + * ************************* > >> + * * * > >> + * * CPU network device * > >> + * * * > >> + * * +-------------+ * > >> + * * | PCIE Host | * > >> + * ***********++************ > >> + * || > >> + * PCIE > >> + * || > >> + * ********************++********************** > >> + * * | PCIE Endpoint | * > >> + * * +---------------+ * > >> + * * | GMAC | * > >> + * * +--++--+ Realtek * > >> + * * || RTL90xx Series * > >> + * * || * > >> + * * +-------------++----------------+ * > >> + * * | | MAC | | * > >> + * * | +-----+ | * > >> + * * | | * > >> + * * | Ethernet Switch Core | * > >> + * * | | * > >> + * * | +-----+ +-----+ | * > >> + * * | | MAC |...........| MAC | | * > >> + * * +---+-----+-----------+-----+---+ * > >> + * * | PHY |...........| PHY | * > >> + * * +--++-+ +--++-+ * > >> + * *************||****************||*********** > >> + * > >> + * The block of the Realtek RTL90xx series is our entire chip > >> + architecture, > >> + * the GMAC is connected to the switch core, and there is no PHY in between. > > > >Given this architecture, this driver cannot be used unless there is a switch driver as well. This driver is nearly ready to be merged. So what are your plans for the switch driver? Do you have a first version you can post? That will reassure us you do plan to release a switch driver, and not use a SDK in userspace. > > > > Andrew > > Hi Andrew, > This GMAC is configured after the switch is boot-up and does not require a switch driver to work. But if you cannot configure the switch, it is pointless passing the switch packets. The Linux architecture is that Linux needs to be able to control the switch somehow. There needs to be a driver with the switchdev API on its upper side which connects it to the Linux network stack. Ideally the lower side of this driver can directly write switch registers. Alternatively it can make some sort of RPC to firmware which configures the switch. Before committing this MAC driver, we will want to be convinced there is a switchdev driver for the switch. Andrew