Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp183760imn; Thu, 4 Aug 2022 01:41:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR5BdBMFpqAjrDjiBHzggcQv3GZyqE6yyp/87y6ifuTyA/pDhb+vWOQ6LQ5u0qCyD8m+LPO5 X-Received: by 2002:a17:906:cc0d:b0:730:d6f3:277a with SMTP id ml13-20020a170906cc0d00b00730d6f3277amr350436ejb.579.1659602471672; Thu, 04 Aug 2022 01:41:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659602471; cv=none; d=google.com; s=arc-20160816; b=Wi9dlUUgzBvxTF9ahDnHg9lxFH746gQQbljKPMYVXuj57NTkjPIuZKsfnXP4BiBQ0S 6FbuOAWbCyDiEphgQ1SG6YLSa8+b7ifzpF7mC7ovs9igZzAs1Z/4xS5tjshTSQ1T+5xp bjtwFGfYot3wao1YLOWAXt2Tq9MvFsR2G4lxL/nzfspjoQdOZyAjdMMwk2BFbZxbvLPl 1/jaK5rtILJqlPXDQZzx++OiwtSZERQYQKP8axrbGHfJ/EHCaZ933QYd1K0qeRYvACOD Xek4vhfMXJVdxfStf5rGKdo6APG+tmFs8z43zGihOmJXqQWJrcBXM1/weguJv25Hxqgq Gbeg== 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; bh=aK/KkPUx8llFziMwH6ByWlJ8NJk390AJLiAVNzT85/M=; b=s6PtuXgzdz1ApfCu04Xp2BMzY+5vH+OEf791vRfx6tA937QhDNSmkYQNwQrBaaWIGB cSJp3RpqpkCY/bCVRX1IobeddUXb4TwE+6ls9b7DTsWXC1fUK+NdoCW93aK/P2W/Ylwj 6fvvaz7B2AirrVoI6mV/dVCT+S/U+u741n3s3WZvXPt/J6WnPvFa8gAfMgg7xduq5LAl rJvOLObth3JInCbJqjWOnI8XXuZO5NC09RqGS2W7rIs2w97hrJH/SyMf8Qn+KRrDUjQl Pzlv6ZGi3sqS9tpU3qA5HUveU0nyb+WvB9CIUxi7LV9A7hMfg8jVBGEesSigxQa+qJ6D qZJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz38-20020a1709077da600b0072af35fca64si244440ejc.484.2022.08.04.01.40.44; Thu, 04 Aug 2022 01:41:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239261AbiHDHwQ (ORCPT + 99 others); Thu, 4 Aug 2022 03:52:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238674AbiHDHwO (ORCPT ); Thu, 4 Aug 2022 03:52:14 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8DE62AC5A for ; Thu, 4 Aug 2022 00:52:13 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oJVeA-0001tT-V6; Thu, 04 Aug 2022 09:51:59 +0200 Received: from pengutronix.de (unknown [IPv6:2a01:4f8:1c1c:29e9:22:41ff:fe00:1400]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id D1A6AC288A; Thu, 4 Aug 2022 07:51:54 +0000 (UTC) Date: Thu, 4 Aug 2022 09:51:52 +0200 From: Marc Kleine-Budde To: Sebastian =?utf-8?B?V8O8cmw=?= Cc: Wolfgang Grandegger , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Vincent Mailhol , Stefan =?utf-8?B?TcOkdGpl?= , Andy Shevchenko , Oliver Hartkopp , Sebastian Andrzej Siewior , Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= , Christian Pellegrin , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] can: mcp251x: Fix race condition on receive interrupt Message-ID: <20220804075152.kqlp5weoz4grzbpp@pengutronix.de> References: <20220803185910.5jpufgziqsslnqtf@pengutronix.de> <20220804064803.63157-1-sebastian.wuerl@ororatech.com> <20220804070603.s3llvccpldtkejln@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="wmflnmbvqbtvlyoh" Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 --wmflnmbvqbtvlyoh Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 04.08.2022 09:45:07, Sebastian W=C3=BCrl wrote: > On Thu, Aug 4, 2022 at 9:06 AM Marc Kleine-Budde wro= te: > > > > Another optimization idea: Do we need to re-read the eflag1? "eflag" is > > for error handling only and you're optimizing the good path. >=20 > I'd argue if a new message entered mailbox 1, this also potentially > changed the error state, so we need to read it. Makes sense! > Thanks a lot for your feedback! Will post v3 soon. >=20 > Also I'm sorry for spam in anyones inbox, I didn't get my mailing > program to produce plain-text for the last mail. Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --wmflnmbvqbtvlyoh Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEBsvAIBsPu6mG7thcrX5LkNig010FAmLrepUACgkQrX5LkNig 011YJAf+L3PZEy9x/pSHGSUOvoAQF7K7jjRwi1zAeyss+ujiN0gls73XWN8NnoKo AahPfXB8jdIeclp1wyRxeuuZwbwK2Vk1ZGYhnApeA3C2QLJX5GqsZLh06eovnafA BF9cnmgKwiH9vZeYBMrJie9RD4wSN7yrGUQoU8G5x+/dBtRrD5TbHmpD8MK6Mx61 PkJ+Yvqs8rLc5WgcUBzrd3Lh3CQ1YcGZhYIuGOPDFD8ZTkSRPEuVREJx9c6VMRgV B6bNTMD+saWayZdFyGEvtENrOXes16pwDZkL/VsMuY4tP+JqmHISWHvcg6mzhZHP hkEqiB/Dy3cPaTpTlT0NzcA5RJmj4A== =yFeG -----END PGP SIGNATURE----- --wmflnmbvqbtvlyoh--