Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3865771ybg; Fri, 25 Oct 2019 09:59:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqS4vpACxB8DXRuk3NgwRpGmGHzYElRDbBCx6T7uliUu+vePDqOsGswCB1dOTAOBEJXcw3 X-Received: by 2002:a50:b63b:: with SMTP id b56mr3458647ede.165.1572022759534; Fri, 25 Oct 2019 09:59:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572022759; cv=none; d=google.com; s=arc-20160816; b=Heszlz7gzNrK1AhiOi5TUE2/FpqdGzoN7VSioXnZPaugwm+GgjDkGmKYsi2jUv5uSK 5lXPJaMMJ2PuFbENEy9NKyhSSjxGWgDf4MmlAfNBxkNQ28ojBDRGVRpeXY8IiTjv8QFH PHoQh+PQnTJ4ZGVi84QqlxtnyvJZuD4D921v4Vh0I8Q92ol2xktEl4hvLQuR2ChealIm Yiqg2HadnrbUzHPqYBhdGhibRh6ak7CpXrK4wdK0xulhzLbQzFd0wYg8M38/A2TWfaij p/78tQz4RAOTAS3jdO54wFWxCOfPXPtsUWII7JI1d4e25QSHWaJJIzs54LhUv7u/WP61 aXLg== 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; bh=FCQb1pikmTLjg31x5mSBH1yP/V61CCVvvwSJeUq55DA=; b=QGYU99qQsB3aYvLH+UtiLVjUQwAkoTSrYDIIpjRw9bwfglsaMLjg+QXhCY7vqwerSk GCOjuiRvsNlPIkEgFCrYiz3W54dtjIHMRVq6ihSESLATLUJT4gknF65HpBQZR1gTXRlu TeKuMfJlBfbz8V91s61Qf0vqcHSOgSZ0/4Fgd4TK5vH6vIgxR5oOAP5KFL7WEqzS7rR+ fsK+XudDb/QcirCTLnN5s/377kTbnglGcFAR+/4LoIFb6Jlum++kmk+/wMCBMK9HxYUm Sp1y4NoX28lR88aMvCs6BZt5umSYexUTysBZ5P1Wf2g1LaYEorwtl/8Hy0K0EzeYKjCw dXiQ== ARC-Authentication-Results: i=1; mx.google.com; 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 p8si1664422ejf.305.2019.10.25.09.58.20; Fri, 25 Oct 2019 09:59: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; 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 S2389658AbfJXOMW (ORCPT + 99 others); Thu, 24 Oct 2019 10:12:22 -0400 Received: from mx2.suse.de ([195.135.220.15]:42040 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2502740AbfJXOMT (ORCPT ); Thu, 24 Oct 2019 10:12:19 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 733B2B28E; Thu, 24 Oct 2019 14:12:17 +0000 (UTC) Date: Thu, 24 Oct 2019 16:12:16 +0200 From: Daniel Wagner To: Sebastian Andrzej Siewior Cc: Jakub Kicinski , UNGLinuxDriver@microchip.com, netdev@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rt-users@vger.kernel.org, Woojung Huh , Marc Zyngier , Andrew Lunn , Stefan Wahren , Jisheng Zhang , Thomas Gleixner Subject: Re: [PATCH] net: usb: lan78xx: Use phy_mac_interrupt() for interrupt handling Message-ID: <20191024141216.wz2dcdxy4mrl2q5a@beryllium.lan> References: <20191018082817.111480-1-dwagner@suse.de> <20191018131532.dsfhyiilsi7cy4cm@linutronix.de> <20191022101747.001b6d06@cakuba.netronome.com> <20191023074719.gcov5xfrcvns5tlg@beryllium.lan> <20191023080640.zcw2f2v7fpanoewm@beryllium.lan> <20191024104317.32bp32krrjmfb36p@linutronix.de> <20191024110610.lwwy75dkgwjdxml6@beryllium.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191024110610.lwwy75dkgwjdxml6@beryllium.lan> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 24, 2019 at 01:06:10PM +0200, Daniel Wagner wrote: > [ 3.719647] lan78xx 1-1.1.1:1.0 (unnamed net_device) (uninitialized): deferred multicast write 0x00007ca0 > [ 3.861125] lan78xx 1-1.1.1:1.0 (unnamed net_device) (uninitialized): No External EEPROM. Setting MAC Speed > [ 3.872500] libphy: lan78xx-mdiobus: probed > [ 3.883927] lan78xx 1-1.1.1:1.0 (unnamed net_device) (uninitialized): registered mdiobus bus usb-001:004 > [ 3.893600] lan78xx 1-1.1.1:1.0 (unnamed net_device) (uninitialized): phydev->irq = 79 > [ 4.274367] random: crng init done > [ 4.929478] lan78xx 1-1.1.1:1.0 eth0: receive multicast hash filter > [ 4.935922] lan78xx 1-1.1.1:1.0 eth0: deferred multicast write 0x00007ca2 > [ 6.537962] lan78xx 1-1.1.1:1.0 eth0: PHY INTR: 0x00020000 > [ 6.549129] lan78xx 1-1.1.1:1.0 eth0: speed: 1000 duplex: 1 anadv: 0x05e1 anlpa: 0xc1e1 > [ 6.557293] lan78xx 1-1.1.1:1.0 eth0: rx pause disabled, tx pause disabled > [ 6.572581] Sending DHCP requests ..., OK > [ 12.200693] IP-Config: Got DHCP answer from 192.168.19.2, my address is 192.168.19.53 > [ 12.208654] IP-Config: Complete: > [ 12.211929] device=eth0, hwaddr=b8:27:eb:85:c7:c9, ipaddr=192.168.19.53, mask=255.255.255.0, gw=192.168.19.1 > [ 12.222350] host=192.168.19.53, domain=, nis-domain=(none) > [ 12.228364] bootserver=192.168.19.2, rootserver=192.168.19.2, rootpath= > [ 12.228369] nameserver0=192.168.19.2 > [ 12.239812] ALSA device list: > [ 12.242839] No soundcards found. > [ 12.256896] VFS: Mounted root (nfs filesystem) on device 0:19. > [ 12.263501] devtmpfs: mounted > [ 12.273037] Freeing unused kernel memory: 5504K > [ 12.277769] Run /sbin/init as init process Sebastians suggested to try the RPi kernel. The rpi-5.2.y kernel behaves exactly the same. That is one PHY interrupt and later on NFS timeouts. According their website the current shipped RPi kernel is in version 4.18. Here is what happends with rpi-4.18.y: [ 3.359058] lan78xx 1-1.1.1:1.0 (unnamed net_device) (uninitialized): deferred multicast write 0x00007ca0 [ 3.500910] lan78xx 1-1.1.1:1.0 (unnamed net_device) (uninitialized): No External EEPROM. Setting MAC Speed [ 3.517693] libphy: lan78xx-mdiobus: probed [ 3.521970] lan78xx 1-1.1.1:1.0 (unnamed net_device) (uninitialized): registered mdiobus bus usb-001:004 [ 3.532219] lan78xx 1-1.1.1:1.0 eth0: phydev->irq = 150 [ 3.843609] lan78xx 1-1.1.1:1.0 eth0: receive multicast hash filter [ 3.850085] lan78xx 1-1.1.1:1.0 eth0: deferred multicast write 0x00007ca2 [ 3.876059] random: crng init done [ 6.563736] lan78xx 1-1.1.1:1.0 eth0: PHY INTR: 0x00020000 [ 6.569331] lan78xx 1-1.1.1:1.0 eth0: PHY INTR: 0x00020000 [ 6.582759] lan78xx 1-1.1.1:1.0 eth0: speed: 1000 duplex: 1 anadv: 0x05e1 anlpa: 0xc1e1 [ 6.590889] lan78xx 1-1.1.1:1.0 eth0: rx pause disabled, tx pause disabled [ 6.603222] Sending DHCP requests .. [ 12.323251] Voltage normalised (0x00000000) [ 13.723234] ., OK [ 13.765259] IP-Config: Got DHCP answer from 192.168.19.2, my address is 192.168.19.53 [ 13.773250] IP-Config: Complete: [ 13.776552] device=eth0, hwaddr=b8:27:eb:85:c7:c9, ipaddr=192.168.19.53, mask=255.255.255.0, gw=192.168.19.1 [ 13.786990] host=192.168.19.53, domain=, nis-domain=(none) [ 13.793029] bootserver=192.168.19.2, rootserver=192.168.19.2, rootpath= [ 13.793035] nameserver0=192.168.19.2 There are no NFS timeouts and commands like 'apt update' work reasoble fast. So no long delays or hangs. Time to burn this hardware.