From patchwork Thu Dec 5 10:49:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= X-Patchwork-Id: 3287261 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 CF346C0D4A for ; Thu, 5 Dec 2013 10:50:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BF4B7203E5 for ; Thu, 5 Dec 2013 10:50:13 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id A8E14203AC for ; Thu, 5 Dec 2013 10:50:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5F7B6FB28C; Thu, 5 Dec 2013 02:50:09 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 4D7B7FB27F for ; Thu, 5 Dec 2013 02:50:05 -0800 (PST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 05 Dec 2013 02:49:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.93,832,1378882800"; d="scan'208";a="447313311" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.66]) by orsmga002.jf.intel.com with SMTP; 05 Dec 2013 02:49:57 -0800 Received: by stinkbox (sSMTP sendmail emulation); Thu, 05 Dec 2013 12:49:56 +0200 Date: Thu, 5 Dec 2013 12:49:56 +0200 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Bruno =?iso-8859-1?Q?Pr=E9mont?= Message-ID: <20131205104956.GX10036@intel.com> References: <20131204210922.0dc90878@neptune.home> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20131204210922.0dc90878@neptune.home> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: intel-gfx@lists.freedesktop.org Subject: Re: [Intel-gfx] 3.13-rc2, i855, [drm:intel_pipe_config_compare] *ERROR* mismatch in adjusted_mode.crtc_clock 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: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, 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 On Wed, Dec 04, 2013 at 09:09:22PM +0100, Bruno Prémont wrote: > [ 1.621199] [drm:intel_pipe_config_compare] *ERROR* mismatch in adjusted_mode.crtc_clock (expected 108000, found 48000) Hmm. Kind of looks like we're reading/parsing the PLL registers incorrectly. Let's try to see what the driver thinks the registers contain: From 4a804c01e051b2cb853d3d5114ae77d1646fb889 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= Date: Thu, 5 Dec 2013 12:44:27 +0200 Subject: [PATCH] dpll state debug --- drivers/gpu/drm/i915/intel_display.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 3f2f1d2..b8f9077 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -8976,6 +8976,10 @@ static void intel_dump_pipe_config(struct intel_crtc *crtc, pipe_config->pch_pfit.enabled ? "enabled" : "disabled"); DRM_DEBUG_KMS("ips: %i\n", pipe_config->ips_enabled); DRM_DEBUG_KMS("double wide: %i\n", pipe_config->double_wide); + DRM_DEBUG_KMS("DPLL = 0x%x\n", pipe_config->dpll_hw_state.dpll); + DRM_DEBUG_KMS("DPLL_MD = 0x%x\n", pipe_config->dpll_hw_state.dpll_md); + DRM_DEBUG_KMS("FP0 = 0x%x\n", pipe_config->dpll_hw_state.fp0); + DRM_DEBUG_KMS("FP1 = 0x%x\n", pipe_config->dpll_hw_state.fp1); } static bool check_encoder_cloning(struct drm_crtc *crtc)