Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2313671rwb; Sat, 19 Nov 2022 13:17:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf7w/TGJLQIaIDIZWmXTS7mNrEagWRwBPfdJFMfleplhI/agMd0owdA76f3VX0f2tVJ/hPB5 X-Received: by 2002:a17:906:9148:b0:78a:643e:6892 with SMTP id y8-20020a170906914800b0078a643e6892mr10392053ejw.662.1668892656600; Sat, 19 Nov 2022 13:17:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668892656; cv=none; d=google.com; s=arc-20160816; b=J6NnZN9FLELI4O2nI3Ec3l+9+5jEPNPKUDRfk0GzI1nqRofLOm4odmu4BC7/arB5LP gb8r1gPAS3VDX7cndQq9T4qdWhVSO2mgnT6sByN2cGcbnkqudF3ecLASeqLTMgZUaRVz qPiM6mOcqr0c4kyao11djj8HC4D6GdfnfxUHfBpMh4CmdDldMnaUo+bgVEl+mWA9a5hY xPJ6pXl79tPr6mGA1WlMInIZ9qGwEIFko1P4dSoSXmEfVt8WBV6ZMp4MXBzybys8LDeC HQNyl51e2s3cAoN6Fnc84yywqinLb7j5vLH38tX+3WpSAD95a4mtKpJBNb7CkqMECk6w EpXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=XwaKyjrRYPife8MgvPcVheQ7n+JArzN6BSToJTwwE5c=; b=xPfB9TBVyB6o3WbUkYxMGE3t7Cyc0dlIlFzeCvcWvQ0Gji3IsjquaRVxS7RATfGES1 hAlPmzQ3+k9UMTWhHebr1u3zoIpIwPddBo3ip3ugXZEEAwP9RoNyg7ZSvTFFpFzeGU+H BMvoWjXZxkjhwF+vMNeiPi10nEY5R3xXZuKLhPyswDxpI7PnSD5zlaUDVPf/77w2uopE 3kPV6TsezJI6/jLRSxp47A6dl9HAcleJ1Eh+B52xqGyDYWgc6eIbQZpim9kd7QlCPdsZ WgLjcdXx4YuFxBzHthnzp3UmYUwP5l4KQFd3NCZw7pLhz2hYsmGeJ5bo+C5WdYImy0rj JHFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=YTlMpSOs; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l9-20020a170906794900b0079ddb52369bsi2033345ejo.61.2022.11.19.13.17.12; Sat, 19 Nov 2022 13:17:36 -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=@kernel.org header.s=k20201202 header.b=YTlMpSOs; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234334AbiKSUot (ORCPT + 91 others); Sat, 19 Nov 2022 15:44:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230471AbiKSUor (ORCPT ); Sat, 19 Nov 2022 15:44:47 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 571E211A3E for ; Sat, 19 Nov 2022 12:44:46 -0800 (PST) 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 dfw.source.kernel.org (Postfix) with ESMTPS id D4B2960BBA for ; Sat, 19 Nov 2022 20:44:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5989C433C1; Sat, 19 Nov 2022 20:44:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668890685; bh=MmB0kiiRS0fZ8FYGoiHwWYca4qOtCXkpxetHnZytkyM=; h=From:To:Cc:Subject:Date:From; b=YTlMpSOs6F34vvnrgMqsizuCW87N2FIyluvDo0yLv4T4YCtJpNnC0HiGUlL4rQudz HjVDrGpzZ2iqPrR+J1EUskL5gVMb4yacrW2pTSvgXJ4aww5lOWilcPWAgB7vjdRvqB x9EYgLuEM3GZTOaZyWKx3UPGgCv6yQXcr5Tw+IopltmQ0eUQ6Gxodgtx/nvisAsGFv uEscs7DhaSC+EJXFyeBHqnxYwQGJZXXqA5H07VQCUDuxDYBpCc5xsQ9FTUdHDNVpZF uahbGajimfLAm0/hgsIEL5EUPJe42FFD83l9RGot815k56yOHhPjfaRBUOxZIJ2nP1 RkV8iGIY9ltbg== From: Oded Gabbay To: David Airlie , Daniel Vetter , Greg Kroah-Hartman Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Arnd Bergmann , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Yuji Ishikawa , Jiho Chu , Daniel Stone , Tvrtko Ursulin , Jason Gunthorpe , Jeffrey Hugo , Christoph Hellwig , Kevin Hilman , Jagan Teki , John Hubbard , Alex Deucher , Jacek Lawrynowicz , Maciej Kwapulinski , Christopher Friedt Subject: [PATCH v4 0/4] new subsystem for compute accelerator devices Date: Sat, 19 Nov 2022 22:44:31 +0200 Message-Id: <20221119204435.97113-1-ogabbay@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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 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/ 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