Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21862088ybl; Mon, 6 Jan 2020 12:51:38 -0800 (PST) X-Google-Smtp-Source: APXvYqwR0xf3rxWdFsrc30bcf1VW9Dgtvo6kYdUfgMYZdztf/OGEVg3WHJwdxoHCyRYsAFJOQrZL X-Received: by 2002:a05:6830:139a:: with SMTP id d26mr120651702otq.75.1578343897799; Mon, 06 Jan 2020 12:51:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578343897; cv=none; d=google.com; s=arc-20160816; b=wJVlD9AJe72iAiTGu4XJidexdN4p7x8TBIX/Qz0iejPd3hrcEfx0bY0Rtytw7Vj28/ 67Isf1IUVQiHA+e8v6g/kjw+hRnynPHTL1V7K8bVJoCJjK5ntr6kme5Vur3/tKmo5tbG dS1b66AkAieJjE4H9cAU6Kw5ElHeMkiHMXr65xIeuxptK5CQODXclcOaaJ61rrwSwvp2 DftqnKodfF+BUBIhRmHxwecFjGyS7b6TtM72A8YQDdtynaJjh4IMPIOGADpX9P4rekFc +i6IZjmF9QHih1gkVuaLnS5Oc91kOvznHL7M5UGBna+db22qArSx1K6/0of2tjD0889Y LwHA== 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:autocrypt:from:references:cc:to:subject:dkim-signature; bh=BuPEyza3GZ2kJMIldpXVSw9iuf937T+5+sT3lcdzid0=; b=Cz10FIykW0Uzdk6ypFVw+F8P4Y7XRytU8PaeMTjJHWi42Zjwo0PVNwlKR2dUjqeWon fPBYlr7BVHghd7LqA71tqujt0CYgnd6X7nwEM4C3ZWAJRT92w1XfCt71femhOkiasV6j AU3LXu4gtN4YjvdhBndgBBiPRJJtm2WHhFCwks6Wrr+Sc6EswYb0w+if2lZkWDA35u4Y YnJQgkceIaSiNv+zkBp5yi0jtopM+15RKbM+kHrAzlHIgX82bI+tZfCeJf/HXivObyqJ v+f0MWdlGoTEpxI0VhVRia9cKYpwLkCMDoxT6Sqe0UaaegftRfc+uHm/1YuZnKjgHVI3 66hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XiwSRSua; 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 z194si34088199oia.50.2020.01.06.12.51.25; Mon, 06 Jan 2020 12:51:37 -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=XiwSRSua; 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 S1727259AbgAFUuP (ORCPT + 99 others); Mon, 6 Jan 2020 15:50:15 -0500 Received: from mail-ed1-f67.google.com ([209.85.208.67]:33039 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726713AbgAFUuP (ORCPT ); Mon, 6 Jan 2020 15:50:15 -0500 Received: by mail-ed1-f67.google.com with SMTP id r21so48555196edq.0; Mon, 06 Jan 2020 12:50:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:autocrypt:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=BuPEyza3GZ2kJMIldpXVSw9iuf937T+5+sT3lcdzid0=; b=XiwSRSuar+rkEWCedTTw7PBZDOAiqfHiOdXvD8HbyI0vVWZznS3kvBEMxn650RGvBD hK+rRebNnU/Oc1UC0fi018MU5bY7y3+oOoyYcVlp+Avy+tKyLW53OldhiCFPpLU98a4U tPqfhO1XGICJYeJXs7u58uPLm4vLHL4ILgM++H1l/UCkxrg25XL4h3bt0oQkTKcxS2C2 XIfk7TP+EEX1yt1MiHE8Zl+URuj2+UhSAPqcKSFVKy1rXBUx0PGKGp+EngGfyfHaMPR1 Dv2L6TzQu7lERqynzKj9gi5CovSOzTfdAvPac9UFJhbysUsHDiR0aPYc4t29xLNeLWoH njXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=BuPEyza3GZ2kJMIldpXVSw9iuf937T+5+sT3lcdzid0=; b=np4Hg74ESR807Qaie9WoeUp5oFkXOTp7+NCKIjurCKldQasjqB6/sihQUuEFkz8yBI Vev4KmBNiGqrWczYD41KqDogQgIkQh/nPzNN/9QJoVsvVnvLrm45xdRqKR8ZOP5iuwaP 1R5EUGAbq6oUJLPb3HxoxwNcIPLD71oLR50VV9R8nj6YuZ2GVLbXqZ36MKaEU21JT18F A3bZrS9/03Xu67VNMVhc0Dj+pCXnHd1OMzauvpZlzQ6cLhXd3Ww/NkNSnZoDVkClebiU WRFg2yzK222LqtQK+K3g4tLf993jq2c0OwVI0mBJErRI4vh6ep1i+lkD+YlhsYVRf/yY +QLg== X-Gm-Message-State: APjAAAUE4Dkdgc+VFr2sZ5YUlQXQFOY5+gWJB583nHGM40RpY6c3F3IU J40mW3D6aFLaKXHsBQMO6RyU9o5r X-Received: by 2002:aa7:ccc7:: with SMTP id y7mr111376554edt.45.1578343811946; Mon, 06 Jan 2020 12:50:11 -0800 (PST) Received: from [10.67.50.41] ([192.19.223.252]) by smtp.googlemail.com with ESMTPSA id p6sm8052810eja.63.2020.01.06.12.50.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Jan 2020 12:50:10 -0800 (PST) Subject: Re: [PATCH] net: stmmac: platform: Fix MDIO init for platforms without PHY To: =?UTF-8?Q?Heiko_St=c3=bcbner?= Cc: linux-arm-kernel@lists.infradead.org, David Miller , sriram.dash@samsung.com, p.rajanbabu@samsung.com, pankaj.dubey@samsung.com, Jose.Abreu@synopsys.com, jayati.sahu@samsung.com, alexandre.torgue@st.com, rcsekar@samsung.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org, peppe.cavallaro@st.com, linux-stm32@st-md-mailman.stormreply.com References: <1700835.tBzmY8zkgn@diego> <1599392.7x4dJXGyiB@diego> From: Florian Fainelli Autocrypt: addr=f.fainelli@gmail.com; prefer-encrypt=mutual; keydata= xsDiBEjPuBIRBACW9MxSJU9fvEOCTnRNqG/13rAGsj+vJqontvoDSNxRgmafP8d3nesnqPyR xGlkaOSDuu09rxuW+69Y2f1TzjFuGpBk4ysWOR85O2Nx8AJ6fYGCoeTbovrNlGT1M9obSFGQ X3IzRnWoqlfudjTO5TKoqkbOgpYqIo5n1QbEjCCwCwCg3DOH/4ug2AUUlcIT9/l3pGvoRJ0E AICDzi3l7pmC5IWn2n1mvP5247urtHFs/uusE827DDj3K8Upn2vYiOFMBhGsxAk6YKV6IP0d ZdWX6fqkJJlu9cSDvWtO1hXeHIfQIE/xcqvlRH783KrihLcsmnBqOiS6rJDO2x1eAgC8meAX SAgsrBhcgGl2Rl5gh/jkeA5ykwbxA/9u1eEuL70Qzt5APJmqVXR+kWvrqdBVPoUNy/tQ8mYc nzJJ63ng3tHhnwHXZOu8hL4nqwlYHRa9eeglXYhBqja4ZvIvCEqSmEukfivk+DlIgVoOAJbh qIWgvr3SIEuR6ayY3f5j0f2ejUMYlYYnKdiHXFlF9uXm1ELrb0YX4GMHz80nRmxvcmlhbiBG YWluZWxsaSA8Z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3626c7f@gmail.com> Date: Mon, 6 Jan 2020 12:50:05 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: <1599392.7x4dJXGyiB@diego> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 1/5/20 3:05 PM, Heiko Stübner wrote: > Hi Florian, > > Am Sonntag, 5. Januar 2020, 23:22:00 CET schrieb Florian Fainelli: >> On 1/5/2020 12:43 PM, Heiko Stübner wrote: >>> Am Samstag, 21. Dezember 2019, 06:29:18 CET schrieb David Miller: >>>> From: Padmanabhan Rajanbabu >>>> Date: Thu, 19 Dec 2019 15:47:01 +0530 >>>> >>>>> The current implementation of "stmmac_dt_phy" function initializes >>>>> the MDIO platform bus data, even in the absence of PHY. This fix >>>>> will skip MDIO initialization if there is no PHY present. >>>>> >>>>> Fixes: 7437127 ("net: stmmac: Convert to phylink and remove phylib logic") >>>>> Acked-by: Jayati Sahu >>>>> Signed-off-by: Sriram Dash >>>>> Signed-off-by: Padmanabhan Rajanbabu >>>> >>>> Applied and queued up for -stable, thanks. >>> >>> with this patch applied I now run into issues on multiple rockchip >>> platforms using a gmac interface. >> >> Do you have a list of DTS files that are affected by any chance? For the >> 32-bit platforms that I looked it, it seems like: >> >> arch/arm/boot/dts/rk3228-evb.dts is OK because it has a MDIO bus node >> arch/arm/boot/dts/rk3229-xms6.dts is also OK >> >> arch/arm/boot/dts/rk3229-evb.dts is probably broken, there is no >> phy-handle property or MDIO bus node, so it must be relying on >> auto-scanning of the bus somehow that this patch broke. >> >> And likewise for most 64-bit platforms except a1 and nanopi4. > > I primarily noticed that on the px30-evb.dts and the internal board I'm > working on right now. Both don't have that mdio bus node right now. > > >>> When probing the driver and trying to establish a connection for a nfsroot >>> it always runs into a null pointer in mdiobus_get_phy(): >>> >>> [ 26.878839] rk_gmac-dwmac ff360000.ethernet: IRQ eth_wake_irq not found >>> [ 26.886322] rk_gmac-dwmac ff360000.ethernet: IRQ eth_lpi not found >>> [ 26.894505] rk_gmac-dwmac ff360000.ethernet: PTP uses main clock >>> [ 26.908209] rk_gmac-dwmac ff360000.ethernet: clock input or output? (output). >>> [ 26.916269] rk_gmac-dwmac ff360000.ethernet: Can not read property: tx_delay. >>> [ 26.924297] rk_gmac-dwmac ff360000.ethernet: set tx_delay to 0x30 >>> [ 26.931150] rk_gmac-dwmac ff360000.ethernet: Can not read property: rx_delay. >>> [ 26.939166] rk_gmac-dwmac ff360000.ethernet: set rx_delay to 0x10 >>> [ 26.946021] rk_gmac-dwmac ff360000.ethernet: integrated PHY? (no). >>> [ 26.953032] rk_gmac-dwmac ff360000.ethernet: cannot get clock clk_mac_refout >>> [ 26.966161] rk_gmac-dwmac ff360000.ethernet: init for RMII >>> [ 26.972633] rk_gmac-dwmac ff360000.ethernet: User ID: 0x10, Synopsys ID: 0x35 >>> [ 26.980830] rk_gmac-dwmac ff360000.ethernet: DWMAC1000 >>> [ 26.986735] rk_gmac-dwmac ff360000.ethernet: DMA HW capability register supported >>> [ 26.995145] rk_gmac-dwmac ff360000.ethernet: RX Checksum Offload Engine supported >>> [ 27.003540] rk_gmac-dwmac ff360000.ethernet: COE Type 2 >>> [ 27.009408] rk_gmac-dwmac ff360000.ethernet: TX Checksum insertion supported >>> [ 27.017320] rk_gmac-dwmac ff360000.ethernet: Wake-Up On Lan supported >>> [ 27.024577] rk_gmac-dwmac ff360000.ethernet: Normal descriptors >>> [ 27.031211] rk_gmac-dwmac ff360000.ethernet: Ring mode enabled >>> [ 27.037743] rk_gmac-dwmac ff360000.ethernet: Enable RX Mitigation via HW Watchdog Timer >>> [ 27.209823] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000398 >>> 2IP-Config: eth0 hardware address 66:e4:9b:b1:30:c3 mtu 1500 DHCP >>> 7.219681] Mem abort info: >>> [ 27.229322] ESR = 0x96000006 >>> [ 27.229328] EC = 0x25: DABT (current EL), IL = 32 bits >>> [ 27.229330] SET = 0, FnV = 0 >>> [ 27.229332] EA = 0, S1PTW = 0 >>> [ 27.229334] Data abort info: >>> [ 27.229336] ISV = 0, ISS = 0x00000006 >>> [ 27.229338] CM = 0, WnR = 0 >>> [ 27.229342] user pgtable: 4k pages, 48-bit VAs, pgdp=000000003e7d4000 >>> [ 27.229345] [0000000000000398] pgd=0000000036739003, pud=0000000035894003, pmd=0000000000000000 >>> [ 27.273398] Internal error: Oops: 96000006 [#1] SMP >>> [ 27.273403] Modules linked in: smsc95xx smsc75xx ax88179_178a asix usbnet panel_leadtek_ltk500hd1829 dwmac_rk stmmac_platform stmmac rockchipdrm phy_rockchip_inno_dsidphy analogix_dp dw_hdmi cec r >>> c_core dw_mipi_dsi drm_kms_helper rtc_rk808 drm drm_panel_orientation_quirks >>> [ 27.305785] CPU: 3 PID: 1388 Comm: ipconfig Not tainted 5.5.0-rc4-00934-gd57e566e6874 #1463 >>> [ 27.305790] Hardware name: Theobroma Systems Cobra with Leadtek Display (DT) >>> [ 27.323006] pstate: 40000005 (nZcv daif -PAN -UAO) >>> [ 27.323020] pc : mdiobus_get_phy+0x4/0x20 >>> [ 27.332867] lr : stmmac_open+0x780/0xa78 [stmmac] >>> [ 27.332872] sp : ffff80001113b9a0 >>> [ 27.341823] x29: ffff80001113b9a0 x28: 0000000000401003 >>> [ 27.347761] x27: ffff00003d5cf200 x26: 0000000000000000 >>> [ 27.353699] x25: 0000000000000001 x24: 0000000000000000 >>> [ 27.359636] x23: 0000000000001002 x22: ffff800008b790a0 >>> [ 27.365575] x21: ffff000035f84000 x20: 00000000ffffffff >>> [ 27.371513] x19: ffff000035f84800 x18: 0000000000000000 >>> [ 27.377451] x17: 0000000000000000 x16: 0000000000000000 >>> [ 27.383389] x15: 0000000000000000 x14: ffffffffffffffff >>> [ 27.389328] x13: 0000000000000020 x12: 0101010101010101 >>> [ 27.395266] x11: 0000000000000003 x10: 0101010101010101 >>> [ 27.401203] x9 : fffffffffffffffd x8 : 7f7f7f7f7f7f7f7f >>> [ 27.407143] x7 : fefefeff646c606d x6 : 1e091448e4e5f6e9 >>> [ 27.413074] x5 : 697665644814091e x4 : 8080808000000000 >>> [ 27.419013] x3 : 8343c96b232bb348 x2 : ffff00003d63f880 >>> [ 27.424953] x1 : fffffffffffffff8 x0 : 0000000000000000 >>> [ 27.430882] Call trace: >>> [ 27.433620] mdiobus_get_phy+0x4/0x20 >>> [ 27.437715] __dev_open+0xe4/0x160 >>> [ 27.441515] __dev_change_flags+0x160/0x1b8 >>> [ 27.446191] dev_change_flags+0x20/0x60 >>> [ 27.450478] devinet_ioctl+0x66c/0x738 >>> [ 27.454666] inet_ioctl+0x2f4/0x360 >>> [ 27.458565] sock_do_ioctl+0x44/0x2b0 >>> [ 27.462657] sock_ioctl+0x1c8/0x508 >>> [ 27.466556] do_vfs_ioctl+0x604/0xbd0 >>> [ 27.470646] ksys_ioctl+0x78/0xa8 >>> [ 27.474351] __arm64_sys_ioctl+0x1c/0x28 >>> [ 27.478737] el0_svc_common.constprop.0+0x68/0x160 >>> [ 27.484083] el0_svc_handler+0x20/0x80 >>> [ 27.488273] el0_sync_handler+0x10c/0x180 >>> [ 27.492753] el0_sync+0x140/0x180 >>> [ 27.496462] Code: 97ffffb0 a8c17bfd d65f03c0 8b21cc01 (f941d020) >>> [ 27.503275] ---[ end trace 6f6ca54e66af6d48 ]--- >>> >>> With the expected output being normally at this point: >>> [ 18.575321] rk_gmac-dwmac ff360000.ethernet eth0: PHY [stmmac-0:00] driver [RTL8201F Fast Ethernet] >>> [ 18.602975] rk_gmac-dwmac ff360000.ethernet eth0: No Safety Features support found >>> [ 18.611505] rk_gmac-dwmac ff360000.ethernet eth0: PTP not supported by HW >>> [ 18.619117] rk_gmac-dwmac ff360000.ethernet eth0: configuring for phy/rmii link mode >>> [ 22.719478] rk_gmac-dwmac ff360000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx >>> >>> or >>> >>> [ 27.326984] rk_gmac-dwmac ff360000.ethernet eth0: PHY [stmmac-0:00] driver [Generic PHY] >>> [ 27.353543] rk_gmac-dwmac ff360000.ethernet eth0: No Safety Features support found >>> [ 27.362055] rk_gmac-dwmac ff360000.ethernet eth0: PTP not supported by HW >>> [ 27.369663] rk_gmac-dwmac ff360000.ethernet eth0: configuring for phy/rmii link mode >>> [ 29.406784] rk_gmac-dwmac ff360000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx >>> >>> >>> This is torvalds git head and it was still working at -rc1 and all kernels >>> before that. When I just revert this commit, things also start working >>> again, so I guess something must be wrong here? >> >> Yes, this was also identified to be problematic by the kernelci boot >> farms on another platform, see [1]. >> >> [1]: >> https://lore.kernel.org/linux-arm-kernel/5e0314da.1c69fb81.a7d63.29c1@mx.google.com/ >> >> Do you mind trying this patch and letting me know if it works for you. >> Sriram, please also try it on your platforms and let me know if solves >> the problem you were after. Thanks > > Works on both boards I had that were affected, so > Tested-by: Heiko Stuebner Thanks Heiko, I am keen on submitting the revert of the affected commit, submit the second part where we actually ensure that the MDIO bus controller node is available as net-next material, so hopefully the guys at Samsung can test and response whether it fixes the problem they were initially after. -- Florian