Article View: linux.kernel.netdev
Article #16930Re: [PATCH net] qca_spi: Avoid unsequenced accesses to jiffies in qcaspi_netdev_tx_timeout()
From: Nathan Chancellor
Date: Mon, 16 Nov 2026 03:44
Date: Mon, 16 Nov 2026 03:44
18 lines
8396 bytes
8396 bytes
On Sun, Nov 15, 2026 at 03:08:23PM +0100, Stefan Wahren wrote: > In general agree, but imo the jiffies itself were not helpful to debug a > transmit timeout in the first place, so I hope we can avoid adding a local > variable here. > > How about this: > > netdev_info(qca->net_dev, "Transmit timeout, latency %ld\n", > jiffies - dev_trans_start(dev)); > > The timestamp from netdev_info() is much more helpful. Sure, that is totally fine with me. I will send a v2 with that shortly. -- Cheers, Nathan
Technical Details
Message-ID:
<20261116034421.GA47691@ax162>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364037-linux-kernel-netdev=dewy.ruReferences:
<20261114-qca_spi-wunsequenced-v1-1-6b219b906db7@kernel.org> <490e6ccf-0cc0-4db6-b076-5d4ac5f5b8a4@gmx.net>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-364037-linux-kernel-netdev=dewy.ru From: nathan@kernel.org (Nathan Chancellor) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net] qca_spi: Avoid unsequenced accesses to jiffies in qcaspi_netdev_tx_timeout() Date: Sun, 15 Nov 2026 20:44:21 -0700 Organization: Usenet Network Message-ID: <20261116034421.GA47691@ax162> References: <20261114-qca_spi-wunsequenced-v1-1-6b219b906db7@kernel.org> <490e6ccf-0cc0-4db6-b076-5d4ac5f5b8a4@gmx.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1971298"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:cWG/ERKOuQ/AFSc2foETZhagToY= sha256:vEgPPEi6rhu2GDDA9p/bxw41/a5/+W2fwhv/dQ6jzd4= sha1:EaWDR3DjG671fKMfdtEPQzFh7dU= sha256:LyaU4kfpElR7IB8hklMpeKCnKr8AmIRlA4Hd1GaY5RM= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 0D636114B0E; Mon, 16 Nov 2026 06:44:44 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2e1j1ORIpjJx; Mon, 16 Nov 2026 06:44:40 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-364037-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id E711B1144D2; Mon, 16 Nov 2026 06:44:29 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 8EBE72D1A3; Mon, 16 Nov 2026 03:44:27 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794800667; b=bxo+PIw8xzz8LcHVcTSWBO0MQy9EZiGN2AxfNxHxFccJ4rDydNwEk872vtIZ4kIfop3G 8RoHpHCcXOplG2fAB/1z8JskmkS3zFIzPZDe7PGbQJtfX/IuUxRVXs+5uhVc9Xr3m3gCN 9bIEnKBlRYPseK0Xdndxca3uqi34K/q/wbJHANReLgX8m1JvVap9Z7z78VfHwx2iJDwBJ w7JOKqSEa1kKWVMPlykfqrIqIR/mU3HMkAKRkqV3wnhUA+ZdSw87vxGwi5X94/bVhckPG 0rh/lPU2uUXTnWX4WN2slKj5UjQQgInR0XOZMnkRoZp+m5aM17bhTj82VPVkGd34+vA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794800667; h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post: List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence: MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=v+oEFSF5FAVe57kexz+WWWyJRElN6EdjpF+6YGfbga8=; b=WTN6v954x5GKFNW/NrAPcQYP/PX532Mof4GTvRl//WVK4mYh57ETqOqVkyKisBt59vws WWCC5UxpU7/jHOc8WNf2LbWHYko0LJgsBJ2lxYwcGw6AC/HNFEzmcdLCSAupTPQRruk+D z5XdUQTQ3/jYgQ4rkSHbJInIJxrNUYLrlvrP7GSvATR2vXDJy+LUz37EkeSyp+U/V0lsq mJMNHmRYuve03ulUfSoiz5+OM3uG2pFxY6qfyEQZ44T9eQXu7U52qXz/y+pdburvqUdHZ b1I4VfefTbZBGXQILHrHhxgmltV+Fc6Ijx7cpGFC/Y8W/CBCwXt3DXiexnovROlhOFg== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gxzAMH0Q; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 547B3606A339; Mon, 16 Nov 2026 03:44:27 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gxzAMH0Q X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794800666; b=GL8PvnrktNKoDzFNE90HEQN1o/d9J/KUHoLy7gve+jZf3YYyCwp6MDUBcVuu04MgwR92 SuBljZ2mClm8wd6Q69STUGQ843sfOJPq6mh0yrNIBW3GE5BgmA8GZyTgvOQx/+4ZSQPUd R5huOKM8xbuCXDem4J6RHaoQiYQYm8W0MEx8Sa/2KwPZ+k7Drrvg6Kj28qLJ2TaUE6BKG /DCXbftNMLEdMLl2Uq8+lpUybabBQ/LH1gsfkcTRSdxaOXBEpJPEmNxWtlzJSw5h4Bmc2 6Wl8iCKOS9YjfF4rvncqaV2RzTdGQmO6RvWN0ixUSWAW8k2WQP15kbmTcCsmxpE+7jQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794800666; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=v+oEFSF5FAVe57kexz+WWWyJRElN6EdjpF+6YGfbga8=; b=k6D9NDZnRFPRG1HsC13hNyF5EXdPr+eVRy5I9B0zOMS1ujqefVIc839JLEIAi2I4Z7wG 5O85e9qU4zZZ4x+qkz1VKxXdQlZVsp2wCOIkVMOo1NXBmgL6L+dGyh/ZiHvhSjB8lTigg QKfIKqJKO4viLlLttQehYKznBGFgKiTxvRT+xzLYxwGy6mU3s9eKRcbDzxqrAuj7QvZ0E dInULYoT3f7ZexFO5WoYUdfhP/fSZdI808RgON0iA7YBLi7tCueSVMc+eIDtASmVqb22U I0XAH0svmr/5WZUOmV3ybMHHFO7iDMd9abQWqD/9M4eZeCtKVY68QH3kK9Ixlq0G4Bw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=gxzAMH0Q; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 008DE606A323; Mon, 16 Nov 2026 03:44:25 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 86D4D1F000C4; Mon, 16 Nov 2026 03:44:23 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794800665; bh=v+oEFSF5FAVe57kexz+WWWyJRElN6EdjpF+6YGfbga8=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=gxzAMH0QhxwxxcDQXdGkGvtMG/+FCh2Ukhd4PZHrh/vMOEyXqV1TIFiEVFu4GuQ/m aGD8+3JHzmMKAEBjBpV+WseVl7eKQFXeoKEq0g/Dj7PzyGmrq1wKaDNbTDcxCnplwv H9V3LEtgCzyoC2VlhsjM/WWugA5j+n87rf3raC7xtTUoATVDGuO2OiTJsxPtL+7nGG +dPgS/bPvrbNVqA4P2jhV5OATcWGAIJwuKeEgF4P5vrN04wQWX9A4uxwMZbxA5IF9e b/1XWsfhBY76H4iftco+UHwIfZDI+wx5qeEZ0stmS6kshGlpIYelWgYQ7LPgWsALuU 3vBMoa4IVXsdw== X-Cc: Andrew Lunn <andrew+netdev@lunn.ch>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, stable@vger.kernel.org X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <490e6ccf-0cc0-4db6-b076-5d4ac5f5b8a4@gmx.net>