Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1572264rwd; Tue, 13 Jun 2023 10:55:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ533fkaLKxXbKgJI5nIIENaomS9o0Ku425wTiw8YqqmOSzqHdCY4xrPHgj6Vu+W594Ekxt7 X-Received: by 2002:a17:907:3da7:b0:974:c32c:b484 with SMTP id he39-20020a1709073da700b00974c32cb484mr15455318ejc.72.1686678929029; Tue, 13 Jun 2023 10:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686678929; cv=none; d=google.com; s=arc-20160816; b=kgdOEqKXf18F7gimhpFVLQn29gOG8Ctlbc3NZa4Kn+kATEw4Rrdf8G3YRsbfb2XXGF T/f5i1uxCK66BDgWqi8KIn7rbj/HFz0RXZWFNir204gQeQ9cAHXJ/ZxD4DetjAl6MSPe /vBVFf/BZA6R/enFKu3kDQa2t4qrDt3Q7w/evOwT/o2YD4GfmBjEuAyNIzdbw3siIkEf D/MVfQmHhTbetPOnB7zEmiSJZgciEkImmoOZW+mg0mDObm8pX4IaCLXOQ2n5WsGoFore gbcEtlRI/AdTO4hSzjg/YCU/tj9tgfOqViAIx6KeDqz+QNjhrMhnqgs6TGRSAq+KGXcE HRCg== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=igyZvlOfVcSf4nGPg6BKktZlYY6keooO5jqV4M4Sjf8=; b=d32jKqlZzHlL5bJwMhJ8LYnJQyfrzZ/bYbzAPoDNfhuEGo0Li5Ykwz7kkNDLGH4aiv sRSytE2l2or2Da8rUhb3jByJqpFirrZH1jUx2KwACZvjvnQwf5Pd/W/Yey58zBlvk6KK FQzs6Acw5rHAF+AGdLCiLjRI1h4cU2VR3O3opj+uH7Ol8hwy/nidMpKOc56iQD6FMu1g 6dyIK3k10F9FEjz5SvHBO5kBxCNyEmbWXnMOUJ2XOQA63Xll4Sz18sk8rsoYzFNO2xml zpGqzMiBjwDOJizN6PkiMgiXkY7lvxA4Kds2ZxLkWKeLJcLv9xzji+MFYwOObLE9K73h Pxsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=GxpXVusB; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e2-20020a1709067e0200b0094f712dac55si6860121ejr.734.2023.06.13.10.55.03; Tue, 13 Jun 2023 10:55:29 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=GxpXVusB; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232094AbjFMRml (ORCPT + 99 others); Tue, 13 Jun 2023 13:42:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236376AbjFMRmZ (ORCPT ); Tue, 13 Jun 2023 13:42:25 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74BECA6; Tue, 13 Jun 2023 10:42:24 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 35DHfu9W084100; Tue, 13 Jun 2023 12:41:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1686678116; bh=igyZvlOfVcSf4nGPg6BKktZlYY6keooO5jqV4M4Sjf8=; h=Date:Subject:From:To:CC:References:In-Reply-To; b=GxpXVusBEQWpKJk8EBWTP2BMfzh9WPp8AV+k33AdMWxN4P+v8hMs6zUxuJDgxnwbH 0Q+oKfWMpNgZBmev9FwdcO+h35SbYXjFwi/be+J+7xOCvrnwn3msEPUShT7FPrvgAm oYLb8mIxa09TV4psU4JfK4DwyfphqOMFfSi4fG+o= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 35DHfuOi122876 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 13 Jun 2023 12:41:56 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 13 Jun 2023 12:41:55 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 13 Jun 2023 12:41:55 -0500 Received: from [128.247.81.105] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 35DHftFR010861; Tue, 13 Jun 2023 12:41:55 -0500 Message-ID: <9905aefb-0d27-a4d6-b72d-5b852dc04465@ti.com> Date: Tue, 13 Jun 2023 12:41:55 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v8 0/2] Enable multiple MCAN on AM62x Content-Language: en-US From: Judith Mendez To: , Marc Kleine-Budde CC: Wolfgang Grandegger , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , , , Schuyler Patton , Tero Kristo , Rob Herring , Krzysztof Kozlowski , , Oliver Hartkopp , Simon Horman , Conor Dooley , Tony Lindgren , Chandrasekar Ramakrishnan References: <20230530224820.303619-1-jm@ti.com> In-Reply-To: <20230530224820.303619-1-jm@ti.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Hi all, On 5/30/23 5:48 PM, Judith Mendez wrote: > On AM62x there are two MCANs in MCU domain. The MCANs in MCU domain > were not enabled since there is no hardware interrupt routed to A53 > GIC interrupt controller. Therefore A53 Linux cannot be interrupted > by MCU MCANs. > > This solution instantiates a hrtimer with 1 ms polling interval > for MCAN device when there is no hardware interrupt property in > DTB MCAN node. The hrtimer generates a recurring software interrupt > which allows to call the isr. The isr will check if there is pending > transaction by reading a register and proceed normally if there is. > MCANs with hardware interrupt routed to A53 Linux will continue to > use the hardware interrupt as expected. > > Timer polling method was tested on both classic CAN and CAN-FD > at 125 KBPS, 250 KBPS, 1 MBPS and 2.5 MBPS with 4 MBPS bitrate > switching. > > Letency and CPU load benchmarks were tested on 3x MCAN on AM62x. > 1 MBPS timer polling interval is the better timer polling interval > since it has comparable latency to hardware interrupt with the worse > case being 1ms + CAN frame propagation time and CPU load is not > substantial. Latency can be improved further with less than 1 ms > polling intervals, howerver it is at the cost of CPU usage since CPU > load increases at 0.5 ms. > > Note that in terms of power, enabling MCU MCANs with timer-polling > implementation might have negative impact since we will have to wake > up every 1 ms whether there are CAN packets pending in the RX FIFO or > not. This might prevent the CPU from entering into deeper idle states > for extended periods of time. Was wondering if I am still pending some updates for this patch series? Or if any other issues please let me know. (: Thanks all ~ Judith