From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D08A8CD4F24 for ; Tue, 12 May 2026 22:27:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1C7A210E2CC; Tue, 12 May 2026 22:27:47 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=igalia.com header.i=@igalia.com header.b="nvaGZi5B"; dkim-atps=neutral Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by gabe.freedesktop.org (Postfix) with ESMTPS id C068610E08A; Tue, 12 May 2026 22:27:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=cdQIDMPWyYOXbUwZjwtTDMyKpwgb3v0toGsPGRZyGVA=; b=nvaGZi5ByxxCUz0Qsv8In87fYs RJIaDvvai3GqYJSIr+0r3Lx9GZjsjU3Cs9NqIBGwmoN0LAIvDlIhnZvedu4iQJ8bcryNwnOTqnOIM /cg5Fo8tgfVIUUgKAiQTHuqLYkkXVEhboN3ke5jUb1wmyrdlyX+genZ2sxREgIdvfVERoGVhfUPGO 1FU40PhJBKq5O5cOHK7QQDPsTmTw4y1B6pNkHA70vvdApShRaaHausaqePvTwjR6xtfgXBTag/GD0 82J0CCZsgf6i7oUV9/+DxM7fl6IdF9+xuz+Ab/YswdPWXCQk9oioU7mt+KnoN2Z6VJgIE3Kt1ES6A hW5kgOqQ==; Received: from 179-242-241-236.3g.claro.net.br ([179.242.241.236] helo=quatroqueijos.cascardo.eti.br) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1wMvZl-009gYl-8w; Wed, 13 May 2026 00:27:41 +0200 Date: Tue, 12 May 2026 19:27:29 -0300 From: Thadeu Lima de Souza Cascardo To: igt-dev@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org, Christian Koenig , maarten.lankhorst@linux.intel.com, Thomas =?iso-8859-1?Q?Hellstr=F6m?= , Natalie Vock , kernel-dev@igalia.com, Tvrtko Ursulin Subject: Re: [PATCH i-g-t 0/8] dmem: add amdgpu support and one more test Message-ID: References: <20260512215156.4083082-1-cascardo@igalia.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20260512215156.4083082-1-cascardo@igalia.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Tue, May 12, 2026 at 06:51:47PM -0300, Thadeu Lima de Souza Cascardo wro= te: > This work builds on top of Thomas Hellstr=F6m's patches at [1]. >=20 > Besides the case of eviction when setting dmem.max, which still needs > support from [2], there are other cases for testing dmem behavior and It was pointed out that I missed the link here. And here it is. [2] https://lore.kernel.org/dri-devel/20260512082406.44470-1-thomas.hellstr= om@linux.intel.com/ > potential regressions. Thomas' patches lay over the groundwork for this, > while this patchset addes one basic test of checking current usage and th= at > drivers respect max setting when no eviction is taking place yet. >=20 > This patchset also introduces a driver layer such that the same tests can > work with different drivers. amdgpu support is here added too. >=20 > [1] https://patchwork.freedesktop.org/series/163935/ >=20 > Thadeu Lima de Souza Cascardo (8): > Introduce dmem driver and implement Xe support > Adjust xe_cgroups test to use igt_dmem_driver > Make xe_cgroup test a generic test > amdgpu: add amdgpu_cgroup_region_name > igt_dmem_driver: add amdgpu support > dmem: add test for current/max > dmem: only check for dmem availability once > dmem: get region once per driver >=20 > lib/amdgpu/amd_dmem.c | 94 ++++++++++ > lib/amdgpu/amd_memory.c | 25 +++ > lib/amdgpu/amd_memory.h | 2 + > lib/igt_dmem_driver.h | 25 +++ > lib/meson.build | 2 + > lib/xe/xe_dmem.c | 145 +++++++++++++++ > tests/drv_dmem_cgroups.c | 390 +++++++++++++++++++++++++++++++++++++++ > tests/intel/xe_cgroups.c | 296 ----------------------------- > tests/meson.build | 2 +- > 9 files changed, 684 insertions(+), 297 deletions(-) > create mode 100644 lib/amdgpu/amd_dmem.c > create mode 100644 lib/igt_dmem_driver.h > create mode 100644 lib/xe/xe_dmem.c > create mode 100644 tests/drv_dmem_cgroups.c > delete mode 100644 tests/intel/xe_cgroups.c >=20 > --=20 > 2.47.3 >=20