@@ -154,8 +154,10 @@ struct amdkfd_process_info {
154
154
int amdgpu_amdkfd_init (void );
155
155
void amdgpu_amdkfd_fini (void );
156
156
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 );
159
161
void amdgpu_amdkfd_interrupt (struct amdgpu_device * adev ,
160
162
const void * ih_ring_entry );
161
163
void amdgpu_amdkfd_device_probe (struct amdgpu_device * adev );
@@ -411,16 +413,18 @@ struct kfd_dev *kgd2kfd_probe(struct amdgpu_device *adev, bool vf);
411
413
bool kgd2kfd_device_init (struct kfd_dev * kfd ,
412
414
const struct kgd2kfd_shared_resources * gpu_resources );
413
415
void 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 );
416
420
int kgd2kfd_pre_reset (struct kfd_dev * kfd ,
417
421
struct amdgpu_reset_context * reset_context );
418
422
int kgd2kfd_post_reset (struct kfd_dev * kfd );
419
423
void kgd2kfd_interrupt (struct kfd_dev * kfd , const void * ih_ring_entry );
420
424
void kgd2kfd_set_sram_ecc_flag (struct kfd_dev * kfd );
421
425
void 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 );
424
428
int kgd2kfd_start_sched (struct kfd_dev * kfd , uint32_t node_id );
425
429
int kgd2kfd_stop_sched (struct kfd_dev * kfd , uint32_t node_id );
426
430
bool 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)
454
458
{
455
459
}
456
460
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 )
458
462
{
459
463
}
460
464
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 )
462
475
{
463
476
return 0 ;
464
477
}
@@ -489,12 +502,12 @@ void kgd2kfd_smi_event_throttle(struct kfd_dev *kfd, uint64_t throttle_bitmask)
489
502
{
490
503
}
491
504
492
- static inline int kgd2kfd_check_and_lock_kfd (void )
505
+ static inline int kgd2kfd_check_and_lock_kfd (struct kfd_dev * kfd )
493
506
{
494
507
return 0 ;
495
508
}
496
509
497
- static inline void kgd2kfd_unlock_kfd (void )
510
+ static inline void kgd2kfd_unlock_kfd (struct kfd_dev * kfd )
498
511
{
499
512
}
500
513
0 commit comments