Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1802583rwr; Fri, 28 Apr 2023 01:58:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5XNooSWRdJMwfCa4wJtYSn2wO+Wd9H1M2SzUnU0vZr3fz21s27Ss8fkogpfWj/rAuF+oYN X-Received: by 2002:a17:902:e551:b0:19c:3d78:6a54 with SMTP id n17-20020a170902e55100b0019c3d786a54mr5713877plf.14.1682672310919; Fri, 28 Apr 2023 01:58:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682672310; cv=none; d=google.com; s=arc-20160816; b=LymKaCurlHCew62oaCV2Oja5JAu5FGWGl0Y6sl0n20fxZBZ7sYGOUaUYYdnyalykzZ 8w3he2s4XP20gQ16VaA0rUtewUNfsZ9foh6+dh8sul1uRBY6+HWm2Fb/TVP9ikvh7hUb Qw6iGH8wA+W6yrzk5wEV8EwOrbFcuAWfG0/R8Qd6xatVqH0ry9XodaCXWg5a+9Y5OVI6 VCGjUzwiYmoesAF7h+d+gPy1ULD7chhgRgeO/9W5oCFVdG4uir60jT2ajKqXQ1ckjmqw pKsH9O4rJNJ8mmntc4qk9DjXsmz000+nRELdnShpOk20bZhYSnYVsaJNMQcp5hijrEXn Lu7w== 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=eduCpmiov5CJ1Z+zd3IQZUqY1G1jsuIj81JtRPef+yw=; b=ftJjwsp85cQsdAis/6hJ55XKvTHWpzqZyFYXFMDz2vf7rvOQl0uCY8aXpoGCLUaiQ4 No1hV0KA6p6mRnIXxLHTw14XqW/nkndDNrSN9wn3rqq6kpih+dKOVUUvco6BsM/8yxBz 5ts83+3vG15qfwq7c4+kOqzf5XV7qR92XDuCCtpQBej/Phi+OwGSVzBoKvFbtoXV1Jvv Sowzm480LoOBsYTpAt/mw64dabm1/jYoHwj+XYXhK99Wb/UZvPPTHTpBaxeKW/ldmPRC 35yr3abc3edaouamARW51XZd9UtQLgLPQNJj9RPJF41mVj3REYCzqzuiWAoU5k16G0lv MqrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=h1gl3pAs; 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 l6-20020a170903244600b0019a95ab6b4esi22892969pls.407.2023.04.28.01.58.19; Fri, 28 Apr 2023 01:58:30 -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=h1gl3pAs; 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 S1345766AbjD1I52 (ORCPT + 99 others); Fri, 28 Apr 2023 04:57:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37466 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345627AbjD1I5L (ORCPT ); Fri, 28 Apr 2023 04:57:11 -0400 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF2413A9D; Fri, 28 Apr 2023 01:56:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682672193; x=1714208193; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=9pexECH/mgIvrvJ2poPTW606fGUoKNk4Fi15axrvXsU=; b=h1gl3pAsZcQOlMuwWqD4eOtbcOYT89MVUYl2p6sk7XgCXECWrrskXyg5 zjmSvrkgyVbHLlp6fHdinGzumgoznfMgmuJFVtCugp/30biulSMDKYS0Q xPrOxI5G0nFd4RNNDjEFjm7mn9PLzqpU114g/5PkzGkwaBebWpwKh1ZUZ Gn0cu5vQLrrQrWP18L0/ZiCV9/EAkIcqlIU1svc5y+L+o6R9s+udMinVK zrttPd0vpaLKTP2HjHm0LpXcqOhP5yjBkwAoS2XnX+KTt6/QRHA85HT0r w/lmtOUVh+4CxVYbnlP3IlGtI3Mlb7NTxv5oaiVQNK/cAWmjTI///L/93 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10693"; a="375681423" X-IronPort-AV: E=Sophos;i="5.99,234,1677571200"; d="scan'208";a="375681423" 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 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 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-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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: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