Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp275792lqg; Thu, 11 Apr 2024 02:26:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXmjNZfHDppXi68+NrhO9ZN8SHvok/ufDIJx9I+Zlk+zE8GYMZb/7JfbeDtqIL0OGBOogonmFuGmRljWw/f3/Wd61IBl9QFSn3Hz3UdUw== X-Google-Smtp-Source: AGHT+IGXIB6cIV5t9ohPNuK9Ujo5TUPcXYLwx/kMvxXv0jblYrcsc9BA6LMBpr5QYIJJi0zYNZET X-Received: by 2002:a05:6a21:3982:b0:1a9:5760:62ea with SMTP id ad2-20020a056a21398200b001a9576062eamr5439172pzc.12.1712827565187; Thu, 11 Apr 2024 02:26:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712827565; cv=pass; d=google.com; s=arc-20160816; b=lHELfaBlYVYwLBOWWgw3+eBOBSBATkftQTbdTEY1VCya9KLj3M3LucvFPtCoFi+331 TdHnzFjcNZSX29gTtfg1jmPwd180CcKz/MQfPTODSh+jgRUv4/zv9GTqWdn/HtkP8NSJ EyRVCMmr9R7Nr1Vcl/Wngp+fr10t5T5iUY+z1PUwxukwk19+b8O8R0bf90QhxXWhrtIO c3CWgliKPzS+tfh+CfVhS633qUyoeY3zoreWX/UqDE5hjMW6HBbD4deVB4o5MZCfN/GL Kf5BX+FchH14GX6vzq+lKo64A0rygTM6b6srByNOsA63VWoYsnjm4ugb2TGi0iIpzVGN mEUQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=vKjOj/t4Yd+gG7pDolrHBzRHmNw6eOFJQo600f52EaQ=; fh=DHO88Nhqv/rPCj4hav9PSavNWwyCHscLHUYsaE4LQ+o=; b=xZzm8S4ZgW8/VyuHLIe0YR5lE/PxYunAgvcdsQYR4DpemSVzoGZSivMsNb17oKFrPG u33kdDa7gziM/uthmokOzTZVukIJnufNWiGgpoYCBPwxb8uF7jrh0wmkLchAj3WpELnD N2Xhyz5LrC5HmgVXSzE5wLQ4XilYsDA2u1kCVbD8R+4xwa6txF8L5FALEECT/ZWxZcqA fRkEukz9FaVCSpwE1Rsrd6r7FnMtVUUABMR8FNXQ9vM73tov8YPmo1PdnsHANKzslC3s 47w7JhWI+fssEYRhip/V7TbO+ccDCtNcSKJsStvV/t3jUr/1Ynd+GFm09osF796qlsYY ZZ+w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=heNt7qrS; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-140164-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140164-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i7-20020a170902c94700b001e3d67e06easi979736pla.419.2024.04.11.02.26.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 02:26:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-140164-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=heNt7qrS; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-140164-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-140164-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id DB184287271 for ; Thu, 11 Apr 2024 09:26:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D034C144D1B; Thu, 11 Apr 2024 09:25:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="heNt7qrS" Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BCF27144303; Thu, 11 Apr 2024 09:25:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.195 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712827557; cv=none; b=PX3aPkgBTCVT0vDxv8fj1qvLdKcPCbZiaf4WMUSbkoOYMM5+vqTB4dlL2wowpavSVp0j5+GUNVBi2i50GcnvrJIipc02EopkYalWu3ykUWUcV8rAe5/DZj58VmtJkznUOrSxun9NhPrVSuUZJ6wuoyaDrfR91PX4JECmHHBrr9I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712827557; c=relaxed/simple; bh=dygA1WPRuBqMdxGGpCaKSAr2jCspXpnEIHOS+j+BVXs=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ZoRpJmV5Y8pAuFLXSwjQHl+pm4eWjqfh3wCLamlfxGzTttR6M15rmy1z4IGWQ4w6BdTu9S5E8aUP+NcCbvBza1e1sLofJAHi98olvU3yDzfcVqSAyOHHA3pSSBzGp9l1lnhaxseuOginmsohuTwDKShGDiTcUWfNEfvstH6itLQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=heNt7qrS; arc=none smtp.client-ip=217.70.183.195 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 7ECF360003; Thu, 11 Apr 2024 09:25:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1712827552; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=vKjOj/t4Yd+gG7pDolrHBzRHmNw6eOFJQo600f52EaQ=; b=heNt7qrSXRMC4rqLyIBOIMXpVD8SFG+udbziO2RYbryEobpgcdrsdl8Zera6ZTHjQdhOqG 5yHs1eci3vhT8x0di/FRMcpX5H9dHp0hEMxuwP9jshRIyuUlGeaTRokaFv+Ao094HNm6Bk wnarmorhQDzH+EU55n/bsVVk1k2h+P+0+58GmQ7Vi3rwV+jZ2wUXUBY3DLH6en//GzkqHO JgXjV+A2KkxuKNHW5qpBD2Mg71z9HjlA2cphOTqMcY6r0/cYzdfb0Z308Tk3igbKbpaHAt 5Y1XNSLddxw7Bg3/4pTa0Zig5M94uVSNTFsir+GzdhGRrFN8Bisr83TtE2rRMg== Date: Thu, 11 Apr 2024 11:25:48 +0200 From: Maxime Chevallier To: Nathan Chancellor Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Andrew Lunn , Jakub Kicinski , Eric Dumazet , Paolo Abeni , Russell King , linux-arm-kernel@lists.infradead.org, Christophe Leroy , Herve Codina , Florian Fainelli , Heiner Kallweit , Vladimir Oltean , =?UTF-8?B?S8O2cnk=?= Maincent , Jesse Brandeburg , Jonathan Corbet , Marek =?UTF-8?B?QmVow7pu?= , Piergiorgio Beruto , Oleksij Rempel , =?UTF-8?B?Tmljb2zDsg==?= Veronese , Simon Horman , mwojtas@chromium.org Subject: Re: [PATCH net-next v11 01/13] net: phy: Introduce ethernet link topology representation Message-ID: <20240411112548.68ae868e@device-28.home> In-Reply-To: <20240410145358.GA2996695@dev-arch.thelio-3990X> References: <20240404093004.2552221-1-maxime.chevallier@bootlin.com> <20240404093004.2552221-2-maxime.chevallier@bootlin.com> <20240409201553.GA4124869@dev-arch.thelio-3990X> <20240410101627.53bfdebf@device-28.home> <20240410145358.GA2996695@dev-arch.thelio-3990X> Organization: Bootlin X-Mailer: Claws Mail 4.2.0 (GTK 3.24.41; x86_64-redhat-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-GND-Sasl: maxime.chevallier@bootlin.com Hi, On Wed, 10 Apr 2024 07:53:58 -0700 Nathan Chancellor wrote: > On Wed, Apr 10, 2024 at 10:16:27AM +0200, Maxime Chevallier wrote: > > On Tue, 9 Apr 2024 13:15:53 -0700 > > Nathan Chancellor wrote: > > > On Thu, Apr 04, 2024 at 11:29:51AM +0200, Maxime Chevallier wrote: > > > > [...] > > > > > I bisected a crash that I see on one of my test devices to this change > > > in -next as commit 6916e461e793 ("net: phy: Introduce ethernet link > > > topology representation"). Here is the stack trace passed through > > > scripts/decode_stacktrace.sh: > > > > [...] > > > > > [ 5.626535] ? phy_link_topo_add_phy (drivers/net/phy/phy_link_topology.c:46) libphy > > > [ 5.627954] ? _raw_spin_lock (arch/x86/include/asm/atomic.h:115 (discriminator 4) include/linux/atomic/atomic-arch-fallback.h:2170 (discriminator 4) include/linux/atomic/atomic-instrumented.h:1302 (discriminator 4) include/asm-generic/qspinlock.h:111 (discriminator 4) include/linux/spinlock.h:187 (discriminator 4) include/linux/spinlock_api_smp.h:134 (discriminator 4) kernel/locking/spinlock.c:154 (discriminator 4)) > > > [ 5.627963] phy_link_topo_add_phy (include/linux/xarray.h:977 drivers/net/phy/phy_link_topology.c:80) libphy > > > [ 5.629462] phy_attach_direct (drivers/net/phy/phy_device.c:1516) libphy > > > [ 5.629504] phylink_connect_phy (drivers/net/phy/phylink.c:1983) phylink > > > [ 5.631030] ax88772_bind (drivers/net/usb/asix_devices.c:710 drivers/net/usb/asix_devices.c:919) asix > > > [ 5.631049] usbnet_probe (drivers/net/usb/usbnet.c:1745) usbnet > > > > I've run some tests on an arm64 board using an USB to Ethernet adapter > > that uses the same driver (It also goes through ax88772_bind() ) but I > > don't reproduce the error. > > > > > If there is any additional information I can provide or patches I can > > > test, I am more than happy to do so. > > > > The next step for me would be to try on an x86_64 box to get closer to > > the config you used, however could you give me the .config that was used > > when the bug was triggered ? I'd like to make sure I didn't miss > > anything related to some of the parts being build as modules for > > example. > > Sure thing! It should be the one I have attached, it is basically just > Arch Linux's configuration: > > https://gitlab.archlinux.org/archlinux/packaging/packages/linux/-/raw/main/config Thanks a lot. Let me try with that config and see if I can reproduce :) Maxime > > Cheers, > Nathan