From patchwork Sat Apr 22 01:00:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinay Belgaumkar X-Patchwork-Id: 13220850 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 653AFC77B61 for ; Sat, 22 Apr 2023 01:01:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4139610E102; Sat, 22 Apr 2023 01:01:26 +0000 (UTC) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by gabe.freedesktop.org (Postfix) with ESMTPS id 818E210E102; Sat, 22 Apr 2023 01:01:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1682125284; x=1713661284; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=xGc8ODmnrQ14sisQOIZ5mfniYRRHdsZIi4vqPZ5Bt1Q=; b=Vh1PFVqcFbg1eUg89sgtpLqKZ9y3PsaCrud0bY9QxbRXh78jqbR4vva9 2XgvEEGfIXQdykaw7iiqhK67/csBbaOUrDtA0MzhdFmqd9Uxw+u8Rz9nu DB+bWFVToGFJDt+x9NaNAkbe4jQYToFG1lU9zu6oeVkZD0e0v6UwLBuO+ COqzK0OCTCymgtTKw8kenzaeORuir/syOVP3FtJDoSDPth6K00dDzg4aj tauBH9XAkw8sZpcJaiLPwOoG4QJu90qVZzSwLzjTYt1IwwQqGtTcoHX1u yGdNTPv86zI5TjLWr4LDDGYDHCbDyVbV+cJOCnwvh45OwLOi4fQMGZUTO A==; X-IronPort-AV: E=McAfee;i="6600,9927,10687"; a="411385206" X-IronPort-AV: E=Sophos;i="5.99,216,1677571200"; d="scan'208";a="411385206" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Apr 2023 18:01:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10687"; a="938678615" X-IronPort-AV: E=Sophos;i="5.99,216,1677571200"; d="scan'208";a="938678615" Received: from vbelgaum-ubuntu.fm.intel.com ([10.1.27.27]) by fmsmga006.fm.intel.com with ESMTP; 21 Apr 2023 18:01:23 -0700 From: Vinay Belgaumkar To: intel-gfx@lists.freedesktop.org, igt-dev@lists.freedesktop.org Date: Fri, 21 Apr 2023 18:00:59 -0700 Message-Id: <20230422010103.1028886-1-vinay.belgaumkar@intel.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH v7 i-g-t 0/4] tests/slpc: Add basic IGT test 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: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Borrow some subtests from xe_guc_pc. Also add per GT SLPC debugfs helpers. v3: Review comments and add HAX patch v4: Modify the condition for skipping the test v5: Update the SLPC helper to per GT v6: Review comments (Ashutosh) v6: Review comments for SLPC debugfs patch (Ashutosh) v7: More comments (Ashutosh) Signed-off-by: Vinay Belgaumkar Reviewed-by: Ashutosh Dixit Vinay Belgaumkar (4): lib/debugfs: Add per GT debugfs helpers lib: Make SLPC helper function per GT i915_pm_freq_api: Add some basic SLPC igt tests HAX: tests/i915: Try out the SLPC IGT tests lib/igt_debugfs.c | 60 ++++++++++ lib/igt_debugfs.h | 4 + lib/igt_pm.c | 34 ++++-- lib/igt_pm.h | 3 +- tests/i915/i915_pm_freq_api.c | 152 ++++++++++++++++++++++++++ tests/intel-ci/fast-feedback.testlist | 2 + tests/meson.build | 1 + 7 files changed, 246 insertions(+), 10 deletions(-) create mode 100644 tests/i915/i915_pm_freq_api.c