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 7F68EE7070A for ; Thu, 21 Sep 2023 10:18:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 51C9210E0C8; Thu, 21 Sep 2023 10:18:08 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id C748710E0C8 for ; Thu, 21 Sep 2023 10:18:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695291486; x=1726827486; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=YAZeKBHLjed9WszyR6yfhUABYujx6VDl+31sOawmrSM=; b=h7qU7xo6yy12e2SOwVnlpmf1HO/u91qNuJW8hBZyVPEYbbTlTk12tU65 SVWtXJlG3FSrlPyXcOw8lDlXC9m50HONX2C+cYJbP2YwiMa6HQE4mP7kZ EJCqnrA0We8OfKjfQRqKkkxnzNkwwNPbk7yyiIg6CLy/7kCZwhxS7utFl B8fWtT5V2NoBAPt6rI+a+DpRynzGgkaIK2TQ4G3Onmoue8r6zCtWD+RzC RVNsOJMdhno2v442nAhc7Qbp4qfcJ1YkzzL3XCLkGpTBkRHUMLTNpwaXP 8wwttxTVxnVUYlzUz9S9Xv68mEXXt6XXt8I2o4XjaIcfHLIrrSu9t9Yxy A==; X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="466788333" X-IronPort-AV: E=Sophos;i="6.03,165,1694761200"; d="scan'208";a="466788333" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2023 03:18:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10839"; a="740573603" X-IronPort-AV: E=Sophos;i="6.03,165,1694761200"; d="scan'208";a="740573603" Received: from bnilawar-desk1.iind.intel.com ([10.145.169.158]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Sep 2023 03:18:02 -0700 From: Badal Nilawar To: intel-xe@lists.freedesktop.org, linux-hwmon@vger.kernel.org Date: Thu, 21 Sep 2023 15:55:13 +0530 Message-Id: <20230921102519.3355538-1-badal.nilawar@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Intel-xe] [PATCH v5 0/6] Add HWMON support for DGFX X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux@roeck-us.net, rodrigo.vivi@intel.com Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" This series adds the hwmon support on xe driver for DGFX. This is ported from i915 hwmon. v3: Fix review comments (Matt Brost/Andi) v4: - Squashed "Add HWMON infrastructure" patch to "Expose power attributes" - Dropped changes related to disable PL1 to boost firmware loading. Will handle it saperate patch/series. - Dropped changes related to gt specific energy attributes. Will handle gt specific energy attributes in saperate patch/series with design change suggested by Guenter - Fix review comments (Andi/Guenter) v5: Rebased and clean up Badal Nilawar (6): drm/xe: Add XE_MISSING_CASE macro drm/xe/hwmon: Expose power attributes drm/xe/hwmon: Expose card reactive critical power drm/xe/hwmon: Expose input voltage attribute drm/xe/hwmon: Expose hwmon energy attribute drm/xe/hwmon: Expose power1_max_interval .../ABI/testing/sysfs-driver-intel-xe-hwmon | 72 ++ drivers/gpu/drm/xe/Makefile | 3 + drivers/gpu/drm/xe/regs/xe_gt_regs.h | 9 + drivers/gpu/drm/xe/regs/xe_mchbar_regs.h | 44 + drivers/gpu/drm/xe/xe_device.c | 3 + drivers/gpu/drm/xe/xe_device_types.h | 2 + drivers/gpu/drm/xe/xe_hwmon.c | 758 ++++++++++++++++++ drivers/gpu/drm/xe/xe_hwmon.h | 20 + drivers/gpu/drm/xe/xe_macros.h | 4 + drivers/gpu/drm/xe/xe_pcode.h | 5 + drivers/gpu/drm/xe/xe_pcode_api.h | 7 + 11 files changed, 927 insertions(+) create mode 100644 Documentation/ABI/testing/sysfs-driver-intel-xe-hwmon create mode 100644 drivers/gpu/drm/xe/regs/xe_mchbar_regs.h create mode 100644 drivers/gpu/drm/xe/xe_hwmon.c create mode 100644 drivers/gpu/drm/xe/xe_hwmon.h -- 2.25.1