Received: by 2002:ab2:7a09:0:b0:1f8:46dc:890e with SMTP id k9csp288038lqo; Wed, 15 May 2024 14:45:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXbPEwChyUUPDYmshteeKtX24cOxb4mbGsJ/IiZb3xuiJH/VgCwjaAU4AaWzeY8EsLGjnFmTxVX5lYHHddFIL6YDUoyHlXSd7sdmyGQjA== X-Google-Smtp-Source: AGHT+IFwzMa7Ihei+s/N5W3q4IASc9VVa0NuBzLlpBr0IFxpWleEeMHcp2kTdT6tzIa4GRQkc04B X-Received: by 2002:a05:6a00:10c9:b0:6f3:f447:5861 with SMTP id d2e1a72fcca58-6f4e026b8f2mr18185542b3a.5.1715809535929; Wed, 15 May 2024 14:45:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715809535; cv=pass; d=google.com; s=arc-20160816; b=bjXBGVVNpiu50Z+tORMQiJIheoEC7ftiUvNVLFwhX+hWlM9f46Twj1lUX3xsPLLElj wjMpdOWCZmVibclt7IErmBfafWVg28uqmkdDVAUqmgBRGzXsuFv8QpI+1Wi1/fgvUF48 zfrLTbjA1rQdYdGIxIboRZU8DfoaSwtN2NKl0+WlMIeBrnDg3aCKs6VskOF12HhaU0e5 QEy4ZP9VdtF4aZxpiESudcGc+xxrIe7yf5pKgV0tnYHW0rq1b3vAdPwbFdiIbihh2jDl AHHttYcsP0bqjKxoIlNSWlOgd1aN08DP2TNx2jVL9FQOnMKws0TnxbZ4x7+ESe5o9DI5 V1GQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=XjmRDxQfwrSVo7FgVNJ9NzsqQ8BDBTlwFbjqeW7nvHk=; fh=Uw3cNON9UvKK4lGnx0JUbZRWCwQZkhjheYKgnnTEbcs=; b=ktv7ZOBCVoy3LulgxYcTxcbCwBBxMMRc06PzLx4IbEuuKQ0MSsgHZ1O8ogb5pDgHST gq/E+GP1Zdr8lSmD8DkTW3EHzltnkvk6bicOqeQjNaaWHPqwbgq4pit4OHhFQNZpHRhZ orw1qdAYAvoTCsHLsJWTcjGZTtmGaiVfpMiYRBLeNmkRrkd9E8+bVLH0SOKZvZtyjB7s 3XImlhcPcEQ06FxAYMJdtN5aHne+j9dYXDWzZZ6Eq8afJkbu3pqXLZyxRuTLdM+iDr/6 OLYXb6xLD+iYKGQcYruBSFpicM4FRYpiGH9sa7R2X6mwBsCz7ksnGrr69ujFF9QgOYtw +efw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ferroamp-se.20230601.gappssmtp.com header.s=20230601 header.b=kMnOfE9x; arc=pass (i=1 spf=pass spfdomain=ferroamp.se dkim=pass dkdomain=ferroamp-se.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-180399-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180399-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2a964ccsi14189791b3a.103.2024.05.15.14.45.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 14:45:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-180399-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ferroamp-se.20230601.gappssmtp.com header.s=20230601 header.b=kMnOfE9x; arc=pass (i=1 spf=pass spfdomain=ferroamp.se dkim=pass dkdomain=ferroamp-se.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-180399-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-180399-linux.lists.archive=gmail.com@vger.kernel.org" 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 89C4F283EC9 for ; Wed, 15 May 2024 21:45:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0E47615B56C; Wed, 15 May 2024 21:45:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ferroamp-se.20230601.gappssmtp.com header.i=@ferroamp-se.20230601.gappssmtp.com header.b="kMnOfE9x" Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6AC931591EC for ; Wed, 15 May 2024 21:45:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715809523; cv=none; b=IROWThsoShRdgooj7cSloCm4iDQfGCogxkSqhVjty3ZRfUrQxyJB/4SbqLlDnYzbJ9xLM8w6nk/oIPQN/jqPFoWSPb2KJIWlW/MRTV1LJP06Omt9TxYfSucSQP8HpAwoqtelgy1xpI8iisjmVF7WaPK6MKOj+O578yG9VCvGE8M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715809523; c=relaxed/simple; bh=rWVXe8EK8zuor5fASSIBJOrz7ixoDWOPIz67x1T8VEg=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=OQF8VoNPEz26yR5ulfJYKXZwseTBSFwBAWDjejrEhafF1DbfC4BxLJs8Xr2B41hDbo674r1IVnsS5ZlYSyz3rKEi6Yf4nn+zfelBUoZjfkI/HhyJiaJFSct85WdoFxw7y7U7+Ev62NNM7QTxNRbKZ9rAEMij5RtoFPnK9UM8j7U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ferroamp.se; spf=pass smtp.mailfrom=ferroamp.se; dkim=pass (2048-bit key) header.d=ferroamp-se.20230601.gappssmtp.com header.i=@ferroamp-se.20230601.gappssmtp.com header.b=kMnOfE9x; arc=none smtp.client-ip=209.85.167.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ferroamp.se Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ferroamp.se Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-51f40b5e059so91625e87.0 for ; Wed, 15 May 2024 14:45:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ferroamp-se.20230601.gappssmtp.com; s=20230601; t=1715809520; x=1716414320; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=XjmRDxQfwrSVo7FgVNJ9NzsqQ8BDBTlwFbjqeW7nvHk=; b=kMnOfE9xoPQaoYOQRSstkYToyB6e0gEVuvN5aRaSYcOXe8yiwaP2euFBnZIcx8FUug wl0y8q0EkPMTDEf/7uS1ofaRlOhMLfgCs+qqNWMqtRA99W/MklfJStSOQyIb4s3jFz0r DBhFoXe2tNBQwgNVd75Z15U7zbI4D68dUddk6s7juyUUstmF9PM7GLaO4SYppihA6SJp +9lk7OPv0uovqmMXD5VvcJWPEPnaqC0K9iPgFkFpj/24XVyX/7JN0B3pl/XxPudsfaxO S9tvHVvoHspNa8HIYPD7xnhDZ/2QzPiRLs/g5crWZI8wppbLRkLjVY+P9bCEhNhTeVuB UbFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715809520; x=1716414320; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=XjmRDxQfwrSVo7FgVNJ9NzsqQ8BDBTlwFbjqeW7nvHk=; b=oT3sQSoMB+pU7baaOqMTzkzRXMTrciKj+Q/3yd0I7YLb3DC1JnU/cSm4xKHhgXyesN OHfzkKWMzoQhCqsodTgCvthTWN2XxzavFUc7CX0ESwH5XNnOKwVdqqvWr14531OlafhJ icXy6VXPEkQa12NOanO1sCqu87CKDioVT8fZp3k5h/MBOOuiv/ac0YUBxdkNYsyJpPy1 kru+0lvJTFbUMQfh0X2+m3dDaHz9qeKMF8+8pnDI6zV7I2bZ3caGvF28bBaWSj78BHGC gkdG0I2xpEzGr3KIzws2cMaQmB/52LUdHdEDSTyQ7wnpaBwKHcG0U/jHT72W42infbSb 5K0Q== X-Forwarded-Encrypted: i=1; AJvYcCWy5s3V55uIaMdbFV3f04ENL5NpHvQaplcTeRgiyp2J5M3hf5c9ZSuhbMzBISP+TEpmG1Ld83wyKuSV9pKJVu2jXTA7tCmOlm2BffWu X-Gm-Message-State: AOJu0Yzvl9r55LDEmFfV4YeVquTLWUD9cemfBsRzesUJrBZirqnLRjLO kFKx5pgJWrAFCR6gUFZMI/D6pDHOkIk+C8DFELYVFXWlEM4LXX74u3pWq0r+pHE= X-Received: by 2002:a05:6512:3ee:b0:51b:518e:5679 with SMTP id 2adb3069b0e04-5220fb74281mr10650877e87.18.1715809517579; Wed, 15 May 2024 14:45:17 -0700 (PDT) Received: from minibuilder (c188-149-135-220.bredband.tele2.se. [188.149.135.220]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-521f35ba41fsm2636895e87.114.2024.05.15.14.45.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 14:45:16 -0700 (PDT) Date: Wed, 15 May 2024 23:45:15 +0200 From: =?iso-8859-1?Q?Ram=F3n?= Nordin Rodriguez To: Andrew Lunn Cc: Piergiorgio Beruto , "Parthiban.Veerasooran@microchip.com" , "davem@davemloft.net" , "edumazet@google.com" , "kuba@kernel.org" , "pabeni@redhat.com" , "horms@kernel.org" , "saeedm@nvidia.com" , "anthony.l.nguyen@intel.com" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "corbet@lwn.net" , "linux-doc@vger.kernel.org" , "robh+dt@kernel.org" , "krzysztof.kozlowski+dt@linaro.org" , "conor+dt@kernel.org" , "devicetree@vger.kernel.org" , "Horatiu.Vultur@microchip.com" , "ruanjinjie@huawei.com" , "Steen.Hegelund@microchip.com" , "vladimir.oltean@nxp.com" , "UNGLinuxDriver@microchip.com" , "Thorsten.Kummermehr@microchip.com" , Selvamani Rajagopal , "Nicolas.Ferre@microchip.com" , "benjamin.bigler@bernformulastudent.ch" Subject: Re: [PATCH net-next v4 05/12] net: ethernet: oa_tc6: implement error interrupts unmasking Message-ID: References: <708d29de-b54a-40a4-8879-67f6e246f851@lunn.ch> <81170ef6-2b16-4d7f-85b1-4c3fecdc8853@lunn.ch> 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-Disposition: inline In-Reply-To: <81170ef6-2b16-4d7f-85b1-4c3fecdc8853@lunn.ch> > > Good input. I'll add some instrumentation/stats for how many jiffies > > have elapsed between releases of the worker thread and for the irq > > handler. I can probably find a gpio to toggle as well if it's really > > tight timings. > > What might be more interesting is the interrupt status registers. Is > there a bit always set which the driver is not clearly correctly? > Ah great point, I'll dump the irq status registers when things go awry. > You can try printing the values. But that might upset the timing so > you cannot reproduce the issue. > > If the printk() does upset the timing, what i have done before is > allocate an array of u32 values. Write the interrupt status into it, > looping around when you get to the end of the array. And then use > debugfs_create_u32_array() to export the array in /sys/kernel/debugfs. > Trigger the problem and then look at the values. Good tip, sounds like the exact strategy I need. Appreciate the hands on suggestions! > > > > Is this your dual device board? Do you have both devices on the same > > > SPI bus? Do they share interrupt lines? > > > > > > > It's on the dual device board, the macphys are using separate spi buses, > > one chip shares the bus with another spi device, but the other is the > > only tenant on the bus. > > > > No device shares an irq line. > > I was just wondering how your setup differs so you can trigger the > issue, but others have not been able to reproduce it. It might be > another clue as to what is going on. I don't think you need to do > anything with respect to this, its just information to keep in mind. > My typical setup is weird for sure, I skip the initramfs and load a kernel and dtb into ram (which means I don't have DMA, due to missing fw), but I'm in the habit of occasionally flashing and running a 'normal system' every once in a while for verifcation. I can't think of anything on top of my head that would set my system in a unique position. But since I don't get the failure when I have a UDP multicast running I'm guessing different networking daemons might affect things, in this case we're running systemd-networkd and I manually set an ipv4 address on the interfaces. R