Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp272500pxk; Thu, 1 Oct 2020 01:52:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyL2fpf2k/Tt3YPoltK7yHqKBKgnch2sGzlbjZgxM6TaqB7mGcoCpGTOa+c4SbhqmTUCCL7 X-Received: by 2002:a50:cd14:: with SMTP id z20mr7075603edi.4.1601542347816; Thu, 01 Oct 2020 01:52:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601542347; cv=none; d=google.com; s=arc-20160816; b=mjXg5/Rws4EmOiyoz9qmFQobE3eirm+dUW9mOiU1maIoysbrUAczO4nnpnNozUuUqh tcpOTPQFZJZdrQ8dVFPKu8EmnDdEOjC86Of3SiUCQD/qotV659YSRgxPU/h6lzgrI+sM wQ6/pUC9c20lNnBAo8Gup9iuJ1F6dkn9q8fQarM4B4cgvzkA0iAJTGjK0CsY+rGsCFIy V6eBvo8nti3NbPM9HLh0sDBrNS42KL8tCu7L+p6U8nABGQKyrjM/qJhDwW79n2SU/bVW xFOHifRu2CeoKqI6odjlApQPCGVkPzq33ECV6avZieHTt11gjKIzSlDs/hf3B93xD7FO 1kOg== 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:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=z3W/+UmHFDJR18MuX6sQgP8oE7n6vaF6n11YCm+XJiI=; b=I+HUpI4KSf42GhJWt2skzCfvDK41oLjHF9fgKaglw5tNwDaB8BzjPW9aeCEAKgNVkU 2SR9wUx4nqDlkXBQMhzMnDgml4UcB1qfVlGIxngVVJB1rQedW4aL8FpRLMtwSTjE0IDl 0Rl09H07MW5qPV1cYyKenCsnIl2KlUmqH1Jjt3JmEKI5Vd8LGsBfTSheIFNqsdW9Hfri e1BsZp7cINcsSlIITdn4oztQYCMGZMfDzHB4HZzlVgPwHbMWw38YaLbkIyozns8ZomTr OTciS7snx91dp/SGtflVf3JZBDsjht6waKxGQmlj24y1E0GCJyw/6+rGFcvvL7SsBwSz xCrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b="U/JeWGe3"; 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 y17si3061407ejq.737.2020.10.01.01.52.04; Thu, 01 Oct 2020 01:52:27 -0700 (PDT) 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; dkim=pass header.i=@ffwll.ch header.s=google header.b="U/JeWGe3"; 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 S1731067AbgJAItD (ORCPT + 99 others); Thu, 1 Oct 2020 04:49:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725894AbgJAItD (ORCPT ); Thu, 1 Oct 2020 04:49:03 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD34DC0613D0 for ; Thu, 1 Oct 2020 01:49:00 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id x14so4675355wrl.12 for ; Thu, 01 Oct 2020 01:49:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to; bh=z3W/+UmHFDJR18MuX6sQgP8oE7n6vaF6n11YCm+XJiI=; b=U/JeWGe3SdUqAg1gTu7Y3Xv3WAzhqdCQ4Mu1Hi8lxqEJtuJ/8vwe90fj/S6vDe/me/ ssWLVdhX73q1L0zPWAOlDGAgTDEapccIDXp/kK9DqX0y0ZCS58gT2lXDhzTlJE/lyp78 4xETKJogwAFFERKf6kBBCLoC8phbOF9BsoIZQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to; bh=z3W/+UmHFDJR18MuX6sQgP8oE7n6vaF6n11YCm+XJiI=; b=fl0+I7MyjbEnbz992L2vNk/Xu7Nu6bUS8TuvVCwX73rd+fK9zlpKgm25lALAB9Zaa2 Gq0CHexozG6ByI2rESoiseOnw+rDjeHymBBOo/Ae7JKr12zB9/+Y1gjpLw1XhkWNnyZe LNmZzCvDmiNTrWpmT/SUHJAV9L5W2D/oD3OVO1iDbZnIMfHerAJsn9joYXtJY/+lze+X q3XUaIygXwjnKpNLjgxANMeYPV8Oh5IO+iLQojI0j4e419u4e4O5jWoyq2C3cPfVIbEg 65NG5oadNH4bgpFJlsWQtYTViiTgKNrsM/d9N+wvHStDl6+jaRryC/eeR2t5+tUfN26J iwBw== X-Gm-Message-State: AOAM530fvpC2qZ3/TjBV1jtE+XcEke3ImZyWsKUjsoR4G0EIogRqZaTz RWtJoKfovmg4PwI6rl8HN8QLHQ== X-Received: by 2002:a5d:4a48:: with SMTP id v8mr7600342wrs.304.1601542139344; Thu, 01 Oct 2020 01:48:59 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id y1sm7475729wma.36.2020.10.01.01.48.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Oct 2020 01:48:58 -0700 (PDT) Date: Thu, 1 Oct 2020 10:48:56 +0200 From: Daniel Vetter To: Alexandre Bailon Cc: linux-remoteproc@vger.kernel.org, ohad@wizery.com, gpain@baylibre.com, stephane.leprovost@mediatek.com, jstephan@baylibre.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, mturquette@baylibre.com, bjorn.andersson@linaro.org, christian.koenig@amd.com, linux-media@vger.kernel.org Subject: Re: [RFC PATCH 0/4] Add a RPMsg driver to support AI Processing Unit (APU) Message-ID: <20201001084856.GC438822@phenom.ffwll.local> Mail-Followup-To: Alexandre Bailon , linux-remoteproc@vger.kernel.org, ohad@wizery.com, gpain@baylibre.com, stephane.leprovost@mediatek.com, jstephan@baylibre.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org, mturquette@baylibre.com, bjorn.andersson@linaro.org, christian.koenig@amd.com, linux-media@vger.kernel.org References: <20200930115350.5272-1-abailon@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200930115350.5272-1-abailon@baylibre.com> X-Operating-System: Linux phenom 5.7.0-1-amd64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 30, 2020 at 01:53:46PM +0200, Alexandre Bailon wrote: > This adds a RPMsg driver that implements communication between the CPU and an > APU. > This uses VirtIO buffer to exchange messages but for sharing data, this uses > a dmabuf, mapped to be shared between CPU (userspace) and APU. > The driver is relatively generic, and should work with any SoC implementing > hardware accelerator for AI if they use support remoteproc and VirtIO. > > For the people interested by the firmware or userspace library, > the sources are available here: > https://github.com/BayLibre/open-amp/tree/v2020.01-mtk/apps/examples/apu Since this has open userspace (from a very cursory look), and smells very much like an acceleration driver, and seems to use dma-buf for memory management: Why is this not just a drm driver? -Daniel > > Alexandre Bailon (3): > Add a RPMSG driver for the APU in the mt8183 > rpmsg: apu_rpmsg: update the way to store IOMMU mapping > rpmsg: apu_rpmsg: Add an IOCTL to request IOMMU mapping > > Julien STEPHAN (1): > rpmsg: apu_rpmsg: Add support for async apu request > > drivers/rpmsg/Kconfig | 9 + > drivers/rpmsg/Makefile | 1 + > drivers/rpmsg/apu_rpmsg.c | 752 +++++++++++++++++++++++++++++++++ > drivers/rpmsg/apu_rpmsg.h | 52 +++ > include/uapi/linux/apu_rpmsg.h | 47 +++ > 5 files changed, 861 insertions(+) > create mode 100644 drivers/rpmsg/apu_rpmsg.c > create mode 100644 drivers/rpmsg/apu_rpmsg.h > create mode 100644 include/uapi/linux/apu_rpmsg.h > > -- > 2.26.2 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch