Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp462787imu; Wed, 21 Nov 2018 23:53:26 -0800 (PST) X-Google-Smtp-Source: AFSGD/W1E9s4G/xPtEmOXtuOII4ksPEiV5mN+IeQ8aCvMGcTKPZl9lrJjf99An7+mdHCE1uX4CFM X-Received: by 2002:a63:6506:: with SMTP id z6mr9065705pgb.334.1542873206835; Wed, 21 Nov 2018 23:53:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542873206; cv=none; d=google.com; s=arc-20160816; b=ycy8rLvYvnUdjhgdEd8Bky7ifUZ5lgJJUBYymdElg7mQmTgG8nHXQu7yf3XGI9LVIX YkgZGV5mVrUuhQnn3cTpMtlg0BCODiqs3NPF0PA96Po3pPhLLZUv+JR6+5jnG2LiDsry jy7ki7w1LbEKVIjazzZ+14HMVCX7fLV7+hwZBQUPbCoPwKgolhz/jMj+vvObmzJbbtjt UhVGBIUNdexObgXVTr5mz6+hc3Iq64ZMUcwOla4hlxzPaledBdk1oPFRGu2xkbrag3SA u4XPEcz11SsU8ueC773jIJWNLZc6UZkFcVeqh6Z8deWS7cY8Qmt76sDuDPitNGVrmTKE DI4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature; bh=bxDiRSde1dR+A9EgYOp57mlXagmRux/muba4EEXkYzc=; b=oq8RXILWoErhgGX+tvm+n0FnFZasLPJuEtG+vQyPg3EsK3TMCJ1l6ohVNutPnN6b// pskFGjTnekR+FVkQD/LyxER31z0bbq4Xsoy9yGwRwGSH+tQuamts/czNuvjhORUNmVlE f47aelbCGxDghZt6EqYT92x6qGwlHV29twc6lLQAM9JVwK7/IkNADvm7skaeASkxUU4d X6kf44OjZIfUv2/2Q5T3sZ0zu/1XTk8DTvxs719A4VLYFTDcqQzVrlvdGVtTAH6f+GF6 9U6+UV6fumKBr2ExUB8iPtZ2zmkAyo/wR3ZWZLBxNCYA3EToMUaixcIU2N3qOU50fnpY 4Cuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ucfbhv6n; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e8si6581130pfc.248.2018.11.21.23.53.05; Wed, 21 Nov 2018 23:53:26 -0800 (PST) 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=pass header.i=@gmail.com header.s=20161025 header.b=ucfbhv6n; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389436AbeKVH2T (ORCPT + 99 others); Thu, 22 Nov 2018 02:28:19 -0500 Received: from mail-wr1-f44.google.com ([209.85.221.44]:35788 "EHLO mail-wr1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729232AbeKVH2T (ORCPT ); Thu, 22 Nov 2018 02:28:19 -0500 Received: by mail-wr1-f44.google.com with SMTP id 96so7120340wrb.2; Wed, 21 Nov 2018 12:52:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=bxDiRSde1dR+A9EgYOp57mlXagmRux/muba4EEXkYzc=; b=ucfbhv6n54hKl/584JiiJInsd6NMd7SgVXdsBdHYxCMk8yzrvVrnwPbNxUOLwln6I9 UECbFH6nhr6faHm6lGQlCBKoWB4YgEtl6fUQ4wjr3sh1JiCKJUd8t9iE9F5SqhKy+ilu uqm2iewFW1uKkrUKeMRIUqiCyyRtT7FJPFvasjhvewfEryDJEzFDnh+miATjku98QqdZ ztNNv1xAJ73vFC1OyaXQz/CqhuoyhHaLEg8ic+5O8cTNB2AIgZdLB8ltv47GJ+RPuLqh ploFpQ4+xFh9dvbkBVFR2NrPbkEI+9fIbWd6E4WrauiY1vW8wY+UenNhvmi5KEhR7IcR mLZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=bxDiRSde1dR+A9EgYOp57mlXagmRux/muba4EEXkYzc=; b=SEdSqYgIDEY619QqIiiBkZTId+9b7hCMfRufj/0OwYi6km70g7apiNgpzRoPG1uulj 2i/V/YAg/r+XVZDp3U7+JIQ5YWp6s020cZAU15R4wz2Kjk+5M75qHGpfgFeS2i+FaRdI 3GO7ctyeKkx3H1+DVbC5aLP9Qsu1HgvAFYydD91LP1a6i+xELTMb2g9ZpCGrX9PsStk7 RXevajRPfSXk9/zq9tsa9EjaTQDymo5Gv43yDcPyJ7FhvVO2HDa2AFgjjEqD7odKWhj3 aZ+5gv38wenn43OJMR+6uhCljFxLSeWSO0Om9xoGDk5zTx4Sw7Lx6suXkv39m2mAemCZ r1pg== X-Gm-Message-State: AA+aEWZw/ZqcRPhQhSZIzcmDpwve11ZBjHWj7YUSkdz7KYxTLmDYjsX5 THWEE5OHwJk861hVkbWB0GWNOZAt X-Received: by 2002:adf:83a7:: with SMTP id 36mr7266603wre.13.1542833541176; Wed, 21 Nov 2018 12:52:21 -0800 (PST) Received: from ?IPv6:2003:ea:8bcf:e300:14d:188e:adb0:9ba6? (p200300EA8BCFE300014D188EADB09BA6.dip0.t-ipconnect.de. [2003:ea:8bcf:e300:14d:188e:adb0:9ba6]) by smtp.googlemail.com with ESMTPSA id c188-v6sm1038154wma.39.2018.11.21.12.52.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Nov 2018 12:52:20 -0800 (PST) Subject: Re: Issue with RTL8111 NIC after upgrade to kernel 4.19 From: Heiner Kallweit To: Andrew Lunn Cc: Norbert Jurkeit , nic_swsd@realtek.com, Florian Fainelli , davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, michael.wiktowy@gmail.com, jcline@redhat.com, marc.c.dionne@gmail.com References: <38dad61b-bc7f-7038-6d1b-f5c4afe3841c@gmail.com> <20181121202034.GA10697@lunn.ch> <6aeba3d6-2292-1221-9be7-1c0bb7cbc203@gmail.com> Message-ID: <7d6362e1-e197-d338-d6b0-9036c3802e2c@gmail.com> Date: Wed, 21 Nov 2018 21:52:17 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <6aeba3d6-2292-1221-9be7-1c0bb7cbc203@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21.11.2018 21:49, Heiner Kallweit wrote: > On 21.11.2018 21:32, Heiner Kallweit wrote: >> On 21.11.2018 21:20, Andrew Lunn wrote: >>>> request_module() is supposed to be synchronous, however after some >>>> reading this may not be 100% guaranteed. Maybe the module init >>>> function on some systems isn't finished yet when request_module() >>>> returns. As a result the genphy driver may be used instead of >>>> the PHY version-specific driver. >>> >>> Hi Heiner >>> >>> That would be true for all PHYs i think. We would of noticed this >>> problem with other systems using other PHY drivers. >>> >>> Andrew >>> >> It could be a timing issue affecting certain systems only. At least >> for now I don't have a good explanation why loading the module via >> request_module() and loading it upfront manually makes a difference. >> >> One affected user just reported the PHY to be a RTL8211B. This is >> what I expected, because this PHY crashes when writing to the MMD >> registers (the MMD registers are used otherwise by this PHY). >> See also commit 0231b1a074c6 ("net: phy: realtek: Use the dummy >> stubs for MMD register access for rtl8211b"). >> >> Let's see whether the other affected systems use the same PHY >> version. >> > Next report is also about a RTL8211B and as I assumed: > - W/o manually loading the realtek module the genphy driver is used > and network fails. > - W/ manually loading the realtek module the proper RTL8211B PHY > driver is used and network works. > > So it seems that even after request_module() the PHY driver isn't > yet available when device and driver are matched. > > If further reports support this (pre-)analysis, then indeed it > seems to be a timing issue and a proper fix most likely is > difficult. As a workaround I could imagine to add a delay loop > after request_module() checking for a Realtek PHY driver via > driver_find(). When adding one small delay after this we should > be sufficiently sure that all Realtek PHY drivers are registered. > Uups, no. We talk about phylib here, not about the r8169 driver. So we need a different solution. >> Heiner >> >