Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D1532C2BA4C for ; Wed, 26 Jan 2022 12:37:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 71DD210E54E; Wed, 26 Jan 2022 12:37:17 +0000 (UTC) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5781810E54E for ; Wed, 26 Jan 2022 12:37:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643200636; x=1674736636; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=UD6thkSngbBnqsSCaiahfZKLyeIyi2cCh9WPKbT9k0g=; b=h81rg34TJ5MdTwVyIf7lwNu6sXTaMtQNVOag4x7wjVIQmmCAjUpGqalh 9r0bWPpae8tC+P63FVcWarvehIfhj/6jgnhDbYam7pfxVQWjszR8vd01K qTkg2CrdVEganQK9i3fRxDKE+fpD5lCen1EBC93YBeUj51TYanDoOXH/v LKCmiGs1wY+pBvYoLhLmj/Gl3gJd5x8g7Ei9/mmxWdtcjTtXeOmdcXXU1 VW4xgSOVKoD2qy5zBQ/LdJpLSZy7YbHxSvBPSecJH+MbhF4kL6FJS9jTq CxEfDZnYrrRL/HexaUHJZgwrXUiepHS+ZMyumarkDKiHARf35/3pnPURF w==; X-IronPort-AV: E=McAfee;i="6200,9189,10238"; a="245373288" X-IronPort-AV: E=Sophos;i="5.88,318,1635231600"; d="scan'208";a="245373288" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2022 04:37:15 -0800 X-IronPort-AV: E=Sophos;i="5.88,318,1635231600"; d="scan'208";a="617952153" Received: from ideak-desk.fi.intel.com ([10.237.68.141]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2022 04:37:14 -0800 Date: Wed, 26 Jan 2022 14:37:10 +0200 From: Imre Deak To: Ville Syrjala Message-ID: <20220126123710.GB1958725@ideak-desk.fi.intel.com> References: <20220126081539.23227-1-ville.syrjala@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220126081539.23227-1-ville.syrjala@linux.intel.com> Subject: Re: [Intel-gfx] [PATCH 1/2] drm/i915: Fix oops due to missing stack depot X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: intel-gfx@lists.freedesktop.org, Marco Elver , Dmitry Vyukov , Vlastimil Babka , Chris Wilson Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Wed, Jan 26, 2022 at 10:15:38AM +0200, Ville Syrjala wrote: > From: Ville Syrjälä > > 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 > Cc: Dmitry Vyukov > Cc: Marco Elver # stackdepot > Cc: Chris Wilson > Cc: Imre Deak > Fixes: 2dba5eb1c73b ("lib/stackdepot: allow optional init and stack_table allocation by kvmalloc()") > Signed-off-by: Ville Syrjälä Reviewed-by: Imre Deak > --- > drivers/gpu/drm/i915/intel_runtime_pm.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915/intel_runtime_pm.c > index 53f1ccb78849..64c2708efc9e 100644 > --- a/drivers/gpu/drm/i915/intel_runtime_pm.c > +++ b/drivers/gpu/drm/i915/intel_runtime_pm.c > @@ -68,9 +68,7 @@ static noinline depot_stack_handle_t __save_depot_stack(void) > static void init_intel_runtime_pm_wakeref(struct intel_runtime_pm *rpm) > { > spin_lock_init(&rpm->debug.lock); > - > - if (rpm->available) > - stack_depot_init(); > + stack_depot_init(); > } > > static noinline depot_stack_handle_t > -- > 2.34.1 >