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 95679C531DC for ; Tue, 20 Aug 2024 18:09:59 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5B89B10E827; Tue, 20 Aug 2024 18:09:59 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="ghg7yk+s"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) by gabe.freedesktop.org (Postfix) with ESMTPS id 500BE10E827 for ; Tue, 20 Aug 2024 18:09:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1724177397; x=1755713397; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=GKzZgoWB9LuLWpHjRPSJ61zC+UDAuwbHa8N/CaNkzuw=; b=ghg7yk+s0QDTBDla+cKA8kGoSwXfW+T+R1fgj73iX7wQFnKBosjCit64 fBIOenYKLsu+H+Ng7zljRZgYTkDZzTBt9cH6uHqvv+C8gXGdDws0md9Gl hPQ87c7V5MtDTZNwpJcrUjGxB1mdN3FmzHSbkyKslawzW+GdztDPp39m8 WWyhTLVEVOQ/k6WtxN1f5FVmG2bLmZFjCTcOvI0ONgzKIdlkDBzwW9qyM eMwgLeOvlpeLyVDjqS6AYbE6ICDIr1q8Ccy5/DYUwEBN3sXFJF60TgHYy js0VlxEyDfnI3K92rqOB92japUT9wzHdEAzF9RVpzmORoB5Fdt1d16508 A==; X-CSE-ConnectionGUID: 4BIO71hERqWvp+AjcevNYA== X-CSE-MsgGUID: txU6QYtdQ3eyu44hvP9VRw== X-IronPort-AV: E=McAfee;i="6700,10204,11170"; a="22633352" X-IronPort-AV: E=Sophos;i="6.10,162,1719903600"; d="scan'208";a="22633352" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2024 11:09:57 -0700 X-CSE-ConnectionGUID: miqOAP4qTz+43ZQoq7HQDA== X-CSE-MsgGUID: +KhcmF8PRUGiDofAaO2Dfw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,162,1719903600"; d="scan'208";a="60667040" Received: from sinjan-super-server.iind.intel.com ([10.145.169.153]) by orviesa010-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2024 11:09:55 -0700 From: Karthik Poosa To: igt-dev@lists.freedesktop.org Cc: anshuman.gupta@intel.com, badal.nilawar@intel.com, vinay.belgaumkar@intel.com, riana.tauro@intel.com, rodrigo.vivi@intel.com, Karthik Poosa Subject: [PATCH i-g-t v4 2/2] tests/intel/xe_gt_freq: Add a wait after gt reset Date: Tue, 20 Aug 2024 23:53:24 +0530 Message-Id: <20240820182324.3206155-3-karthik.poosa@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240820182324.3206155-1-karthik.poosa@intel.com> References: <20240820182324.3206155-1-karthik.poosa@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" After reset min and max takes sometime to get set. So add a wait of 100ms after gt reset before reading min and max frequencies. Signed-off-by: Karthik Poosa Reviewed-by: Riana Tauro --- tests/intel/xe_gt_freq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/intel/xe_gt_freq.c b/tests/intel/xe_gt_freq.c index 56cc10ade..427e12c55 100644 --- a/tests/intel/xe_gt_freq.c +++ b/tests/intel/xe_gt_freq.c @@ -342,6 +342,7 @@ static void test_reset(int fd, int gt_id, int cycles) "Failed after %d good cycles\n", i); xe_force_gt_reset_async(fd, gt_id); + usleep(SLPC_FREQ_LATENCY_US); igt_assert_f(get_freq(fd, gt_id, "min") == rpn, "Failed after %d good cycles\n", i); -- 2.25.1