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 84A7BC77B61 for ; Fri, 28 Apr 2023 08:56:04 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B0AB010EC86; Fri, 28 Apr 2023 08:56:03 +0000 (UTC) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3FDA210EC80; Fri, 28 Apr 2023 08:56:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682672160; x=1714208160; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=9pexECH/mgIvrvJ2poPTW606fGUoKNk4Fi15axrvXsU=; b=gV6XuRfSvGm5aDW7EhePDDGcBSwcjQZdnZH73PqGRa6S3mvbe6Lsrp0U stFGuslJiInpbk0glqpMAX273TlgdBipryFKQz2XyIt26PTdUXO3+Mute mCvsFWTfAcW2MXgA/TjDeF4McqO62RwwOTtdiQnUx4/lrcvSG+X3OiAQi uN0ZvQVD5cK2idoFDaixCi2OPVuErVhTvBkX0dPKgTvgeFPLwHhpecZAr ACICNK9jzHJboCNmc/FfInP4weAfCfQ9DHgG4+GCzEe2Xj07troA2LoXD kgN2Aux2ZFlsiy/yZXMJDXNwXvWUsrq1gq4IRicUOd0ODom+NfgBiBkia g==; X-IronPort-AV: E=McAfee;i="6600,9927,10693"; a="375681425" X-IronPort-AV: E=Sophos;i="5.99,234,1677571200"; d="scan'208";a="375681425" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2023 01:55:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10693"; a="784131306" X-IronPort-AV: E=Sophos;i="5.99,234,1677571200"; d="scan'208";a="784131306" Received: from ahermans-mobl1.ger.corp.intel.com (HELO intel.com) ([10.252.35.91]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2023 01:55:54 -0700 Date: Fri, 28 Apr 2023 10:55:52 +0200 From: Andi Shyti To: Andrzej Hajda Subject: Re: [PATCH v8 7/7] drm/i915: Track gt pm wakerefs Message-ID: References: <20230224-track_gt-v8-0-4b6517e61be6@intel.com> <20230224-track_gt-v8-7-4b6517e61be6@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230224-track_gt-v8-7-4b6517e61be6@intel.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tvrtko Ursulin , Andi Shyti , netdev@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, Chris Wilson , Eric Dumazet , dri-devel@lists.freedesktop.org, Rodrigo Vivi , Jakub Kicinski , "David S. Miller" , Dmitry Vyukov Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi Andrzej, On Tue, Apr 25, 2023 at 12:05:44AM +0200, Andrzej Hajda wrote: > Track every intel_gt_pm_get() until its corresponding release in > intel_gt_pm_put() by returning a cookie to the caller for acquire that > must be passed by on released. When there is an imbalance, we can see who > either tried to free a stale wakeref, or who forgot to free theirs. > > Signed-off-by: Andrzej Hajda Reviewed-by: Andi Shyti Andi