Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp48832pxb; Tue, 2 Mar 2021 18:42:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJz8dI+DHNSXOkS8s72X5EsN5WKDqANvBhq7FUVQo7fI5uODc0ZSAa9nRGVa6+Vb9tM1+a6z X-Received: by 2002:a05:6402:5250:: with SMTP id t16mr23263179edd.302.1614739347334; Tue, 02 Mar 2021 18:42:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614739347; cv=none; d=google.com; s=arc-20160816; b=Cit4eGnWV3ubD5VISVSVWAeO27NNjjW2yGi3B9Q3W9i+rs8WaGhvZe4brFqOUriQRE vpfGFQtOqcl0st1Mhn2yQhd1HriDxBZraQpt3eCKxmIO5Yu0p15fssDfu7+5Aju1wMVh luEFxhZ+A6slQJEFzVyiCit7C2agNN2UEMMv/QQoKANLy3CtebGqwZ9M5VP2VPZnJVO2 18nXD6xXmwHdToUG4SjoO6ozAd0gRV/1om0Vn8XBbUJ5xxbyuY9Tt2Ss7Surjk9akb5R dDTJuY5KIfB2nlC5jE1jVSeawbOnJeqhhrRrDSqMOZfh/Kvysm8oxnmVxB9u1WWWmE7c ZuXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=DYwTPMqSIQQelxZGxg0G5DGXioV0qwrAZDo2bbibuu8=; b=tZuIOt3M/LTphgmrLEslBO1IWLDPo7O6bwtSCKc72agzdqINZdw4pn4xiFPOL90hgY sjK8uqq4TNYy7H4DkwhMzXRZ25pAjJexOMZNE4TqMfdM/Bzx3aJiyKxQRMusCE3SHRrJ jUo+ahlr1FnHTuDi7XzyzYPbEHSFO5TAXQ6sHjMiiKpOGdao67ncrF80VtQtHZtrSi/F UgR1VlkWHcOCEAikgMmzsltwcclDaHBB9d+4IVmhZnUUOaou5rIuHsBkcp1bhO27VW79 EnKsdDrT8fZ+9ak8G60nkcGl07eIvhA0YiBN0ZkN52VWOgE0e09KxNwR1GVqUv9q8htl afOQ== ARC-Authentication-Results: i=1; mx.google.com; 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 ji4si6262770ejc.235.2021.03.02.18.42.04; Tue, 02 Mar 2021 18:42:27 -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; 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 S234848AbhCALz5 (ORCPT + 99 others); Mon, 1 Mar 2021 06:55:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234389AbhCALv7 (ORCPT ); Mon, 1 Mar 2021 06:51:59 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B599C06178A for ; Mon, 1 Mar 2021 03:51:19 -0800 (PST) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lGh4t-0006Kn-7h; Mon, 01 Mar 2021 12:51:07 +0100 Received: from pengutronix.de (unknown [IPv6:2a03:f580:87bc:d400:6e66:a1a4:a449:44cd]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id EEF755EB1B2; Mon, 1 Mar 2021 11:51:02 +0000 (UTC) Date: Mon, 1 Mar 2021 12:51:02 +0100 From: Marc Kleine-Budde To: Dario Binacchi Cc: linux-kernel@vger.kernel.org, Alexander Stein , Federico Vaga , "David S. Miller" , Jakub Kicinski , Oliver Hartkopp , Vincent Mailhol , Wolfgang Grandegger , YueHaibing , Zhang Qilong , linux-can@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH v2 5/6] can: c_can: prepare to up the message objects number Message-ID: <20210301115102.j5qwmiy2on3ezd4d@pengutronix.de> References: <20210225215155.30509-1-dariobin@libero.it> <20210225215155.30509-6-dariobin@libero.it> <20210226083315.cutpxc4iety4qedp@pengutronix.de> <1564374858.544328.1614507493409@mail1.libero.it> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2dhc5sepxjp7dlct" Content-Disposition: inline In-Reply-To: <1564374858.544328.1614507493409@mail1.libero.it> X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --2dhc5sepxjp7dlct Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 28.02.2021 11:18:13, Dario Binacchi wrote: > > > + u32 msg_obj_rx_mask; > >=20 > > Is this variable big enough after you've extended the driver to use 64 > > mailboxes? >=20 > Yes. I have kept the message assignment policy unchanged, they are equall= y=20 > divided between reception and transmission. Therefore, in the case of 64= =20 > messages, 32 are used for reception and 32 for transmission. So a 32-bit= =20 > variable is enough. >=20 > >=20 > > If you want to support 128 message objects converting the driver to the > > linux bitmap API is another option. > >=20 >=20 > Do you know if any of the hardware managed by Linux use a D_CAN controlle= r=20 > with 128 message objects? Even the am437x only uses 64 message objects. Ok let's stay with 64 as max for now. regards, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --2dhc5sepxjp7dlct Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEK3kIWJt9yTYMP3ehqclaivrt76kFAmA81SMACgkQqclaivrt 76nyPQf/aaa/oKtyI9yNhbSa5NQXHNe7o/CjFKpk5OCavnNpKh0eTRSxmdip+sDT PReCAnYwfvQAa4o2zMuW8xR4igotXas/6o2JXY/RLWmihXp3zTHVAuku0aRJlNiE ePSAVAof3SdenghvekzLu+y7gk1qgFULQkHyp6AZxY8ABJUowTOrarK5rhD9U8xy g8ERGLxVOObBqbDh9yEarTv0mY1PC224uZToSK4v94Bfyh4gUD97iYLknbtHdKhK gugf8iOvLfIVB1H2EUvxWL4SzPASF/IGJCKVzyuY3HPMmt31RIGiD14yYoKqBHJB /0yOSFgRkH6E24iHYGeP9co18gY0Bw== =4J6b -----END PGP SIGNATURE----- --2dhc5sepxjp7dlct--