Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp2438450rdh; Sun, 29 Oct 2023 16:48:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGpp4T7Hr0Eg6RCBFH1/Epr4HdU8HzoHnMP1UrX4SX8pkiGQC1Aslp/Y0QHwsi41fVCcCwz X-Received: by 2002:a05:6a20:7487:b0:17e:498c:7553 with SMTP id p7-20020a056a20748700b0017e498c7553mr6828086pzd.51.1698623302034; Sun, 29 Oct 2023 16:48:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698623302; cv=none; d=google.com; s=arc-20160816; b=Wzxds/AGYUgeqsTYt+TepjJ6rsPxKTOMNcIwTdGtIFPDzOAO1zU6oxJGpe9xGN6Nzi gTHXxTBKlEsrYl77vVjRWboMTG1yHthiE5uSEDfUOSHY58lM/9LUIZfRLXwpPaEoCiPG EpG//2nn+77aMBfJLQ3G2sFwR7Mr7Opmu8BRha8EwPzuG9a+kC09NoxV3bo4yGK8x6u8 kNmeK4qD5xgqVdpnXDJ1J5lsSA6I7EdAoB+9aFLuzEUt+q0AFGiqozRMAASc8treS91r zv9Vg9JMbo4UpCbUOKRQnz33vZfq9ZFjXAwML/ob6+/h3IgKd54HbraJxOzkDJJ+wsT6 Z6aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Gc7VbTjblyAToowvzo2AGy3dT9VwJc0rP+5eHUgLZ0U=; fh=1BGj1mjgmHwyPI8pt8TO8L03+6dbbvdvvPC9tLN1sHY=; b=QstOw2RSHroP+BCsJ+dsAifQnb5mhi8kMHjcMdtZHYuVFznYT7431bbnT22fNS44Tf GnhQlI/nFFHzO3uKbz6bAXI89M9lXKKpUA4v+Q408rqt4FROViWVL7yHReLyw8BzAJeq 6WckLIYc7OttJN5J9Da0BWSea+CigfTzFQLufc+gYd8HsGkK/c1cTAK4aCrgve8IEGNa g+iBivB6byYqFRAvGMBKj6DnXy12gB9VGeTAAmgkZAcRS1MHlKeK96x7jEN46wWGFlSV yhdxV6FVpCvUxf3aueA7jMkbgd7fyV7OEBQznoY2Q5+PHUNDa6oT0qEhX/LAsmH7ed9Q 2vaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=E8YqVXFq; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id d11-20020a170902f14b00b001c7615a8e09si4142899plb.593.2023.10.29.16.48.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Oct 2023 16:48:22 -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=@collabora.com header.s=mail header.b=E8YqVXFq; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id EAEEE8040EA8; Sun, 29 Oct 2023 16:48:20 -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 S231371AbjJ2XsK (ORCPT + 99 others); Sun, 29 Oct 2023 19:48:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231417AbjJ2Xr7 (ORCPT ); Sun, 29 Oct 2023 19:47:59 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92C5FD75; Sun, 29 Oct 2023 16:35:20 -0700 (PDT) Received: from [192.168.1.90] (unknown [188.24.143.101]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by madras.collabora.co.uk (Postfix) with ESMTPSA id AE1E86606F9A; Sun, 29 Oct 2023 23:35:17 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1698622519; bh=MTCi2I9f4ISCBGs2/Fbga3HK8s3ZEp9YzqbtdDcEFuA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=E8YqVXFqTKOb1b7+V+LvVodpgloKNhOi/cvEi6BPPS05bV806a0qSmpHGA//N3snW h99teObkzlP/UFwAKAFDk9Nk8YCnqRNsEwoz2CN5Rsz/xZx7qxxDU+MnPU99ernPYA qEGXl+IYNDpATcKw1tbJeqffsMuMAd6omfTp3+MCNL7mmmkWf1/A/3L9JRX5eVfdTQ JonkmqtldtU5gK/6FKezwzsNBda3DWs0J0gxEoBAJDXLwyo1vO6ZcNftj1XXfll6PA kW+TEy+Z0LEQweOfGiqxPYeyOUsDCnTxbFLxy+5EnLQV/skyhiNO95EHGcV8RU1FUG yDP1+OLtXJmdg== Message-ID: <7eab89f4-bfd0-441c-8b02-aa9d0f0cdace@collabora.com> Date: Mon, 30 Oct 2023 01:35:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 11/12] riscv: dts: starfive: visionfive-v1: Enable gmac and setup phy Content-Language: en-US To: Andrew Lunn 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 References: <20231029042712.520010-1-cristian.ciocaltea@collabora.com> <20231029042712.520010-12-cristian.ciocaltea@collabora.com> From: Cristian Ciocaltea In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,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 16:48:21 -0700 (PDT) On 10/30/23 00:50, Andrew Lunn wrote: > 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. There is also YT8531S, which looks compatible with YT8521, but YT8531 seems to be a bit different. Regardless of what VisionFive v2 is using, it would be indeed interesting to find out how the Microchip PHY behaves in this context. Regards, Cristian