D | xe_force_wake.c | 19 static const char *str_wake_sleep(bool wake) in str_wake_sleep() argument 21 return wake ? "wake" : "sleep"; in str_wake_sleep() 98 static void __domain_ctl(struct xe_gt *gt, struct xe_force_wake_domain *domain, bool wake) in __domain_ctl() argument 103 xe_mmio_write32(gt, domain->reg_ctl, domain->mask | (wake ? domain->val : 0)); in __domain_ctl() 106 static int __domain_wait(struct xe_gt *gt, struct xe_force_wake_domain *domain, bool wake) in __domain_wait() argument 114 ret = xe_mmio_wait32(gt, domain->reg_ack, domain->val, wake ? domain->val : 0, in __domain_wait() 118 xe_gt_err(gt, "Force wake domain %d failed to ack %s (%pe) reg[%#x] = %#x\n", in __domain_wait() 119 domain->id, str_wake_sleep(wake), ERR_PTR(ret), in __domain_wait() 123 "Force wake domain %d: %s. MMIO unreliable (forcewake register returns 0xFFFFFFFF)!\n", in __domain_wait() 124 domain->id, str_wake_sleep(wake)); in __domain_wait()
|