From patchwork Wed Dec 7 11:21:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riana Tauro X-Patchwork-Id: 13067009 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 E0B93C4708E for ; Wed, 7 Dec 2022 11:20:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6EF5110E03A; Wed, 7 Dec 2022 11:20:40 +0000 (UTC) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6092610E39C for ; Wed, 7 Dec 2022 11:20:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670412036; x=1701948036; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=qVGfxI80UIJjTF8I00NeYyl98MSyvj6qVTHbgeVHfxQ=; b=XbCBRYgsiUhzOtyYe7TJSBHljwgiUshMNOrmhTe6WiLZl6x7HC+JZj1b Wcjk4wz1D5rIYn8Y2KW9XQAV5/8yUu61VuTXoXfv5YonJdEc88KTPhpgx 5bsz5t7TUkF72qvHy440zikqsopmxMOTXrCZ4aZXJx7FQi6ZAWL/BEalA h/HPihsd8IPT8F1MRZ9K8Gawi2jadurG8hfWBs6Qd6eiFwe/a9vrq6icv nbjTbNAE4ZNqW5W897l29z28J6cdaIxnMHlTWcSEmCL7qKTOqSjGJXYY+ u5GC8nANZekhS1vZjAvZnKEZTysI5R5u/BptrwglBwwo35uu0oHoPZr4o Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10553"; a="343897471" X-IronPort-AV: E=Sophos;i="5.96,225,1665471600"; d="scan'208";a="343897471" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2022 03:20:35 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10553"; a="753058506" X-IronPort-AV: E=Sophos;i="5.96,225,1665471600"; d="scan'208";a="753058506" Received: from rtauro-desk.iind.intel.com ([10.190.239.41]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2022 03:20:33 -0800 From: Riana Tauro To: intel-gfx@lists.freedesktop.org Date: Wed, 7 Dec 2022 16:51:01 +0530 Message-Id: <20221207112104.3356169-1-riana.tauro@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH v7 0/3] 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 Riana Tauro (2): drm/i915/selftests: Rename librapl library to libpower drm/i915/hwmon: Add helper function to obtain energy values 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 | 12 ++++---- 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, 105 insertions(+), 73 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