From patchwork Fri Oct 21 21:39:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Srivatsa, Anusha" X-Patchwork-Id: 13015504 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 C08DAC433FE for ; Fri, 21 Oct 2022 21:39:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7770210E08D; Fri, 21 Oct 2022 21:39:43 +0000 (UTC) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by gabe.freedesktop.org (Postfix) with ESMTPS id B9DA310E4D0 for ; Fri, 21 Oct 2022 21:39:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1666388379; x=1697924379; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=/YrXFjhlnFewf2kbaqDHz/Olhf6VaN/r3P1NF+yUPMQ=; b=CSMsDcoDnzbAbAfHvRMNjKs3ZK6Dt6AYNn2Hbg6tExOUpqHF592oEkfE gtJlWhkBUznaLG5D3up5T1kv0cLnXOykjX1jz77z0H9jmlji0Q7GfKMoX OhBUctvQWTZj3WWhMTzLLSv1+QrSUk1/e23p6H/uJKPbyMD1PwsZb+yY3 ctylfQ5D3Amy865FEe36AuawAJ+LpCO+F09Cni5E4JXs/nQe0Zz2cvK1p fbPeODJjnHrIngiFBIdTYlt2ygKeHAIRDsbe4yrhfPRRW16UVJlWqMzAt TuDxezg64iQw9SpDro2nLvM1smddzPF4n0jSV/MRsOJrzrOG2a5+nIy9n Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10507"; a="308795348" X-IronPort-AV: E=Sophos;i="5.95,203,1661842800"; d="scan'208";a="308795348" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Oct 2022 14:39:39 -0700 X-IronPort-AV: E=McAfee;i="6500,9779,10507"; a="699511241" X-IronPort-AV: E=Sophos;i="5.95,203,1661842800"; d="scan'208";a="699511241" Received: from anushasr-mobl7.jf.intel.com ([10.24.14.105]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Oct 2022 14:39:38 -0700 From: Anusha Srivatsa To: intel-gfx@lists.freedesktop.org Date: Fri, 21 Oct 2022 14:39:44 -0700 Message-Id: <20221021213948.516041-1-anusha.srivatsa@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 0/4] Prep series - CDCLK code churn 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: Balasubramani Vivekanandan Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" No functional changes. The series is more of a prep series for the mid_cdclk_config series: https://patchwork.freedesktop.org/series/109694/ Main change: - Change usage of "crawler" and "squasher". Use crawling and squashing instead. - Handle both squash and crawl similar in terms of checking if the platform supports them or not. With the changes introduced, both are a display feature flag. - Move code from bxt_set_cdclk() to make it more modularized and easy to read and understand. v2: Change function names to align with rest of the driver. No major changes. Cc: Balasubramani Vivekanandan Cc: Ville Syrjälä Anusha Srivatsa (4): drm/i915/display: Change terminology for cdclk actions drm/i915/display: Introduce HAS_CDCLK_SQUASH macro drm/i915/display: Move chunks of code out of bxt_set_cdclk() drm/i915/display: Move squash_ctl register programming to its own function drivers/gpu/drm/i915/display/intel_cdclk.c | 80 ++++++++++++---------- drivers/gpu/drm/i915/i915_drv.h | 1 + drivers/gpu/drm/i915/i915_pci.c | 1 + drivers/gpu/drm/i915/intel_device_info.h | 1 + 4 files changed, 48 insertions(+), 35 deletions(-)