Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2421236rdh; Sun, 29 Oct 2023 15:51:40 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHonXknYVA77CAVWeasDFNgPXnR5Gev7Tuu0KsX19U5O+Pn+r+XHzWf+yjpV7OoerVOXvmv X-Received: by 2002:a05:6808:1a13:b0:3b2:ea7c:c402 with SMTP id bk19-20020a0568081a1300b003b2ea7cc402mr11219732oib.25.1698619899776; Sun, 29 Oct 2023 15:51:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698619899; cv=none; d=google.com; s=arc-20160816; b=cmwVbQdGTwMjteALkhKL+KBW2bRkeDCQBHsrNohqrmDaCL/rWAhZgjsE8JCc3PlqcN HD8j1buyjyWOAuyS1vcIFK5mKe1Iol+Ve9odwsSiNWJH0DGwnauwybuHeWglQ86wPrDJ 00Eh3T5z9vL8tFYaoRAhK72knUsu7oIH+DKRSwIYx5S47uH1t27HIQbsdmeTvXW3m7as HLN2JnLy25B2XWgTdGj9euTFLBUT4NdUUpM306V1akIf/JKNz0OFxg8sW/x35n2yXtfG OWJKEPl5ZjrFam2ITvAsKo/HOW3V4mWM9uXAGa43AhhhIcqFkvFmtuXnjPVNvqisz6EK BqXg== 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=mItQr9Lnr2C07koQ7ptJcY2nYrj1Tv7N3viIjaS79mo=; fh=ouAXzVx/JUrhZKfjwokoD0ZA6PA/jXgEvqb8Vx/1wkw=; b=EPACMISCprBATfCzZHTDC7L9L17Q+KPoZQUieq7N82+ZIUxg6nH51mGo64IcRRdKU7 bUSSMJCuKgBQ1ic8OIB3ly72kTYbEaK/LPJjQjZ5DAo3BUPwgryyMmakKChoaWzAllBW ORqLGZ4EYVWfuQzQ+6ZWQMtUa4S0HlQwczJAonwdGKkRCl1+lRxo5d8ZlSlEPCFiRs15 jXNU+tSwvTjB4iEY506+vW46Ni+JOeheUOIHsb2PQd7gIZm2mDH0xF09TOFcm/Cn+WlS gaANUII4VgK4i8DuK62NgV5Oh1emHlLeAZEN+rdjkXcD9HxAWgXf9ZxKZnV2K+ucver0 3KpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=O4z6s+bS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id y4-20020aa79e04000000b006bc18937f9bsi4105476pfq.15.2023.10.29.15.51.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 15:51:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=O4z6s+bS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 4674480A7E53; Sun, 29 Oct 2023 15:50:56 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230299AbjJ2Wux (ORCPT + 99 others); Sun, 29 Oct 2023 18:50:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbjJ2Wuw (ORCPT ); Sun, 29 Oct 2023 18:50:52 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AE82C5; Sun, 29 Oct 2023 15:50:49 -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=mItQr9Lnr2C07koQ7ptJcY2nYrj1Tv7N3viIjaS79mo=; b=O4z6s+bSQrfPzDDmeay9WJaB3d 6DyWIwTIhL7JZOJeso/nzNcfcqgwCRchXJOb28e+/nsHaW9AG4w2iw0aYs/b//6B7COSqtYePpmZE ejpmJpVx3mLK0a39nksWbIFKIj6n6mS3qFBR1PKPntGjDw4R8tVaHA3jZWq87tDvjXtE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qxEbw-000T7f-KV; Sun, 29 Oct 2023 23:50:24 +0100 Date: Sun, 29 Oct 2023 23:50:24 +0100 From: Andrew Lunn To: Cristian Ciocaltea Cc: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Emil Renner Berthing , Samin Guo , Paul Walmsley , Palmer Dabbelt , Albert Ou , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Richard Cochran , Giuseppe Cavallaro , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, kernel@collabora.com Subject: Re: [PATCH v2 11/12] riscv: dts: starfive: visionfive-v1: Enable gmac and setup phy Message-ID: References: <20231029042712.520010-1-cristian.ciocaltea@collabora.com> <20231029042712.520010-12-cristian.ciocaltea@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sun, 29 Oct 2023 15:50:56 -0700 (PDT) On Mon, Oct 30, 2023 at 12:41:23AM +0200, Cristian Ciocaltea wrote: > On 10/29/23 20:45, Andrew Lunn wrote: > > On Sun, Oct 29, 2023 at 06:27:11AM +0200, Cristian Ciocaltea wrote: > >> The StarFive VisionFive V1 SBC has a Motorcomm YT8521 PHY supporting > >> RGMII-ID, but requires manual adjustment of the RX internal delay to > >> work properly. > >> > >> The default RX delay provided by the driver is 1.95 ns, which proves to > >> be too high. Applying a 50% reduction seems to mitigate the issue. > > > > I'm not so happy this cannot be explained. You are potentially heading > > into horrible backwards compatibility problems with old DT blobs and > > new kernels once this is explained and fixed. > > It seems the visionfive-v2 board also required setting some delays, but > unfortunately no details were provided: > > 0104340a67b1 ("riscv: dts: starfive: visionfive 2: Add configuration of > mac and phy") That board also uses a YT8531 PHY. Its possible this is somehow to do with the PHY. Which is why testing with the Microchip PHY is important. That should answer the question is it a SoC or a PHY problem. Andrew