@@ -235,7 +235,7 @@ int amdgpu_amdkfd_bo_validate_and_fence(struct amdgpu_bo *bo,
235235int amdgpu_amdkfd_alloc_gtt_mem (struct amdgpu_device * adev , size_t size ,
236236 void * * mem_obj , uint64_t * gpu_addr ,
237237 void * * cpu_ptr , bool mqd_gfx9 );
238- void amdgpu_amdkfd_free_gtt_mem (struct amdgpu_device * adev , void * mem_obj );
238+ void amdgpu_amdkfd_free_gtt_mem (struct amdgpu_device * adev , void * * mem_obj );
239239int amdgpu_amdkfd_alloc_gws (struct amdgpu_device * adev , size_t size ,
240240 void * * mem_obj );
241241void amdgpu_amdkfd_free_gws (struct amdgpu_device * adev , void * mem_obj );
@@ -264,6 +264,8 @@ int amdgpu_amdkfd_send_close_event_drain_irq(struct amdgpu_device *adev,
264264 uint32_t * payload );
265265int amdgpu_amdkfd_unmap_hiq (struct amdgpu_device * adev , u32 doorbell_off ,
266266 u32 inst );
267+ int amdgpu_amdkfd_start_sched (struct amdgpu_device * adev , uint32_t node_id );
268+ int amdgpu_amdkfd_stop_sched (struct amdgpu_device * adev , uint32_t node_id );
267269
268270/* Read user wptr from a specified user address space with page fault
269271 * disabled. The memory must be pinned and mapped to the hardware when
@@ -322,7 +324,7 @@ int amdgpu_amdkfd_gpuvm_map_gtt_bo_to_kernel(struct kgd_mem *mem,
322324 void * * kptr , uint64_t * size );
323325void amdgpu_amdkfd_gpuvm_unmap_gtt_bo_from_kernel (struct kgd_mem * mem );
324326
325- int amdgpu_amdkfd_map_gtt_bo_to_gart (struct amdgpu_bo * bo );
327+ int amdgpu_amdkfd_map_gtt_bo_to_gart (struct amdgpu_bo * bo , struct amdgpu_bo * * bo_gart );
326328
327329int amdgpu_amdkfd_gpuvm_restore_process_bos (void * process_info ,
328330 struct dma_fence __rcu * * ef );
@@ -345,11 +347,9 @@ void amdgpu_amdkfd_ras_pasid_poison_consumption_handler(struct amdgpu_device *ad
345347 pasid_notify pasid_fn , void * data , uint32_t reset );
346348
347349bool amdgpu_amdkfd_is_fed (struct amdgpu_device * adev );
348- bool amdgpu_amdkfd_bo_mapped_to_dev (struct amdgpu_device * adev , struct kgd_mem * mem );
350+ bool amdgpu_amdkfd_bo_mapped_to_dev (void * drm_priv , struct kgd_mem * mem );
349351void amdgpu_amdkfd_block_mmu_notifications (void * p );
350352int amdgpu_amdkfd_criu_resume (void * p );
351- bool amdgpu_amdkfd_ras_query_utcl2_poison_status (struct amdgpu_device * adev ,
352- int hub_inst , int hub_type );
353353int amdgpu_amdkfd_reserve_mem_limit (struct amdgpu_device * adev ,
354354 uint64_t size , u32 alloc_flag , int8_t xcp_id );
355355void amdgpu_amdkfd_unreserve_mem_limit (struct amdgpu_device * adev ,
@@ -426,6 +426,8 @@ void kgd2kfd_set_sram_ecc_flag(struct kfd_dev *kfd);
426426void kgd2kfd_smi_event_throttle (struct kfd_dev * kfd , uint64_t throttle_bitmask );
427427int kgd2kfd_check_and_lock_kfd (void );
428428void kgd2kfd_unlock_kfd (void );
429+ int kgd2kfd_start_sched (struct kfd_dev * kfd , uint32_t node_id );
430+ int kgd2kfd_stop_sched (struct kfd_dev * kfd , uint32_t node_id );
429431#else
430432static inline int kgd2kfd_init (void )
431433{
@@ -496,5 +498,15 @@ static inline int kgd2kfd_check_and_lock_kfd(void)
496498static inline void kgd2kfd_unlock_kfd (void )
497499{
498500}
501+
502+ static inline int kgd2kfd_start_sched (struct kfd_dev * kfd , uint32_t node_id )
503+ {
504+ return 0 ;
505+ }
506+
507+ static inline int kgd2kfd_stop_sched (struct kfd_dev * kfd , uint32_t node_id )
508+ {
509+ return 0 ;
510+ }
499511#endif
500512#endif /* AMDGPU_AMDKFD_H_INCLUDED */
0 commit comments