mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-21 01:51:18 +00:00
drm/i915: Fix oops due to missing stack depot
We call __save_depot_stack() unconditionally so the stack depot
must always be initialized or else we'll oops on platforms without
runtime pm support.
Presumably we've not seen this in CI due to stack_depot_init()
already getting called via drm_mm_init()+CONFIG_DRM_DEBUG_MM.
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Marco Elver <elver@google.com> # stackdepot
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Imre Deak <imre.deak@intel.com>
Fixes: 2dba5eb1c7
("lib/stackdepot: allow optional init and stack_table allocation by kvmalloc()")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220126081539.23227-1-ville.syrjala@linux.intel.com
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: Imre Deak <imre.deak@intel.com>
This commit is contained in:
parent
063565aca3
commit
751a9d69b1
1 changed files with 1 additions and 3 deletions
|
@ -68,8 +68,6 @@ static noinline depot_stack_handle_t __save_depot_stack(void)
|
||||||
static void init_intel_runtime_pm_wakeref(struct intel_runtime_pm *rpm)
|
static void init_intel_runtime_pm_wakeref(struct intel_runtime_pm *rpm)
|
||||||
{
|
{
|
||||||
spin_lock_init(&rpm->debug.lock);
|
spin_lock_init(&rpm->debug.lock);
|
||||||
|
|
||||||
if (rpm->available)
|
|
||||||
stack_depot_init();
|
stack_depot_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue