Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1383223imn; Sun, 31 Jul 2022 05:04:27 -0700 (PDT) X-Google-Smtp-Source: AA6agR4+a4cr//OIqHwUoxpydjai54ZRWtgs7Ga5ZFjNaysf1PZm1b0JxsZCX2BxMvFfc3ONHob+ X-Received: by 2002:a17:903:447:b0:16e:cbe3:29de with SMTP id iw7-20020a170903044700b0016ecbe329demr6838113plb.65.1659269067561; Sun, 31 Jul 2022 05:04:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659269067; cv=none; d=google.com; s=arc-20160816; b=klo/eSRonUlec9KDbcR4+5tYlb7PvNfwAnsIWGGON0x9hxQo91dc7MhHbOTAFXs9AS 5SCSkKHmUnov1u2pHw+UVsOk0N8ou/ZNS7w/FzmQZpkzqoWZgk8u8hiDSXZHJMnhUAvh BI/EJIfMM9PU6y7ul+EEqi03iyWVio+WGdUOGX9P2S72P8K/rTqCE8V0hVCdEcrofRt8 y+HLsbCIwrNQFzEtlN1MAPqrwEo7DIJJCdoQcvlCdz5qPRVSB/9X2QKuXOWag0KDgB0V +2cLYQsmS8zUFHnG+79YTXXEsrV6rIv+kfVrzSYj7HkcROd01pQ7qHl8NRx0HgxEgkyi CU0A== 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:mime-version :dkim-signature; bh=Kj6cBvNirPBOcR0RNx1S0sycN75ulvqnQVOku/MwN8Y=; b=P1pyiuPMzzW5cOBUH2duEnirINicnaH5hcFiEMGDf281wn3vt4t3aAD203l9s3bKvB fk11peZjYPQyYim/rMuArXO4RCGafyPB9/d0QU3EsbeCfunRojFIZPLz+g54lZZIC82i B/X5e615LUGBuqvGpmc5ZivF3kiKn55sOUjEHByslpR/LWW+Wpky3kjGCgDoNo0hi7Cy 7tqNhEsW05tJaCvf0Von4LaOYSycmW32+uykzVW1s72nZrSPx+LBKjeC1NqKX+RFkYli 8mZXWugRaFQBedz0fZi2YICNlXYgCCC0wwtkTPqUw+Qgo+laCeh2++ZYh9GS51XEr4Px 9kSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=NAsA92Fc; 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 y10-20020a1709027c8a00b0016d64090c6dsi8684871pll.581.2022.07.31.05.04.12; Sun, 31 Jul 2022 05:04:27 -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=NAsA92Fc; 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 S232647AbiGaLqG (ORCPT + 99 others); Sun, 31 Jul 2022 07:46:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230198AbiGaLqF (ORCPT ); Sun, 31 Jul 2022 07:46:05 -0400 Received: from mail-oa1-x33.google.com (mail-oa1-x33.google.com [IPv6:2001:4860:4864:20::33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D8BB10562 for ; Sun, 31 Jul 2022 04:46:02 -0700 (PDT) Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-10cf9f5b500so10643524fac.2 for ; Sun, 31 Jul 2022 04:46:02 -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:mime-version:from:to:cc; bh=Kj6cBvNirPBOcR0RNx1S0sycN75ulvqnQVOku/MwN8Y=; b=NAsA92Fcf9V01k3u2OQiLynjFaA0zAgcMmRK33Ffuzw58xh9eay4H6F3z3zweH9Uq7 6MIkCFS63jrNdg4oXsS6lTvTHn7YrzXHki28xnYQEtYQnu/LNZIVwUzAjIIzUo0gPqv5 EmfZsAm6e4DJWaIQXVwa7nRx7Ti9S7/skQVG36k9nEedZg778+Zx4JBy+bRZqxBIshoT F5lZOjLomKCan+WNTPZHvkoDlujA7bEYTYaXxKuH9bAxgDD8Zrn8G2TdTn7ft5lqgiKD S8WK2gbGT3qrOScS4y7/IybhxAHxJB01wPANZKYyHifeCYg6jreXHols3Uy1XmnaDIqS crRw== 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:mime-version:x-gm-message-state :from:to:cc; bh=Kj6cBvNirPBOcR0RNx1S0sycN75ulvqnQVOku/MwN8Y=; b=6JUbuqtRmAXAYJGz9UEDthfAVygG59849kMqBQlIKpLXBgAaMvggZ+xba6ehah8Ci9 rcQ+fTyMe+XEEO+H7bY+ksg4QNVI6GPA9xH1lGFlcVcBR+Bq4HEM3Nwjgy3CVhFiANxz 4qE5uvMETsqUU/mKzjdNnxybcQhXq2xVDXb2FMLrGDQ+d1fjanerQNy9yBbudzVbgiGT djYbPxUQRCto5V+trPMZEj2nGOUBn9PeS3dO8D4d7tDqXdmquJpGR6XtB1CPTvsCi5gu 3R2Zovb9DN97kiRFZ/5hLQTX/Uq2CZbjmY5EtDKWgSmFGiYLOS9ZwB49WcwzanIBxLf9 AZcg== X-Gm-Message-State: AJIora+Z46Cpp/K8d9ND/bkz93I63xbjIGpvRXVTwr38Ya0rY/YTR8LO TsqXW+I0cdm+N+mADc8uvY337ZDMiM3JPzNtggAJ2qZSm9nMGw== X-Received: by 2002:a05:6870:9193:b0:10d:130e:e57c with SMTP id b19-20020a056870919300b0010d130ee57cmr5561405oaf.286.1659267960847; Sun, 31 Jul 2022 04:46:00 -0700 (PDT) MIME-Version: 1.0 From: Oded Gabbay Date: Sun, 31 Jul 2022 14:45:34 +0300 Message-ID: Subject: New subsystem for acceleration devices To: Yuji Ishikawa , Jiho Chu Cc: Greg Kroah-Hartman , 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 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 ? Thanks, Oded