From patchwork Sat Oct 22 21:46:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oded Gabbay X-Patchwork-Id: 7945 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1364444wrr; Sat, 22 Oct 2022 14:48:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5SztHUOHHKDUQWc/oIUJYpOpS9HMQaKqwQ4msQMrUGQNiGw5ZKeybxk9zN3VswJiuGQKgE X-Received: by 2002:a05:6402:380a:b0:451:ae08:7a6c with SMTP id es10-20020a056402380a00b00451ae087a6cmr23205534edb.161.1666475311042; Sat, 22 Oct 2022 14:48:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666475311; cv=none; d=google.com; s=arc-20160816; b=NTe7Fs9A3WUdfSRW5Poyee5qgWKUEDahWJ5UEa3ldsCPPhiRiEl0pOErj9G/mVeDTD 6epNL1FjZeT2AvYhZCzpsr8NvViy+ccYBK/VWJai6HSY5IIvnv4cvVBvcaTii40jszY9 QgpdisnZLcUjr6LSIdjWgDHsB3AgJuViwG5BTj6dTHbIWrACfIamlex2L52KM0YCFd29 BMpw7CH4q8HoEeQIsB/4dZair8RBPNXKNp3hXcGUWvsF721umLQG1OKJROlBGEhvrxSG 4IuvDmweD2wccT7ZQXCE8uyP6YE7XkjiRVXSydqF2kHV7ywcdBqiq2DzYQZCUs5Yjexj mhnA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FZojWEx5vwLl/dRckswuaHkIeKfcA7yHPk4OMKuFha8=; b=IWtZf3fQDwWnRIHb2YLEE6u7x+6muKZrqnl30V6z56QPxEDys16rZUNWN9LCnl5GOR RROvN1ejohtSs/ickI3iupMLyF2Jm9dvlFmReFGtSrPGajk5FMMvLGLIjAqZpQdvRZiH 52i7/Y1vZLRcQC+JDMNFuD+JQDialcjXu1xC4TqdGlXTAsnN/mH5asFuMMJ8/T0U2sBB nsf9OTNvI/R+f9muo9RFkEiQmFja4B2x1Vy/nEzZSATVnpsgdHLia5uxLEwW0C0276qB INtCqcMLbIKS9p2Z2T0LU4RoIa+GEsa02IZ/zOPl6Ws9WTstf1M96y/eU1CAhi9EhMVh nFoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k3jw+Cpr; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b25-20020aa7dc19000000b0045ccd2c9944si19475436edu.233.2022.10.22.14.48.07; Sat, 22 Oct 2022 14:48:31 -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=@kernel.org header.s=k20201202 header.b=k3jw+Cpr; 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 S229728AbiJVVqr (ORCPT + 99 others); Sat, 22 Oct 2022 17:46:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229741AbiJVVql (ORCPT ); Sat, 22 Oct 2022 17:46:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D66C3EA9FF for ; Sat, 22 Oct 2022 14:46:39 -0700 (PDT) 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 4FC0F60ABB for ; Sat, 22 Oct 2022 21:46:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C717EC43470; Sat, 22 Oct 2022 21:46:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666475198; bh=TdjCoZ4FJ+aLY/5yyYbGnM3YqwZ2I6wju2Ck5ByPiJg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k3jw+Cpr368TcCfXa/pufj2ilReVLWCc5TiGVbKmjg1H1mcarij7qaognVkhfK7vb n04AYuwGT2QgCVU6YKmgraxLWr6yNXYBRUOAT5yGTZWzcpQT5DRmxN/YVgyxiRdJn6 EXy2dUEFqXZBIA3tVsfqv11iVD3P/snbTfBqqQQ7Amy+cT7Sh/dgv514azaLuG0Vvr FL/6Lf00FFYQ0aHp6GR6JoisQyLKDUbI/mAivE9qlNgsnO1dmJk7MDZjXudAcQJdBS U7YmJtj+7IQbeWjGEx1tVZu3bMyanaQHbs/ITHLOiBt1V0+3L1Xxp/UAztS/IUBiDb BCeO8JNaJ5IdQ== From: Oded Gabbay To: David Airlie , Daniel Vetter , Arnd Bergmann , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Jason Gunthorpe , John Hubbard , Alex Deucher Cc: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Yuji Ishikawa , Jiho Chu , Daniel Stone , Tvrtko Ursulin , Jeffrey Hugo , Christoph Hellwig , Kevin Hilman , Jagan Teki , Jacek Lawrynowicz , Maciej Kwapulinski Subject: [RFC PATCH 1/3] drivers/accel: add new kconfig and update MAINTAINERS Date: Sun, 23 Oct 2022 00:46:20 +0300 Message-Id: <20221022214622.18042-2-ogabbay@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221022214622.18042-1-ogabbay@kernel.org> References: <20221022214622.18042-1-ogabbay@kernel.org> MIME-Version: 1.0 X-Spam-Status: No, score=-7.4 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747426015789892847?= X-GMAIL-MSGID: =?utf-8?q?1747426015789892847?= Add a new Kconfig for the accel subsystem. The Kconfig currently contains only the basic CONFIG_ACCEL option that will be used to decide whether to compile the accel registration code as part of the drm core functionality. I have taken the liberty to appropriate the dri-devel mailing list and the dri-devel IRC channel for the accel subsystem. Signed-off-by: Oded Gabbay --- MAINTAINERS | 8 ++++++++ drivers/Kconfig | 2 ++ drivers/accel/Kconfig | 24 ++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 drivers/accel/Kconfig diff --git a/MAINTAINERS b/MAINTAINERS index cf0f18502372..790d472801d5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -6820,6 +6820,14 @@ F: include/drm/drm* F: include/linux/vga* F: include/uapi/drm/drm* +DRM COMPUTE ACCELERATORS DRIVERS AND FRAMEWORK +M: Oded Gabbay +L: dri-devel@lists.freedesktop.org +S: Maintained +C: irc://irc.oftc.net/dri-devel +T: git https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/accel.git +F: drivers/accel/ + DRM DRIVERS FOR ALLWINNER A10 M: Maxime Ripard M: Chen-Yu Tsai diff --git a/drivers/Kconfig b/drivers/Kconfig index 19ee995bd0ae..968bd0a6fd78 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -99,6 +99,8 @@ source "drivers/media/Kconfig" source "drivers/video/Kconfig" +source "drivers/accel/Kconfig" + source "sound/Kconfig" source "drivers/hid/Kconfig" diff --git a/drivers/accel/Kconfig b/drivers/accel/Kconfig new file mode 100644 index 000000000000..282ea24f90c5 --- /dev/null +++ b/drivers/accel/Kconfig @@ -0,0 +1,24 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# Compute Acceleration device configuration +# +# This framework provides support for compute acceleration devices, such +# as, but not limited to, Machine-Learning and Deep-Learning acceleration +# devices +# +menuconfig ACCEL + tristate "Compute Acceleration Framework" + depends on DRM + help + Framework for device drivers of compute acceleration devices, such + as, but not limited to, Machine-Learning and Deep-Learning + acceleration devices. + If you say Y here, you need to select the module that's right for + your acceleration device from the list below. + This framework is integrated with the DRM subsystem as compute + accelerators and GPUs share a lot in common and can use almost the + same infrastructure code. + Having said that, acceleration devices will have a different + major number than GPUs, and will be exposed to user-space using + different device files, called accel/accel* (in /dev, sysfs + and debugfs)