From patchwork Tue Jul 19 01:07:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dixit, Ashutosh" X-Patchwork-Id: 12921933 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 C2957C433EF for ; Tue, 19 Jul 2022 01:07:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C78AE11A28C; Tue, 19 Jul 2022 01:07:14 +0000 (UTC) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by gabe.freedesktop.org (Postfix) with ESMTPS id 086D411A294; Tue, 19 Jul 2022 01:07:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658192833; x=1689728833; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=72x3hW4EiBuVpFTEzlYlkJRsr+uCRH5e2gH1lsqSvjM=; b=YemLE9wOA0mhtMFNIg4HExVhnyWY6vBOK+v+yCMIdC1a/3Eg/Lr+nHTS uy9uF83apmfyKmxahgSSXSi3/n9stpKEFxwSD10GNRW82dGw6QFqKOeQ3 AmlMtFif1sFohpZW5dCClwLnpdJQ1jUTihE2gzEDy/DgdnKtyl/wn766E 4xQf18eviA/J/J7etMd+1Sg3BWZEuMACODGpxI2Th7dZvVmoc8/S6PJpZ jPuBGe1dbSxqBUit1tOl2jPASid/ZX3HWDqciG6MOuIYhi/FbaeDbfuTy ao081cPe1nZ15qeaZmBGWugvJDwAw+EwqlfFaZ/dlkjfMouh0rbULh/jt A==; X-IronPort-AV: E=McAfee;i="6400,9594,10412"; a="266759606" X-IronPort-AV: E=Sophos;i="5.92,282,1650956400"; d="scan'208";a="266759606" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2022 18:07:12 -0700 X-IronPort-AV: E=Sophos;i="5.92,282,1650956400"; d="scan'208";a="630128382" Received: from orsosgc001.jf.intel.com ([10.165.21.135]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jul 2022 18:07:11 -0700 From: Ashutosh Dixit To: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Date: Mon, 18 Jul 2022 18:07:06 -0700 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 0/2] drm/i915/gt: Expose per gt defaults in sysfs 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: , Cc: Andi Shyti Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Create a gt/gtN/.defaults/ directory (similar to engine//.defaults/) to expose default parameter values for each gt in sysfs. This allows userspace to restore default parameter values after they may have changed. Patch 1: Creates the gt/gtN/.defaults/ directory Patch 2: Adds per-gt RPS defaults (rps_max_freq_mhz and rps_min_freq_mhz) to gt/gtN/.defaults/ An approved Level-0/oneAPI UMD pull request which consumes the exposed defaults can be seen here: https://github.com/intel/compute-runtime/pull/552 The UMD pull request will be merged if/after this series is merged to i915. Previous discussion on these patches can be seen here: https://patchwork.freedesktop.org/patch/484238/?series=102665&rev=4 https://patchwork.freedesktop.org/patch/483988/?series=102665&rev=3 Cc: Matt Roper Cc: Tvrtko Ursulin Cc: Andi Shyti Signed-off-by: Ashutosh Dixit Ashutosh Dixit (2): drm/i915/gt: Create gt/gtN/.defaults/ for per gt sysfs defaults drm/i915/gt: Expose per-gt RPS defaults in sysfs drivers/gpu/drm/i915/gt/intel_gt_sysfs.c | 10 +++--- drivers/gpu/drm/i915/gt/intel_gt_sysfs.h | 6 ++++ drivers/gpu/drm/i915/gt/intel_gt_sysfs_pm.c | 34 +++++++++++++++++++++ drivers/gpu/drm/i915/gt/intel_gt_types.h | 9 ++++++ drivers/gpu/drm/i915/gt/intel_rps.c | 2 ++ drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c | 12 +++++--- 6 files changed, 64 insertions(+), 9 deletions(-)