From patchwork Wed Jan 22 20:39:26 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paulo Zanoni X-Patchwork-Id: 3525521 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 93C24C02DC for ; Wed, 22 Jan 2014 20:39:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C3E3B2017E for ; Wed, 22 Jan 2014 20:39:45 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id F3AE52017B for ; Wed, 22 Jan 2014 20:39:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DF87DFB9A3; Wed, 22 Jan 2014 12:39:43 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-gg0-f181.google.com (mail-gg0-f181.google.com [209.85.161.181]) by gabe.freedesktop.org (Postfix) with ESMTP id 93E62FB9A3 for ; Wed, 22 Jan 2014 12:39:42 -0800 (PST) Received: by mail-gg0-f181.google.com with SMTP id 21so21019ggh.12 for ; Wed, 22 Jan 2014 12:39:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=CMDnHdTrFPdNzprkK1uE+waLO4GrAk03lAaVNklXyrU=; b=h4ZUroiUTBnQypehz24WjsrbaKcn/JPLoU903MOHgWOZgKJ27kl4/8IhQTa3S25OXo VNLMz4XRkOGXqVUByT/i23SGp3liPzhlONcmz+CSsEMzkV78Alb1460xihNoUteedseF JI8Mrfz7cfAizt80VaZ5bLdBsFtBM7yiIB4A97cqsA6ayTK1+xfap9w0hN52B0njlmQX SuPtStvr3PtDQ4Z8NFC08zPSJUidSNy2MIRimkAesbmuNS90U3oycXSn41DPzRIW6q93 9LvIIGiMv2dFueejHqtKkC/VTpYFL8DSkjSOqoptjFQg62junUUDXja4nYEZ/7y3lbSj yb2Q== X-Received: by 10.236.119.141 with SMTP id n13mr548207yhh.136.1390423180827; Wed, 22 Jan 2014 12:39:40 -0800 (PST) Received: from localhost.localdomain ([177.16.36.9]) by mx.google.com with ESMTPSA id d32sm27951395yhq.27.2014.01.22.12.39.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Jan 2014 12:39:40 -0800 (PST) From: Paulo Zanoni To: intel-gfx@lists.freedesktop.org Date: Wed, 22 Jan 2014 18:39:26 -0200 Message-Id: <1390423166-27720-1-git-send-email-przanoni@gmail.com> X-Mailer: git-send-email 1.8.4.2 Cc: Paulo Zanoni Subject: [Intel-gfx] [PATCH] drm/i915: fix HDMI clock readout on Haswell X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Paulo Zanoni This stops the WARNs when booting with an HDMI monitor connected. Signed-off-by: Paulo Zanoni --- drivers/gpu/drm/i915/intel_ddi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_ddi.c b/drivers/gpu/drm/i915/intel_ddi.c index fe2967e..cb6a65e 100644 --- a/drivers/gpu/drm/i915/intel_ddi.c +++ b/drivers/gpu/drm/i915/intel_ddi.c @@ -663,7 +663,7 @@ static int intel_ddi_calc_wrpll_link(struct drm_i915_private *dev_priv, p = (wrpll & WRPLL_DIVIDER_POST_MASK) >> WRPLL_DIVIDER_POST_SHIFT; n = (wrpll & WRPLL_DIVIDER_FB_MASK) >> WRPLL_DIVIDER_FB_SHIFT; - return (LC_FREQ * n) / (p * r); + return ((LC_FREQ * n) * 100) / (p * r); } static void intel_ddi_clock_get(struct intel_encoder *encoder,