From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk1-f174.google.com (mail-qk1-f174.google.com [209.85.222.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6AB0D2BE7AC for ; Tue, 25 Nov 2025 07:49:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764056971; cv=none; b=adHZO7hmogbJekgPeN+luVdTm/IA1fLDfzH+62MJU5IVFVQVspekFB+vaUr2DVaJHqKGPM7scvL6fMlBmRN3PsJMulSkgdiXBA8YrC7qE4gRpcoduapbJAmNcU/TaY/7XhCtDrxQWS7uin3f0j3Rm1e9QzCOcyhQB/pVTWgkdJw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764056971; c=relaxed/simple; bh=dYXQ1uyTYiQp5l0EOSTj3X1iUi+LYOARqqBvPXETpmQ=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=C8+oeiC8JoHG6vERkVNm7aK7Ux4HmXBfkexorUqGolcii24f/zTDNQVc2z1CjqT/h9O3yLNhwkYvMs2dxuEpWZGR0Cqn0V9SeYKkqkbHZm+Gfz418f+Ak3K/eTTysxvr9o1oPMeitUpf3xuTxMB9V+FkanexIXIXJPPO6QmxpEw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=XFxEq6mF; arc=none smtp.client-ip=209.85.222.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="XFxEq6mF" Received: by mail-qk1-f174.google.com with SMTP id af79cd13be357-8b25dd7ab33so353240285a.1 for ; Mon, 24 Nov 2025 23:49:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764056968; x=1764661768; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dYXQ1uyTYiQp5l0EOSTj3X1iUi+LYOARqqBvPXETpmQ=; b=XFxEq6mF+ReEMyfAdIoLDgqQ/y7LR9X6wnP5orAxuJvpI8jx82tdB0uYGbCtYSUNrB yr1Bh/0G4pi1hDzrtL6yZpbw0ajwzjJM0DnE6Oi9lHJ5HizKQ8216ITWyVJm0Lsve7DK 9gwhjEsIhbYzGiUXarNDQ0HMzWitIy/2C8MdwLpp43EKFcLB9IslisCE5+CvPnWApFo7 chjznelgNCrhbpu7E8lfeH0LYZTNh+qmEnD5VlLGDPaHhjTjgnt/pIaEU5D1D+KmJ/AJ QIn5nOZGvVgmbzCcgLgiQEQ7WX3fCrSqbZKUQPoGw5t+pjIE/2Z6yu1fqwEMD+cJ8TAj 6omA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764056968; x=1764661768; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=dYXQ1uyTYiQp5l0EOSTj3X1iUi+LYOARqqBvPXETpmQ=; b=QYsAxVdZbik7MNESN0yCSE8ia/h6P/RDKXvLOrNma8TTdYyi94/7yojPeGDHEfndXZ vPS0wLYZZdHCcKLzuOY/9uPKkY4jnvUAZi9GJ18u+v+PuPvXbrjym3L7anY1xr6dSxFo lmKBbv+qf2dEWunmJ/S2QqQ6YWrQJT9RVJOOwBVZPbZIabrKLSjNPTCt1cECtDVrzMcJ Uo9tvzJVtvYlOtNFMUTsS1phBrfzCm501n26eyNArijdbjPvoKmZHdO+Qfe+yHPwwCoS V64c4TuAEkj26NJLkWRVDzu3ygxFzNtBgHWNq7R2kO3qwk4H5hfQGYUA7ChTJCpImYS5 6K6g== X-Forwarded-Encrypted: i=1; AJvYcCWprl8F0py1wHINW6fz/b6NZMORNb5TRUfzISU1UDmnt0buzwUoEkWAsklNc9atRk+OXM2jrrqhEphVkzc90Q==@vger.kernel.org X-Gm-Message-State: AOJu0Yya7pjKdoACLrlP+QFvuP2kbUIj4jd5Nkid35XOrtBlAFxN8aqP mu4ZIRbcNJfy1pvmloQCNuX85u0gBv4kd2vy8HEB1jX76fH35Gtq3LxaYRYWBcY8KYL7ZJiW1RG iXAHId+VlROOKBVvfwc4m6KVjDeZv2V4= X-Gm-Gg: ASbGncvMTcRbilgg1sY1nXVsH0hxFRAOttCf0QtOME6wULP6OzInRqgMwid06mee4lG aCgSK6/r9Onj8Pv8QLh3Qbj2GkcoxUkDSoUb4QKrMU21sQfMpr9WJZUnA6G3jvy4lTJY2eIQK+O YKDrKu0smt6MLY8+Y5fZTwpkcY7oFkrMseKzRyAt+GntDoA7OyrvnOVXGv3kGeLRms3hQK/TdHb l0oqKDll/3d30ZdkP1Nt38lORba2Rc7PAf1T7PxYrRz9xJbaovnyw94UGbnhcK1ZCFtZQ== X-Google-Smtp-Source: AGHT+IEtXPDouByPiT/qxibkQ8ULLGq/MTP3sJn0d1xkeYQ9cq7USFxzR7YMrVKLhlsOLhXx4WZEKVrsh8lyXL+gyvM= X-Received: by 2002:a05:620a:708a:b0:8b2:6ac5:bce1 with SMTP id af79cd13be357-8b4ebd9ec27mr242566785a.52.1764056968048; Mon, 24 Nov 2025 23:49:28 -0800 (PST) Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20251124234432.1988476-1-joelagnelf@nvidia.com> In-Reply-To: From: Dave Airlie Date: Tue, 25 Nov 2025 17:49:16 +1000 X-Gm-Features: AWmQ_bnwzbjWb8lRQT1DDgpaZ85N7NFNJhUwspjg107_d0wU8nUTSe73G0Ayj_8 Message-ID: Subject: Re: [PATCH] gpu: Move DRM buddy allocator one level up To: =?UTF-8?Q?Christian_K=C3=B6nig?= Cc: Joel Fernandes , linux-kernel@vger.kernel.org, Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Simona Vetter , Jonathan Corbet , Alex Deucher , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , Huang Rui , Matthew Auld , Matthew Brost , Lucas De Marchi , =?UTF-8?Q?Thomas_Hellstr=C3=B6m?= , Helge Deller , Danilo Krummrich , Alice Ryhl , Miguel Ojeda , Alex Gaynor , Boqun Feng , Gary Guo , =?UTF-8?Q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Trevor Gross , John Hubbard , Alistair Popple , Timur Tabi , Edwin Peer , Alexandre Courbot , nouveau@lists.freedesktop.org, dri-devel@lists.freedesktop.org, rust-for-linux@vger.kernel.org, linux-doc@vger.kernel.org, amd-gfx@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org, linux-fbdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 25 Nov 2025 at 17:45, Christian K=C3=B6nig wrote: > > On 11/25/25 00:44, Joel Fernandes wrote: > > Move the DRM buddy allocator one level up so that it can be used by GPU > > drivers (example, nova-core) that have usecases other than DRM (such as > > VFIO vGPU support). Modify the API, structures and Kconfigs to use > > "gpu_buddy" terminology. Adapt the drivers and tests to use the new API= . > > > > The commit cannot be split due to bissectability, however no functional > > change is intended. Verified by running K-UNIT tests and build tested > > various configurations. > > Well such a change needs to be part of the patch set which actually start= s to use it outside of drivers/gpu/drm. I'm not sure it really makes sense yet to force that for this, since the next patch would be just adding rust bindings to it, then a patch to nova-core would be needed to use it, I'd rather not merge something like this via the rust or nova trees as it breaks the principle of least surprise. Maybe this + rust bindings might be enough to justify it, but it should be reviewable as a standalone idea. Dave.