Received: by 2002:a05:6359:322:b0:b3:69d0:12d8 with SMTP id ef34csp318664rwb; Wed, 10 Aug 2022 08:45:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR5eKZ91KYzWDk0E+MjG5aTfE71PvETyfkanMr3yrWpK8IkBaT06rUnhniSiL8WL/XMAjDwY X-Received: by 2002:a17:906:cc0e:b0:731:6843:c198 with SMTP id ml14-20020a170906cc0e00b007316843c198mr9476504ejb.507.1660146350272; Wed, 10 Aug 2022 08:45:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660146350; cv=none; d=google.com; s=arc-20160816; b=R0LlqDJtw8jRGNvqGdnt44yCSFLrY6kQNFoETUknvvphWSVQqJXC/92xR34uG6AFzz DjByC4KpBQMVMQEhZy8YE+BiVuP1+eTJNXvF1O1WOCuiesjU7pbMsHB54ycVkA8nn9+6 QFv6wTT1P3pF3SDSX9Cr8zpclV3vwhZwqQvFO+oIZTTDrf4lUVf01wURxW3j1W34Ub++ tuIaHUnn7MddWPfia8nmYuHqPrVs1mCt0dfTDBnWQIlvP51vy1unwbjCzPy8gQ9My+es XDOsjwYeKV65Pq46wd2QhPMSEOk8sLedwlVOVb+pSHLQT7t4fmcvEbhaHkXMm5nK4kc4 zcDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=HJ77uW+ijKtvJrdU/X6wE5SDOpYiEoEbR65dmsHLnXc=; b=Wx2CNrcFGpbceWCj+A7BS9jGw2czFItpCymMXs53AJvwWpTnPkfYes5clmt2j36rPF Uikcr1Fk4baL1QEyfc7c3V5+jQRps6kcgJrhehhxN/2G/nWvIw/rNEsLWQqAN+/SeBLV RlYsiHz6Vhjg41SGh8CH6ZeyxM4imQrIQG2P9fyBoxBaHry/VneTGvQ7sAe/whShJc8S muC7YGr5g+CEvZJ+ZqXmcER2n+oXLNZCpqyuYHNTt7+tZV6oYPd25DSrlj03jFVqB5Xs /D9m+9YCivGXjIhhdjhNPmV0OEUAE4aUdiJdDKdrlUrzowY44fzjT/DJ9Dw5EaFES2Ka yNBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=EFdkWTc8; 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 nb6-20020a1709071c8600b0072ab4b5ffe5si4145295ejc.987.2022.08.10.08.45.23; Wed, 10 Aug 2022 08:45:50 -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=EFdkWTc8; 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 S232479AbiHJOi1 (ORCPT + 99 others); Wed, 10 Aug 2022 10:38:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232550AbiHJOiJ (ORCPT ); Wed, 10 Aug 2022 10:38:09 -0400 Received: from mail-oi1-x22e.google.com (mail-oi1-x22e.google.com [IPv6:2607:f8b0:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F77D51439 for ; Wed, 10 Aug 2022 07:38:04 -0700 (PDT) Received: by mail-oi1-x22e.google.com with SMTP id q184so17914309oif.1 for ; Wed, 10 Aug 2022 07:38:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc; bh=HJ77uW+ijKtvJrdU/X6wE5SDOpYiEoEbR65dmsHLnXc=; b=EFdkWTc8pKhjAWNdwII0Fgafd3o0K8pat2Y3zUktTh5U22O/Dn6OFwnxvQOia9zqZ/ bALR2G1vmqoyUMNoIF84gp31X4TWu1JvYdGZlT55VtmYAA1qAHfM1YJaNydvem1+5S6P qE7PgdK5Doc1WhjvUVVxGXcJSUzt7gac78IxvbQtA2x1Sw7CUWhxvM3IBszmdHAwxc2q fuMrNYoXr7fPLFrFY1psSNgXRPLXhv1E+CpaB8qlbjvIV4yiZD7pPT62UxwxETYBYXA6 DMo3hwmn9QAqDNtlJ32fcIitzWRi5YTXhP3AAk7qrvAHOe5Mj07KbnRQoDNIhxaMq0hi MSVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc; bh=HJ77uW+ijKtvJrdU/X6wE5SDOpYiEoEbR65dmsHLnXc=; b=qTZw1GAOL+foR0qdbQ7qY5Is4sYx6BvOcH5cP2qRzUC4HRkjAfzgvSkI29PUZdQBC5 QkgN+kOTCYaPD7L/+orwMgpRoobD6N+oWJ/C6exsQSOgkLgGbp+ox9WVRtKzmSW3QqZ3 CpT4GYlyU3/SWoO/88XGR0H+2W0B6fNPWDFfGwH1sruFq6ZbQ9f+L0uxqCpJuY48CKsJ z4ln5JSd7/2cf3LXXyhtizHasJ1ToYTqnlNw/WjjEu1Miqlap1xa3j0wUt6CIioUcO3J R2i5tywOT9/2g/F9+dxFypdH8a9OwjdSPtyIFTlcn91OsKs14q7RRRkKTZf0nkW10J9W dmaQ== X-Gm-Message-State: ACgBeo3x+VqUXVSmyXLBZ+q/yOYyTrRDTma0j3lzs0kIjnwzHrl8lMMq LGeZRhwd5aTBN2g5dRzU+3PEqHxcsqC4u4AOKto= X-Received: by 2002:a05:6808:1888:b0:342:a0c3:f7d4 with SMTP id bi8-20020a056808188800b00342a0c3f7d4mr1523332oib.286.1660142283392; Wed, 10 Aug 2022 07:38:03 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Oded Gabbay Date: Wed, 10 Aug 2022 17:37:36 +0300 Message-ID: Subject: Re: New subsystem for acceleration devices To: Yuji Ishikawa Cc: Dave Airlie , Greg Kroah-Hartman , Jiho Chu , Maling list - DRI developers , Arnd Bergmann , "Linux-Kernel@Vger. Kernel. Org" , Jason Gunthorpe Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 On Wed, Aug 10, 2022 at 5:10 PM wrote: > > > -----Original Message----- > > From: Oded Gabbay > > Sent: Wednesday, August 10, 2022 6:42 AM > > To: Dave Airlie ; Greg Kroah-Hartman > > ; ishikawa yuji(=E7=9F=B3=E5=B7=9D =E6=82= =A0=E5=8F=B8 =E2=97=8B=EF=BC=B2=EF=BC=A4=EF=BC=A3=E2=96=A1=EF=BC=A1=EF=BC= =A9=EF=BC=B4=EF=BC=A3=E2=97=8B > > =EF=BC=A5=EF=BC=A1=E9=96=8B) ; Jiho Chu <= jiho.chu@samsung.com> > > Cc: dri-devel ; Arnd Bergmann > > ; Linux-Kernel@Vger. Kernel. Org > > ; Jason Gunthorpe > > Subject: Re: New subsystem for acceleration devices > > > > Hi Jiho, Yuji. > > > > I want to update that I'm currently in discussions with Dave to figure = out what's > > the best way to move forward. We are writing it down to do a proper com= parison > > between the two paths (new accel subsystem or using drm). I guess it wi= ll take > > a week or so. > > > > In the meantime, I'm putting the accel code on hold. I have only manage= d to do > > the very basic infra and add a demo driver that shows how to register a= nd > > unregister from it. > > You can check the code at: > > https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/linux.git/log/?= h=3Dac > > cel > > > > It has two commits. The first adds the subsystem code and the second ad= ds the > > demo driver. > > The subsystem code is basically drm code copied and renamed and slightl= y > > modified, but I really only worked on it for a couple of hours so take = that into > > consideration. > > > > The important thing is that the demo driver shows the basic steps are r= eally > > simple. You need to add two function calls in your probe and one functi= on call in > > your release. Of course you will need to supply some function callbacks= , but I > > haven't got to fill that in the demo driver. Once you register, you get > > /dev/accel/ac0 and > > /dev/accel/ac_controlD64 (if you want a control device). If I were to c= ontinue > > this, the next step is to do the open and close part. > > > > I will update once we know where things are heading. As I said, I imagi= ne it can > > take a few weeks. > > > > Thanks, > > Oded > > Hi Odded, > Thank you for uploading the framework as well as a sample. > It's exciting to see new software is growing up. > > Since Visconti DNN is a platform device, I'll write some test code to ini= tialize driver and see if it works. > > Regards, > Yuji Platform or PCI, it doesn't matter. You just call it from the probe. But really, this is something I did in a few hours and I stopped because there were some objections and I wanted to first talk about it with Dave. I don't know if it's worth it for you to waste time on it at this point. Thanks, Oded