Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4502731rwb; Mon, 21 Nov 2022 08:19:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf60+KqDhpmCB8M0nf/a2CQ8/n85DLrl/OsQD+0/Mn+gmtaBw+UMf0PlLYf52ucPW4GyttPA X-Received: by 2002:a17:906:704:b0:7a1:b555:6f1 with SMTP id y4-20020a170906070400b007a1b55506f1mr16888196ejb.29.1669047540058; Mon, 21 Nov 2022 08:19:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669047540; cv=none; d=google.com; s=arc-20160816; b=AsOlGnSgtLdkLOWu0OzGjGXZvVvwuVfMhDc3G5Zc1aXvz7kCFyxnRx0IFGjE4Es5+i sk1hzKicL5FMgSO4NlM7Ysf+PdHMmmDqY1vy21rvjRNIgY68q1KM0R6aeHFGuoaz/s4z uPOm3JCcZ+n1Z94n6KH1QXepmaKAgowS8o97JjlG4LLNMRnCUb9wKAllZiP2pkVYmtb+ CECBIOOZPb6QDLTe/OPB3sQ69pnrwLWzuNfMNlmahhOkVGGcPWXLdej9B/KOQKp+Krwh zmqg+LWHp6kGr7PcgtR2QdCBbpUd0aagi3+chbIa146Tl7Rbh0WAXay18m04j6lzCrBJ owBQ== 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=G4Q+0MfaVGvddTD+8xtgNvdChtHP9WL1IrfM4mIdp8U=; b=EWQKkRbtsIkZ7xJc3zTYsT38NUjZbXEtXH+tvuyh9D9xlyRHTUZaYiH4unhT3aTFtF frUALOOlHeKnjjb8OKgiiAkVKvFDBE9q7xTPkJYMQ3P9aWVwVykv92eUIMk/+MeMSEIM NwoGkDqtIWrdsFlSmf6DC7tWzhvgoZLLfcR5WzYGW/QSJhTFyQobghSSmUtkwTkDbRjB QK2I2R4PK4W6hqm/VPpjfmOk9M5AC2JH44mE1ndgs36gkJtxLDXarxFsAbHKT/docqiO i8JcxlS7WWLOm+/xTp18Ea1tb4r0SOHTTwECqVcpsEbn/VeouRRyGYEceTXMPT7B1+Re 6qUQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=eskIWZFK; 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 sc27-20020a1709078a1b00b0078dbec0aa81si10358666ejc.214.2022.11.21.08.18.37; Mon, 21 Nov 2022 08:19:00 -0800 (PST) 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=eskIWZFK; 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 S231381AbiKUP6q (ORCPT + 91 others); Mon, 21 Nov 2022 10:58:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231205AbiKUP6k (ORCPT ); Mon, 21 Nov 2022 10:58:40 -0500 Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61A42C9A98 for ; Mon, 21 Nov 2022 07:58:39 -0800 (PST) Received: by mail-oi1-x229.google.com with SMTP id l127so12946562oia.8 for ; Mon, 21 Nov 2022 07:58:39 -0800 (PST) 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:subject:date:message-id:reply-to; bh=G4Q+0MfaVGvddTD+8xtgNvdChtHP9WL1IrfM4mIdp8U=; b=eskIWZFK5N+Qzhoa5iX5oKoPLHzl9CG4du3z7W8zDsQjUFBgsOUXcaP0To7YMUy59z Pkj6PGk5z1bWu8Izb2p0b/L57NDJmJBVCvf7nCtc6fDgW/Jl2e+q4WZJx51flkH056sB n0j8SgTngmuljV9XEQsoldmpHYGrPm0yorH9j7NL1cm+K2NOWEyNmWaxHeltFf8EdmVQ 3xcsLsGC9guCb1FXMomdTkp+0v9j8NxcnWin+Cd8ohRcsZneBfFyUNoSnLw/1IRP6399 6DbdcuLrSIqXoqAdrHcTgMX+OxJQKvFzJlVqa0sjXpQtH6TOJiPrNV1Lc55IfNJszjF0 lJJQ== 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:subject:date:message-id :reply-to; bh=G4Q+0MfaVGvddTD+8xtgNvdChtHP9WL1IrfM4mIdp8U=; b=1B8VuwewTGkHb/qc+RZK/on0Y9sbTfjcePe/MoUDdRhZSjKnhBT9R1IYTVJPHuIXE6 kddqnQ9dbSjn8UVHeK5oS8IoqFZ+rABxBEPHfWMsQsGpNJssCcSMKPOlHV1INNC2KvFa fdGlKNv+7kGmuDSg5YqhH5tsDutKNsKIPVNzEaUSB/DaPBu+R00HOEEYvKaoINHkvqWz Q60BG1mCzPiiYw4EE6qmzNYw99rA3VqjrCsrl9wf4f0JwWiwMTp8gp8LZxe4wMVtEHp/ OIebv8ImFcijIMJL1Su6jDmK5P4QKZEiA11sHr7k5JDI71gaBYwFRgiM2e00X8I155qW eQug== X-Gm-Message-State: ANoB5pknyEsU9bbJ3C20jp4LEEqOPXe/qjoyWB293vUjvhN0yOVgCi/3 atCOTK57wARgzxzqyABbAvYJVd2ecbAVCMMYxTU= X-Received: by 2002:a05:6808:295:b0:357:670f:9e4e with SMTP id z21-20020a056808029500b00357670f9e4emr12430765oic.46.1669046318747; Mon, 21 Nov 2022 07:58:38 -0800 (PST) MIME-Version: 1.0 References: <20221119204435.97113-1-ogabbay@kernel.org> In-Reply-To: From: Alex Deucher Date: Mon, 21 Nov 2022 10:58:27 -0500 Message-ID: Subject: Re: [PATCH v4 0/4] new subsystem for compute accelerator devices To: Oded Gabbay Cc: David Airlie , Daniel Vetter , Greg Kroah-Hartman , Tvrtko Ursulin , Jacek Lawrynowicz , Jeffrey Hugo , Jason Gunthorpe , Arnd Bergmann , Jiho Chu , John Hubbard , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Christoph Hellwig , Christopher Friedt , Thomas Zimmermann , Kevin Hilman , Alex Deucher , Yuji Ishikawa , Maciej Kwapulinski , Jagan Teki 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 Mon, Nov 21, 2022 at 10:57 AM Alex Deucher wrote: > > On Sat, Nov 19, 2022 at 3:44 PM Oded Gabbay wrote: > > > > This is the fourth (and hopefully last) version of the patch-set to add the > > new subsystem for compute accelerators. I removed the RFC headline as > > I believe it is now ready for merging. > > > > Compare to v3, this patch-set contains one additional patch that adds > > documentation regarding the accel subsystem. I hope it's good enough for > > this stage. In addition, there were few very minor fixes according to > > comments received on v3. > > > > The patches are in the following repo: > > https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/accel.git/log/?h=accel_v4 > > > > As in v3, The HEAD of that branch is a commit adding a dummy driver that > > registers an accel device using the new framework. This can be served > > as a simple reference. > > > > v1 cover letter: > > https://lkml.org/lkml/2022/10/22/544 > > > > v2 cover letter: > > https://lore.kernel.org/lkml/20221102203405.1797491-1-ogabbay@kernel.org/T/ > > > > v3 cover letter: > > https://lore.kernel.org/lkml/20221106210225.2065371-1-ogabbay@kernel.org/T/ > > > > With the understanding that individual drivers can choose to use > either classic drm or accel, whichever makes the most sense to them, > this series is: > Acked-by: Alex Deucher and not typo my email: Acked-by: Alex Deucher > > > Thanks, > > Oded. > > > > Oded Gabbay (4): > > drivers/accel: define kconfig and register a new major > > accel: add dedicated minor for accelerator devices > > drm: initialize accel framework > > doc: add documentation for accel subsystem > > > > Documentation/accel/index.rst | 17 ++ > > Documentation/accel/introduction.rst | 109 +++++++++ > > Documentation/admin-guide/devices.txt | 5 + > > Documentation/subsystem-apis.rst | 1 + > > MAINTAINERS | 9 + > > drivers/Kconfig | 2 + > > drivers/accel/Kconfig | 24 ++ > > drivers/accel/drm_accel.c | 323 ++++++++++++++++++++++++++ > > drivers/gpu/drm/Makefile | 1 + > > drivers/gpu/drm/drm_drv.c | 102 +++++--- > > drivers/gpu/drm/drm_file.c | 2 +- > > drivers/gpu/drm/drm_sysfs.c | 24 +- > > include/drm/drm_accel.h | 97 ++++++++ > > include/drm/drm_device.h | 3 + > > include/drm/drm_drv.h | 8 + > > include/drm/drm_file.h | 21 +- > > 16 files changed, 711 insertions(+), 37 deletions(-) > > create mode 100644 Documentation/accel/index.rst > > create mode 100644 Documentation/accel/introduction.rst > > create mode 100644 drivers/accel/Kconfig > > create mode 100644 drivers/accel/drm_accel.c > > create mode 100644 include/drm/drm_accel.h > > > > -- > > 2.25.1 > >