Lines Matching refs:d3cold
91 return !xe->d3cold.capable && !xe->info.has_sriov; in xe_rpm_reclaim_safe()
260 err = drmm_mutex_init(&xe->drm, &xe->d3cold.lock); in xe_pm_init_early()
283 xe->d3cold.capable = xe_pm_pci_d3cold_capable(xe); in xe_pm_init()
285 if (xe->d3cold.capable) { in xe_pm_init()
401 if (xe->d3cold.allowed) { in xe_pm_runtime_suspend()
415 if (xe->d3cold.allowed) in xe_pm_runtime_suspend()
443 if (xe->d3cold.allowed) { in xe_pm_runtime_resume()
466 if (xe->d3cold.allowed) { in xe_pm_runtime_resume()
697 mutex_lock(&xe->d3cold.lock); in xe_pm_set_vram_threshold()
698 xe->d3cold.vram_threshold = threshold; in xe_pm_set_vram_threshold()
699 mutex_unlock(&xe->d3cold.lock); in xe_pm_set_vram_threshold()
718 if (!xe->d3cold.capable) { in xe_pm_d3cold_allowed_toggle()
719 xe->d3cold.allowed = false; in xe_pm_d3cold_allowed_toggle()
731 mutex_lock(&xe->d3cold.lock); in xe_pm_d3cold_allowed_toggle()
733 if (total_vram_used_mb < xe->d3cold.vram_threshold) in xe_pm_d3cold_allowed_toggle()
734 xe->d3cold.allowed = true; in xe_pm_d3cold_allowed_toggle()
736 xe->d3cold.allowed = false; in xe_pm_d3cold_allowed_toggle()
738 mutex_unlock(&xe->d3cold.lock); in xe_pm_d3cold_allowed_toggle()
741 "d3cold: allowed=%s\n", str_yes_no(xe->d3cold.allowed)); in xe_pm_d3cold_allowed_toggle()