Commit f9180603 authored by Rodrigo Vivi's avatar Rodrigo Vivi

drm/xe: Enable D3Cold on 'low' VRAM utilization

Now that we eliminated all the mem_access get/put with its
locking issues from the inner calls of migration, we can
allow D3Cold.

Enable it when VRAM utilization is lower then 300Mb. On
higher utilization we only allow D3hot so we don't increase
so much the latency on runtime resume due to the memory
restoration.
Reviewed-by: default avatarMatthew Brost <matthew.brost@intel.com>
Reviewed-by: default avatarAnshuman Gupta <anshuman.gupta@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240522170105.327472-7-rodrigo.vivi@intel.comSigned-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 8d490e01
...@@ -8,12 +8,7 @@ ...@@ -8,12 +8,7 @@
#include <linux/pm_runtime.h> #include <linux/pm_runtime.h>
/* #define DEFAULT_VRAM_THRESHOLD 300 /* in MB */
* TODO: Threshold = 0 will block D3Cold.
* Before we can move this to a higher value (like 300), we need to:
* 1. rewrite the VRAM save / restore to avoid buffer object locks
*/
#define DEFAULT_VRAM_THRESHOLD 0 /* in MB */
struct xe_device; struct xe_device;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment