Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3333713yba; Sat, 11 May 2019 08:27:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzFHGkAsOSD6/5AmrQFOepkbN4l9ulSZ5Sr9eNOoLolfChgabfNWu8GspVi4wOWDtg8wBH X-Received: by 2002:a63:4ce:: with SMTP id 197mr21526495pge.309.1557588475683; Sat, 11 May 2019 08:27:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557588475; cv=none; d=google.com; s=arc-20160816; b=Zy9mMlvfzeB3CdWKz6v46WtKsWjyOVJYAE3TaVKn8TFMd3p0Rk3fhVI86osGflTBlJ 6W8HTWtpyfIQsxdZI+J1Mu+t6CuS6soOiVHwKvrM1ELz+x4sTcIkPw9BhCk417sGCJ6j TN2ZCg1uDmPbFiM7t6VcUPjPb9nOYhHQVmpv7KPd5kyHthFGqAHsTuF2bmmiF7vY9+Gm tz8TgQXx9p7fk/M97RPZuJOmOCYvMeScspZ9uOYdo9Ry+9Akwz0ENSyMugyztRtaAsfO +N1KvKdnEFUl9gxpYK20cBc4UO6hFmDghTk1S6od9QoTtqox88N8qoHxjhMO8S1qsUlz 667g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3BwmdeMdAB1QS2VFa71ZMNYPI8SNnkly5a4EC48lPb0=; b=QnUv8wF9UH4EhVinE4QaYYlDExWF0UH6C4uyUgyMe3Sk3BeqXTrZUvq35glE7jc46R 7c6xpeuAqTBsVk6aqsRWqOw0ZMiECrkUunsSP6B2IRuHNc/qbdQ/joVWecpVC23Jg096 Iffdy70wfwKuVqEUemeFcoYGB+TUC5o/thP0GlzIOAcEsv6IIZ7mIeztH6v1hDuk+UhE 1+s7i1lmJMujZKNMVVoIVhWJASX+RzelLbeEzWP3ZrzT2vxJ1wk2RbiH5QLieK9BU00g 4RMZcfv7WPh9sRIZ1oOKroyvjKovov8HwACRhPAhQjs8DxhKlAaKNcsQ3kiHxlMKa+uN F35A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=KWhQrHEx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cd7si2748546plb.377.2019.05.11.08.27.39; Sat, 11 May 2019 08:27:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=KWhQrHEx; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728648AbfEKPZW (ORCPT + 99 others); Sat, 11 May 2019 11:25:22 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:60821 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728603AbfEKPZW (ORCPT ); Sat, 11 May 2019 11:25:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=3BwmdeMdAB1QS2VFa71ZMNYPI8SNnkly5a4EC48lPb0=; b=KWhQrHExqVzN/YtgXR/QWdcynY LaWIhpXEXv+NFZkl5AbFbQWt8ADbQdrEmUnt4m9EYvXIV7TguX/yvxk9dJArcsl3MrocVzoPVnIpy pQmsPRqGq02vJNj6w8fHFFOntCB2a30kEdhCs6Wh9RkMwY0tLB7YmJb7k56rvFNDoxJA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hPTsF-0003fk-Jw; Sat, 11 May 2019 17:25:19 +0200 Date: Sat, 11 May 2019 17:25:19 +0200 From: Andrew Lunn To: Vicente Bergas Cc: Heiner Kallweit , Serge Semin , Russell King , Florian Fainelli , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: net: phy: realtek: regression, kernel null pointer dereference Message-ID: <20190511152519.GG4889@lunn.ch> References: <16f75ff4-e3e3-4d96-b084-e772e3ce1c2b@gmail.com> <742a2235-4571-aa7d-af90-14c708205c6f@gmail.com> <11446b0b-c8a4-4e5f-bfa0-0892b500f467@gmail.com> <20190511150819.GF4889@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Hi Andrew, > it is configured as in the vanilla kernel: > https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/rockchip/rk3399-sapphire.dtsi#n191 > ,that is, > phy-mode = "rgmii"; > There are also these configuration items: > tx_delay = <0x28>; > rx_delay = <0x11>; > > Instead of going the trial-and-error way, please, can you suggest a > probably good configuration? I just found the same. Interestingly, the device tree binding says: Optional properties: - tx_delay: Delay value for TXD timing. Range value is 0~0x7F, 0x30 as default. - rx_delay: Delay value for RXD timing. Range value is 0~0x7F, 0x10 as default. So it is not using quite the default values. But there is no documentation about what these values mean. Given the difference of 0x20, it could be this is adding the needed TX delay, but not the RX delay? So you could try: rgmii-rxid And it is not clear what RX and TX mean, so also try rgmii-txid. in case they are swapped. Andrew