Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp391041rdb; Fri, 6 Oct 2023 06:44:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGxrVQKpy9Tt4GjSdmY727EvM7y2vHsL/WpEvdMOtKtEApyT0FW6Wz48WWzxXFBi2tftnxh X-Received: by 2002:a17:902:ea05:b0:1c1:fc5c:b31b with SMTP id s5-20020a170902ea0500b001c1fc5cb31bmr9401049plg.9.1696599877144; Fri, 06 Oct 2023 06:44:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696599877; cv=none; d=google.com; s=arc-20160816; b=f11qrz1jR4FzLceb7NLtDKq2wuCHX5UJmbr72IQRR7ONfKTzkgGz6FJi1vp705Vr72 GgkfxNtYiu3aQiaUmAsEkUNjDPMCpLlXAEBDSUXJIiWZgCJGQRlyWEdH7mKFKWsx6VfG DGYyCBwvIilYXfx8WX6siaG/aYiPhCharMaLuPghvOPrFo6HHv/rUxNsj1XtApu4LKqB ttnb2P8yf5MtYX7dv953WwnqYzt5CKKwQk/MVB9o4HlpAoFpUDooYYZwlGg3D51TJoJP s6tS0h2MvpcNf4L0sAFcaTPk70AufvG5Bti3iLe76xMS4a5YzBojXAzo6lPS44P9m88c U0kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=j+o9YD/rH4lCweO3w6aErJlrY3wSbYk7WLC6xWXOuUE=; fh=vCZsj6CEzBGI6g4CyIYwQj0AntnwD8gCFWL+J5fRzGI=; b=bPMarTxcUgRj6BE9nnjgJ3QCfmCtuqWuoqPXaMT6rD1/gOwy18vuuXkdoZQjlB+cn9 Woo/hwN0+jgCWg9TgGEV7NvjPgQdE8y14N2b6A6ZIgtdFSGCp4Kh4WFL1zExLAEgiR5E byX61GiimZc/MZECz0vVhDmua/ohwsjKw3yHiyWFVedJHTrg8kcvduG32YNbqCQC1JLl yBR8LlplHXhFTku4CeUK6BDcguo6o4yIAsHnlcX2ZKMDA2RtsuRVcJgqVhky/DK3dMXM Ef93mcSDnUUbYH7gMJNQZ6ig4aO4SCDDwdjTDgx3xYpG8EoZtoszhk1nlnOWGSJFPT8D Y84w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=yKQkpi4T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id z2-20020a1709027e8200b001bb2d95f2a7si3640032pla.267.2023.10.06.06.44.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Oct 2023 06:44:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=yKQkpi4T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 35D7E801B1A5; Fri, 6 Oct 2023 06:44:36 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232433AbjJFNod (ORCPT + 99 others); Fri, 6 Oct 2023 09:44:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232447AbjJFNoc (ORCPT ); Fri, 6 Oct 2023 09:44:32 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0AE8C6; Fri, 6 Oct 2023 06:44:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=j+o9YD/rH4lCweO3w6aErJlrY3wSbYk7WLC6xWXOuUE=; b=yKQkpi4TqAyIM2EQ2VF0C5etHx q4si8bPUVwwKmUP79r1bC5slCapWFqjQMUVMKjh+J8BlCEi1DsTk64mwpqH9SP9rd1n+U772UfCBZ bl4gDEKYafe3chxgUaapciz19pgqoec1Esonf9lVetPN2x1J6Exva2kAphcuRS6eCg/Y=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qol7q-0000t2-Aq; Fri, 06 Oct 2023 15:44:18 +0200 Date: Fri, 6 Oct 2023 15:44:18 +0200 From: Andrew Lunn To: Justin Lai Cc: "kuba@kernel.org" , "davem@davemloft.net" , "edumazet@google.com" , "pabeni@redhat.com" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , Ping-Ke Shih , Larry Chiu Subject: Re: [PATCH net-next v9 08/13] net:ethernet:realtek:rtase: Implement net_device_ops Message-ID: References: <20230928104920.113511-1-justinlai0215@realtek.com> <20230928104920.113511-9-justinlai0215@realtek.com> <99dfcd7363dc412f877730fab4a9f7dd@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <99dfcd7363dc412f877730fab4a9f7dd@realtek.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 06 Oct 2023 06:44:36 -0700 (PDT) > > > +static void rtase_tx_timeout(struct net_device *dev, unsigned int > > > +txqueue) { > > > + rtase_sw_reset(dev); > > > > Do you actually see this happening? The timeout is set pretty high, i think 5 > > seconds. If it does happen, it probably means you have a hardware/firmware > > bug. So you want to be noisy here, so you get to know about these problems, > > rather than silently work around them. > > I would like to ask if we can dump some information that will help > us understand the cause of the problem before doing the reset? And > should we use netdev_warn to print this information? You might want to look at 'devlink health'. Andrew