Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp123940iob; Mon, 2 May 2022 14:53:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykZh8IxX2wC7KP6UU/m/srjmjS3KLXgEqidBf7oxBLwsFzWn3TR5k+R0rEUcE9C1mNw6VV X-Received: by 2002:a63:6bca:0:b0:3c2:13bc:2706 with SMTP id g193-20020a636bca000000b003c213bc2706mr5935061pgc.464.1651528408922; Mon, 02 May 2022 14:53:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651528408; cv=none; d=google.com; s=arc-20160816; b=gfm8aOxPbEEFyGb3oZz2TPQs//wEUYOYfFh8H1Fwpng9Mlt5X1/QyDHFxADDYy+Ccf kGfWkR0pDHSrOLADwITve39uO2N0nXCxlvIoPfH/Plm3Va5V+fMD9ZzeSpfb2aMSsb1b DFFEHfC9L5OQsijS+l+HdAxNqSsvZhr2vuFkBfLfSWY3RBt6XUfiItcPZGPY3eNQPnDQ WSbSptg0EI8yYcFt5q2Q6PKjTeQF4b6Xj1y3lvnsnq3LUFW6CF3Titl8mpnCwaKvvvVe TDlPoNlFkw3qKP+iSDuT0JUa8+R/Y8x9Z3Fef3GjK9/7Dx5NIvNMllVB0O6cmwdrK/+Z qdaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=IKIkKWLuV1OGwYFULnAsOkM2G0PGs69FkOVI5N/cNnw=; b=E5ZzW4SmV/06dQexEyJT0jr+2hFYszHX/p6Rafa68IzogbDsHpAg8z/kh5dtKbBs9h WLDj1G5EdmaUhGcoN1yZpC3BizALd2waaK7TqrJ8SIeqPWVQCNQEu55k6FzYe6j/MoaP Hy6v4d7aoKaWtEoyhrosnIWT5DTdjj13pNhAIK4NkZg/7E3/cXN+K2uGlHZ8Pvzz7B4Y 0fTSnO3K5n7a1mIAS1Hj2vexIKZ4rEIoJjSVTfEHs4m1lVlOyFvDYusQ2HctPXjHsUIG 0/5KBF3cN1drROF/y6h+7W+xVtT0WhW9DpdcqnlO+DSagTM7NLP4WLUQuSDDeG+xJ56A iQAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=E00mffjD; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i5-20020a63cd05000000b003a85cf1e1edsi14097505pgg.305.2022.05.02.14.53.06; Mon, 02 May 2022 14:53:28 -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=@gmail.com header.s=20210112 header.b=E00mffjD; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1386438AbiEBRHv (ORCPT + 99 others); Mon, 2 May 2022 13:07:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352435AbiEBRHt (ORCPT ); Mon, 2 May 2022 13:07:49 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A8B7525F7; Mon, 2 May 2022 10:04:19 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id u3so20345747wrg.3; Mon, 02 May 2022 10:04:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=IKIkKWLuV1OGwYFULnAsOkM2G0PGs69FkOVI5N/cNnw=; b=E00mffjDjTe6c/+9iDlEB1wdjEcT0U7DrFgxMpBPQJx9s+IQ4i+hMTICCKe1dASuRK vv17Che0ajGuui4mx+K4r1+z9SF2TndTWwcLkPj7BMuHQVSLA/G8SdWC1WOJcaezXcEO b/Tooz0sFb9G1wLn4RiJVFlcskkBXXUmyjKYwz7a9+TwyRGdWnAuwzUf0fCiUkO4ygoB YD8aLEPqcUpn/YjO2ONOe5YijCPdvSc8VQbjgldKdr1xt9IDzvQxyEeVTIAnEu+JSpYf STMZn12f6RylbjtgqkIXpQn6ujutZoG6Wz/zFfehbOoE6scGhaR9O9vV+mvz4mPPLlYt 5d8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=IKIkKWLuV1OGwYFULnAsOkM2G0PGs69FkOVI5N/cNnw=; b=LYe8c2OnNbN5bKg7ZYsNSWx+DdbHZ0P7nHGXjFeRl9/bJdbRtoRC2Sgu/B8EjQ+Bn+ h25GEG/dSihhenSw9d4t+nWvXx3Q5mz+YHgoOkPTxW79EKK+RBB8oh8LLOX3gOt1JqAm JMrRutjwuNfK/0WB5cTmGqyqRdZ3VEpKSGyG/emww5iVTcqooCjyYzfcraRYFL3Kb7Ce HEkkCJDAH4OLUcdX5LMAOoX/XXXdwpfkAzW0OYpSZS18iqR8oX7ZvQyN2Fw8h1sjgrXX vKtQHCStvvXdizp4shFdYXa1Yo+DbJCMy/L6RYdD5OE6svyPgU8ZD8UyA8CsN1CQyDOG 4Leg== X-Gm-Message-State: AOAM532h1RZhyV9puV9D/W+RvpPmb5EixiCQ+Fb8XB4lB2xO891ZFEtZ zNkKoTfh3/MNd9iVUzQwI+I= X-Received: by 2002:a5d:5885:0:b0:20c:7048:2951 with SMTP id n5-20020a5d5885000000b0020c70482951mr1354652wrf.28.1651511058007; Mon, 02 May 2022 10:04:18 -0700 (PDT) Received: from orome ([62.96.65.119]) by smtp.gmail.com with ESMTPSA id k8-20020adfc708000000b0020c5253d8easm9375256wrg.54.2022.05.02.10.04.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 10:04:16 -0700 (PDT) Date: Mon, 2 May 2022 19:04:13 +0200 From: Thierry Reding To: Cai Huoqing Cc: Mikko Perttunen , Thomas Zimmermann , David Airlie , linux-kernel@vger.kernel.org, Christian =?utf-8?B?S8O2bmln?= , linaro-mm-sig@lists.linaro.org, dri-devel@lists.freedesktop.org, Sumit Semwal , linux-media@vger.kernel.org, linux-tegra@vger.kernel.org, Jon Hunter Subject: Re: [PATCH v2 0/4] drm/nvdla: Add driver support for NVDLA Message-ID: References: <20220426060808.78225-1-cai.huoqing@linux.dev> <20220429032810.GA10104@chq-T47> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xESg3apyTC1nCRXH" Content-Disposition: inline In-Reply-To: <20220429032810.GA10104@chq-T47> User-Agent: Mutt/2.2.1 (c8109e14) (2022-02-19) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 --xESg3apyTC1nCRXH Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 29, 2022 at 11:28:10AM +0800, Cai Huoqing wrote: > On 28 4=E6=9C=88 22 18:56:07, Mikko Perttunen wrote: > > On 4/28/22 17:10, Thierry Reding wrote: > > > On Tue, Apr 26, 2022 at 02:07:57PM +0800, Cai Huoqing wrote: > > > > The NVIDIA Deep Learning Accelerator (NVDLA) is an open source IP > > > > which is integrated into NVIDIA Jetson AGX Xavier, > > > > so add driver support for this accelerator." > > >=20 > > > Hi, > > >=20 > > > nice to see this work going on. For subsequent revisions, can you ple= ase > > > also Cc the Tegra mailing list (linux-tegra@vger.kernel.org) as well = as > > > the Tegra platform maintainers (that's Jon Hunter and myself). This w= ill > > > make sure that more people with an interest in this will see your wor= k. > > > Not everyone follows dri-devel, linaro-mm-sig or linux-media. > > >=20 > > > Thanks, > > > Thierry > >=20 > > From a quick glance it looks like this driver pokes DLA hardware direct= ly > > which is not the intended programming model on Tegra hardware (there are > > Falcon microcontrollers that offload task scheduling and synchronization > > from the CPU). The hardware is also behind the Host1x bus so a simple > > platform device is not sufficient. > >=20 > > Was this driver developed against some platform with OpenDLA hardware (= i.e. > > not Tegra)? > >=20 > > If so, we'd need to verify if the hardware matches the hardware in Tegr= a194. > > Also, this driver may not be ideal for Tegra platforms since we would l= ack > > the hardware scheduling and synchronization facilities. It is likely > > necessary to have separate drivers for OpenDLA and Tegra's DLA integrat= ion. > >=20 > > Thanks, > > Mikko > >=20 > Tegra DLA seems to work with a slave coprocessor, the host driver just > impelement message queue, share buffer, notification... The hardware > detail of DLA maybe in the slave driver(not linux OS?). >=20 > Sure, This driver just support for the SOCs or FPGAs that OPENDLA > inside. I will change this kind of description "integrated into NVIDIA Je= tson AGX Xavier" > this driver dont support for Tegra directly. Yes, I think it would be good to make it clear that this is not going to work with the Tegra instantiations so that people don't get confused. I think it would be ideal, though, if we could reuse as much of this driver as possible to work with other instantiations. The only reference to OpenDLA that I can find and which seems somehow relevant to this is here: https://github.com/SCLUO/ITRI-OpenDLA Is that the version that you're using? Or is the version that you're using at least compatible with that one? Apart from that and the Tegra instantiations, are you aware of any other derivatives that we need to account for? I'm worried that this might fragment to the point where it becomes unmaintainable in upstream Linux. Even if this doesn't concern the Tegra instantiation, I think most of my other comments remain valid. Things like global variables will get in the way of multiple FPGA instantiations as well, for example. You will also need to provide the device tree bindings for the particular instantiation that you're working on. Typically this would be identified by a vendor-specific compatible string for your particular board, but if it stems from a "canonical" FPGA mapping, matching on that compatible string might also be an option. In either case, when you send out the DT bindings, please include the devicetree@vger.kernel.org mailing list so that they can be properly reviewed. Thierry --xESg3apyTC1nCRXH Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAmJwDwoACgkQ3SOs138+ s6HQBA/9G4mT1YRxO1XmbGtYRMlb5WwgJE5DE02upNSHm7Ixb2KSRxQqcdLPG/rQ ip5zcasTrh9hLKISslL9+mRphslV8obFPSF9tDhQ/SINiIRM/9CYvI4vkr/qe38t C6GU4tlQwn/IJIy1i4jaDVxdFEtQzXEAucfG1lLee1L46jYUpykk3cTKFCZM8xND HTrWnKdCUsjb9it08g68ItVxkq2v5lG2HKT+j4LJeEA82i4iS34/H42QOyQ7yQi9 0CsRDMq/BC7Nu8bSCKzwMAp6FiO9ZSXBPb5Bvpy1gbZRKMX0OvQe2u0/wk2DI0zG G70ioJZUh8lq7Dtx6TnFTaYskxKFipHfni4oBOMXD4GQJ9YPlPG5NMNTDPLvL+Co OqwgDr3EFKee6efZwsJbzYF+2sculK4syW9OHZDvP8RuhqW2qCiWBBQxqj9SY/hB LJ33BUv7iCer3fpSORrmmT2rNRzCw0xqiOWniofQTdKZUDtphrjwxW9wT+FbnFNw /mrXZGsB8UY8sKQyhR3FDL74g6QYb9wrpq9mJ4jKD/Py3Yd00v00GjgeDHmb7V/d weu2Nrx1NG83vW4rBqGd4qnOZbMQtEesVgaa3SYmH5lyJSzAnCB9QT5PPR3xL8o3 96I0sU2UqMHqWjCMqKFLD8886Oovi3Jo4uuXONTL95ZIDoScJaw= =Kefv -----END PGP SIGNATURE----- --xESg3apyTC1nCRXH--