Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8613652rwi; Tue, 25 Oct 2022 08:45:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM53xYzqnULhPw8GgwUQvZkvz22TWoPc3MltyMJVzwTFL5/QWbxOB8B3awtfl6c6Jo8xJ6Jo X-Received: by 2002:a17:907:e87:b0:78e:2b3c:f672 with SMTP id ho7-20020a1709070e8700b0078e2b3cf672mr33293788ejc.74.1666712720268; Tue, 25 Oct 2022 08:45:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666712720; cv=none; d=google.com; s=arc-20160816; b=OJLctjIfJ7wm/z5mQpIYcbOJ32IIYv20wHLAckNC3laUEmCe9eyEFDjCzBepJFgWYs LvPxlIAHnioME0GDGl9/wWFh8/eIYUpE6eACIRdRmTx60Y9BBL+XSZbffZvW02s8Ip7O L5XJ47fNSvLMkRQMLZdtnq1QHlJP6Lp1sf1M3ofyq6D7CaOlIa9IImAf+dJsBhS92DRS ULboZusNEHOoToF+8oLQMZB6Ba63V6CUEYREqEmZNCfYnVw9hKZqF5/AaS6Wfy/1zGnO 2NX2MmWvnW6XyO6pmxQEDscOMyffqTsjNjH0FDbotzQVKYcwknYf5aPjRN54DM6R14xQ WD5g== 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=V+YUvxMJN1Ia93YxRf3chGSDyOBQQOLEOxAxVDNWPJI=; b=KLM2iY/26aIIo0Af+RW8D560W1tzPo/lHUu3bCgLfE97dc/7WHAjVIMdkylq2UWMXP 7KMYLfMm83noWhboaR30piUZTjZj/h298hBn35CaSSC6xrQ7/VUgOA0Pcbfqql0cxOXU j5+Ez3TjTQ1Bjzrm3hVs7DoJ1JvJu3doei8v0W4WgHBfPb24Im2I1rIHbsupwDjMbWdm KNOXt+5/rmYp3FW0MNHsue6kp4Lj9ahuIo+GxoAeyG8x92EfMucOxWhbZEdpdwSN95/h +cGbqBa263Q3uAyZ5LjA7QYdSabNhHdgbPYtW8K4zGpxtTNMpouBVwommG6LMgLxLrRQ HeiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=V+pBY54S; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a1-20020a170906368100b0078e11e92257si2785169ejc.333.2022.10.25.08.44.55; Tue, 25 Oct 2022 08:45:20 -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=@gmail.com header.s=20210112 header.b=V+pBY54S; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232294AbiJYOnS (ORCPT + 99 others); Tue, 25 Oct 2022 10:43:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34820 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232619AbiJYOnO (ORCPT ); Tue, 25 Oct 2022 10:43:14 -0400 Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CF7515BCA6 for ; Tue, 25 Oct 2022 07:43:13 -0700 (PDT) Received: by mail-ot1-x32d.google.com with SMTP id m5-20020a9d73c5000000b0066738ce4f12so681263otk.12 for ; Tue, 25 Oct 2022 07:43:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=V+YUvxMJN1Ia93YxRf3chGSDyOBQQOLEOxAxVDNWPJI=; b=V+pBY54SA0twJVfCKJRf/JA1OkN1MaFq9gkfLqyvYnW7qDNqrto67VtKhzr+YLMS7i yPys2HMKrUTZbpT6snAjrfErEap3bZFbyceSoI2QlEJAfeui8u9O0bnJe2FTvft8h3Bb JknQA+MvTapyUiciIFV6WBCVC4/Y/wRB6t8NJM9VdoHzQ14HMzn/bRKHbH3ft8bs0jgy H1oMBGe1eRi1bVHeNMWJr+RvrR+RlhdjE0jd+gbi3E0jEbJQH5m11gNix1JUNT+LjbYZ ZAfubpXrzri1sS/XF2CAu2ECK1IoFJIywvdMz+n0+A2pPjen7/zTi5U5SwGdAJXka32z krmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=V+YUvxMJN1Ia93YxRf3chGSDyOBQQOLEOxAxVDNWPJI=; b=WuaEWeUbCuIFX2kCbRC1KjbMCdD4iUpqhYmeu5xHAT6jLJln6PUJ5eg3ZUDrIcJJ6/ Ox/ZY+vwsfXmAoDJfgB0KP8Ktv62drmvsupTDjZITSY89RO3oc1m/tdussZiIN5Aui5T cYY1kAEY74P8mUH5E0VdyFZtbW1SzsCyVhUO9zopPp07bSC9JcFhT4CZqipDfjMo+Q3I k89/1XawuWyvGKjr7jDicF3KkFP9s5DZ6VKaBBCxzQQEa7rTEdiYturH+BcsbCb0hm+9 UPij8UDsLCdRHiJQ6sNrzYbP/TTTRnW1rJhKsy/s+g4pF4Q8lTTMgkqlvaEA5zdxok+G WE/w== X-Gm-Message-State: ACrzQf04v8k/TGTli1+soWzE0HafeFjY/CjkyHPe2rQ82EWtMMrv97wL lBiuu5dNkMIiDr26HYH8QnJHdh0WxsaD2s2/XBs= X-Received: by 2002:a9d:6645:0:b0:661:b778:41b8 with SMTP id q5-20020a9d6645000000b00661b77841b8mr19667831otm.233.1666708993198; Tue, 25 Oct 2022 07:43:13 -0700 (PDT) MIME-Version: 1.0 References: <20221022214622.18042-1-ogabbay@kernel.org> In-Reply-To: From: Alex Deucher Date: Tue, 25 Oct 2022 10:43:01 -0400 Message-ID: Subject: Re: [RFC PATCH 0/3] new subsystem for compute accelerator devices To: Jason Gunthorpe Cc: Dave Airlie , Tvrtko Ursulin , Jiho Chu , Jeffrey Hugo , Thomas Zimmermann , Arnd Bergmann , John Hubbard , Oded Gabbay , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Christoph Hellwig , Jacek Lawrynowicz , Greg Kroah-Hartman , Alex Deucher , Yuji Ishikawa , Kevin Hilman , Maciej Kwapulinski , Jagan Teki Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 Tue, Oct 25, 2022 at 10:34 AM Jason Gunthorpe wrote: > > On Tue, Oct 25, 2022 at 10:21:34AM -0400, Alex Deucher wrote: > > > E.g., the kfd node provides platform level compute > > topology information; e.g., the NUMA details for connected GPUs and > > CPUs, non-GPU compute node information, cache level topologies, etc. > > See, this is exactly what I'm talking about. What on earth does any of > this have to do with DRM? At least for the GPU information it seems relevant. What value are acceleration device cache topologies outside of the subsytsem that uses them? > > We alread have places in the kernel that own and expose these kinds of > information, drivers need to use them. Not re-invent them. I don't disagree, but I'm not sure where the best place for these should be. Probably a lack of knowledge of where this should actually live and indifference from the maintainers of those areas since this use case doesn't match existing ones. Alex