From patchwork Mon Aug 26 22:55:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matt Roper X-Patchwork-Id: 11115769 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 60B4516B1 for ; Mon, 26 Aug 2019 22:55:57 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 3A799206BA for ; Mon, 26 Aug 2019 22:55:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3A799206BA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4B0D56E32C; Mon, 26 Aug 2019 22:55:56 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2AC926E32C for ; Mon, 26 Aug 2019 22:55:55 +0000 (UTC) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Aug 2019 15:55:54 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,435,1559545200"; d="scan'208";a="174357060" Received: from mdroper-desk.fm.intel.com ([10.105.128.12]) by orsmga008.jf.intel.com with ESMTP; 26 Aug 2019 15:55:54 -0700 From: Matt Roper To: intel-gfx@lists.freedesktop.org Date: Mon, 26 Aug 2019 15:55:38 -0700 Message-Id: <20190826225540.11987-1-matthew.d.roper@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 0/2] New cdclk values for gen11+ X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Lucas De Marchi Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" The bspec was recently updated with new cdclk values 324mhz and 326.4mhz. These clock values are the first ones on gen11+ that use a CD2X clock divider of /2 rather than /1 so we need a little bit of extra logic to program the divider properly before actually enabling them. Note that the bspec does have a note next to the /1 divider bits saying "Use this setting for all CD frequencies" on gen11. I suspect that this note is left over from before these new frequencies were added, but I'm still confirming that with the hardware team. The note does not appear on the TGL bspec. Cc: José Roberto de Souza Cc: Lucas De Marchi Matt Roper (2): drm/i915: Allow /2 CD2X divider on gen11+ drm/i915: Add 324mhz and 326.4mhz cdclks for gen11+ drivers/gpu/drm/i915/display/intel_cdclk.c | 98 +++++++++------------- drivers/gpu/drm/i915/i915_reg.h | 1 + 2 files changed, 42 insertions(+), 57 deletions(-)