Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3594607rwb; Tue, 8 Nov 2022 06:22:48 -0800 (PST) X-Google-Smtp-Source: AMsMyM7VWHdBi8ILmzAWqD5OQMmkQmniP1L8lgYjQbWiA3RhSkUEQusqNRclTNICw5Y4ee3rrbLx X-Received: by 2002:a17:902:d4ce:b0:188:5340:4a3a with SMTP id o14-20020a170902d4ce00b0018853404a3amr30039426plg.79.1667917368389; Tue, 08 Nov 2022 06:22:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667917368; cv=none; d=google.com; s=arc-20160816; b=qZXk5Yi+pDqDGoIiQPS3JGmsjOOCG3rlGKtNuginC5TOzZy+biK66Tz7QaSpEPd+bG /K3ZmIbutjk9Mhlf2l1esAVZPn+w4VC1H5gzYUCI16njE/toPoa1ZvQWh/hEhYfqIloj qLd63Wu4lsQxFQPXefPF1kPoIJXivHf8b3YPvyMc22TeT8vMdr5GKURKrNm60Fa8BYlP R9KuZJKxU6J/8OWK/H+3fyR1APUe9Hgmz9HGXsWl16149t2VO0dTUUTGkjucyDypoXS1 gssazMxCiQsqwvYW8UDXeB65+FUxcyI+EplxsjXpMJrRRS0AxO/+BveLFtq8HRatTXgo ZTrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/mg+j8hZiAi65G/kO9sh/Nw5/62Vy+E1IQ42KieUi0U=; b=GTRsCp0xnWFsMGkIaymioExKqwcvcT5UvoBJiXEO693QsirB0+X1pJan3c0HrXfrpe dJt5YgUfpa4NI8V7c8IVsQOgHxpea69rtK+GUX/y6GgQ+sp/b0imAgsS8YJYv4hBx2dO YdJkYdZ2TxdLtqkEd1vQ37cLdxry5diCPCKxjTo/xQe/g4RQOk0k3E9gp2JeXGx/kxb+ fiSb0AI0DR0SSkI2MVULg9FSDvxUwIIcrMeELd754dmESTECk61mc5ZWoOww4chNd7d7 feTpi5F2MT+hy5QZbVFATMiBP642Xx3Eei+8VRp9bIP3qLk+HcBz0yJH42vMCNmrhDdV 0YrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=EgrUu4+l; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f31-20020a63555f000000b0045fad1c30e6si14721402pgm.602.2022.11.08.06.22.36; Tue, 08 Nov 2022 06:22:48 -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=@intel.com header.s=Intel header.b=EgrUu4+l; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234238AbiKHMqZ (ORCPT + 89 others); Tue, 8 Nov 2022 07:46:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233923AbiKHMqX (ORCPT ); Tue, 8 Nov 2022 07:46:23 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A55B52892 for ; Tue, 8 Nov 2022 04:46:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667911582; x=1699447582; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=yInpcuBqffNpHyEIyvcFabmM7Yq7M2fOh2s3ydZG1aI=; b=EgrUu4+lFEHjZaTsop4n9Pfpmf4en4wLkYLz3jOBF/PF2N921Z8fBWp3 JNbkI4GfDBOemmjkIpu15eBSLyWzGqJzd3lS+gC8EBtIAkHMT7W4QhRBP 54SpafbE1eTLXHNnLdu9Bt/Lc1MHyriAhRc6ccd16BZStS8qiJg9sGe02 p+Usb1ZrohNj6qcjrO52YZUni9yyIaKvTe8wZgUqD8fem/t3amy7R/kZb ra6RXox3FJ3C229Pz7cYp19R2hhO3yMTXDmsudmnurml5EfN6LhPkyx0B +cVFeK9cg4R2pWcHH52tnGnjKG3czrzLFpPJws/TALdCC7M+83TnLbkZ4 A==; X-IronPort-AV: E=McAfee;i="6500,9779,10524"; a="337410746" X-IronPort-AV: E=Sophos;i="5.96,147,1665471600"; d="scan'208";a="337410746" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2022 04:46:22 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10524"; a="778913220" X-IronPort-AV: E=Sophos;i="5.96,147,1665471600"; d="scan'208";a="778913220" Received: from joe-255.igk.intel.com (HELO localhost) ([172.22.229.67]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2022 04:46:17 -0800 Date: Tue, 8 Nov 2022 13:46:14 +0100 From: Stanislaw Gruszka To: Oded Gabbay 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 , Randy Dunlap Subject: Re: [RFC PATCH v3 1/3] drivers/accel: define kconfig and register a new major Message-ID: <20221108124614.GA6397@linux.intel.com> References: <20221106210225.2065371-1-ogabbay@kernel.org> <20221106210225.2065371-2-ogabbay@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221106210225.2065371-2-ogabbay@kernel.org> X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 Sun, Nov 06, 2022 at 11:02:23PM +0200, Oded Gabbay wrote: > Add a new Kconfig for the accel subsystem. The Kconfig currently > contains only the basic CONFIG_DRM_ACCEL option that will be used to > decide whether to compile the accel registration code. Therefore, the > kconfig option is defined as bool. > > The accel code will be compiled as part of drm.ko and will be called > directly from the DRM core code. The reason we compile it as part of > drm.ko and not as a separate module is because of cyclic dependency > between drm.ko and the separate module (if it would have existed). > This is due to the fact that DRM core code calls accel functions and > vice-versa. > > The accelerator devices will be exposed to the user space with a new, > dedicated major number - 261. > > The accel init function registers the new major number as a char device > and create corresponding sysfs and debugfs root entries, similar to > what is done in DRM init function. > > I added a new header called drm_accel.h to include/drm/, that will hold > the prototypes of the drm_accel.c functions. In case CONFIG_DRM_ACCEL > is set to 'N', that header will contain empty inline implementations of > those functions, to allow DRM core code to compile successfully > without dependency on CONFIG_DRM_ACCEL. > > I Updated the MAINTAINERS file accordingly with the newly added folder > and 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 Tested-by: Stanislaw Gruszka I tested those patches with intel_vpu driver. After initial troubles, I got things worked with our driver and user mode components. Regards Stanislaw