Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1488741imn; Sun, 31 Jul 2022 08:54:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR7GFyrTzKIGYgOvHmic1eVsboSk+k9K5RLxOx6njQtfmY8wouttZocBQyMFBVMgDuqUCLBX X-Received: by 2002:a17:903:2ce:b0:16c:f66b:50fa with SMTP id s14-20020a17090302ce00b0016cf66b50famr13091085plk.109.1659282883542; Sun, 31 Jul 2022 08:54:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659282883; cv=none; d=google.com; s=arc-20160816; b=txtPH7kwKTQPWxo5Bfk0TfpnLS2YrsXDHnR4HXbZtpeA3AX6CBbtXRnuv3HS1H9rwa NxPJ8zJCknw4ngrduDpRXJaASTfcC09NwEAjIQ0H61KnLXr8PMfti1FR3yWdAYvtqVCE uwRhQ7K46lpq+LjFFoAGnghEPVHhYyN9pb2l2plQfvpWgoKHixrJA0648jdIM6AA6RSH ps/iOKOflpPTC6jX1vlNpETZRffmX3HA8SFErt1/iBW8qxX+JYRpdJdzKTAS90rH84Wr 2j1xKX2rMAILlbKzJTuZPv8OycbGmmcKoD6bJ6VS2PeBwoMcrF3RIZI5VOoAH7vZxsBq C+DQ== 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:dkim-signature; bh=JepWLCz+iyd4xPlcwxlBLmatsOKVkue9FKlZ4eTbtKo=; b=LTrLf4Hoa1HI5lTNAiBp+vSa61q0mpipu03pdL4m0yZ0bTkhL9x+0IO28sjlfSOGeR pipc7EFAwOCcDNO8hsIZ0M0cTGI3yuSWlUCr4McObn/ICk5muRoR9gWb2OYcyN5Vu9K7 GZ5aqv7lYm8pWHPWis5ZyyFaXapxZqgLhUZbKFYPzi+LOQTXTY3hNgP8Fr7KspAPm0l/ Iuip/2CYhWg0TrzQD7uScO0ZnQAHHGe6SCoJdgI2Kz8noqgAiivhu3427cXtuIqlRQZ7 MgLqrn0G3hb3YiZIzYazpagSki4hjvnOtDYRXIpEVV9RmQvKJ5rh0TAAS3/Y8UQewFr7 Nm6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="0H/Wt4Ik"; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n13-20020a6546cd000000b004041c039264si9754203pgr.663.2022.07.31.08.54.22; Sun, 31 Jul 2022 08:54:43 -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=@linuxfoundation.org header.s=korg header.b="0H/Wt4Ik"; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237194AbiGaPh7 (ORCPT + 99 others); Sun, 31 Jul 2022 11:37:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237159AbiGaPhs (ORCPT ); Sun, 31 Jul 2022 11:37:48 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8038E086 for ; Sun, 31 Jul 2022 08:37:46 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 358FFB80D11 for ; Sun, 31 Jul 2022 15:37:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7138EC433D6; Sun, 31 Jul 2022 15:37:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1659281863; bh=WnkSoyEwxHVHfA55vXG+P0/kpgTvW/r+LKRf9XMfM9U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=0H/Wt4Ik01MeiuDBWdCnHnTU4+V+NRV7g1liVTRkzxEDIPpWoec0CzAD3b1DgmH4h pnkit/i09jStCve6/sXcSwWcn6i8y4WellcZMYGa+KfP2luE42BF2KFxxsMHwpMNvb SSzCmRdRPhpmP4YjjXtiif5rOEu1pX+F/LT+AlJs= Date: Sun, 31 Jul 2022 17:37:40 +0200 From: Greg Kroah-Hartman To: Oded Gabbay Cc: Yuji Ishikawa , Jiho Chu , Arnd Bergmann , "Linux-Kernel@Vger. Kernel. Org" Subject: Re: New subsystem for acceleration devices Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Sun, Jul 31, 2022 at 02:45:34PM +0300, Oded Gabbay wrote: > Hi, > Greg and I talked a couple of months ago about preparing a new accel > subsystem for compute/acceleration devices that are not GPUs and I > think your drivers that you are now trying to upstream fit it as well. > > Would you be open/interested in migrating your drivers to this new subsystem ? > > Because there were no outstanding candidates, I have done so far only > a basic and partial implementation of the infrastructure for this > subsystem, but if you are willing to join I believe I can finish it > rather quickly. > > At start, the new subsystem will provide only a common device > character (e.g. /dev/acX) so everyone will do open/close/ioctl on the > same device character. Also sysfs/debugfs entries will be under that > device and maybe an IOCTL to retrieve information. > > In the future I plan to move some of habanalabs driver's code into the > subsystem itself, for common tasks such as memory management, dma > memory allocation, etc. > > Of course, you will be able to add your own IOCTLs as you see fit. > There will be a range of IOCTLs which are device-specific (similar to > drm). > > wdyt ? That sounds reasonable to me as a sane plan forward, thanks for working on this. greg k-h