From mboxrd@z Thu Jan 1 00:00:00 1970 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 40A05C001B3 for ; Tue, 27 Jun 2023 03:17:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4E7A110E06E; Tue, 27 Jun 2023 03:17:40 +0000 (UTC) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTPS id E3CE610E06E; Tue, 27 Jun 2023 03:17:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1687835858; x=1719371858; h=date:message-id:from:to:cc:subject:in-reply-to: references:mime-version; bh=RCxw2d+HB2cHjGqkFHyRAXOkoKmpGvyWopCDJTJoViM=; b=juZYFDZTBCCr1UHAFjJ1er1n/IiFe+iq1+MrYjkun72VlPIo5Uwqmo2B FsKdmoxtRggBUTMbgwq8VrgFvK59wl1AMPcsY1+MxhfII9bQfqqXj5Iss ZwmktVfsipIqPqDvirTqbskgCrBBVW0uaPaEhkVnXsk6CCuf3GVWSdbLr MT2veHiF2lNmFmI6wn3cqZ8ABXanfNicbp73oJGmHYbQygbsd95IxSa5s qqgBv0sO/tqStpfgEawafCLKMjjWor1M8ysL23GY5PG5luWx3l2HmnIBk FO2o2XvLPulUNnHZdWmUL+I+nuEXJ5WX5tKpcSuF6GJXb+UQbJvyVUVG3 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10753"; a="361500568" X-IronPort-AV: E=Sophos;i="6.01,161,1684825200"; d="scan'208";a="361500568" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2023 20:17:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10753"; a="781692333" X-IronPort-AV: E=Sophos;i="6.01,161,1684825200"; d="scan'208";a="781692333" Received: from patinira-mobl.amr.corp.intel.com (HELO adixit-arch.intel.com) ([10.212.195.155]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jun 2023 20:17:37 -0700 Date: Mon, 26 Jun 2023 20:17:36 -0700 Message-ID: <871qhxd25r.wl-ashutosh.dixit@intel.com> From: "Dixit, Ashutosh" To: Vinay Belgaumkar In-Reply-To: <20230627021218.123999-1-vinay.belgaumkar@intel.com> References: <20230627021218.123999-1-vinay.belgaumkar@intel.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/28.2 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Subject: Re: [Intel-gfx] [PATCH] drm/i915/guc: Dump perf_limit_reasons for debug 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, dri-devel@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Mon, 26 Jun 2023 19:12:18 -0700, Vinay Belgaumkar wrote: > > GuC load takes longer sometimes due to GT frequency not ramping up. > Add perf_limit_reasons to the existing warn print to see if frequency > is being throttled. > > Signed-off-by: Vinay Belgaumkar > --- > drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c b/drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c > index 364d0d546ec8..73911536a8e7 100644 > --- a/drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c > +++ b/drivers/gpu/drm/i915/gt/uc/intel_guc_fw.c > @@ -254,6 +254,8 @@ static int guc_wait_ucode(struct intel_guc *guc) > guc_warn(guc, "excessive init time: %lldms! [freq = %dMHz, before = %dMHz, status = 0x%08X, count = %d, ret = %d]\n", > delta_ms, intel_rps_read_actual_frequency(&uncore->gt->rps), > before_freq, status, count, ret); > + guc_warn(guc, "perf limit reasons = 0x%08X\n", > + intel_uncore_read(uncore, intel_gt_perf_limit_reasons_reg(gt))); Maybe just add at the end of the previous guc_warn? > } else { > guc_dbg(guc, "init took %lldms, freq = %dMHz, before = %dMHz, status = 0x%08X, count = %d, ret = %d\n", > delta_ms, intel_rps_read_actual_frequency(&uncore->gt->rps), > -- > 2.38.1 >