Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7403806rwr; Tue, 25 Apr 2023 12:26:20 -0700 (PDT) X-Google-Smtp-Source: AKy350Y3vEcnfFY//33sSurcuR5wKU/HFwEsZDyuCEz8Nyosm4rN1j73246ZcOSIjDQmg8nPxYsr X-Received: by 2002:a05:6a20:158d:b0:e6:f7e8:1e4d with SMTP id h13-20020a056a20158d00b000e6f7e81e4dmr22836112pzj.33.1682450780263; Tue, 25 Apr 2023 12:26:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682450780; cv=none; d=google.com; s=arc-20160816; b=YsuhXGsHHF0Mp7Zx9yMHPHnjhSA3YWF/gvDtsxc8dbeI7BmPLArouU4+6Z7wwmWAP6 matzdIw9HtlGt1FzynlUWvZ6QjQmtyILCT81S+QJKMU0xnH4qy5dnbpfOx2YAhENI793 6Cg3mRX+dpnjBCGuSzEa+4skvDgn/tu581eETPm3acHsTwXcTqjzFriyiZEfEKazWSgM /Yj9Xdh8Wh5ldhR2J4lPHWnL+zZBQslvPA5O0+2fasESkKuH5z7xH0/iDopYlYnyyAAW Z/FueQgNkYABPlkknXSbEcNO5Q1HsCTahHAlfbTxFXjd09TgJvbYVjvVWDnS9y8ZHIZU x3BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lLCwXbDNraePJDeB9DcMUMYWOKvReLoC/2JrfGtXuCs=; b=qqOdQwsloPsaWyk1ZLdtScKxg/t7kO2cpgDMppgPfgjhRb99hC+/6JZ6r2d339KQVf HTMR99ULkH5+tfBM4MkHb6lM8R9xt+7LpeKkZwDwQ5AK9jz7ksh2ZFyBoFzDxgjiXjtY 0C7PeoSvbYt72V8WpHCQeXkc8xTVbhzF0vUsGXB+5gPxg0DyWsJ6Ji5mqqp+MOIXk7Zd bW14oRjd35cjQT2Qjd/VCSLpceWApVayyYJRGmHuK7md56YVJlMe5eoe+XETtH56SXkM CZ6w/T/lPqlxQJsE6g4dULx/kanvbBrhdPX7pkt0ItRP4Q3cKc1EDyQutowuicrveIcN 4G/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dxBnGHnW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l186-20020a6391c3000000b005215235fbd7si14450282pge.365.2023.04.25.12.26.08; Tue, 25 Apr 2023 12:26:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=dxBnGHnW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235933AbjDYT0E (ORCPT + 99 others); Tue, 25 Apr 2023 15:26:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235281AbjDYT0C (ORCPT ); Tue, 25 Apr 2023 15:26:02 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C388318B8E; Tue, 25 Apr 2023 12:25:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682450748; x=1713986748; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=HOAC/vLL0DpnjM4KLA7wvfcyNWTRHuEgYKkZK8Nx2kI=; b=dxBnGHnWX8uC15hE8bOHF4syJPMraB5VBb/9gyMcH/8HwPafOc1P9a/I CSrMF/5qeYqvAMuYGY8nY2mSEa1JAhEAREK5q7DdXh6AUt1GL0l7xOW0n qbFiWmmiWlln8bME+A3qQcbpk14vsgAl7Ah69mT4nU+vdr+9spUiewu7d 8PiyXEJVfZm7UGyGokzqnTc06EbB3KtMhedML05+0iFAbws4Ut+O4DGdX 0tp4NlwjPdvOCr7Gv1I44TuiLQYdp/Pe+wnwnrh7imhWMNeCgJYeQ/s1A IXdqe1KljZu67Bm5tjKPkLbkouoQdub+RN6Tvu/ASsfhGObbST1YtIO3G Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10691"; a="331099928" X-IronPort-AV: E=Sophos;i="5.99,226,1677571200"; d="scan'208";a="331099928" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2023 12:25:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10691"; a="726240109" X-IronPort-AV: E=Sophos;i="5.99,226,1677571200"; d="scan'208";a="726240109" Received: from cpetruta-mobl1.ger.corp.intel.com (HELO intel.com) ([10.252.59.107]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Apr 2023 12:25:26 -0700 Date: Tue, 25 Apr 2023 21:25:24 +0200 From: Andi Shyti To: Andrzej Hajda Cc: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , David Airlie , Daniel Vetter , Eric Dumazet , linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Chris Wilson , netdev@vger.kernel.org, Jakub Kicinski , Dmitry Vyukov , "David S. Miller" , Andi Shyti Subject: Re: [PATCH v8 6/7] drm/i915: Replace custom intel runtime_pm tracker with ref_tracker library Message-ID: References: <20230224-track_gt-v8-0-4b6517e61be6@intel.com> <20230224-track_gt-v8-6-4b6517e61be6@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230224-track_gt-v8-6-4b6517e61be6@intel.com> X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrzej, On Tue, Apr 25, 2023 at 12:05:43AM +0200, Andrzej Hajda wrote: > Beside reusing existing code, the main advantage of ref_tracker is > tracking per instance of wakeref. It allows also to catch double > put. > On the other side we lose information about the first acquire and > the last release, but the advantages outweigh it. > > Signed-off-by: Andrzej Hajda Reviewed-by: Andi Shyti Andi