Received: by 10.223.176.5 with SMTP id f5csp2407143wra; Thu, 8 Feb 2018 13:36:07 -0800 (PST) X-Google-Smtp-Source: AH8x225Cs3GxM0WwXO/cEA8B6X50srd2tp7pxvvxc/kNZSDTMVYglxfGgY67YWm68u/Vdf4Qn/po X-Received: by 2002:a17:902:4683:: with SMTP id p3-v6mr374973pld.408.1518125767731; Thu, 08 Feb 2018 13:36:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518125767; cv=none; d=google.com; s=arc-20160816; b=p8snHHPld08JXlrwpTi/Iuwd7pZJOAaonISLORESXMu3hSWJJrPlXfxvI4Ml19en+N 0qXcZkZ56n4qI660w8MYIYTnEchKiF+/FfVRcCG+xjTqoINvOx6ZsTpH+plnuEmZKoYE 4Z66fRaRQE6VD9d48xWIdC1OGTVnIIpKyEzq4kUH7CDGnDn9mfdkVeFMBZyks2ZXlW74 ZORsvacGfn98Qaqp2ijoti6JuKvWZVGSWWDYYpXrD+roN3v/HsRbDh1UBEP+vyHHn5Ey P0IxEJ4zXjw9rJoRG7/vMu64/27rk2VNGCP3hGiGorE6dIzmcyQo3TIB0B0IaFZv8y/k BvSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=sUfrethkyTxGafQfMT7IhmbehLIrC1f7USZ+ZOfwLnA=; b=shI7eacIEU0ZpTJzYD9r0LqP1f1Z0AT2KMhY3Ndj3me9mKINGdlvIzPEdj5loyWAMB ejBoD9yC/5cBm0RDF3rq1bS8sWWfFAro+o6c4rKvJdjqPIr+R3xhuYNWKssQIDBmrCQD WqLDaui6XSBBkudNR8zHCtHobmGKDSoimssZFdSmTEuoqoeEV1Uk/0zjvQTCv/iUUKxn YHxNqVGW+iumvJPHI87KbXJaGf4SGVstKutHEOnMEDe5Yl3C/yKn3sqfnnma+Q3NJjGW GVjtbk9z9YrJTz7pEn/SahauAXlJhBE0DpEo8lDVYbqERcDH6uoJq6DzjlRLcuredQsf yTaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u8si368002pgc.481.2018.02.08.13.35.51; Thu, 08 Feb 2018 13:36:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752292AbeBHVem (ORCPT + 99 others); Thu, 8 Feb 2018 16:34:42 -0500 Received: from metis.ext.pengutronix.de ([85.220.165.71]:41663 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752135AbeBHVel (ORCPT ); Thu, 8 Feb 2018 16:34:41 -0500 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.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ejtq1-0000JQ-6y; Thu, 08 Feb 2018 22:34:37 +0100 Received: from [IPv6:2001:470:7eea:1122:dc84:99c1:396c:9792] (unknown [IPv6:2001:470:7eea:1122:dc84:99c1:396c:9792]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (Client CN "mkl@blackshift.org", Issuer "StartCom Class 1 Client CA" (not verified)) (Authenticated sender: mkl@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id E47872D95FB; Thu, 8 Feb 2018 21:34:35 +0000 (UTC) Subject: Re: [PATCH v2 1/2] net, can, ifi: fix "write buffer full" error To: Marek Vasut , Heiko Schocher , linux-can@vger.kernel.org Cc: Markus Marb , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Wolfgang Grandegger References: <20180208064748.17985-1-hs@denx.de> <59322f7d-4207-a5a4-89b5-dff1634e4183@pengutronix.de> From: Marc Kleine-Budde Message-ID: Date: Thu, 8 Feb 2018 22:33:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="AjzWQDiH4BTjT9M1jcvMMIAvLcuVe9UvA" 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --AjzWQDiH4BTjT9M1jcvMMIAvLcuVe9UvA Content-Type: multipart/mixed; boundary="O3JBU05ZpuhadwbMSXPFnpyaJSgR8MAI1"; protected-headers="v1" From: Marc Kleine-Budde To: Marek Vasut , Heiko Schocher , linux-can@vger.kernel.org Cc: Markus Marb , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Wolfgang Grandegger Message-ID: Subject: Re: [PATCH v2 1/2] net, can, ifi: fix "write buffer full" error References: <20180208064748.17985-1-hs@denx.de> <59322f7d-4207-a5a4-89b5-dff1634e4183@pengutronix.de> In-Reply-To: --O3JBU05ZpuhadwbMSXPFnpyaJSgR8MAI1 Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: quoted-printable On 02/08/2018 08:22 PM, Marek Vasut wrote: > On 02/08/2018 03:46 PM, Marc Kleine-Budde wrote: >> On 02/08/2018 07:47 AM, Heiko Schocher wrote: >>> the driver reads in the ISR first the IRQpending register, >>> and clears after that in a write *all* bits in it. >>> >>> It could happen that the isr register raise bits between >>> this 2 register accesses, which leads in lost bits ... >>> >>> In case it clears "TX message sent successfully", the driver >>> never sends any Tx data, and buffers to userspace run over. >>> >>> Fixed this: >>> clear only the bits in the IRQpending register, the >>> driver had read. >>> >>> Signed-off-by: Heiko Schocher >>> Reviewed-by: Marek Vasut >> >> Applied both to linux-can. >=20 > Can you also apply them to stable, so they get into 4.9.x etc ? I've already added stable on Cc, so they will be picked up by the stable maintainers. Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | --O3JBU05ZpuhadwbMSXPFnpyaJSgR8MAI1-- --AjzWQDiH4BTjT9M1jcvMMIAvLcuVe9UvA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEENrCndlB/VnAEWuH5k9IU1zQoZfEFAlp8wkMACgkQk9IU1zQo ZfE7FggAr/8DWqoGIVzkjlBsFruOMFUvtM/nKU3cFX6DwndYf7m9Z1LTk2WdpC3J EgdfbDLms/CtGEoTCApVMxVcvAQwoQyyrd8QJYefJrBBQKenYATi8xX4pkpU0P9S cNL7jVYPpDnFECM/OZR222tU6yy90W5Aw7ZG29S5jcf4skqVC189khTTgwlhks0B j+TLHDUKEJbk/pGzz/pWG/dvK7r7dnlpdB5EyR/0zhMdi54WPtQ0QRnaFU/ImYL5 e8EUX/sQYSGcQfPEUZIKQSAv6Dht6h3CNfzipc1JvvTFs+W7FWTDfc5hg+nNTlbP fFU+r2FZ2pRJ3LTPDHYd68DXCRMdUQ== =G2Z6 -----END PGP SIGNATURE----- --AjzWQDiH4BTjT9M1jcvMMIAvLcuVe9UvA--