Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3332268yba; Sat, 11 May 2019 08:26:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqx2t8kdlU+VdQQA2Fy9ZYNx6bZ14cXnqY1jg6zKJTXIwdunlofaEK7fWpnvX4AX08j3c8AF X-Received: by 2002:a17:902:704c:: with SMTP id h12mr20671307plt.270.1557588374128; Sat, 11 May 2019 08:26:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557588374; cv=none; d=google.com; s=arc-20160816; b=plDzP8eJxOvCnJAcPHJciSk+vkvM+3f/oC8ui0W0oSzJYNHIfU2MaKx+sWNpp51DLZ AeBrcodiCjfQqzFr4Dl3023uzHEFzJLS0CFyaomNXsZSe2L0bDOCQ3u+rZo0RpVtJEAf PdQVaU94UVTh/ESTHCgweiBL4koEwObO8cotQBkM1p3+HyiRHITWEnlULYr+n8HRrZLl JZ/S95f3enltkE5+PNayl2BC4/A57YTOPpDW6cWCTW//cLKJZjHC22qQc/PE7GmA8cFi l+XkdpiiC5PQHr0IBySRAVbog+7rjNbBTiIiY/YMQk841Me6vPogBwGwgvVLfkPuoqIO ACcA== 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=fz0TG2HVuHdCB+n/eg0BGCxLCtFhcBm6HNAd+QooGbs=; b=bV30kXnAlMR7hQiYXpsy3rKIOMp6xoSBPHo6OG5HQRmyo/yMD6ccke7+eUzJrfopGw E6MpHyJaT5xMKiGfJbj3pEU3XxBHzdKgqovu+HQBLlxhi1/+D6FGR5FQ60iUjNQ3YWVh Z/wRcK7eQcWntPZ/ycjyLsBPfdIQaPw18ymB7YLKohdnGtWJC8h0BtPOIFgo0H+NQGDh 2Y3hXYrgN0q1W5sE0xBIbLWVT1G8Qb3yCDRX58q0TdG4W89B5vtUD3ZA1yhCVIYJf09S SpXqBPELdxN43OMQuAmhE7DMEp7e0sz+ZglQ/bSbGkZBPfG/bbLK4QPkJd/qvjdHziju 2N+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=pQCJMws5; 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 3si11834747pll.281.2019.05.11.08.25.56; Sat, 11 May 2019 08:26:14 -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=pQCJMws5; 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 S1728653AbfEKPI0 (ORCPT + 99 others); Sat, 11 May 2019 11:08:26 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:60811 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728572AbfEKPIZ (ORCPT ); Sat, 11 May 2019 11:08:25 -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=fz0TG2HVuHdCB+n/eg0BGCxLCtFhcBm6HNAd+QooGbs=; b=pQCJMws5AnRYd+VxMdt16JRvXY Cg8XfvdVo2QLMT/Hl6SJBRKWZ8PaZKNRLUP71MIS9yHGPBvGujpTpgAbJ4yCoUlii4PO4GDUoXNZ+ qVphZ4oF6RHbaEZ8tO9KItJbV3r+ePD9vt3C/X3WMPI6+PPl8TJK+54+/dPB1MIt/zJM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hPTbn-0003X7-1b; Sat, 11 May 2019 17:08:19 +0200 Date: Sat, 11 May 2019 17:08: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: <20190511150819.GF4889@lunn.ch> References: <16f75ff4-e3e3-4d96-b084-e772e3ce1c2b@gmail.com> <742a2235-4571-aa7d-af90-14c708205c6f@gmail.com> <11446b0b-c8a4-4e5f-bfa0-0892b500f467@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <11446b0b-c8a4-4e5f-bfa0-0892b500f467@gmail.com> 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 On Sat, May 11, 2019 at 04:46:40PM +0200, Vicente Bergas wrote: > On Friday, May 10, 2019 10:28:06 PM CEST, Heiner Kallweit wrote: > >On 10.05.2019 17:05, Vicente Bergas wrote: > >>Hello, > >>there is a regression on linux v5.1-9573-gb970afcfcabd with a kernel null > >>pointer dereference. > >>The issue is the commit f81dadbcf7fd067baf184b63c179fc392bdb226e > >> net: phy: realtek: Add rtl8211e rx/tx delays config ... > >The page operation callbacks are missing in the RTL8211E driver. > >I just submitted a fix adding these callbacks to few Realtek PHY drivers > >including RTl8211E. This should fix the issue. > > Hello Heiner, > just tried your patch and indeed the NPE is gone. But still no network... > The MAC <-> PHY link was working before, so, maybe the rgmii delays are not > correctly configured. Hi Vicente What phy-mode do you have in device tree? Have you tried the others? rmgii rmgii-id rmgii-rxid rmgii-txid Andrew