From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795168071; b=nJm6dwhrZk8NDDcK+nXDrGCYX2UsO/zMTsqFXWCfEDJHxzFB7BekBA3Qb94lECcpi27M T8uelMAj3r1hOpBe2JCk2i5JXc0Lk3XtB73op49NQZCYywfLrazEN3GvMC/r4/EQx0kMR VYzaI9LXsuCmwcOS/cyCuF3YeBxK1UVR2Hn5v7uRyA+CljDKdkB8YnU0f4PYR/KiTgi0K b4Fo6J2vTkp5AOgnOXG5unm2utKepzdi0NZOg7F46L+O/muGXonSu3xUaHpTnvjJBLlBf MTi2tsvAou3ImOJ7Lx6tNSva8oMXpc04geK68Ufbe9wKhOFFFTnK/7AkOZXZaQFMjPA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795168071; h=Received:DKIM-Signature:Received:X-Forwarded-Encrypted: X-Gm-Message-State:X-Received:MIME-Version:References:In-Reply-To: From:Date:X-Gmail-Original-Message-ID:X-Gm-Features:Message-ID: Subject:To:Cc:Content-Type:Content-Transfer-Encoding; bh=YU5P8Wuc2M6bZTL3XK84wjuebJ0zvL/QXfNPgZyOqi0=; b=FcKhAdgz62MYQLVeX7GNZo1K+vgFTM9SLa8fjWYOvuBO80JW3jx431HRIz20vm0EqpJU Y3yrSPGkHQzI3MD0e86tj0mVYdkuc+bSjCJlnG9pNZRnfMrDjp+xNdqWJS5g4HCQ01BD5 fPPS41nawxZNT8KtU2qK+kum+iOOOtVpEDD4r1V+obadvW/U/i97Jdg1P0SwlOH27ukDP 4Bz1xeaNU4DejE9o+oHlO1bWmqPe4N3v+rsdZakwQSXjgPmLVHk0742D/gE8o78HBShC4 r55Tyt3eXgLb1ZH8zqD1QJFQ4qSRrTqV2kZVSZTMftUH+9X95RqcPfjPP+P2IGOxdoA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=TTQIJQdF; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C1698606A320 for ; Fri, 20 Nov 2026 09:47:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=TTQIJQdF Received: by smtp.kernel.org (Postfix) with ESMTPSA id 433DE1F000EF for ; Fri, 20 Nov 2026 09:47:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795168071; bh=YU5P8Wuc2M6bZTL3XK84wjuebJ0zvL/QXfNPgZyOqi0=; h=References:In-Reply-To:From:Date:Subject:To:Cc; b=TTQIJQdFmsgcCJvZ5orSt7w0DatjFVZQwcM9IEaWaC+WjWprBbCupEHBw2ZEdEY5b BIBCQ8gTLt9anGc3R+WoUEP/8X0wqmmRyUA0Is+/tDt6D0Coe+GssnIRmwyUztMzR9 n9c4oX6NDEhgWoC9wYM7VnNjMV3ikjcOOi9DiBzT4NUIQQANyKjVCwoQ9tX93LQ4Td Wyq5vz3a4GnOFKlXnvezyfJNzLPLOgMgy6KV/q8eVLSgE7z+o4JrHPe3rMwYrkadWP lboTcbWu9QSv9dLAlRzQXsDKcewPjqfaR/lq9p/AjBDOYgb+cEVXKzHr7WrFntR/Gm Qp/UOxFXEysyQ== Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-5c1479be604so469959e87.1 for ; Fri, 20 Nov 2026 01:47:51 -0800 (PST) X-Forwarded-Encrypted: i=1; AL+hErGnZGaFSpa1LxpJh6l+wjwwES1kxNpo6Nzlzsf++5Kgl95bti2Muq8B0GBGmSP4NaymgGS1UPsuaE5MAwM=@vger.kernel.org X-Gm-Message-State: APuU4Z+dh/Ddjqz4GtMuyLi8XNU24iniDR+J7abb7kx3BmB/3TUSJWFA g5I/pWA67WsOwUXQV0+z/j1nmp/478Ruc3ow2SXRiNVGc4EoQf7YPbOhZI/hvGE71eMFvwUt8sz npPHtgEme8MCxEjvqBFWywYpRbA6mzVA= X-Received: by 2002:a05:6512:6d0:b0:5c0:463:7b4d with SMTP id 2adb3069b0e04-5c1bc85f15fmr656116e87.46.1795168069914; Fri, 20 Nov 2026 01:47:49 -0800 (PST) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 References: <20261015142552.4128028-1-ryan.roberts@arm.com> <20261015142552.4128028-2-ryan.roberts@arm.com> In-Reply-To: <20261015142552.4128028-2-ryan.roberts@arm.com> From: Linus Walleij Date: Fri, 20 Nov 2026 10:47:37 +0100 X-Gmail-Original-Message-ID: X-Gm-Features: Aa3M54rOrfZtY95RmYFxRv97HUcFxeSdg2w3O8Cm90EYC1dabPW2gsgZ-nnS-cY Message-ID: Subject: Re: [RFC PATCH v2 01/15] misc/arm-cla: Add driver skeleton and documentation To: Ryan Roberts Cc: Greg Kroah-Hartman , Arnd Bergmann , Catalin Marinas , Will Deacon , Mark Rutland , Marc Zyngier , Oliver Upton , Alex Williamson , Jason Gunthorpe , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jean-Philippe Brucker , Oded Gabbay , Jonathan Corbet , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm@vger.kernel.org, devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Oct 15, 2026 at 4:26=E2=80=AFPM Ryan Roberts = wrote: > +Inter-Accelerator Communication > +------------------------------- > + > +On some platforms, multiple accelerators, each attached to a separate CL= A within > +a cluster, are also directly connected to each other via a shared bus to > +accelerate cooperation between accelerators. The accelerators sharing a = bus > +cannot be isolated from each other. When collaborative operations are la= unched > +on each of the participating accelerators, they synchronize over the bus= , > +stalling until all are ready. What the patch series needs to do is tell us how this topology is discovere= d. I.e. will it be discoverable from the hardware itself, or will this topolog= y be described in device tree or ACPI for example? The kernel must certainly know this topology to be able to synchronize work across several cores? What happens if an asynchronous acceleration task is running on some cores and no actual CPU load is on any of them and the kernel want to put them to idle or shut them down? Same problem on the cluster level? Further since this appears to be hardware topology userspace must obtain this information from the kernel, not the other way around: we cannot have a situation where userspace "just knows" stuff about the hardware, keeping the kernel in the dark. I think this is a wider question about the discovery of these CLA:s: there must be a coherent story about how userspace finds it and maps it topology and that information must come from the kernel, so the kernel and userspace have the same map of the world. Right now IIUC the driver probes from discovery in the hardware from CPU-specific registers so does this discovery also include the topology? Yours, Linus Walleij