Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp555878iob; Thu, 28 Apr 2022 07:54:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw41XZCLO0QIKApqWCrv2DyyynJrKe1hvAvauCC1qwExW+OgRMvdOdmIHGyn0sPOGp+JKIt X-Received: by 2002:a2e:8557:0:b0:24f:f3d:c526 with SMTP id u23-20020a2e8557000000b0024f0f3dc526mr14188250ljj.350.1651157663520; Thu, 28 Apr 2022 07:54:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651157663; cv=none; d=google.com; s=arc-20160816; b=wYgB3VV4ExUJJMZepXipMUDU/Rgs4NloxLysqm+FUFFQK2B0eXPiSq84dbDRP+ZUdZ 9C+6bCJ3aYVhyPb4gGxXzvAy9gbFIqgW71s3x1h6XDvNKmqIPspFzdXwuuSS6/p+3eFo hJvXYktgliXi1RoYqAzRMf1qWlln6UrPksnn9dBlNPLNF1JniMD8ZODKsAAWvC0iPmyo qxoBZH/jFEoACZM1k1iqzJe+mhDEi8G4lALsoU8NU1Lpumqw09s5gGYooyXoTf4YwPGC Y8rWbrS4qYdUpkd7JlSWMEOrzCNXXGssYhwEdS9MBn3goexgxzsZIrIppqUkoNWkfbGu orFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:authorized-sender; bh=Y8p8HAAwzXz4A7OJJYuVopPPgbsv0AoTRVen10bZ38E=; b=FdOZJ/6t8uzErw89LK8lw1kJrDFfCKK0S/P3ad2rDWTR6gE1t9+LL82N697gM12e8+ cs4c933RQ8hYWsxaW+CuV4k55ggYE4Faw04gWZOVwY8gMRK32dNFDUunIzof9uaextmu 2+Jnrl4+ByoLBfAEj/ejHwmt1lludYlBNUgWEHx+hi8kNiE4yd3k8l/kEIo3RRG35ALQ +9H/sIZ+R5KyFnNF3cKGYPZAJld/16L11y2X/4lU/Wn3ZFvcvyje4holwzgnQ4h557A2 4KzbXGyYMvOrQ9ZhyNFxwJi196FOvXqXauTtARxunsuymx7//4v6/P+JHhXVoBUiT5wG gCkw== 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 e10-20020a05651c04ca00b0024db4feb4a8si7032026lji.285.2022.04.28.07.53.55; Thu, 28 Apr 2022 07:54:23 -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 S1346140AbiD1MZn (ORCPT + 99 others); Thu, 28 Apr 2022 08:25:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346179AbiD1MZm (ORCPT ); Thu, 28 Apr 2022 08:25:42 -0400 Received: from vsp-unauthed02.binero.net (vsp-unauthed02.binero.net [195.74.38.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D75AA23141 for ; Thu, 28 Apr 2022 05:22:24 -0700 (PDT) X-Halon-ID: d7f92a51-c6ed-11ec-9627-0050569116f7 Authorized-sender: andreas@gaisler.com Received: from [192.168.0.25] (h-98-128-223-123.na.cust.bahnhof.se [98.128.223.123]) by bin-vsp-out-03.atm.binero.net (Halon) with ESMTPA id d7f92a51-c6ed-11ec-9627-0050569116f7; Thu, 28 Apr 2022 14:22:19 +0200 (CEST) Message-ID: <3ab60c35-a207-287d-32fc-a958d0e33230@gaisler.com> Date: Thu, 28 Apr 2022 14:22:17 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH 0/3] can: grcan: Bug fixes Content-Language: en-US To: Marc Kleine-Budde Cc: linux-can@vger.kernel.org, Wolfgang Grandegger , Oliver Hartkopp , linux-kernel@vger.kernel.org, software@gaisler.com References: <20220427134307.22981-1-andreas@gaisler.com> <20220428065058.mf76kmhamddsqsvk@pengutronix.de> From: Andreas Larsson In-Reply-To: <20220428065058.mf76kmhamddsqsvk@pengutronix.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 On 2022-04-28 08:50, Marc Kleine-Budde wrote: > On 27.04.2022 15:43:04, Andreas Larsson wrote: >> These patches >> * makes sure that DMA memory is allocated properly >> * avoids the tx errata workaround needlessly being applied >> * fixes a bug where the driver can be left hanging without interrupts enabled >> >> Andreas Larsson (2): >> can: grcan: Fix broken system id check for errata workaround needs >> can: grcan: Only use the napi poll budget for rx >> >> Daniel Hellstrom (1): >> can: grcan: use ofdev->dev when allocating DMA memory > > Thanks for the patches. Can you please add a "Fixes:" tag to each patch. > From the description it seems they should be backported to the stable > kernels, correct? For patch 1 I can add a Fixes: that points to 53b7670e5735, which is the patch after which the patch is needed (even though that commit is not bad in itself, but merely exposes a wrongly used device pointer in the grcan driver). For patch 2 though I am not sure. I don't think the problem has always been there, but I am not really sure what commit to point to. The fix is at least needed for 4.9 and onward and 4.9 is the oldest stable branch still under maintenance. Seems not to be worth the effort to find exactly from which commit the grcan driver's quirky use of the napi budget actually lead to problems just to make sure that it gets applied to all currently maintained stable branches. Suggestions? For patch 3 I can point to the driver's original commit for the grcan driver as the problem has been there all along. Cheers, Andreas