Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp586510pxb; Wed, 13 Jan 2021 10:46:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzC0tjLPuAr0YNLDVQ92Yq/zHa6FSCtYT3IvWuYXmU93eTHYDqNgjR2bgSQilYjRp3d9K3P X-Received: by 2002:a17:907:1629:: with SMTP id hb41mr2464236ejc.197.1610563578884; Wed, 13 Jan 2021 10:46:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610563578; cv=none; d=google.com; s=arc-20160816; b=tw+UHjoeSHcedkEKzE+7HQDf/+RKYrvkFDjC/9z1psky9TzZ9Mw2yagbUZXBvyVupN 3IPtJ5572q51SEnaL/E/wxNjvoDxLCi4uWyAjYTGIPKLpF8B67KclUgpJ++fPHwPj1AG IvCnKPaLkYwwqlnMMHb3irwuykEe4I4WXYzSt9VeDqBeA3W97QommOAuzmPDt52UE0IQ XMVTfsdT+EQaZ1p4329HctIfw21V4s0w9y9XSa4CahM3k3vlaEeYzF6271Ki1ouCUoaB yqa4EKPM3kNpkctE+9Yv+6faffC5TYNf1/1QQmNAWGvxN08KXhufIRJIb+ne/E1V62mR WMSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/KzoTFWjybD/r1NtUndSBUsrUMAZKtv7j5VbLpYXnf8=; b=INan1HhgySaHoIoUVjgqXXa6ctw0Wt4S7hgBPtOZR/0CWt9zQsl1ySZGu/a7OWt+/8 JWsv4VGHRIXSygbMo3vfN/B/HXTZbfAXs67ydrJXw2D+DcETyky18WwFcAFYQiKnTBpq XoTlUfAxF3uH0eTceyJOUBrU3luxkZpzWDM6YImISt1bFz5ic9KIPv/nnrCoc4SCRRVw hmhLs6G4u40Ssv/N5x1DfLvZtm3b4ECtKY2sBzHJGUb0AvakXyWgMD+lnil3djMFAcGb KZnOPHGUb/jP4CgTaJZsEbJZkdHMnOtRezKlj8yJZOf6HfQXGC9QA3u3tQTWdfCOsN8A wFUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=icWSwC1X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v1si1425608ejd.298.2021.01.13.10.45.55; Wed, 13 Jan 2021 10:46:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=icWSwC1X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728367AbhAMSok (ORCPT + 99 others); Wed, 13 Jan 2021 13:44:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728195AbhAMSok (ORCPT ); Wed, 13 Jan 2021 13:44:40 -0500 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB84AC061795 for ; Wed, 13 Jan 2021 10:43:59 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id b6so2582277edx.5 for ; Wed, 13 Jan 2021 10:43:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/KzoTFWjybD/r1NtUndSBUsrUMAZKtv7j5VbLpYXnf8=; b=icWSwC1XH5N1j1UsZ/I7yXSO2Bv9DrpZ/ESFacPkPRQgTp1eWA3+zVHPoxj1Qm0SZX XRmJOUOfeW4HsHiyTLtZmqOSXY/m2eUjdfixjihZpMeSaqGcuWYhqnxqnvwOOZQrIT6/ KWKbi8bS8cgWIac6Ielih93TzACXUza3NWz+BdUlAfelqSaboZMEi3b9UijIKTxG/ysB BrB7pQ62DDbb4S1PBE5RiK2aJ9jt+jZTDZDDicAVmK//PhpUpYfU83v1YvwC7kS8NMea rzlX1xEID3oVPCpG/GkZr696RfGGJIFIhYmsAT52lmQWh/8Gwmv8rp2AYDaSJvskvdnd loSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/KzoTFWjybD/r1NtUndSBUsrUMAZKtv7j5VbLpYXnf8=; b=I6MZXLuhYneVkcooxV4FdH07y+5H/qqmVRCEYrphyHsdb1R1WoxV0YIUDQVElTfrqk y6nGmw3W1dcrnSwMC+vo8dEeCIBPGhc62YfRqXOcc06rqEsod46UfUskIynWmsDxBAkI +wNhAAwoQ4a8hNYRWglKrmRDLw/UvXuo/1n8qd++9OUe1uMZSxIxTaXUk3GXWDlqvMqW hA9rp6a2Jv0LYLuqae31Z2OSJZBKBOIdf6ybSEHp254pwyxAkQMWoWLUYlX2p7/+CxHD VwMwJsjT6OrDltvWfxKlOBf0uV7haXIh0UwBpwG5otJf+w3zTa7L5wLAW4sqVVCX8N+7 FcDQ== X-Gm-Message-State: AOAM531GITxO3E53+jMMkfTdY3BDPhw831ChFrHBk533iwHSQ7eb5nM2 6IXTTdR8nnc6a3rpExMSih4zYCBzU/eDkHcUIt9GMg== X-Received: by 2002:aa7:cf8f:: with SMTP id z15mr2930266edx.17.1610563437312; Wed, 13 Jan 2021 10:43:57 -0800 (PST) MIME-Version: 1.0 References: <20190208132954.28166-1-andrejs.cainikovs@netmodule.com> In-Reply-To: <20190208132954.28166-1-andrejs.cainikovs@netmodule.com> From: Ezequiel Garcia Date: Wed, 13 Jan 2021 15:43:46 -0300 Message-ID: Subject: Re: [PATCH 0/2] D_CAN RX buffer size improvements To: Andrejs Cainikovs Cc: Wolfgang Grandegger , Marc Kleine-Budde , "David S . Miller" , "linux-can@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Patrick Zysset , "Federico Rossi (fede.a.rossi@gmail.com)" , Max Sonnaillon Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi everyone, This series was recently brought to my attention, in connection to a long-standing packet drop issue that we had on a Sitara-based product. I haven't tested this personally, but I've been notified that this was backported to the v4.19 kernel, and the packet drop was fixed. It seems the series never managed to get upstreamed, but I think this should be resurrected and merged (probably with after some cleanup/review). Thanks, Ezequiel On Fri, 8 Feb 2019 at 10:31, Andrejs Cainikovs wrote: > > Re-sending entire patchset due to missed cover letter, sorry. > > This patchset introduces support for 64 D_CAN message objects with an option of > unequal split between RX/TX. > > The rationale behind this is that there are lots of frame loss on higher bus > speeds. Below are test results from my custom Sitara AM3352 based board: > > Sender: timeout 15m cangen can0 -g 0 -i x > Target: candump can0,0~0,#FFFFFFFF -td -c -d -e > > * Without patches: > - 15 minute RX test, 500kbps > - 16 RX / 16 TX message objects > - 77 received frames lost out of 4649415 > > * With patches applied: > - 15 hours RX test, 500kbps > - 56 RX / 8 TX message objects > - 41 received frames lost out of 279303376 > > Please note, I do not have ability to test pure C_CAN, so it is left untested. > > --- > > Andrejs Cainikovs (2): > can: c_can: support 64 message objects for D_CAN > can: c_can: configurable amount of D_CAN RX objects > > drivers/net/can/c_can/Kconfig | 20 ++++++++++ > drivers/net/can/c_can/c_can.c | 93 +++++++++++++++++++++++++++---------------- > drivers/net/can/c_can/c_can.h | 20 +++++++--- > 3 files changed, 94 insertions(+), 39 deletions(-) > > --- > 2.11.0 >