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 75A4AC4167B for ; Mon, 27 Nov 2023 22:22:56 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 45E8C10E407; Mon, 27 Nov 2023 22:22:56 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5658410E317 for ; Mon, 27 Nov 2023 22:22:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701123772; x=1732659772; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=NrtZ1kEMSvNHyvpjsM9jRpSECuhmwCDjGvI7pB22Odk=; b=TO9t4wXz1pnaCO8VuTWmSGyjhLZXHSW0XdXJG10asTNIak60yWPN5IiR imz2oycgOTUo7Lc22C0RMSLDkOPb2CnUBhTrlF2/BhGVbL6/9cWiTTL9l fxgi8iih3GgKk7IKblspkDNGM/qsI0oRmR2Fr+2sZsBSVgBOAA/70fI3Y 6wh7wg3gCtqt8vy2TzNGijSeWnr0B9fnp4G1jWBcZSnbEX2zZmg+zwXxn ftEbvtVedywwAMsO6Y5cru7zvObYuo/n5RQOyHrDtsYaXv3CMU7G34hmk qTqvka9jkpEKVPzhvK58bFT/MzqRUAxZ6nWN/XMkZaSBc8FkM8zL99jEO A==; X-IronPort-AV: E=McAfee;i="6600,9927,10907"; a="6052825" X-IronPort-AV: E=Sophos;i="6.04,232,1695711600"; d="scan'208";a="6052825" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2023 14:22:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10907"; a="802774752" X-IronPort-AV: E=Sophos;i="6.04,232,1695711600"; d="scan'208";a="802774752" Received: from vbelgaum-ubuntu.fm.intel.com ([10.1.27.27]) by orsmga001.jf.intel.com with ESMTP; 27 Nov 2023 14:22:51 -0800 From: Vinay Belgaumkar To: intel-xe@lists.freedesktop.org Date: Mon, 27 Nov 2023 14:22:34 -0800 Message-Id: <20231127222236.68999-2-vinay.belgaumkar@intel.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20231127222236.68999-1-vinay.belgaumkar@intel.com> References: <20231127222236.68999-1-vinay.belgaumkar@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Intel-xe] [PATCH 1/3] drm/xe: Rename xe_gt_idle_sysfs to xe_gt_idle 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: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" Prep this file to contain C6 toggling as well instead of just sysfs related stuff. Signed-off-by: Vinay Belgaumkar --- drivers/gpu/drm/xe/Makefile | 2 +- drivers/gpu/drm/xe/xe_gt.c | 2 +- drivers/gpu/drm/xe/{xe_gt_idle_sysfs.c => xe_gt_idle.c} | 4 ++-- drivers/gpu/drm/xe/{xe_gt_idle_sysfs.h => xe_gt_idle.h} | 8 ++++---- .../xe/{xe_gt_idle_sysfs_types.h => xe_gt_idle_types.h} | 0 drivers/gpu/drm/xe/xe_gt_types.h | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) rename drivers/gpu/drm/xe/{xe_gt_idle_sysfs.c => xe_gt_idle.c} (98%) rename drivers/gpu/drm/xe/{xe_gt_idle_sysfs.h => xe_gt_idle.h} (52%) rename drivers/gpu/drm/xe/{xe_gt_idle_sysfs_types.h => xe_gt_idle_types.h} (100%) diff --git a/drivers/gpu/drm/xe/Makefile b/drivers/gpu/drm/xe/Makefile index 551adbc22b5a..18410dd9cb10 100644 --- a/drivers/gpu/drm/xe/Makefile +++ b/drivers/gpu/drm/xe/Makefile @@ -61,7 +61,7 @@ xe-y += xe_bb.o \ xe_gt.o \ xe_gt_clock.o \ xe_gt_debugfs.o \ - xe_gt_idle_sysfs.o \ + xe_gt_idle.o \ xe_gt_mcr.o \ xe_gt_pagefault.o \ xe_gt_sysfs.o \ diff --git a/drivers/gpu/drm/xe/xe_gt.c b/drivers/gpu/drm/xe/xe_gt.c index 0dddb751c6a4..b3686c34477b 100644 --- a/drivers/gpu/drm/xe/xe_gt.c +++ b/drivers/gpu/drm/xe/xe_gt.c @@ -22,7 +22,7 @@ #include "xe_force_wake.h" #include "xe_ggtt.h" #include "xe_gt_clock.h" -#include "xe_gt_idle_sysfs.h" +#include "xe_gt_idle.h" #include "xe_gt_mcr.h" #include "xe_gt_pagefault.h" #include "xe_gt_printk.h" diff --git a/drivers/gpu/drm/xe/xe_gt_idle_sysfs.c b/drivers/gpu/drm/xe/xe_gt_idle.c similarity index 98% rename from drivers/gpu/drm/xe/xe_gt_idle_sysfs.c rename to drivers/gpu/drm/xe/xe_gt_idle.c index 8df9840811cd..e5b7e5d38e76 100644 --- a/drivers/gpu/drm/xe/xe_gt_idle_sysfs.c +++ b/drivers/gpu/drm/xe/xe_gt_idle.c @@ -7,14 +7,14 @@ #include "xe_device.h" #include "xe_gt.h" -#include "xe_gt_idle_sysfs.h" +#include "xe_gt_idle.h" #include "xe_gt_sysfs.h" #include "xe_guc_pc.h" /** * DOC: Xe GT Idle * - * Provides sysfs entries for idle properties of GT + * Contains functions that init GT idle features like C6 * * device/gt#/gtidle/name - name of the state * device/gt#/gtidle/idle_residency_ms - Provides residency of the idle state in ms diff --git a/drivers/gpu/drm/xe/xe_gt_idle_sysfs.h b/drivers/gpu/drm/xe/xe_gt_idle.h similarity index 52% rename from drivers/gpu/drm/xe/xe_gt_idle_sysfs.h rename to drivers/gpu/drm/xe/xe_gt_idle.h index b0973f96c7ab..9b36bf7db3a7 100644 --- a/drivers/gpu/drm/xe/xe_gt_idle_sysfs.h +++ b/drivers/gpu/drm/xe/xe_gt_idle.h @@ -3,11 +3,11 @@ * Copyright © 2023 Intel Corporation */ -#ifndef _XE_GT_IDLE_SYSFS_H_ -#define _XE_GT_IDLE_SYSFS_H_ +#ifndef _XE_GT_IDLE_H_ +#define _XE_GT_IDLE_H_ -#include "xe_gt_idle_sysfs_types.h" +#include "xe_gt_idle_types.h" void xe_gt_idle_sysfs_init(struct xe_gt_idle *gtidle); -#endif /* _XE_GT_IDLE_SYSFS_H_ */ +#endif /* _XE_GT_IDLE_H_ */ diff --git a/drivers/gpu/drm/xe/xe_gt_idle_sysfs_types.h b/drivers/gpu/drm/xe/xe_gt_idle_types.h similarity index 100% rename from drivers/gpu/drm/xe/xe_gt_idle_sysfs_types.h rename to drivers/gpu/drm/xe/xe_gt_idle_types.h diff --git a/drivers/gpu/drm/xe/xe_gt_types.h b/drivers/gpu/drm/xe/xe_gt_types.h index d3f2793684e2..a96ee7d028aa 100644 --- a/drivers/gpu/drm/xe/xe_gt_types.h +++ b/drivers/gpu/drm/xe/xe_gt_types.h @@ -7,7 +7,7 @@ #define _XE_GT_TYPES_H_ #include "xe_force_wake_types.h" -#include "xe_gt_idle_sysfs_types.h" +#include "xe_gt_idle_types.h" #include "xe_hw_engine_types.h" #include "xe_hw_fence_types.h" #include "xe_reg_sr_types.h" -- 2.38.1