Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2355417imm; Wed, 16 May 2018 11:33:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqhGJd+tdHBFitBBUA8G2afzcUMLqjN0awGJMm9W/x3/gAB++45xiO9rMQ5H6bh8GU2ugRN X-Received: by 2002:a63:3d0a:: with SMTP id k10-v6mr1621553pga.11.1526495599064; Wed, 16 May 2018 11:33:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526495599; cv=none; d=google.com; s=arc-20160816; b=lJ1S1QG7aRglTCC8HS1kI6hIl91eGL/2hTg9vYX1gq58/54QMcLZHnqeiXV3NyjwYx cKKDdF3WX60/kaTjRitsmeOYbpZ4Ul+sLGdMJAeVV3Ibg5SODgF/CQR7eDjFRNZgnnNY HezVWm/FpJwbsyq2ZY/zwZw3iZ6HJB0YZ3sEUVLQ1JBJ/dr/9nX4JdE06kvxAwuaar7y +ib3hzWtXtGvUravQ8YWxtvdKye86o0tGRjKqg3FnvrNc/Zl1IVbR+CW4VlW4+0mIuBA AzwWCQ22c4jV0knF4pk0xczosPgwRW/4HToFrZyNgsyY8JRE5f980X2V8lIxo4lOE82t P/7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=2625rJdLnycoxTrQL9zI/dE1DQ20eShwN1Wg8gg0lsY=; b=KoHIWzNKVfEP2fGOn92yOfruaYvQpRcoAD+xWAynTf4fJbX8CKymmEYlprYobsU1dO X1D/QRBc+vTywJ/a58n6HVo6RnzdEDwsP6zFGxouKzMVXgTAxzZIuc7MR0r7ch51LU69 UytIK0PBupUn+swdf5Zb2UsQi+0ZMCQhRT2cJzTZeo7/lT/d+Z+iW8rT+7pf/tvz0wma feY8z+fqr4Kpisz9PO5coX7OkY/HQGcW9RhkGfl6MV/9VdwTgp3Aox5bt701tyxqRksu XJa3FNJMje+/o4TXZSzb1ffZwhr+pkT5sdrLUBWhZac7k8hlxvNdmOZV4itbQE68YwUn GKbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NW6oAWWU; 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 33-v6si3165077plf.308.2018.05.16.11.33.04; Wed, 16 May 2018 11:33:19 -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=@gmail.com header.s=20161025 header.b=NW6oAWWU; 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 S1752054AbeEPScO (ORCPT + 99 others); Wed, 16 May 2018 14:32:14 -0400 Received: from mail-wr0-f181.google.com ([209.85.128.181]:40908 "EHLO mail-wr0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751850AbeEPScM (ORCPT ); Wed, 16 May 2018 14:32:12 -0400 Received: by mail-wr0-f181.google.com with SMTP id v60-v6so2665051wrc.7; Wed, 16 May 2018 11:32:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=2625rJdLnycoxTrQL9zI/dE1DQ20eShwN1Wg8gg0lsY=; b=NW6oAWWU/L6K6NPDXFFcKy7seseVqxlvBDf+KkmQhbsYjXlt5Ngm9hdLekkEtOc/0s 43y/Y+QiyxZkerr3PRdTYj2rqKjsPQdzdKJ0g6p2vYih0TAGy8HTIb7Yy71U8ci92uYg eplirl/tCycVfzBRUykzSTZHMPZo4M1SM2QOtSBG+re5AjrFItLZh57hy/ePzvOU6+k/ 34msgdCg0JWgluujCDKfcClBFKY9h1aR2qeMn9sk+3NBoMBM5sM+uoKF4Xj1q5NRYZXK QYEVbTFdaVDcyS0ybdtHv31H7zxKSs5UsKoSyOnCMb5ysLPhTQpJbeuKwiOd/Rs4iJc7 pSwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=2625rJdLnycoxTrQL9zI/dE1DQ20eShwN1Wg8gg0lsY=; b=JO7f/mqDkFRbX4ruvrgGeCU8XGKFVvbT6dE+wrXNTmuRsYcT73dPWjZF5vz8n0AM46 yOPQC1EZccM0I/D6OHalOySvorYHeCM6OPsVDAVkKv6pxis0jNTJC87ZUmgA3nwvowNj RoIlv4D7SVvoWyIu1QKcrW9evu+ngIjjE2K2TmSnyewleS7bIAXcCD50Yt41kDwPSNmt Yeh2QZ2IuKPq+1blwDmeWhORdPoyf5ta9hFUlpK1FOCFlxCRQZmbktd1UeOhG5VJTTVZ OjoqdWSCiCQuXSYlxRg9pHflb7yzlszevzMo3gXq2a4Q7ha/jM9M+0Xb0/+PlgMOvGBU n0Jg== X-Gm-Message-State: ALKqPweBQCZSQFeM6+cKUMmifZCHeWh+YtYYsbsehjprNzt53r3Pq+1X vH8+HxiXXesAO25lgskBDWY= X-Received: by 2002:adf:ea90:: with SMTP id s16-v6mr1659084wrm.17.1526495530730; Wed, 16 May 2018 11:32:10 -0700 (PDT) Received: from Red ([2a01:cb1d:147:7200:2e56:dcff:fed2:c6d6]) by smtp.googlemail.com with ESMTPSA id f83-v6sm5373903wmh.32.2018.05.16.11.32.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 May 2018 11:32:10 -0700 (PDT) Date: Wed, 16 May 2018 20:32:08 +0200 From: Corentin Labbe To: Jose.Abreu@synopsys.com, davem@davemloft.net, alexandre.torgue@st.com, peppe.cavallaro@st.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [BUG] net: stmmac: dwmac-sun8i broken in linux-next Message-ID: <20180516183208.GA17778@Red> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ? Regards