Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5990754rwb; Tue, 22 Nov 2022 07:28:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf70bJ6RrMG9Uwc1CAk2jDTzeMLjCCTwDE3WKcI6nYzk/SYeGMsB/NKrAsxTbwa5wpzwlNad X-Received: by 2002:a17:906:ce28:b0:780:8c5d:f86 with SMTP id sd8-20020a170906ce2800b007808c5d0f86mr20119251ejb.391.1669130932406; Tue, 22 Nov 2022 07:28:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669130932; cv=none; d=google.com; s=arc-20160816; b=KH4TvtkYSGNQ/st7cwTGESy0oas6pIdKRwZ+k5tHBKIimt9qYgNflXkrwVbInkYKqn f/iAi8gBzxJDFPr+Yyx3SZZGEd2UwGGMn7XIVTB6SRYRA0x4QmgEGD6TrKdm3apnn0ZL Ydnjl+cCbsgEu3OGlmWE7VUmBiV0H/FWFgr+wW8Vd9uQ8gCG9to4PDFooxEafBy39ZQT 8EQP0RXygoxaMqN0oITB+ARWWI2tGNRKVE6TryINjavtoPnF+JqeTYqcfPWZL0STB59A ZDhnFzlpeWva0G/9KXKouaGl95VZ/IHqaXsbss7Cg3P7dXI5rDa1Q7dOfLIyfKiWbjVf El9w== 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:mail-followup-to:message-id:subject:cc:to:from:date :dkim-signature; bh=KrmpqTzejW7lkXpBGPhRv0hrjR4p7AU1gtyo69Z8dF0=; b=CnxjV6U80Vqg5W7sFMnK+h/Ie/KRUJmr+LZqptJWHzVmO4lRg3GEiUU5m8ErIWKi+s aTvfOG72Vo9ZZ1ChpRk3BAPARK12mSOYgX/GiUShIpTbk12YshHB1dtmfh5NzMNEm9M0 8oGYh+9W3PVAArQ4NiGKB9tcE+RaQurKL27Y4UkQ8FZl58oIlXcsS2PNQ0sgrhu4Rq8p flwVFX78/WiPH7bzxaSnt+jjvRo+ooMaqDNBtK5Sr9faf+n18JIM5JeSl3uE3YZSr5DN VaNSehtHNFrV4jDnnNtS8saJvRzdlx2PVRjn7kTpDjvNYjVlPmZwDgstoxXkd4kNDWSi Vhtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ffwll.ch header.s=google header.b=YCNl6cLo; 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 m11-20020a056402510b00b00467631dfc0esi13324893edd.145.2022.11.22.07.28.28; Tue, 22 Nov 2022 07:28:52 -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=@ffwll.ch header.s=google header.b=YCNl6cLo; 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 S233645AbiKVO5M (ORCPT + 90 others); Tue, 22 Nov 2022 09:57:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234147AbiKVO4j (ORCPT ); Tue, 22 Nov 2022 09:56:39 -0500 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACF2331EF6 for ; Tue, 22 Nov 2022 06:54:48 -0800 (PST) Received: by mail-wr1-x429.google.com with SMTP id l14so6212350wrw.13 for ; Tue, 22 Nov 2022 06:54:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date:from:to:cc :subject:date:message-id:reply-to; bh=KrmpqTzejW7lkXpBGPhRv0hrjR4p7AU1gtyo69Z8dF0=; b=YCNl6cLofcjidVRmlkW34QMzrxYEAWxQbuiM1YpiT8cJ/YWAUvxcNzkVK6JwrsDgoM rbalLGZmQKr5LzHBUO4qqZS7mwH2DpsjQ4wfXQszjLzMXX+6SwJdDEHOF8USSx9F4pKU U5g2mizLnvzhYP0bfhBeVkjZGWWZ26TtzYawM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references :mail-followup-to:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KrmpqTzejW7lkXpBGPhRv0hrjR4p7AU1gtyo69Z8dF0=; b=1WoihWM85tDx08op2bzggYScMDdiE8AJJiIU7dFNCSxg2D+OMosIBPLy/JEsjDNld8 INCEZzhi5tB07fau4g9rhgfXCu6NyEcAK6/38MEQnblSi4mNw/ttnuGdhWtJ9zUh/+uY jKbcf/elu+8R28akLeRPgU1MwQyE2GZDhu+0r8VS5mCYtWGipCgVTSueQcq1p17bAdyn YEmg3J33gKFVedPHQH0BmNXWeTJFydy4F7MHjnW9uloV8PPF7wXLOmUfh81VuGT3iPI7 JZIoTAF0mYFlD8pRvYMy8jEnf2V3wQggnUZnC3i2RbxnCZqTgCwtvtHEn0W1qr07Hpvd AyvA== X-Gm-Message-State: ANoB5pk58sbmQjEIvPzvH8iVxdDxA0A9X5OAubh+Fr39xO2Dq21Z1fDj x6QIgl4wjIOPQgxtzG0s4I/g+Q== X-Received: by 2002:adf:e3c3:0:b0:241:ccd8:f0f7 with SMTP id k3-20020adfe3c3000000b00241ccd8f0f7mr8677335wrm.393.1669128876365; Tue, 22 Nov 2022 06:54:36 -0800 (PST) Received: from phenom.ffwll.local (212-51-149-33.fiber7.init7.net. [212.51.149.33]) by smtp.gmail.com with ESMTPSA id w4-20020adfec44000000b002415dd45320sm14103759wrn.112.2022.11.22.06.54.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Nov 2022 06:54:35 -0800 (PST) Date: Tue, 22 Nov 2022 15:54:33 +0100 From: Daniel Vetter To: Dave Airlie Cc: Sonal Santan , Oded Gabbay , Tvrtko Ursulin , Jacek Lawrynowicz , Jeffrey Hugo , Jason Gunthorpe , Arnd Bergmann , Jiho Chu , John Hubbard , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Christoph Hellwig , Christopher Friedt , Thomas Zimmermann , Kevin Hilman , Alex Deucher , Yuji Ishikawa , Maciej Kwapulinski , Greg Kroah-Hartman , Jagan Teki , Daniel Vetter Subject: Re: [PATCH v4 0/4] new subsystem for compute accelerator devices Message-ID: Mail-Followup-To: Dave Airlie , Sonal Santan , Oded Gabbay , Tvrtko Ursulin , Jacek Lawrynowicz , Jeffrey Hugo , Jason Gunthorpe , Arnd Bergmann , Jiho Chu , John Hubbard , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Christoph Hellwig , Christopher Friedt , Thomas Zimmermann , Kevin Hilman , Alex Deucher , Yuji Ishikawa , Maciej Kwapulinski , Greg Kroah-Hartman , Jagan Teki References: <20221119204435.97113-1-ogabbay@kernel.org> <02c514c0-62c4-1cdf-5d3f-b3d8942ef005@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: Linux phenom 5.19.0-2-amd64 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, 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 Tue, Nov 22, 2022 at 03:46:25PM +1000, Dave Airlie wrote: > On Tue, 22 Nov 2022 at 09:06, Sonal Santan wrote: > > > > On 11/19/22 12:44, Oded Gabbay wrote: > > > This is the fourth (and hopefully last) version of the patch-set to add the > > > new subsystem for compute accelerators. I removed the RFC headline as > > > I believe it is now ready for merging. > > > > > > Compare to v3, this patch-set contains one additional patch that adds > > > documentation regarding the accel subsystem. I hope it's good enough for > > > this stage. In addition, there were few very minor fixes according to > > > comments received on v3. > > > > > > The patches are in the following repo: > > > https://git.kernel.org/pub/scm/linux/kernel/git/ogabbay/accel.git/log/?h=accel_v4 > > > > > > As in v3, The HEAD of that branch is a commit adding a dummy driver that > > > registers an accel device using the new framework. This can be served > > > as a simple reference. > > > > > > v1 cover letter: > > > https://lkml.org/lkml/2022/10/22/544 > > > > > > v2 cover letter: > > > https://lore.kernel.org/lkml/20221102203405.1797491-1-ogabbay@kernel.org/T/ > > > > > > v3 cover letter: > > > https://lore.kernel.org/lkml/20221106210225.2065371-1-ogabbay@kernel.org/T/ > > > > Thanks for defining the new accel subsystem. We are currently working on > > DRM based drivers for unannounced acceleration devices. I am fine with > > these changes with the assumption that the choice of using classic DRM > > or accel is left up to the individual driver. > > I don't think that decision should be up to any individual driver > author. It will have to be consensus with me/Daniel/Oded and the > driver authors. Plus the entire point of this is that it's _still_ a drm based driver. So aside from changing a flag in the kernel driver and adjusting userspace to find the right chardev, there should be zero changes need for an existing drm based driver stack that gets ported to drivers/accel. And of course if we realize there's issues as we add drivers, we can fix things up. This is just to kick things off, not something that's going to be cast in stone for all eternity. Sonal, with that clarification/explanation, is this entire thing reasonable in principal and you can drop an Ack onto the series? Thanks, Daniel -- Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch