Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3024256imm; Thu, 17 May 2018 01:58:27 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo9mn8ACHD/xuw6YPjMOB9qk2HZ7zlBtsZoZH6+3fKm4T6QQ13hNFQWnh45II4WDytlcQrf X-Received: by 2002:a62:5c06:: with SMTP id q6-v6mr4421860pfb.118.1526547507692; Thu, 17 May 2018 01:58:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526547507; cv=none; d=google.com; s=arc-20160816; b=o40HyrncbcJoRAnzaEpfFRTeUZxoSH9fBC0sPKD6vKTw5/qjWGxiNvbAwkkJpoXvBf 0v0GWdOUMjLBGFABZ+00MCg4uQob2OPKdYGKc7Nqhr4swYDNqtQFij67iNJHNrQuaUkp UPTnbuPvap3DTiDrwzf/7Wi/QWmnz0kd6+QjIB9Uj3+ZsCNrUMjVb5eVsstlAKZtf3nc mBpk6ZSgi3DSM6D/ke0YEBMY/XbHwirG3Tm0G7RUQVCmsyuBmQr3eRJPTKFhjOwLfGOb Tg7CnrhrHf5X4PyxOdiu5z45xWPaegX1xpA1n5EBCwska74bpq/WAFL/HrTfyN8xhFey pFBg== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:dkim-signature:arc-authentication-results; bh=uzwy3JFyJ8k28xupuD4lnZZilQwX/Z48Bcgf5ZsuwKo=; b=AfjwFBEmY/6NPy23/oRyXLUJt7EdJxD3hu/VpiTzEN0Z+Feks5lg5LBQCal2s4RNSa dp0V3DAVJFNZlqmdwqv+mdBx/cuxOGFRDuHCZkpGVIjVz8WDS8qR9HCZS+tGB03G4SpS wnA0MS2rzjP2s14s+tRmTy6SwsXa4JxDcL8FG+F+9FCotnY9Jd+a+Dj584rgXIwBXHd0 +q3Z2wZp3G4QiexYpAGzlkLtUO6lGJgaXRz8+aZCQhG2l4gjZXLufYIXSxFQqur8Cj1c 5doOIl0aMKvzC49A5UADMEjbxnqZnka/nu1O6xFRgN4C8dnWVF36O7oDU4f8h3ObTzvz bZvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=CE5antNo; 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=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t5-v6si4675035plo.113.2018.05.17.01.58.13; Thu, 17 May 2018 01:58:27 -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=pass header.i=@synopsys.com header.s=mail header.b=CE5antNo; 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=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752073AbeEQI4i (ORCPT + 99 others); Thu, 17 May 2018 04:56:38 -0400 Received: from smtprelay.synopsys.com ([198.182.37.59]:51703 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750826AbeEQI4f (ORCPT ); Thu, 17 May 2018 04:56:35 -0400 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id 914B01E0004; Thu, 17 May 2018 10:56:33 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1526547393; bh=zUKP7+92lQX1t5WdZ582jSIPrtLMW6yL8ruoRAGwm2U=; h=Subject:To:References:CC:From:Date:In-Reply-To:From; b=CE5antNoCssv/PvDaxKeKUf9uS3FxVuzTKv/TyXGNi+8DkFiO9psphHWOKXgaC57E ew0Sb5F1FSPEKvnsq75/TN5dY1jKvBGNBCPBAGJvHoO16mwTlZEmgQ7q3FHH1YABWE XnvZoKMyQkHQ00dYKhdqRjYi7hov4M40GyD6zzSsVxjNiW4fgwFPhISk3nKaxmpLU1 Xrwm5iEv83WiT8rvcfi/Gkgwt0MS2oh51ar0XPC1Pkbg4fq6NLu5xzdCtGDxUxpjBf FUV+TmhOMjGkqba3Z+hqlpx2ptBdgN7xuOfGLGlOxWoqmb5rKR81PmXS7gRJk28ONR Ln1LBuO1fJblQ== Received: from us01wehtc1.internal.synopsys.com (us01wehtc1.internal.synopsys.com [10.12.239.235]) by mailhost.synopsys.com (Postfix) with ESMTP id E02A36305; Thu, 17 May 2018 01:56:32 -0700 (PDT) Received: from DE02WEHTCB.internal.synopsys.com (10.225.19.94) by us01wehtc1.internal.synopsys.com (10.12.239.235) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 17 May 2018 01:56:10 -0700 Received: from DE02WEHTCA.internal.synopsys.com (10.225.19.92) by DE02WEHTCB.internal.synopsys.com (10.225.19.94) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 17 May 2018 10:56:08 +0200 Received: from [10.0.2.15] (10.107.19.35) by DE02WEHTCA.internal.synopsys.com (10.225.19.80) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 17 May 2018 10:56:07 +0200 Subject: Re: [BUG] net: stmmac: dwmac-sun8i broken in linux-next To: Corentin Labbe , , , , References: <20180516183208.GA17778@Red> CC: , , From: Jose Abreu Message-ID: Date: Thu, 17 May 2018 09:56:03 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <20180516183208.GA17778@Red> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.107.19.35] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Corentin, On 16-05-2018 19:32, Corentin Labbe wrote: > Hello > > The dwmac-sun8i driver is broken in next-20180515, symptom are no RX and TX errors as shown by ifconfig: > eth0: flags=4163 mtu 1500 > inet 192.168.1.204 netmask 255.255.255.0 broadcast 192.168.1.255 > ether 96:75:ff:0d:f6:d8 txqueuelen 1000 (Ethernet) > RX packets 0 bytes 0 (0.0 B) > RX errors 0 dropped 0 overruns 0 frame 0 > TX packets 0 bytes 4956 (4.8 KiB) > TX errors 118 dropped 0 overruns 0 carrier 0 collisions 0 > > Reverting the following commit made the driver working: > 4dbbe8dde8485b89bce8bbbe7564337fd7eed69f ("net: stmmac: Add support for U32 TC filter using Flexible RX Parser") > 5f0456b43140af9413397cc11d03d18b9f2fc2fc ("net: stmmac: Implement logic to automatically select HW Interface") > > Note that reverting only 4dbbe8dde8485b89bce8bbbe7564337fd7eed69f lead to crash: > [ 31.385110] Backtrace: > [ 31.387576] [] (stmmac_open) from [] (__dev_open+0xe4/0x180) > [ 31.394972] r10:ed447d04 r9:edc5d010 r8:ef02002c r7:c08670a4 r6:00000000 r5:c0c08488 > [ 31.402793] r4:ef020000 > [ 31.405335] [] (__dev_open) from [] (__dev_change_flags+0x190/0x1e8) > [ 31.413421] r8:00001002 r7:c0c08488 r6:00001003 r5:00000001 r4:ef020000 > [ 31.420122] [] (__dev_change_flags) from [] (dev_change_flags+0x20/0x50) > [ 31.428555] r9:edc5d010 r8:ed447c18 r7:ef020134 r6:00000000 r5:00001002 r4:ef020000 > [ 31.436300] [] (dev_change_flags) from [] (do_setlink+0x28c/0xbdc) > [ 31.444213] r9:edc5d010 r8:ed447c18 r7:00000000 r6:c0c08488 r5:ed447b50 r4:ef020000 > [ 31.451955] [] (do_setlink) from [] (rtnl_newlink+0x54c/0x7a8) > [ 31.459522] r10:ed447d04 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:00000000 > [ 31.467343] r4:ef020000 > [ 31.469885] [] (rtnl_newlink) from [] (rtnetlink_rcv_msg+0x38c/0x544) > [ 31.478058] r10:ed447d04 r9:00000000 r8:ee242840 r7:00000000 r6:edc5d000 r5:c0c08488 > [ 31.485879] r4:00000000 > [ 31.488422] [] (rtnetlink_rcv_msg) from [] (netlink_rcv_skb+0xc0/0x118) > [ 31.496768] r10:c0c08488 r9:00000000 r8:00000020 r7:edc5d000 r6:c064466c r5:c0c08488 > [ 31.504589] r4:ee242840 > [ 31.507129] [] (netlink_rcv_skb) from [] (rtnetlink_rcv+0x18/0x1c) > [ 31.515042] r8:ed447d60 r7:ee242840 r6:00000020 r5:ee37d800 r4:ee5fac00 > [ 31.521742] [] (rtnetlink_rcv) from [] (netlink_unicast+0x190/0x1fc) > [ 31.529829] [] (netlink_unicast) from [] (netlink_sendmsg+0x3cc/0x410) > [ 31.538089] r10:00000000 r9:00000020 r8:014000c0 r7:ee242840 r6:ee37d800 r5:c0c08488 > [ 31.545910] r4:ed447f44 > [ 31.548452] [] (netlink_sendmsg) from [] (sock_sendmsg+0x1c/0x2c) > [ 31.556279] r10:00000000 r9:ed447edc r8:00000000 r7:eefce640 r6:00000000 r5:c0c08488 > [ 31.564100] r4:ed447f44 > [ 31.566640] [] (sock_sendmsg) from [] (___sys_sendmsg+0x250/0x264) > [ 31.574555] [] (___sys_sendmsg) from [] (__sys_sendmsg+0x58/0x94) > [ 31.582382] r10:00000000 r9:ed446000 r8:c01011c4 r7:eefce640 r6:00000000 r5:bec25150 > [ 31.590203] r4:c0c08488 > [ 31.592743] [] (__sys_sendmsg) from [] (sys_sendmsg+0x14/0x18) > [ 31.600307] r7:00000128 r6:bec2d17c r5:bec25144 r4:00093ee0 > [ 31.605969] [] (sys_sendmsg) from [] (ret_fast_syscall+0x0/0x28) > [ 31.613704] Exception stack(0xed447fa8 to 0xed447ff0) > [ 31.618756] 7fa0: 00093ee0 bec25144 00000003 bec25150 00000000 85ce0000 > [ 31.626929] 7fc0: 00093ee0 bec25144 bec2d17c 00000128 000942a8 5afc783a 00094000 bec25150 > [ 31.635099] 7fe0: 00000000 bec250f0 0000012c b6e10b5c > [ 31.640152] Code: e59a261c e59a013c e50b306c e592300c (e593300c) > [ 31.646632] ---[ end trace 407964b7deb937bf ]--- > > For the moment, I stil didnt find the issue. > What to we do now ? do you want that I send revert patchs ? No need for revert. I checked the patch and dwmac-sun8i implementation and I think I found the problem. I will send you a patch to test. Thanks and Best Regards, Jose Miguel Abreu > > Regards