linux-stable/drivers/gpu/drm/ttm
Rajneesh Bhardwaj b0a7ce53d4 drm/ttm: Schedule delayed_delete worker closer
Try to allocate system memory on the NUMA node the device is closest to
and try to run delayed_delete workers on a CPU of this node as well.

To optimize the memory clearing operation when a TTM BO gets freed by
the delayed_delete worker, scheduling it closer to a NUMA node where the
memory was initially allocated helps avoid the cases where the worker
gets randomly scheduled on the CPU cores that are across interconnect
boundaries such as xGMI, PCIe etc.

This change helps USWC GTT allocations on NUMA systems (dGPU) and AMD
APU platforms such as GFXIP9.4.3.

Signed-off-by: Rajneesh Bhardwaj <rajneesh.bhardwaj@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231111130856.1168304-1-rajneesh.bhardwaj@amd.com
Signed-off-by: Christian König <christian.koenig@amd.com>
2023-11-27 10:58:36 +01:00
..
tests drm/ttm/tests: Fix type conversion in ttm_pool_test 2023-08-22 13:56:11 +02:00
Makefile drm/ttm: Introduce KUnit test 2023-08-09 18:04:22 +02:00
ttm_agp_backend.c
ttm_bo.c drm/ttm: Schedule delayed_delete worker closer 2023-11-27 10:58:36 +01:00
ttm_bo_util.c drm/gem-vram: handle NULL bo->resource in move callback 2023-02-23 10:29:00 +01:00
ttm_bo_vm.c - Nick Piggin's "shoot lazy tlbs" series, to improve the peformance of 2023-04-27 19:42:02 -07:00
ttm_device.c drm/ttm: Schedule delayed_delete worker closer 2023-11-27 10:58:36 +01:00
ttm_execbuf_util.c
ttm_module.c
ttm_module.h
ttm_pool.c drm/ttm: dynamically allocate the drm-ttm_pool shrinker 2023-10-04 10:32:23 -07:00
ttm_range_manager.c
ttm_resource.c drm/ttm: fix warning that we shouldn't mix && and || 2023-06-23 17:21:02 +02:00
ttm_sys_manager.c
ttm_tt.c Merge tag 'amd-drm-next-6.5-2023-06-09' of https://gitlab.freedesktop.org/agd5f/linux into drm-next 2023-06-15 14:11:22 +10:00