Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1754956rwb; Mon, 7 Nov 2022 05:31:43 -0800 (PST) X-Google-Smtp-Source: AA0mqf5BEcWE+EA8e051iwH0fyZEZVos01IMCq5Uxy5yq+gP/t5t+tjT3Qux9AN/sWWEwLUSNhrH X-Received: by 2002:a63:ef56:0:b0:470:6c2d:64eb with SMTP id c22-20020a63ef56000000b004706c2d64ebmr6527077pgk.49.1667827903066; Mon, 07 Nov 2022 05:31:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667827903; cv=none; d=google.com; s=arc-20160816; b=Y/05gvcuVi/WfrlvUqOBYeWxNR954HMhXkjJl62tO7zDNlwR5bDITqJBkFm6NK4+L2 OHX0DZpGgGDV2B9XquBoH/y3dC2zau7rCJf0trW49mlz/gpeBGNWycYK7uUD0Yl/VrX+ 7VLuXn+xDe5O3dber5hinHOWrlG4PX66YYARDqb9Djk6pxtYGOg+hI7MfxTYYNqTXKO5 DvcskBqCjUb3bFXaN2CDLOY2ouT1kJHp1qJDe+yVzp+FBpTFmzaSN9LUlc4snx6KUijn CEI9JHjYdiygx6W+hrPkaTH8RAbYDMeCjyg6iKvjWIzLjRgVAI+c8ybkLCHY9ZN2vcwO hjCg== 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=4rKQ/otSYzKGfAz6LSfsTSIvJPZ6kDubqNx1ge96/SY=; b=Ef41ztLAyh2aoH6aW2BUB/lDuOvPnsmrRVY7yzXJLkugW1Qk8WoIi3RcGdccN3jKDF M9gkspe7BlwuXQdce+3QQ1AzPy/j+lrlGm1YVEnPd4IF/vSoKkiX3gSf8b1lxvBuz6QV Ytftn8sM9/Ke+dqq+GG/F2HQgpRPLrw7c3QthMtEaZUihb28xNyY8S10m7lVWGn0TTDb 0yxOGnEz9gARj89x/P4jK4BOx+Pebyf+lBJ3zz7RNjWLF+PsbXxUOeLi0xQ9bf7w4+IQ n5lWq3iCVhXCGqM7tzkFrn2sQ3Q7LULcSi06fLCmbVSoLChldzZxg8HzB0FQ3j8/Obmc 0b0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=X7qAZPTY; 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 22-20020a630316000000b0047009d37d4fsi9447907pgd.755.2022.11.07.05.31.30; Mon, 07 Nov 2022 05:31:43 -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=X7qAZPTY; 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 S231253AbiKGNZM (ORCPT + 94 others); Mon, 7 Nov 2022 08:25:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230434AbiKGNZK (ORCPT ); Mon, 7 Nov 2022 08:25:10 -0500 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD097113C for ; Mon, 7 Nov 2022 05:25:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667827509; x=1699363509; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=hlL+DfWEWMRR8orTzyWzhpO4GGMnYRYRp0nALpNPto8=; b=X7qAZPTYfUYF7ZpFotp6VmDpiGkvkYDQId5/CWOWVqRzYgLGQAD6qRcC af20o2zCoAjlqwDDAJZdjdBs/mfrVYzczm3t830BgeGtO+4Msa28dETdx 4nxUuVVn/5BydJrvnlIsudA1GK0r1AMeuFddq8VfKfeIKebit/mL1VEee VlTHANS7wpfnQprnAGQ229iX9/nffruYqbNyT1K/oNO3Mp4c1/cKAuXkO Cv3farN5+PaVuoR+bxRYFZO1PFs5sWSqtiUqWEnSHVSYaNjN+/rD8cJF8 dLk5t0AwjXK3FW73vg2XKSh3Dh8938ckYNGovQAFGfQsT72jE+3PT1uiu Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10523"; a="297899194" X-IronPort-AV: E=Sophos;i="5.96,145,1665471600"; d="scan'208";a="297899194" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2022 05:25:09 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10523"; a="761093220" X-IronPort-AV: E=Sophos;i="5.96,145,1665471600"; d="scan'208";a="761093220" Received: from joe-255.igk.intel.com (HELO localhost) ([172.22.229.67]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2022 05:25:05 -0800 Date: Mon, 7 Nov 2022 14:25:03 +0100 From: Stanislaw Gruszka To: Jason Gunthorpe Cc: Oded Gabbay , dri-devel@lists.freedesktop.org, Maciej Kwapulinski , Kevin Hilman , Christoph Hellwig , Jagan Teki , John Hubbard , stanislaw.gruszka@intel.com, Jeffrey Hugo , Arnd Bergmann , Jiho Chu , Jacek Lawrynowicz , Yuji Ishikawa , Tvrtko Ursulin , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Thomas Zimmermann , Alex Deucher Subject: Re: [RFC PATCH v2 1/3] drivers/accel: define kconfig and register a new major Message-ID: <20221107132503.GA3590860@linux.intel.com> References: <20221102203405.1797491-1-ogabbay@kernel.org> <20221102203405.1797491-2-ogabbay@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 Hi On Mon, Nov 07, 2022 at 09:10:36AM -0400, Jason Gunthorpe wrote: > On Mon, Nov 07, 2022 at 03:01:08PM +0200, Oded Gabbay wrote: > > I don't agree with your statement that it should be "a layer over top of DRM". > > Anything on top of DRM is a device driver. > > Accel is not a device driver, it is a new type of drm minor / drm driver. > > Yeah, I still think this is not the right way, you are getting almost > nothing from DRM and making everything more complicated in the > process. > > > The only alternative imo to that is to abandon the idea of reusing > > drm, and just make an independant accel core code. > > Not quite really, layer it properly and librarize parts of DRM into > things accel can re-use so they are not intimately tied to the DRM > struct device notion. What do you mean by "struct device notion" ? struct drm_devce ? Regards Stanislaw