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 D0DB7EE14DC for ; Thu, 7 Sep 2023 11:04:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 219F910E22A; Thu, 7 Sep 2023 11:04:05 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2E5F310E22A for ; Thu, 7 Sep 2023 11:04:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694084643; x=1725620643; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=PD0CI25fMb2ajlwBYu0nDynwcZ3ErqJjkZXySNbp16E=; b=i5gC9Pr5lRKD+kLiJTYBVY1kFcilySpj0guBHTbfdfLU8YD7u0bAkp49 0bZqYnYObNabQ/RA19DfljI0AGgXq1FQGG/aSOXb0UMV09pdfsGG9vpuw qlTXwcx7BbneQNOfFDwpDF9uFLFXTOn8xMqM7FPR1UukDqX1+E6ASyCW1 Q9PccQDEMTqS/j/JAlnN4kZw64BzA4yD0hbUaFdFpQyngWvFFVjlvhYSh Z7JMwRl4uTYU29V0ZKamyAewdNY+UcevpZcJ7yXlNWcf7kmCyKyNi5RfO lpIuoN5hFE7AtHSFwj+NEIvRJmctIR7qiVvjwY1PDRwWeE2magKX1b09E Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10825"; a="377234903" X-IronPort-AV: E=Sophos;i="6.02,235,1688454000"; d="scan'208";a="377234903" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2023 04:04:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10825"; a="988723886" X-IronPort-AV: E=Sophos;i="6.02,235,1688454000"; d="scan'208";a="988723886" Received: from mmalyshx-mobl.ger.corp.intel.com (HELO intel.com) ([10.252.35.13]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2023 04:04:00 -0700 Date: Thu, 7 Sep 2023 13:03:57 +0200 From: Andi Shyti To: Nirmoy Das Message-ID: References: <20230906113121.30472-1-nirmoy.das@intel.com> <20230906113121.30472-2-nirmoy.das@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230906113121.30472-2-nirmoy.das@intel.com> Subject: Re: [Intel-gfx] [PATCH 1/5] drm/i915: Lift runtime-pm acquire callbacks out of intel_wakeref.mutex 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: Chris Wilson , chris.p.wilson@linux.intel.com, intel-gfx@lists.freedesktop.org, matthew.d.roper@intel.com Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Hi Nirmoy and Chris, On Wed, Sep 06, 2023 at 01:31:17PM +0200, Nirmoy Das wrote: > From: Chris Wilson > > When runtime pm is first woken, it will synchronously call the > registered callbacks for the device and bug. These callback "and bug" means "hit a bug"? /callback/callbacks/ > may pull in their own forest of locks, which we do not want to > conflate with the intel_wakeref.mutex. A second minor beneft to /beneft/benefit/ > reducing the coverage of the mutex, is that it will reduce > contention for frequent sleeps and wakes (such as when being used > for soft-rc6). > > Signed-off-by: Chris Wilson > Signed-off-by: Nirmoy Das Reviewed-by: Andi Shyti Andi