Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp488878lqh; Tue, 7 May 2024 05:44:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW9NCi4vav8RNAm5HpnuIHunv925ttwKiBpCePEQR4gj94m1m/8610mfk9pmnYbSXHjhX7gzrd8yLZKNyvDy4BtIebhXuXKiE2p2p9IQA== X-Google-Smtp-Source: AGHT+IGUlo5npHWeWPjJJy8CXQ7BJU0b5LQvYrSKudz2ob1DReZUfImqq9WeQT2oVExTtr58gygQ X-Received: by 2002:a17:907:94cd:b0:a59:cf38:5338 with SMTP id dn13-20020a17090794cd00b00a59cf385338mr4942675ejc.19.1715085869992; Tue, 07 May 2024 05:44:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715085869; cv=pass; d=google.com; s=arc-20160816; b=m69PkBDuXzyZVn53yxBZ2qmOf8D4Un7PiRSVYPCWhmlmwQRAiZwKq9I0JKgpAZfv8A 9+77FvCVrsZMQ4ylqtSDul2s98Hfu7lGn+uKVviBzR8JvkBwE0KkPx2bjZhiZPQJINXI 1D3L1gRLgyY073f1fVS7cNAGl9DtIvmov5edhZGy8COv55+pB24Sbq6mkpbhSeCrwZLY YNT3kKutqwfWHsHYrhLswDbuN4JMSGyi7kTQhshLw85RIuW4Ks+d4jv6cqD+9plgSwSb +k4ZLMR7r8COlfh4/SmGU8TwK6hrAh9NGCTjZ0YRWWKEqNVXqQ1fVe40pqNe6jIbL0/r 985g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tsbjHZ4oF6OzYZ4G7o73ocZKjoIDcyU7RA+CqEB12r4=; fh=2K3H3Tld3VN74rxBPwQ6kYd0BY5zIz9lKZwG+ha8SJQ=; b=z/Q1FvOWXSN6tdhC2DwOfifVENkHdadRPhlYIzxrvNFOpUQok8hbnSv6l6ma0M7lzB p4TW8eO0a4ug4sAj88bdHz2WwKTNxk3PkVvs6ak2mtb/jnxSf19Udvgv2CNLrXmU3yF/ aryj97UpzbzWcU6aXdawxtVmgM6L2aVtcY7fnxX9gYpI8nGsSjlbcROeoF5t1u66p/wu HohTseNQba5Qi1Vrlsbk/KOVofRAYqTuLCiV/dqj10qyrByAr1Z+BbsxCEvZ9ZTBfCNA BrFIR9y/LjTJzOnKyCBzUfumIZ0gqwXmKTJm0TccJayK5uTCjiLCBoAr/jS8sWH2x5Dw Ta7g==; 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=AY4ses1p; 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-171304-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171304-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id w17-20020a170906385100b00a59be53c9a1si3340634ejc.477.2024.05.07.05.44.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 05:44:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171304-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ferroamp-se.20230601.gappssmtp.com header.s=20230601 header.b=AY4ses1p; 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-171304-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171304-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 8D1C11F21FDB for ; Tue, 7 May 2024 12:44:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5628715D5D7; Tue, 7 May 2024 12:44:19 +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="AY4ses1p" Received: from mail-lj1-f182.google.com (mail-lj1-f182.google.com [209.85.208.182]) (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 B5A0815ADB8 for ; Tue, 7 May 2024 12:44:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715085858; cv=none; b=Ub4VA4NWUKEhhpMXOuoIOCVXk6i3EbMgKnRd27e4XZBgH9/5lFzhznZPKbxYFm424IztNYgJ/xl7Cbu+GtZAYmi2gvl1DQEL+si/XbR5H6oXe0Dvn2Ikdr6Bk8tX3VMUwvRYQlnHppDW4hWQ1U8dtimPcW9fMmAz8oTmb4ZSOLE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715085858; c=relaxed/simple; bh=rCURwd3Q1o74GfLAdxVB46w7pakgsA9iZZCIcyWzyh0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rbPe/Q+/PnzqyKYezO8+HBxcpVMJc7L//KuuPKx6gW8HSp37ZCzvFujt/S8hZuAX9diMZ6bXtN12Y8MbWeR5WDcXNoiBolYWol5wtfgmoj4qz+05oqqUvfBDdVt6WUwCTNQwyk/g1yJDxucp9MZTj7xFYm89oKyMFv1IUSsAiLg= 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=AY4ses1p; arc=none smtp.client-ip=209.85.208.182 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-lj1-f182.google.com with SMTP id 38308e7fff4ca-2db17e8767cso38902741fa.3 for ; Tue, 07 May 2024 05:44:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ferroamp-se.20230601.gappssmtp.com; s=20230601; t=1715085855; x=1715690655; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=tsbjHZ4oF6OzYZ4G7o73ocZKjoIDcyU7RA+CqEB12r4=; b=AY4ses1pQjZwUg7l43RFNggWigu5Dx2Wtk2wYh0IyR4EFY0CzCUp7ZCE8Ql14EtK1U hGfXqhHmkSnrTh9yduh/RTNksFl7bxERIBxhz+C0Zdnw0RTfh9ERO5ykFch9t4IJJne+ +rRNRvVtOBJxn+Hs9uQJwzgH6DXHtKSbsNC8ACM2/Sw6UlvFI6NAwMhDzZbpnvOUyaAs B3ohhHCFjEihel6LwD+5M9nuLRLj0XWt82G+NvK66AOtFHzXZB647qaPvuKXm9rVlsE6 ZlSzWopc8uQxX/TcpTBJyxvKck/nBxykAL3vcz4poA/7lKBIH+RZmwLICBvCRF8Gnp0E 7xCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715085855; x=1715690655; h=in-reply-to:content-transfer-encoding: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=tsbjHZ4oF6OzYZ4G7o73ocZKjoIDcyU7RA+CqEB12r4=; b=K16/Gg/EQyqs0S9oDgZOiydJhMQ4yreQy2tLC/k3QpyhAQZmawDhEyLMRHZohHM6nb VZsfhSwDPknUK0vv6cdUoi9MDNkaUDf8biyS+7gfd4LNge17eNqEgkSr513v78Uxswkk R9wnGPSyy1n9k53b5OiqDaqRB857WTAK1KOX6wdaL4SEobe6BiLnihxfwwX3WW7ER3s5 xuyXvI72bvIgIzlK6VADAbEXZF5fMvOm+Sscx7oC5FaYG/L4TcqBVGeL/tUxy4+MpO5e G9svOMo4dpx8kTWnqSid0n0+h1xVt522Odj6efur4+JdnEFp9QTbosc+TPUn6+YFtDc1 58NQ== X-Forwarded-Encrypted: i=1; AJvYcCUpO726H0wxaFiaE9qlEvilaboFHs7ZbFhu8t9za5xSuUnLEtPU4SiYG2RW5ingeRS3qVQ4GbQmMU4p5gzZpA8/MpogVe6goI7JrFQ9 X-Gm-Message-State: AOJu0YxtdB5Ig5avpOhFo3B45ShO31NRK2hXXHktk08yztNTBZM//f+W xHUVzOuiLkcromeGvhFthmvXU5m0iMqCN4bNtaEnDYyvOyLjpfImnXVbuKAsWdo= X-Received: by 2002:a2e:a173:0:b0:2d2:869a:55af with SMTP id u19-20020a2ea173000000b002d2869a55afmr8185336ljl.17.1715085854832; Tue, 07 May 2024 05:44:14 -0700 (PDT) Received: from builder (c188-149-135-220.bredband.tele2.se. [188.149.135.220]) by smtp.gmail.com with ESMTPSA id a9-20020a2eb549000000b002e33be202e8sm965384ljn.72.2024.05.07.05.44.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 05:44:14 -0700 (PDT) Date: Tue, 7 May 2024 14:44:12 +0200 From: =?iso-8859-1?Q?Ram=F3n?= Nordin Rodriguez To: Piergiorgio Beruto Cc: Andrew Lunn , "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: <77d7d190-0847-4dc9-8fc5-4e33308ce7c8@lunn.ch> <874654d4-3c52-4b0e-944a-dc5822f54a5d@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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: > The RXBOE is basically a warning, indicating that for some reason the SPI host is not fast enough in retrieving frames from the device. > In my experience, this is typically caused by excessive latency of the SPI driver, or if you have an unoptimized network driver for the MACPHY. Definetly tracks with what I'm seeing, got two macphys, one is sharing the bus with a can transiever, getting more RX overflows on that interface. > Thanks, > Piergiorgio > > Which is a bit ambiguous. I would hope it means the receiver has dropped the packet. It will not be passed to the host. But other than maybe count it, i don't think there is anything to do. But Ram?n was suggesting you actually drop the frame currently be transferred over the SPI bus? > > Andrew This was misscommunicated on my part. In my happy-hacking adventures I got better throughput when dropping more chunks in the driver code. -- Suddenly I can't reproduce the hang, I'll give it one more attempt today though. Did some measurements with a better oscilloscope, I'm seeing a periodic latency of ~500us for clearing the irq, typically it's considerably shorter, and a periodic ~1ms silence on the wire. But since I can't reproduce the hang this is just performance related. R