Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp527158imn; Wed, 3 Aug 2022 14:13:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR4VU9CzTOa1cXcrtftF66FJqY2K4ySJrutkdQr4nFvLqfFu6b29dFnoG41GBZIxSb5FwuHf X-Received: by 2002:a17:90a:af82:b0:1f5:5727:d43 with SMTP id w2-20020a17090aaf8200b001f557270d43mr2375932pjq.20.1659561237133; Wed, 03 Aug 2022 14:13:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659561237; cv=none; d=google.com; s=arc-20160816; b=cCRQOS3ckSJWbyQxhTQ1x87/ZNxlzoEljwbByd6AuAVeLBE+1dUhMyY/y1L4tLjMnf egP2GNla+6a4yAUwTBDQuHToBIiRy8WzLeEiJujcE9ajxsH8zGTCz7VK2b6bNgIV+wCy yX+QY7PjCdnFlhFEG+RvJC98YVCRz+Gy0vmYI7UCVtif7GheeIhY6us2iatY1W29JVHX EtDgAdb0K6yCn+Gw+Em4JDPOlNfJ5NAmmViBUl+nScp84n3NxCh7M1w82M3EVwY401Dr FDc5bBpIR/2Jyc7iiXbFEQd1u2LxLr1iOao2kykiXkqiueej8XBETGFhc7vkuCGt3K0X cfwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=LxBvWFWtv3mRccGDvPsHUc9LksL2ke7HhJ0WrGNL6Cs=; b=q9JmSmI6kZ5WaErQdcEJmET9DJmhqRlFRMtJBsl5VbNdNfjGVg4tjfniOOpQV9Ahqh Cnw6d1bgxLT3ud1xNWA7d5nyI2MwXfNMyHGTQCvRsgEGXl8bgBXPgLecL0Zi5sDRdHZY ccda03L7RzzyDUDL6pK7kRICv8qQXR+S2zac/sFRVlfMuLrfgLqZAyPCG+sB9MCUXJwe K+EN0/NgxBeKQvJVRnLmQhD3fzj6NZOiskIcn4bElKZDVdekFCzV2uoICUXFI6WDjIut GN7BZFSYBQ3yZSnq706GSZ/Rtplqqr+XeJd/ASEsO7V+YJVwyNAgXtWM6CFwMFYHbFDP 0+Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="a/3ypc6y"; 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 q3-20020a170902a3c300b0016ef7235e05si2935068plb.615.2022.08.03.14.13.34; Wed, 03 Aug 2022 14:13:57 -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="a/3ypc6y"; 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 S237045AbiHCUVV (ORCPT + 99 others); Wed, 3 Aug 2022 16:21:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230414AbiHCUVT (ORCPT ); Wed, 3 Aug 2022 16:21:19 -0400 Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C58A0140DA for ; Wed, 3 Aug 2022 13:21:18 -0700 (PDT) Received: by mail-yb1-xb2e.google.com with SMTP id e127so29337968yba.12 for ; Wed, 03 Aug 2022 13:21:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=LxBvWFWtv3mRccGDvPsHUc9LksL2ke7HhJ0WrGNL6Cs=; b=a/3ypc6yT9CJPpSYrIktn7ij+Tk191UCCs7ohCepUbxr93LHERbK7aFXE02239ywjy ppggofloFDTugPKqmt9knPyx8B3YS5zejac2E59ygzwp8VyFwUfMWEdlRtwESHbOv/vB Qtes4cT4dlRoRW5sE5MeFztz9ZxPQ6SPV3wofXC/491C0NfhYGAUu7qFz/ten/X+7+Au gs7BmyZaXQ43RU509zt9QT8fz4Pp/QuRaaM2ga0CiJu+i5bkVKQqNttg98MRJP+C77Gs zIu4ptO2GKahteA7AP5CfrrZKaeFwLD0EXl2+TzCcO9PSejhPY32MfqVIm916YDPENSW eOPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=LxBvWFWtv3mRccGDvPsHUc9LksL2ke7HhJ0WrGNL6Cs=; b=GbEBjIaMAEY5p42wlcYvusu4cLFlrzzXh/SPQ/lh5d6qD8iytorU7QoyyGA0RGGoCz 0Pu0Y+0DxTBWnwPYDafAawaNxpCUt4VSN04FGbY0ZKSjgnOgoEVK3e4rDdmHCwLjR0lA UmKnwSG3yCilnD2Rnhji3f9htZRhJH/cYOuHUk+l9LG2PX/RuXNzQXZlI1WmP/2NSKrs +tiyJIhmQJxKNO24KRF+BU3dxUE25QNuxocVDf0yqsD+hiy6XdiNdxS+XQrOlb97rqFp hp73ERkryoMU+KgeHgOas0QfUYldEyiP5j2s9IpLZW6KMBPQIGj+OKrKe/YimapEB2l5 EVRg== X-Gm-Message-State: ACgBeo0nU+hN3kfyenkSeyZ6pnQTDV44wqJ9cVgPIRkalb4ZNyicC/Q9 4cQ58mrZTtBHeMgqXm1dqxwo4ltYXOIUYwFse3Q= X-Received: by 2002:a05:6902:4d:b0:664:dd89:9709 with SMTP id m13-20020a056902004d00b00664dd899709mr20968162ybh.57.1659558077901; Wed, 03 Aug 2022 13:21:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Oded Gabbay Date: Wed, 3 Aug 2022 23:20:51 +0300 Message-ID: Subject: Re: New subsystem for acceleration devices To: Dave Airlie , Greg Kroah-Hartman Cc: Yuji Ishikawa , Jiho Chu , Arnd Bergmann , "Linux-Kernel@Vger. Kernel. Org" Content-Type: text/plain; charset="UTF-8" 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 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 3, 2022 at 10:04 PM Dave Airlie wrote: > > On Sun, 31 Jul 2022 at 22:04, 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. > > We've had some submissions for not-GPUs to the drm subsystem recently. > > Intel GNA, Intel VPU, NVDLA, rpmsg AI processor unit. > > why is creating a new subsystem at this time necessary? > > Are we just creating a subsystem to avoid the open source userspace > consumer rules? Or do we have some concrete reasoning behind it? > > Dave. Hi Dave. The reason it happened now is because I saw two drivers, which are doing h/w acceleration for AI, trying to be accepted to the misc subsystem. Add to that the fact I talked with Greg a couple of months ago about doing a subsystem for any compute accelerators, which he was positive about, I thought it is a good opportunity to finally do it. I also honestly think that I can contribute much to these drivers from my experience with the habana driver (which is now deployed in mass at AWS) and contribute code from the habana driver to a common framework for AI drivers. Regarding the open source userspace rules in drm - yes, I think your rules are too limiting for the relatively young AI scene, and I saw at the 2021 kernel summit that other people from the kernel community think that as well. But that's not the main reason, or even a reason at all for doing this. After all, at least for habana, we open-sourced our compiler and a runtime library. And Greg also asked those two drivers if they have matching open-sourced user-space code. And a final reason is that I thought this can also help in somewhat reducing the workload on Greg. I saw in the last kernel summit there was a concern about bringing more people to be kernel maintainers so I thought this is a step in the right direction. Oded