From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 480C8C4332F for ; Wed, 21 Dec 2022 15:25:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231897AbiLUPZp (ORCPT ); Wed, 21 Dec 2022 10:25:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229591AbiLUPZo (ORCPT ); Wed, 21 Dec 2022 10:25:44 -0500 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60EE9DA8 for ; Wed, 21 Dec 2022 07:25:42 -0800 (PST) Received: by mail-ed1-x52f.google.com with SMTP id m21so11987888edc.3 for ; Wed, 21 Dec 2022 07:25:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=e2mkku343U5D/UFeX6GPxNJ2xnofRb9nj6juvn1mIAg=; b=UabexA0/CRsCXfwCSv8pNmuh3PvQl3OpCyLgITIz3S7q1+tTnGdqNfTJzjgg62mRcI gxE9n6cdka3y/Fh1yel4m+5E5DDpMCTQP+rVgZ9bqfGv+RMwjkgY4jApbfwLX7ls5+B2 kqPw7ixGW+u4cvthuLYRoGocxctUnOsI+sbyenES+ObkJ304Kb6IfJYVBxoPQjVVeMKJ W0tE6IXzzdUGVjolKsHBnZRSJHJePZPQUJAse8fjNQ5ptJvRZ71WNZhq7tBxRmcQ6tMB HRsEypzKIgHLmGB+u7B1GUET2xgkfxqfTf0OZC3HY0Pn5Hh5ZyWpYRb9Tg0S8cKLpLIi zDcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=e2mkku343U5D/UFeX6GPxNJ2xnofRb9nj6juvn1mIAg=; b=7hntmUDSoAkAsGuR+xP8DfY8QGUPDc7OuyFqsRsGvBJafSP7NO5DG72V9Fz1zTLfCM EbHnMYJvnan03xdL11oKA+oikgEG/HExwRZeY5Q6tqnMUcJt+UD/t8pnVYX6DImGAxKc FTvUp0AilI9WTWXFXJcu7yL61aN9aLwRrhxMYutkZQlCT8lLYKrVRZbGmGKgqEnGmbmd h+MWAtGYDaTvlO8bRiZJ2lhYKDZ/ImNzdW4Ov4LUGpa5QygMiwzhXvSxCYlHwB+2VH0h q81mHR95wMMqfb/obtLSaW+yRrqGqr093eGx7slaoh2AF/4yj5KdIl+l4NZdyWLNCL5C A5YA== X-Gm-Message-State: AFqh2ko2V2Q1/k8qJrIk+NS/Ct3zWBRyCTNBIaAoMDl3Ily9xK1yH6A0 xUg0mY6DKnrHzrfV0C2o4EfofA== X-Google-Smtp-Source: AMrXdXuWgi9Ls253r6P2zIs/ZhDmWFBRs2hmO7z7cBibYROYhfNI9Zytz5qR/nOtGvuAlnxn/7Lm5Q== X-Received: by 2002:a05:6402:5285:b0:45c:834b:eb5f with SMTP id en5-20020a056402528500b0045c834beb5fmr2082155edb.42.1671636340912; Wed, 21 Dec 2022 07:25:40 -0800 (PST) Received: from blmsp.fritz.box ([2001:4091:a245:805c:8713:84e4:2a9e:cbe8]) by smtp.gmail.com with ESMTPSA id n19-20020aa7c793000000b0045cf4f72b04sm7105428eds.94.2022.12.21.07.25.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Dec 2022 07:25:40 -0800 (PST) From: Markus Schneider-Pargmann To: Marc Kleine-Budde , Chandrasekar Ramakrishnan , Wolfgang Grandegger Cc: Vincent MAILHOL , linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Markus Schneider-Pargmann Subject: [PATCH 00/18] can: m_can: Optimizations for m_can/tcan part 2 Date: Wed, 21 Dec 2022 16:25:19 +0100 Message-Id: <20221221152537.751564-1-msp@baylibre.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-can@vger.kernel.org Hi Marc and everyone, this is the second part now. I know it is the merge window right now but I am quite sure this won't be merged immediately anyways, so if you have some time for some comments I would appreciate it. So it is still based on v6.1-rc8 + the patches that got applied. I tried to do as small patches as possible so it is easier to understand. The series changed a lot compared to v1 I sent so I didn't call it v2. There are a lot of new patches as well. The series contains a few small fixes and optimizations at the beginning, then adding coalescing support and at the end removing the restrictions on the number of parallel transmits in flight. Note that the last patch 'Implement transmit submission coalescing' does not perform well for me in a loopback testing setup. However I think it may work well in normal testcases. I attached this mechanism to the tx-frames coalescing option, let me know if this is the correct option. Best, Markus part 1: v1 - https://lore.kernel.org/lkml/20221116205308.2996556-1-msp@baylibre.com v2 - https://lore.kernel.org/lkml/20221206115728.1056014-1-msp@baylibre.com Markus Schneider-Pargmann (18): can: tcan4x5x: Remove reserved register 0x814 from writable table can: tcan4x5x: Check size of mram configuration can: m_can: Remove repeated check for is_peripheral can: m_can: Always acknowledge all interrupts can: m_can: Remove double interrupt enable can: m_can: Disable unused interrupts can: m_can: Keep interrupts enabled during peripheral read can: m_can: Write transmit header and data in one transaction can: m_can: Implement receive coalescing can: m_can: Implement transmit coalescing can: m_can: Add rx coalescing ethtool support can: m_can: Add tx coalescing ethtool support can: m_can: Cache tx putidx can: m_can: Use the workqueue as queue can: m_can: Introduce a tx_fifo_in_flight counter can: m_can: Use tx_fifo_in_flight for netif_queue control can: m_can: Implement BQL can: m_can: Implement transmit submission coalescing drivers/net/can/m_can/m_can.c | 498 ++++++++++++++++++------ drivers/net/can/m_can/m_can.h | 36 +- drivers/net/can/m_can/tcan4x5x-core.c | 5 + drivers/net/can/m_can/tcan4x5x-regmap.c | 1 - 4 files changed, 418 insertions(+), 122 deletions(-) -- 2.38.1