From patchwork Wed Apr 5 06:59:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riana Tauro X-Patchwork-Id: 13201194 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 776C5C7619A for ; Wed, 5 Apr 2023 06:59:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0D39010E30F; Wed, 5 Apr 2023 06:59:36 +0000 (UTC) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id D048D10E30F for ; Wed, 5 Apr 2023 06:59:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680677973; x=1712213973; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=v9y9spjSL1S3Mz7IddTu/Q+Tm5Js54ufRiu2uya/92k=; b=npKPALbBAO+jjRri8hvoStauek24RdL/3wXr8rHJO4mcgubxoiErH3pD AW5xaToueS77lZ/C09Ebbh6AmCZqRRuSbnD8vyMTpRGMrtvjKYTeW11A7 jAKBSf1V6fuHxgxs8ayBgduxaCxr2yCTnZgEi/qaZUHCi02dYJ85LWzj6 yVkq9rMLr5Y/Xs52wpvigHs1duO1YTJJDulOgvs7gxCnQQbLM8S3LEpOg VW+Wh82pLnSQCZBwPryoh3knGjix/YtU9Ls8J+480Qza9+AGoKh9s0Mm6 oTYcaqFNTq6Z0W1NlI2Z2YvEbulsSQINS8P3jVM4SJb1UMa8jHzkcy/lJ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10670"; a="330986223" X-IronPort-AV: E=Sophos;i="5.98,319,1673942400"; d="scan'208";a="330986223" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2023 23:59:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10670"; a="719209430" X-IronPort-AV: E=Sophos;i="5.98,319,1673942400"; d="scan'208";a="719209430" Received: from rtauro-desk.iind.intel.com ([10.190.239.41]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Apr 2023 23:59:30 -0700 From: Riana Tauro To: intel-gfx@lists.freedesktop.org Date: Wed, 5 Apr 2023 12:29:26 +0530 Message-Id: <20230405065930.3576936-1-riana.tauro@intel.com> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH v9 0/4] Add hwmon support for dgfx selftests 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" Rename librapl library to libpower. Add hwmon support in libpower for dgfx. Use libpower in selftests. Rev2 : Update commit message Rev3 : Remove redundant code Rev4 : Add hwmon per-gt support Rev5 : No functional changes. Change author for last patch Rev6 : re-order libpower library patch add check for single gt in hwmon function Rev7 : Same as Rev 5 with a single gt check in hwmon function Rev8 : Skip power comparison in live_rc6_manual for discrete graphics Rev9 : Update commit message Riana Tauro (3): drm/i915/selftests: Rename librapl library to libpower drm/i915/hwmon: Add helper function to obtain energy values drm/i915/selftests: skip comparison of power for discrete graphics Tilak Tangudu (1): drm/i915/selftests: Add hwmon support in libpower for dgfx drivers/gpu/drm/i915/Makefile | 2 +- drivers/gpu/drm/i915/gt/selftest_rc6.c | 22 ++++++++++----- drivers/gpu/drm/i915/gt/selftest_rps.c | 26 ++++++++--------- drivers/gpu/drm/i915/gt/selftest_slpc.c | 4 +-- drivers/gpu/drm/i915/i915_hwmon.c | 28 +++++++++++++++++++ drivers/gpu/drm/i915/i915_hwmon.h | 3 ++ drivers/gpu/drm/i915/selftests/libpower.c | 33 ++++++++++++++++++++++ drivers/gpu/drm/i915/selftests/libpower.h | 19 +++++++++++++ drivers/gpu/drm/i915/selftests/librapl.c | 34 ----------------------- drivers/gpu/drm/i915/selftests/librapl.h | 17 ------------ 10 files changed, 114 insertions(+), 74 deletions(-) create mode 100644 drivers/gpu/drm/i915/selftests/libpower.c create mode 100644 drivers/gpu/drm/i915/selftests/libpower.h delete mode 100644 drivers/gpu/drm/i915/selftests/librapl.c delete mode 100644 drivers/gpu/drm/i915/selftests/librapl.h