Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1608732rwi; Thu, 3 Nov 2022 07:13:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5DqCvgj/ftJMrbhrvRJ0sakRYfj1HbkvJxmJ5ZbmYAe6NXeQyDxZ4wiwFmIA39X6KXeogF X-Received: by 2002:a17:90a:e297:b0:212:dc30:7fed with SMTP id d23-20020a17090ae29700b00212dc307fedmr49798678pjz.90.1667484809349; Thu, 03 Nov 2022 07:13:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667484809; cv=none; d=google.com; s=arc-20160816; b=kc0hrWzjdy7aT9AL3PV8Ko6d0+GBuneD4zfBuN1Tl4HShi1hneYTSijUESqMxDpT1N g/yJDM98aZkCEXvQFKShNBtbaIwTOSaNwi14c2Xoi191BniBqdaJaLToWdRBUHCI0QG/ MMD1WNSrLrqhBnNNCAVcHCE0dNns2bD7r+gvpPGKPM2Yvw94J8j7XsfI0u12ldtEvtH7 wOViJ8kxsdJAZIzwx2iEJpWcZisNzk4laGujf6nJ7YJcCEjOYjzzRyhMVSQYV5u7r7y5 B/fhNV2E+2rxc2f12cotVzFCF8TKnuLCIdI0Cn+XSpV5pxY5bNL28GJHZOUeoyGP5RN9 D7Sw== 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=XOpZQA8j1L1c5E+FVgmsVxSt/GuFaKiz86Si0wGo+Wc=; b=dt8cHfV5aFoi8Wgtvfr9w2O1q89y9TjMv1G4pXk0NaxF3Jy01tJywiulIkaCXvmaQk YnfOjxPwgUJ8RdQ1R8diY8rsgfTzLA+mKACgjkrmNMSN1z6JsEM43eIx+2ryUwsbxZgj rJ75RVfIsEH1xm2dIBvDARmcLpSMvv0JiOrKbv9wgZgkpDjp5rvmUnob3NrJvGg5GsSr cJmbUbqclXUllKoHNccTCw6OQfX7PMrZV3xTxM8TionWH1Em1BKRaVRv8OsrWYcgL6XT zhljlntbdtJF0Yk733OO/DiCTmTJ5beU2m0HUxfFCdclKVkILszg2Eq99qPryun/fu+A dPbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=QOPPXS5e; 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 j185-20020a638bc2000000b00453d2790c49si1156918pge.11.2022.11.03.07.13.16; Thu, 03 Nov 2022 07:13:29 -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=QOPPXS5e; 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 S229823AbiKCN3h (ORCPT + 97 others); Thu, 3 Nov 2022 09:29:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231288AbiKCN3b (ORCPT ); Thu, 3 Nov 2022 09:29:31 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A700C95B8 for ; Thu, 3 Nov 2022 06:29:30 -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 ams.source.kernel.org (Postfix) with ESMTPS id 505E2B827CF for ; Thu, 3 Nov 2022 13:29:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF807C4314C for ; Thu, 3 Nov 2022 13:29:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1667482168; bh=nYB3RB+AjUVoOwO1yDeiaVxLJ0D31WZD8FZbQ8TSmNg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=QOPPXS5e0ASzWMACM+JrTIUGNfwGgYeUpV2IfcynlwdO1Alh3NqgCfsKgpRhz1MxT JN7Y9INd2skjnLQ0U9lrhtuZW5hpKWHwfbsBja3qs4tQTfwcRaP8p4W3uvE4wsUzA2 o/+fVXncBf3Pm14dlBjgXWDBqHJXEYGEc0eQJKpatc9kFrdYBpQm/fzEm2Fk+4LChf j1th2ZNWsyh5NwENjUXSIsRNt4fk2Q6t/h7nL5bge4s7O6kFrCd+BiR7+ZrvY+mCRB NEKF8v5MjAg6oNfdWORbh1YSjCMw5H0BGcfLzEui0RZuZwpd55BekhGivAuFApSJWM XOgvOG3kiFEWA== Received: by mail-yb1-f177.google.com with SMTP id 187so2228227ybe.1 for ; Thu, 03 Nov 2022 06:29:27 -0700 (PDT) X-Gm-Message-State: ACrzQf3iY31eZA+LnS6CQChDbQAijrgLs9BhUqqpGuDmHSicvjQp0FJy i2weIBHr2Hl25aOcsfPeEQXGksHHHerH4bx3wU4= X-Received: by 2002:a25:1e89:0:b0:6bf:9e55:5cb4 with SMTP id e131-20020a251e89000000b006bf9e555cb4mr29629923ybe.642.1667482166923; Thu, 03 Nov 2022 06:29:26 -0700 (PDT) MIME-Version: 1.0 References: <20221102203405.1797491-1-ogabbay@kernel.org> <20221102203405.1797491-2-ogabbay@kernel.org> In-Reply-To: From: Oded Gabbay Date: Thu, 3 Nov 2022 15:29:00 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH v2 1/3] drivers/accel: define kconfig and register a new major To: Randy Dunlap Cc: 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 , 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.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 On Thu, Nov 3, 2022 at 12:58 AM Randy Dunlap wrote: > > > > 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). sure, thx. Oded > > -- > ~Randy