Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4639354iob; Sun, 8 May 2022 20:12:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBd1CXzn6reMmSQxTW9VfeS3ox9VLgqn/SxVv+wC03FmYVlKrnzAi6AXLMBj0R2NclPwVL X-Received: by 2002:a17:903:248:b0:155:ecb7:dfaf with SMTP id j8-20020a170903024800b00155ecb7dfafmr14334893plh.84.1652065978856; Sun, 08 May 2022 20:12:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652065978; cv=none; d=google.com; s=arc-20160816; b=HP23VTvdwzSwV2AJ9kJCh4GpNBOxzYjDqZQevycfPG6Or26snRXWCx9gWf9c+3k9RL 2zp7GLATSXDKvJPkY/V0XZDlaXYMM05T1mQKe2P/F6ZZojA7He8m766KeMH6rCt/+LLL wE4Y0t81uYhq1M0u0J3arQZ9hdGFn7J2JiBx3vVpwBSCBJ/nffdKg38wKu8TKcbPdo0k UU01+G7R8yxCOtssQPioV4Yw4lSE5nmT/uimElMpQRekB5FSDXkPAR6+ihyURqgK5bYx MTyCxERX7ASB05t/DvxngvhyMfzM89VdkLOfKXunZB+XiiOHTlcpl1RZvx+kA0JB0Cqh k8Ng== 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=0jVDkHUl1fqfqQLGFjqvBHj+kZDZmLfom5JvGNbdgg4=; b=OKD/BHp0hiqdcHh37hrzHmumqToczpaaY3A3FXKoqLfhHRKaDJuhHmsLW1L3xrOGnq uSS2XFlSubVgpN3yh0rYknqDPmxT1yBO/EGHuV+juicA5EOAITYrfMsniT+oHL5olG3S Un1G3XwsUFlq7qFEsyjUfUNxhJ5eoCssZ82wSNIbXqdTE0CJKoq9yyv2UkhyXJBzvuMn kaTOp0zUC9aEaqKw82j4d/Q13OuYMHn5TWVGYWrOmjYbaFSAw7zgwVc6KCeWTcxMA3Go lqI4CeI98cV9ssdqdPWfLzwmz6KjqDEjNb3GBBRU4xCalj+t/aG8ud+YCZ0nRbcIwE17 qe0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@motec-com-au.20210112.gappssmtp.com header.s=20210112 header.b=m1so14Tb; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=motec.com.au Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c8-20020a17090a020800b001d9a26d5275si17024781pjc.71.2022.05.08.20.12.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 20:12:58 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@motec-com-au.20210112.gappssmtp.com header.s=20210112 header.b=m1so14Tb; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=motec.com.au Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4E44190CFD; Sun, 8 May 2022 20:11:45 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386454AbiEHC4X (ORCPT + 99 others); Sat, 7 May 2022 22:56:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443966AbiEHC4V (ORCPT ); Sat, 7 May 2022 22:56:21 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DD586596 for ; Sat, 7 May 2022 19:52:29 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id ks9so14506443ejb.2 for ; Sat, 07 May 2022 19:52:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=motec-com-au.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0jVDkHUl1fqfqQLGFjqvBHj+kZDZmLfom5JvGNbdgg4=; b=m1so14Tb9iGfnhOfA1ik+03YVB1S3j147piYsa2vFeyo2Nqm8ZTKxhkfyf+pX/z3mU pWojsoRO1A5A7FQqUQ/XmvRcxtEE7crXdEuMGNvLMkUz8St272ImE2jSBFXMDBfp68V1 4+vJAbkTKSw00DeAmYdQ2WqLkwI6CuwNU/zUz+5qzlZNioJpbPR2FhDgy021JN5remtq PUO+ZPr3phvbIKuGAmPgCFdsjto7cmZoPQf7UaQZ7O7J/juGFOn/pRLxC20mW/WIO+41 cGAs+2NoEcvFPFikdahqRk/iAltpdlP5pW2xTgUwGKMxsmHWlxQFSEMUOpebEiLAQb2r r2qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0jVDkHUl1fqfqQLGFjqvBHj+kZDZmLfom5JvGNbdgg4=; b=uwGKoWWOo7Dm3/QyL/SWCO5IMGHLtKm1J12v7lKbtWRLIvl7/xbly4eGXLNmNH5SX1 JGmxYgZlif4ueB9975tzwkkKc852UEDRI3gpfLtPGBWHgTyO0Oyn0pXsaUq/q0gLuLVj ZDhNBPysz0YfeQ/wRhQcjpMqktyhK8htXJLsLkj5isLW9AbAGM2Ev/3564WBmLF+70I3 U9m2zPtvM36JswQOhwOspak1lz89kuOcWchiLt6ygQ0EJRaJvHUSq9Y4sq0amjHLN3vI oy7j9Y7ipQZwysfzno6gOsMVcAfCRojbN7mJ8G1SgSiNl92AwcddbgEIzB4wVtgN2Gto 5a9A== X-Gm-Message-State: AOAM531IvsF5YmvUk/WMPRq32chZqxVtD7KYQCPAVw3YVn/l+Xr4c03I c4dorgw4Oyxh2oYdSLYz3QU5Zo/9FPARhKtlQi/Abw== X-Received: by 2002:a17:907:7fa8:b0:6f3:e975:abfa with SMTP id qk40-20020a1709077fa800b006f3e975abfamr9336479ejc.86.1651978348179; Sat, 07 May 2022 19:52:28 -0700 (PDT) MIME-Version: 1.0 References: <20220503064626.lcc7nl3rze5txive@pengutronix.de> <202205030927.15558.pisa@cmp.felk.cvut.cz> <20220503085506.d5v4xtpumr7gm7hy@pengutronix.de> In-Reply-To: From: Andrew Dennison Date: Sun, 8 May 2022 12:51:52 +1000 Message-ID: Subject: Re: [PATCH v1 0/4] can: ctucanfd: clenup acoording to the actual rules and documentation linking To: Ondrej Ille Cc: Marc Kleine-Budde , Pavel Pisa , linux-can@vger.kernel.org, Oliver Hartkopp , Wolfgang Grandegger , David Miller , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Marin Jerabek , Jiri Novak , Jaroslav Beran , Petr Porazil , Pavel Machek , Carsten Emde , Drew Fustini , Matej Vasilevski Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Sun, 8 May 2022 at 01:51, Ondrej Ille wrote: > > Hello all, > > again, sorry for the late reply, my daily job keeps me very busy, and the vision of completely new silicon > coming to our office if we meet a tape-out date is somehow motivating :) > > Just few notes about the discussion: > > 1. Number of TXT Buffers > I agree that driver should read-out this information from the HW, not rely on fixed configuration. > True, the default value in HW master is 2, but Linux driver had 4 hard-coded. This was coming from > times when there were only 4 buffers (no genericity in the HW). IMHO this is HW bug, because the > intention when doing the "arbitrary number of buffers" extension, was to keep default value the > same as in previous implementation. System architecture document also has "4" as value of txt_buffer_count generic. > > I will fix this ASAP in the master branch, hopefully regression will not complain so that the current driver > version is compatible with default HW. > > As per reading out number of TXT Buffers from HW, Pavel proposed moving TXTB_INFO else-where > so that there is more space for TX_COMMAND in the same memory word. The rationale here, is having > reserve in case of an increasing number of TXT Buffers. > > But, with the current format of TX_COMMAND, the reserve would be up to 24 TXT Buffers. Even if there > ever was a use-case for more than 8 buffers, there would need to be another non-compatible changes > in TX_PRIORITY and TX_STATUS, and the whole register map would anyway not be backwards compatible... > So, I propose to keep TXTB_INFO in its current location. Hi Ondrej, Based on this it seems my patches can be cleaned up for merging. Pavel / Odjrej: did you want to include the patches in your public driver tree and submit from there, or shall I submit them? Adding to yoru tree would keep it in sync with the upstream driver already submitted. If you provide a review I'll cleanup any issues reported. I can submit directly to Linux as Marc proposed but having a single authoritative source seems cleanest to me. My current patches are on master in this tree: https://github.com/AndrewD/ctucanfd_ip_core I'll add "Signed-off-by: " to the commit messages next time I touch this - once I get clarity on the way forward. I don't have an immediate need for a Linux driver for ctucanfd so haven't touched this recently. Kind regards, Andrew