Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp623239rwi; Wed, 2 Nov 2022 16:20:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5UfiQGwZcxLl3eGT4wzO013H3s933AE47i9LOwClsNjgFbAjhzz5mPLNNWgxz9GeIK6DKq X-Received: by 2002:a17:902:ed8e:b0:187:27b3:74e5 with SMTP id e14-20020a170902ed8e00b0018727b374e5mr16155052plj.90.1667431204406; Wed, 02 Nov 2022 16:20:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667431204; cv=none; d=google.com; s=arc-20160816; b=lgPlds2LDk0lGidATVW8qgRYfamlYET1PGiaYCbsPlFMrchyUknJ2cRafTBJH0ppj4 glcHpHbue5WiIX1jwWdIF3/tKcoo3hbZXKuT+6IZ2tlI2kg0L4GIWzu4N44gYTpnoruV mMaRBICZj459sGDYC1GpFuUB8x70ULs3NEPNri2EbymcW3VxGXpwQkfKBzBxNyZTpI6V F6exnRiVXsPi05eVdDVQ5ThIGMopui8iobBPlq7J7KHO4vKO8i4O/9qKPs2KC/171CX1 W/eyxWmsZgbnbATHK/9lWNPQuqwtcVWYkSIU7G7Jvni+tN7Muf5l/N2QWtKviUn3z5Vx 6/7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=dxk7K79E1a8j7qASi8UQ2LttUIuZKzMJZffkVtXcjv8=; b=j2ujSJy/3mZhlXID3kbxVVbT9vXUQ1Qa9vczSy+TxAmuflVTXGBwp+0fiONRfWxgAO XXEPQZOX3o+FtXZfT7H0E3vy3bIURw4Z7Jzt/8HMTimKt2c3V3HRHylrBXNa0gOtSfhf saPmIlCI0nSCkG7V4NBdqDN8eWX+86hwmZyWq+RafS7oL8HEBOMHwvpIXWZlGKpP8EKH fn59d7nQIY9nrtUY8XOMK4cUiSR80261mewdJCjI4kjTyGG7nmLs+mZh3PewO4Kjd9Xl MVnimt00NenbCNZ23zrbNx20f3py87inTZJ/kUpi81tf+OrJ33/+H1SQB/ihjKQyLpVo eoiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=iWBbbhrE; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q7-20020a056a00150700b0052eb81ff734si20282161pfu.113.2022.11.02.16.19.52; Wed, 02 Nov 2022 16:20:04 -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=@infradead.org header.s=bombadil.20210309 header.b=iWBbbhrE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229850AbiKBW60 (ORCPT + 97 others); Wed, 2 Nov 2022 18:58:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229457AbiKBW6Y (ORCPT ); Wed, 2 Nov 2022 18:58:24 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9BA12725 for ; Wed, 2 Nov 2022 15:58:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Sender:Reply-To:Content-ID:Content-Description; bh=dxk7K79E1a8j7qASi8UQ2LttUIuZKzMJZffkVtXcjv8=; b=iWBbbhrEXXa6MQNABq2X7pMhEs inJT+scZCXfLnDU7VWcfXsxYgqGktw8wWcIxHvwAJb+JpXzA1z5KOgv62IBCqoVvt6knYk6QIgZtV 0kq+sCGrFenv7jgBUkHfptnS9NjeIQbaNxLBe6qPukDj9fAnHLGTZrJo65sGYORxLFPqxmtC2nFOL j4UODS7DwOVJa3BM8exn1O5tJGX8kXfibP7pJ4xiqsECVEtF1rprd8b77mUyCUrCAmRKfTOI3znQT BOVq009EEtWksI3G95Dbcf9iYjnp8sYZXSumod9w+gA+QJRi7Nla/ze0WnfU9ysXljPJ8jJ0uepat TNn2gSOA==; Received: from [2601:1c2:d80:3110:e65e:37ff:febd:ee53] by bombadil.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oqMga-00EpZH-1q; Wed, 02 Nov 2022 22:58:16 +0000 Message-ID: Date: Wed, 2 Nov 2022 15:58:14 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.0 Subject: Re: [RFC PATCH v2 1/3] drivers/accel: define kconfig and register a new major Content-Language: en-US To: Oded Gabbay , 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 References: <20221102203405.1797491-1-ogabbay@kernel.org> <20221102203405.1797491-2-ogabbay@kernel.org> From: Randy Dunlap In-Reply-To: <20221102203405.1797491-2-ogabbay@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE 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 11/2/22 13:34, Oded Gabbay wrote: > 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) Please add a period at the end of the help text. + and debugfs). -- ~Randy