From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-44.mimecast.com (us-smtp-delivery-44.mimecast.com [207.211.30.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D6059246BCD for ; Tue, 24 Feb 2026 02:10:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=207.211.30.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771899054; cv=none; b=iUErhfX6JU83FFNwahxCZsG5iSBzjXm9U1ORGEXbXs7kZKpT+fZ7HSbjr5Abs40PUw2QaoSbav+NbJKC3QjhB3GEQrf3ffovpWgpvip+HhK5E4pCxDsVPf6zuxMAgJJxjtqllPWZyl/QYCuF1nR1mWEdjCGX2MGPMGquq9uBp0o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771899054; c=relaxed/simple; bh=RTwohFh0UDgaIEQi07FMM3QAkD4M0JP97YJTd8SDxMw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=pPYqm4pC9q02MDnWXsAMHqMeKmoswWYanbyNQ3A0NcJfBFA2Jsj9upqbWsT8ZPkKYWE5IZsTpwAfffpv1tsALtuG6wUHDqxycK1IpqyCkz9D5BnuB4V1vb+jgRcjDJejS2/rcwXKvNOH5mmoqmX7vHVjHxbpwLol3H8wF12E/xY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=207.211.30.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-537-Sp8pyhrQP7iOSukqY0aa_w-1; Mon, 23 Feb 2026 21:09:38 -0500 X-MC-Unique: Sp8pyhrQP7iOSukqY0aa_w-1 X-Mimecast-MFC-AGG-ID: Sp8pyhrQP7iOSukqY0aa_w_1771898976 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3F4EA1956075; Tue, 24 Feb 2026 02:09:36 +0000 (UTC) Received: from dreadlord.taild9177d.ts.net (unknown [10.67.32.38]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id CB87230001BB; Tue, 24 Feb 2026 02:09:29 +0000 (UTC) From: Dave Airlie To: dri-devel@lists.freedesktop.org, tj@kernel.org, christian.koenig@amd.com, Johannes Weiner , Michal Hocko , Roman Gushchin , Shakeel Butt , Muchun Song Cc: cgroups@vger.kernel.org, Dave Chinner , Waiman Long , simona@ffwll.ch Subject: [PATCH 04/16] ttm/pool: drop numa specific pools Date: Tue, 24 Feb 2026 12:06:21 +1000 Message-ID: <20260224020854.791201-5-airlied@gmail.com> In-Reply-To: <20260224020854.791201-1-airlied@gmail.com> References: <20260224020854.791201-1-airlied@gmail.com> Precedence: bulk X-Mailing-List: cgroups@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: UJlmBfoGfIu64cbnFft9ocqVS8vLq-NwFlmoCo_GTYs_1771898976 X-Mimecast-Originator: gmail.com Content-Transfer-Encoding: quoted-printable content-type: text/plain; charset=WINDOWS-1252; x-default=true From: Dave Airlie The list_lru will now handle numa for us, so no need to keep separate pool types for it. Just consolidate into the global ones. This adds a debugfs change to avoid dumping non-existant orders due to this change. Cc: Christian Koenig Cc: Johannes Weiner Signed-off-by: Dave Airlie --- drivers/gpu/drm/ttm/ttm_pool.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_pool.c b/drivers/gpu/drm/ttm/ttm_pool.= c index 2947ffc51351..3989e15ab5b0 100644 --- a/drivers/gpu/drm/ttm/ttm_pool.c +++ b/drivers/gpu/drm/ttm/ttm_pool.c @@ -406,17 +406,11 @@ static struct ttm_pool_type *ttm_pool_select_type(str= uct ttm_pool *pool, #ifdef CONFIG_X86 =09switch (caching) { =09case ttm_write_combined: -=09=09if (pool->nid !=3D NUMA_NO_NODE) -=09=09=09return &pool->caching[caching].orders[order]; - =09=09if (ttm_pool_uses_dma32(pool)) =09=09=09return &global_dma32_write_combined[order]; =20 =09=09return &global_write_combined[order]; =09case ttm_uncached: -=09=09if (pool->nid !=3D NUMA_NO_NODE) -=09=09=09return &pool->caching[caching].orders[order]; - =09=09if (ttm_pool_uses_dma32(pool)) =09=09=09return &global_dma32_uncached[order]; =20 @@ -1291,7 +1285,7 @@ int ttm_pool_debugfs(struct ttm_pool *pool, struct se= q_file *m) { =09unsigned int i; =20 -=09if (!ttm_pool_uses_dma_alloc(pool) && pool->nid =3D=3D NUMA_NO_NODE) { +=09if (!ttm_pool_uses_dma_alloc(pool)) { =09=09seq_puts(m, "unused\n"); =09=09return 0; =09} @@ -1302,10 +1296,7 @@ int ttm_pool_debugfs(struct ttm_pool *pool, struct s= eq_file *m) =09for (i =3D 0; i < TTM_NUM_CACHING_TYPES; ++i) { =09=09if (!ttm_pool_select_type(pool, i, 0)) =09=09=09continue; -=09=09if (ttm_pool_uses_dma_alloc(pool)) -=09=09=09seq_puts(m, "DMA "); -=09=09else -=09=09=09seq_printf(m, "N%d ", pool->nid); +=09=09seq_puts(m, "DMA "); =09=09switch (i) { =09=09case ttm_cached: =09=09=09seq_puts(m, "\t:"); --=20 2.52.0