Searched hist:"3 b85b7bcccf45f674d35c0bf65aa84153397380d" (Results 1 – 3 of 3) sorted by relevance
/linux/drivers/gpu/drm/xe/ |
H A D | xe_pm.h | diff 3b85b7bcccf45f674d35c0bf65aa84153397380d Fri Mar 01 19:05:23 CET 2024 Rodrigo Vivi <rodrigo.vivi@intel.com> drm/xe: Fix display runtime_pm handling
i915's intel_runtime_pm_get_if_in_use actually calls the pm_runtime_get_if_active() with ign_usage_count = false, but Xe was erroneously calling it with true because of the mem_access cases.
This can lead to unnecessary references getting hold here and device never getting into the runtime suspended state.
Let's use directly the 'if_in_use' function provided by linux/pm_runtime.
Also, already start this new function protected from the runtime recursion, since runtime_pm will need to call for display functions for a proper D3Cold flow.
v2: Update commit message based on Matt's feedback. Fix return condition of pm_runtime_get_if_in_use (Matt)
Cc: Anshuman Gupta <anshuman.gupta@intel.com> Cc: Matthew Auld <matthew.auld@intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240301180526.643505-1-rodrigo.vivi@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
|
H A D | xe_pm.c | diff 3b85b7bcccf45f674d35c0bf65aa84153397380d Fri Mar 01 19:05:23 CET 2024 Rodrigo Vivi <rodrigo.vivi@intel.com> drm/xe: Fix display runtime_pm handling
i915's intel_runtime_pm_get_if_in_use actually calls the pm_runtime_get_if_active() with ign_usage_count = false, but Xe was erroneously calling it with true because of the mem_access cases.
This can lead to unnecessary references getting hold here and device never getting into the runtime suspended state.
Let's use directly the 'if_in_use' function provided by linux/pm_runtime.
Also, already start this new function protected from the runtime recursion, since runtime_pm will need to call for display functions for a proper D3Cold flow.
v2: Update commit message based on Matt's feedback. Fix return condition of pm_runtime_get_if_in_use (Matt)
Cc: Anshuman Gupta <anshuman.gupta@intel.com> Cc: Matthew Auld <matthew.auld@intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240301180526.643505-1-rodrigo.vivi@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
|
/linux/drivers/gpu/drm/xe/compat-i915-headers/ |
H A D | i915_drv.h | diff 3b85b7bcccf45f674d35c0bf65aa84153397380d Fri Mar 01 19:05:23 CET 2024 Rodrigo Vivi <rodrigo.vivi@intel.com> drm/xe: Fix display runtime_pm handling
i915's intel_runtime_pm_get_if_in_use actually calls the pm_runtime_get_if_active() with ign_usage_count = false, but Xe was erroneously calling it with true because of the mem_access cases.
This can lead to unnecessary references getting hold here and device never getting into the runtime suspended state.
Let's use directly the 'if_in_use' function provided by linux/pm_runtime.
Also, already start this new function protected from the runtime recursion, since runtime_pm will need to call for display functions for a proper D3Cold flow.
v2: Update commit message based on Matt's feedback. Fix return condition of pm_runtime_get_if_in_use (Matt)
Cc: Anshuman Gupta <anshuman.gupta@intel.com> Cc: Matthew Auld <matthew.auld@intel.com> Reviewed-by: Matthew Auld <matthew.auld@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240301180526.643505-1-rodrigo.vivi@intel.com Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
|