Skip to content

Commit 8abc1eb

Browse files
drm/amdkfd: switch over to using drm_exec v3
Avoids quite a bit of logic and kmalloc overhead. v2: fix multiple problems pointed out by Felix v3: two more nit picks from Felix fixed Signed-off-by: Christian König <[email protected]> Reviewed-by: Felix Kuehling <[email protected]> Acked-by: Alex Deucher <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 9710631 commit 8abc1eb

File tree

6 files changed

+164
-212
lines changed

6 files changed

+164
-212
lines changed

drivers/gpu/drm/amd/amdgpu/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ config DRM_AMDGPU
2121
select INTERVAL_TREE
2222
select DRM_BUDDY
2323
select DRM_SUBALLOC_HELPER
24+
select DRM_EXEC
2425
# amdgpu depends on ACPI_VIDEO when ACPI is enabled, for select to work
2526
# ACPI_VIDEO's dependencies must also be selected.
2627
select INPUT if ACPI

drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525
#ifndef AMDGPU_AMDKFD_H_INCLUDED
2626
#define AMDGPU_AMDKFD_H_INCLUDED
2727

28+
#include <linux/list.h>
2829
#include <linux/types.h>
2930
#include <linux/mm.h>
3031
#include <linux/kthread.h>
3132
#include <linux/workqueue.h>
3233
#include <linux/mmu_notifier.h>
3334
#include <linux/memremap.h>
3435
#include <kgd_kfd_interface.h>
35-
#include <drm/ttm/ttm_execbuf_util.h>
3636
#include "amdgpu_sync.h"
3737
#include "amdgpu_vm.h"
3838
#include "amdgpu_xcp.h"
@@ -71,8 +71,7 @@ struct kgd_mem {
7171
struct hmm_range *range;
7272
struct list_head attachments;
7373
/* protected by amdkfd_process_info.lock */
74-
struct ttm_validate_buffer validate_list;
75-
struct ttm_validate_buffer resv_list;
74+
struct list_head validate_list;
7675
uint32_t domain;
7776
unsigned int mapped_to_gpu_memory;
7877
uint64_t va;

0 commit comments

Comments
 (0)