From patchwork Tue Nov 22 10:47:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oded Gabbay X-Patchwork-Id: 13052195 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9B41DC433FE for ; Tue, 22 Nov 2022 10:48:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BEB5E10E3C1; Tue, 22 Nov 2022 10:47:59 +0000 (UTC) Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by gabe.freedesktop.org (Postfix) with ESMTPS id D42C910E3BB for ; Tue, 22 Nov 2022 10:47:53 +0000 (UTC) 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 6796AB81A01; Tue, 22 Nov 2022 10:47:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB446C433C1; Tue, 22 Nov 2022 10:47:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669114071; bh=z5jHZXnfpR4uMGDRHA7iwHU4CEh2KqrEM7EyKMIZPe0=; h=Date:From:To:Cc:Subject:From; b=e2AaI1DwjnThPVgs+1ZMGfPa9sWB7BCC8YaagowfMSkWOtbRnqkHIsu+71FsdunpA f6yYr3swEQO/s904R+ji4i57h0MeQssguU1anWGD8/O1tdesxgccd9ZI16NlKf3/hV OTO6h/sUUSS59JlnHVa1M0EPUF/8O0kocig4XmGWVkazXLmRrQNzGWjhSiUx4meo32 6rL8HybqlDZ0eRFjzpSdxM6J71wUycAdGvelQPpnWa2AgnebVt7223TQaTFZdG+Ge6 R9sYa6G5rFvquMgU/Q7vza8lCPaqNfSXhcJ7tti0pK6eQuXNXw1DNbmUvJxITEjcjD +eg93v3KVxueQ== Date: Tue, 22 Nov 2022 12:47:46 +0200 From: Oded Gabbay To: Dave Airlie Subject: [git pull] new subsystem for compute accelerator devices Message-ID: <20221122104746.GA320209@ogabbay-vm-u20.habana-labs.com> MIME-Version: 1.0 Content-Disposition: inline X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: daniel.vetter@ffwll.ch, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, gregkh@linuxfoundation.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Dave, Here is the pull request for creating the compute acceleration (accel) subsystem. It includes the fixes to the few comments given in the latest patch-set review. Highlights of the patch-set contents are in the signed tag. Thanks, Oded The following changes since commit fc58764bbf602b65a6f63c53e5fd6feae76c510c: Merge tag 'amd-drm-next-6.2-2022-11-18' of https://gitlab.freedesktop.org/agd5f/linux into drm-next (2022-11-22 13:41:11 +1000) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/accel.git tags/drm-accel-2022-11-22 for you to fetch changes up to cadbcc80e81800a3189f9fed23407fa014b8e3c3: doc: add documentation for accel subsystem (2022-11-22 12:41:08 +0200) ---------------------------------------------------------------- This tag contains the patches that add the new compute acceleration subsystem, which is part of the DRM subsystem. The patches: - Add a new directory at drivers/accel. - Add a new major (261) for compute accelerators. - Add a new DRM minor type for compute accelerators. - Integrate the accel core code with DRM core code. - Add documentation for the accel subsystem. ---------------------------------------------------------------- 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 | 110 ++++++++++++ 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 | 101 ++++++++--- 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