Message ID | 20230125195059.630377-1-msp@baylibre.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp455918wrn; Wed, 25 Jan 2023 11:51:40 -0800 (PST) X-Google-Smtp-Source: AK7set/K7sjTfh60Zf++TOGH0p7JSVhXS+lJ5CfiF3BcIMcVXvB1NyA5yD/1EsQ2P2HKNtXxr6n8 X-Received: by 2002:a17:902:e542:b0:196:d0a:fa46 with SMTP id n2-20020a170902e54200b001960d0afa46mr11162882plf.27.1674676299806; Wed, 25 Jan 2023 11:51:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674676299; cv=none; d=google.com; s=arc-20160816; b=HZ+I3TRpLeTk2HY3+TnzgLCEQJfum2tpF1P9nZiVxtU+rAoykKR3vaeaixXmPon5fW vpnAcNCpmLbTR5IWqZQF/14cbZZnJ+GLeZWCqAyjqvXM+skHHKhbCkHSugBMu9TZlgB9 mIJYlAxroN92K3szeBFcxFVEJjDZCWg/M35a/jaaFDjR1RCt5WYulPx5bD3BT8Zs9Rru 9bE85Eu9bct/5DrLdifvOFnQOBu5BX6wTR1rTxIRr0A9XUemflt8urHOKSisriPj21nZ zG95T/qCz7xf5QXUWOu/GErlhofWORfSVZi9/Hm8MPh+wcqjnlNUcv69sR5Yj4I1PKLA 2L9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=zCu9ReBp8rsUO7BPnJkennx1RK9hssnXuHiiktJzKeY=; b=w/EiQIDE3hWfETreY0qCPbEhlCmDwjTrXirtSczjzpZiiFwHmEyfXIbEG2DRx+JhQw 75ppHVuPwIiNNMOdud/uvqNcezrJ8FPLPLRJ+zYuFchwetsPB1dFr1OGFxIe0yWxA52u ag3qBMzr5l9AQIUO4mBrlJbeieHSxNKhMH0bxkCSikASynq5YETv1SySeb5SCYDoynKx nLxncYE4EtLDIE4Gjw/dr4ofi2hLj+AqiTfRM0qzzg/+hq80aQOHyQa8l8NMLr8fBmH+ p01WhCsN/TwzDg76llp5OFUQ/54F7Wilud++5h+P9/GTJKP+5ecFEQVIPUTC8EYAPYO/ fqDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b="t0nV3aR/"; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u5-20020a170902bf4500b0019273090648si5887567pls.554.2023.01.25.11.51.27; Wed, 25 Jan 2023 11:51:39 -0800 (PST) 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; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b="t0nV3aR/"; 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 S235580AbjAYTvL (ORCPT <rfc822;lekhanya01809@gmail.com> + 99 others); Wed, 25 Jan 2023 14:51:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235085AbjAYTvI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 25 Jan 2023 14:51:08 -0500 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F080545229 for <linux-kernel@vger.kernel.org>; Wed, 25 Jan 2023 11:51:05 -0800 (PST) Received: by mail-ej1-x62f.google.com with SMTP id vw16so50581761ejc.12 for <linux-kernel@vger.kernel.org>; Wed, 25 Jan 2023 11:51:05 -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=zCu9ReBp8rsUO7BPnJkennx1RK9hssnXuHiiktJzKeY=; b=t0nV3aR/PpIjUcTvkuLzezyONXZoGiYlCSyzddvcFBdl1eRAIwg6doXK+FpyXwM7ps q/FAjrEdff4IjIwjZfezT1VIyxIH/vTDHxvDT10L+c5Y0DNAlq8L3rKQ17ot0EGAeHWC LuHJkj26o0qYMm85yao9HuvfDsMBOdX1ESIaZ0I8iJtk+NNHzR6qZWU3lvMgJ3kAmXa6 gneikFnIHIiiuFBeZRRPxQxmDRGLYecZjkMQ89NMK1G3f6VsyMGegGhbVE3vmL1I2uUW 1tA7AaJI0EEBkdOpLVkkz+G8JHnWDuSq9qoDGCxs6K+mt0hTzwv+/SXK/Bj+yVLSHrvP T6gw== 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=zCu9ReBp8rsUO7BPnJkennx1RK9hssnXuHiiktJzKeY=; b=sO8mWHdOaLSzXhh82SQejv0wOpT1FTakb99nn9A1kk27bJrsIgsddrrq8oCyd+CRfq c3sZQjbOHOghOeReI70Awfx/Qdd6MEgM84a1dc6k69zIuGHV3v3D3JtWbvCIYrXuUgmL ULhnj1nJuhCW+8wn8WP8qNGyLCMmXVaIGqcqUK7xrHkLxBTFX/8M0RHQnontOQxkYdVu b+kRZb2K24Rln5tcrmzB8Qj3ME62tcJwRMM7v6EAYC+4nJ46rqVgOV9ci2itrbZ8DPAf zgcifkLiJYSGJ/gn8MwTHwb/h085Mkm7N05vLc3XYZ5E9CMRouiAH33kbKsvfFV8BRMf tcag== X-Gm-Message-State: AFqh2kpbyG+xSqzp6zVWSu8w/0CAQVAwpC2IR3O8UNwRfx/HPG3bysNp ldLzc/yQWKpeupz8snYNjXOn0w== X-Received: by 2002:a17:907:1dcd:b0:877:6288:eff2 with SMTP id og13-20020a1709071dcd00b008776288eff2mr28762238ejc.75.1674676264497; Wed, 25 Jan 2023 11:51:04 -0800 (PST) Received: from blmsp.fritz.box ([2001:4091:a247:815f:ef74:e427:628a:752c]) by smtp.gmail.com with ESMTPSA id s15-20020a170906454f00b00872c0bccab2sm2778830ejq.35.2023.01.25.11.51.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jan 2023 11:51:04 -0800 (PST) From: Markus Schneider-Pargmann <msp@baylibre.com> To: Marc Kleine-Budde <mkl@pengutronix.de>, Chandrasekar Ramakrishnan <rcsekar@samsung.com>, Wolfgang Grandegger <wg@grandegger.com> Cc: Vincent MAILHOL <mailhol.vincent@wanadoo.fr>, linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Markus Schneider-Pargmann <msp@baylibre.com> Subject: [PATCH v2 00/18] can: m_can: Optimizations for m_can/tcan part 2 Date: Wed, 25 Jan 2023 20:50:41 +0100 Message-Id: <20230125195059.630377-1-msp@baylibre.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1756025376159381399?= X-GMAIL-MSGID: =?utf-8?q?1756025376159381399?= |
Series |
can: m_can: Optimizations for m_can/tcan part 2
|
|
Message
Markus Schneider-Pargmann
Jan. 25, 2023, 7:50 p.m. UTC
Hi Marc and everyone, second version part 2, I fixed the bug I noticed for integrated m_can devices. The accounting was wrong or missing for these. I don't have the integrated hardware myself so any testing is appreciated (I only have the tcan device to test the mcan driver). Also v2 rebases on top of v6.2-rc5. The series implements many small and bigger throughput improvements and adds rx/tx coalescing at the end. Best, Markus Changes in v2: - Rebased on v6.2-rc5 - Fixed missing/broken accounting for non peripheral m_can devices. 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 part 2: v1 - https://lore.kernel.org/lkml/20221221152537.751564-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 | 514 ++++++++++++++++++------ 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, 432 insertions(+), 124 deletions(-)