@@ -154,8 +154,10 @@ struct amdkfd_process_info {
154154int amdgpu_amdkfd_init (void );
155155void amdgpu_amdkfd_fini (void );
156156
157- void amdgpu_amdkfd_suspend (struct amdgpu_device * adev , bool run_pm );
158- int amdgpu_amdkfd_resume (struct amdgpu_device * adev , bool run_pm );
157+ void amdgpu_amdkfd_suspend (struct amdgpu_device * adev , bool suspend_proc );
158+ int amdgpu_amdkfd_resume (struct amdgpu_device * adev , bool resume_proc );
159+ void amdgpu_amdkfd_suspend_process (struct amdgpu_device * adev );
160+ int amdgpu_amdkfd_resume_process (struct amdgpu_device * adev );
159161void amdgpu_amdkfd_interrupt (struct amdgpu_device * adev ,
160162 const void * ih_ring_entry );
161163void amdgpu_amdkfd_device_probe (struct amdgpu_device * adev );
@@ -411,16 +413,18 @@ struct kfd_dev *kgd2kfd_probe(struct amdgpu_device *adev, bool vf);
411413bool kgd2kfd_device_init (struct kfd_dev * kfd ,
412414 const struct kgd2kfd_shared_resources * gpu_resources );
413415void kgd2kfd_device_exit (struct kfd_dev * kfd );
414- void kgd2kfd_suspend (struct kfd_dev * kfd , bool run_pm );
415- int kgd2kfd_resume (struct kfd_dev * kfd , bool run_pm );
416+ void kgd2kfd_suspend (struct kfd_dev * kfd , bool suspend_proc );
417+ int kgd2kfd_resume (struct kfd_dev * kfd , bool resume_proc );
418+ void kgd2kfd_suspend_process (struct kfd_dev * kfd );
419+ int kgd2kfd_resume_process (struct kfd_dev * kfd );
416420int kgd2kfd_pre_reset (struct kfd_dev * kfd ,
417421 struct amdgpu_reset_context * reset_context );
418422int kgd2kfd_post_reset (struct kfd_dev * kfd );
419423void kgd2kfd_interrupt (struct kfd_dev * kfd , const void * ih_ring_entry );
420424void kgd2kfd_set_sram_ecc_flag (struct kfd_dev * kfd );
421425void kgd2kfd_smi_event_throttle (struct kfd_dev * kfd , uint64_t throttle_bitmask );
422- int kgd2kfd_check_and_lock_kfd (void );
423- void kgd2kfd_unlock_kfd (void );
426+ int kgd2kfd_check_and_lock_kfd (struct kfd_dev * kfd );
427+ void kgd2kfd_unlock_kfd (struct kfd_dev * kfd );
424428int kgd2kfd_start_sched (struct kfd_dev * kfd , uint32_t node_id );
425429int kgd2kfd_stop_sched (struct kfd_dev * kfd , uint32_t node_id );
426430bool kgd2kfd_compute_active (struct kfd_dev * kfd , uint32_t node_id );
@@ -454,11 +458,20 @@ static inline void kgd2kfd_device_exit(struct kfd_dev *kfd)
454458{
455459}
456460
457- static inline void kgd2kfd_suspend (struct kfd_dev * kfd , bool run_pm )
461+ static inline void kgd2kfd_suspend (struct kfd_dev * kfd , bool suspend_proc )
458462{
459463}
460464
461- static inline int kgd2kfd_resume (struct kfd_dev * kfd , bool run_pm )
465+ static inline int kgd2kfd_resume (struct kfd_dev * kfd , bool resume_proc )
466+ {
467+ return 0 ;
468+ }
469+
470+ static inline void kgd2kfd_suspend_process (struct kfd_dev * kfd )
471+ {
472+ }
473+
474+ static inline int kgd2kfd_resume_process (struct kfd_dev * kfd )
462475{
463476 return 0 ;
464477}
@@ -489,12 +502,12 @@ void kgd2kfd_smi_event_throttle(struct kfd_dev *kfd, uint64_t throttle_bitmask)
489502{
490503}
491504
492- static inline int kgd2kfd_check_and_lock_kfd (void )
505+ static inline int kgd2kfd_check_and_lock_kfd (struct kfd_dev * kfd )
493506{
494507 return 0 ;
495508}
496509
497- static inline void kgd2kfd_unlock_kfd (void )
510+ static inline void kgd2kfd_unlock_kfd (struct kfd_dev * kfd )
498511{
499512}
500513
0 commit comments