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 2983CC77B7E for ; Thu, 1 Jun 2023 12:19:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B958A10E23F; Thu, 1 Jun 2023 12:19:40 +0000 (UTC) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by gabe.freedesktop.org (Postfix) with ESMTPS id F08C010E23F for ; Thu, 1 Jun 2023 12:19:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1685621979; x=1717157979; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=yWvuqLOJgl/pliRwNrYuchHaySH/HMoH86zsRplGLJY=; b=LAH2soRWCUa8Ddd5gr8Odjhj19/0PB6FJ+K0O4ciu/HTc6hA4TBh0ADv CgwLaYXTmGC7dVeo7Pjaj0BAIt2lwaSmM69aBvdN2WqWgWppNYqhZ4xB0 PbbYv7KKxeunwrB+9G26UmDL+018xJ7j0/JyQ96OM++Dzgxo1REnKzY+g OYannXbwBcw16IZx6kMeH5GOFRvF04p0LT+dC8+M+J782ezDID4yT9xwF YIGxJoeatVgDm7T+1tp0cKPUCaG1Q1RUJmrlaRqtbMWE/Xp/UKuNHoHS6 xg+2OgBBwSlEnGfeimsf4wnXOJkYeI5LECBFUjFFc9mrDu/GFH2RPJGhe Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10727"; a="419039999" X-IronPort-AV: E=Sophos;i="6.00,210,1681196400"; d="scan'208";a="419039999" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2023 05:19:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10727"; a="740336125" X-IronPort-AV: E=Sophos;i="6.00,210,1681196400"; d="scan'208";a="740336125" Received: from unknown (HELO vgovind2-mobl3.fi.intel.com) ([10.237.66.43]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jun 2023 05:19:35 -0700 From: Vinod Govindapillai To: intel-gfx@lists.freedesktop.org Date: Thu, 1 Jun 2023 15:19:16 +0300 Message-Id: <20230601121923.19775-1-vinod.govindapillai@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Transfer-Encoding: 8bit Subject: [Intel-gfx] [PATCH v11 0/7] mtl: add support for pmdemand 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: ville.syrjala@intel.com Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" SAGV configuration support for MTL v2: added one missing patch in the previous version v3: chekcpatch warning fixes update index handling for the icl/tgl QGV point handling program pmdemand code simplified v4: update to debufs and pipe values pmdemand regiters removed the macro usage in update_pmdemand_values V5: Addressing comments from Gustavo and Jani And some other fixes for issues from CI v6: Addressing some comments from Gustavo Updates to pmdemand state struct, active phys calculations Got rid of suppress warning patch from v5 v7: Rebased and updates to max ddiclk and active phys calculations v8: updates to active phys calcuations v9: Address styling issues v10: Updates to phys calculation, pmdemand state initialization during HW readout / sanitization v11: Fix CI checkpatch warnings Mika Kahola (1): drm/i915/mtl: Add support for PM DEMAND Vinod Govindapillai (6): drm/i915: fix the derating percentage for MTL drm/i915: update the QGV point frequency calculations drm/i915: store the peak bw per QGV point drm/i915: extract intel_bw_check_qgv_points() drm/i915: modify max_bw to return index to intel_bw_info drm/i915/mtl: find the best QGV point for the SAGV configuration drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/display/intel_bw.c | 353 +++++++---- drivers/gpu/drm/i915/display/intel_bw.h | 6 + drivers/gpu/drm/i915/display/intel_display.c | 14 + .../gpu/drm/i915/display/intel_display_core.h | 11 + .../drm/i915/display/intel_display_driver.c | 7 + .../gpu/drm/i915/display/intel_display_irq.c | 23 +- .../drm/i915/display/intel_display_power.c | 14 +- .../drm/i915/display/intel_modeset_setup.c | 18 + drivers/gpu/drm/i915/display/intel_pmdemand.c | 555 ++++++++++++++++++ drivers/gpu/drm/i915/display/intel_pmdemand.h | 56 ++ drivers/gpu/drm/i915/i915_reg.h | 36 +- 12 files changed, 971 insertions(+), 123 deletions(-) create mode 100644 drivers/gpu/drm/i915/display/intel_pmdemand.c create mode 100644 drivers/gpu/drm/i915/display/intel_pmdemand.h -- 2.34.1