From patchwork Wed Jul 25 09:29:28 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 1236081 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id EF7853FD4F for ; Wed, 25 Jul 2012 09:36:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D182C9F30C for ; Wed, 25 Jul 2012 02:36:20 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-we0-f177.google.com (mail-we0-f177.google.com [74.125.82.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 3DEA79E797 for ; Wed, 25 Jul 2012 02:36:09 -0700 (PDT) Received: by weyr3 with SMTP id r3so408965wey.36 for ; Wed, 25 Jul 2012 02:36:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:x-operating-system:user-agent; bh=ndOCVMwmtHfqkiZCc3lELDAahb8XOlDk+QusGK8Jg44=; b=HktgtmUeFFTblBgsTJgAbEegdnmgG6j6OwXveQja0w5+SmgKsHeRgDw93eItq2QbiR 7NbtacDfiBgigl3P7JMWr3U4rcqR+mLSsqlzGLrP1I3HgeHEVl+hoMXfDZB0ggwJHyxR wreFA7tamMBc9UtDet7j5t+0AHPKOIQp6Fn+Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:x-operating-system:user-agent :x-gm-message-state; bh=ndOCVMwmtHfqkiZCc3lELDAahb8XOlDk+QusGK8Jg44=; b=G7a7IcGaxzxerfIl/nH/e+V7VnnzZIwqBPkXUTeHWIYB2vbtN/mrtFnS+W//VrfySa MUsFboP7p6c+0UyQaJz8N9t7gs4i0TlOlk18yexgPy75o2iqmHpKc+pw6F+QnkdncnlO kfBGCwaUjlZvPz0nkrxAFi1b1HqMcQFS1U+TwchSopD2S9Kl7QFRxdYhHSG5iWoDfBsW N4/XJdewJMB//F5s7+aawFJnDKMTvUbXFSRqMDN7e2ORJki0GpqEujPapTOC+0x0WU5E Z25F2PKsMdvokbSeAme+oYAMqJTAdkbgjHuuceGYmD2z12b854Ek9zwC+6ycxkMrqhM7 Vpgg== Received: by 10.216.233.73 with SMTP id o51mr7348263weq.95.1343208558740; Wed, 25 Jul 2012 02:29:18 -0700 (PDT) Received: from phenom.ffwll.local (178-83-130-250.dynamic.hispeed.ch. [178.83.130.250]) by mx.google.com with ESMTPS id o2sm2638018wiz.11.2012.07.25.02.29.17 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 25 Jul 2012 02:29:17 -0700 (PDT) Date: Wed, 25 Jul 2012 11:29:28 +0200 From: Daniel Vetter To: Maciej Rutecki Subject: Re: [REGRESSION] [KMS] [INTEL] Wrong resolution in console and XWindow Message-ID: <20120725092928.GD5396@phenom.ffwll.local> Mail-Followup-To: Maciej Rutecki , Linux Kernel Mailing List , dri-devel@lists.freedesktop.org References: <201207251020.47637.maciej.rutecki@gmail.com> <20120725082926.GB5396@phenom.ffwll.local> <201207251054.25498.maciej.rutecki@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <201207251054.25498.maciej.rutecki@gmail.com> X-Operating-System: Linux phenom 3.4.0-rc3+ User-Agent: Mutt/1.5.21 (2010-09-15) X-Gm-Message-State: ALoCoQniJ0P8WGwnweir1LSB1yYGG42xEAKt2cq/2Lljp2PA+lyvADzjJSyMv4NR96mOFzTRNmeU Cc: dri-devel@lists.freedesktop.org, Linux Kernel Mailing List X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org On Wed, Jul 25, 2012 at 10:54:25AM +0200, Maciej Rutecki wrote: > On ?roda, 25 lipca 2012 o 10:29:26 Daniel Vetter wrote: > > On Wed, Jul 25, 2012 at 10:20:47AM +0200, Maciej Rutecki wrote: > > > Last known good: 3.4.4 > > > First bad: 3.5.0 > > > > > > When booting 3.5.0 resolution (in console, and after in KDE) is set to > > > 1024x768 (60Hz). In 3.4.4 was correct: 1440x900 (60Hz). > > > > Can you please attach the output of xrandr --verbose for both kernels? > > Also, please boot with drm.debug=0xe added to your kernel cmdline and grab > > the dmesg (again for both kernels). > > > > Thanks for the ansfer. > > Here xrandr and dmesg outputs for 3.4.4 and 3.5.0 > > http://mrutecki.pl/download/kernel/3.5/swinka/debug/ Can you please test this quick hack: Thanks, Daniel diff --git a/drivers/gpu/drm/i915/intel_i2c.c b/drivers/gpu/drm/i915/intel_i2c.c index 1991a44..abe1611 100644 --- a/drivers/gpu/drm/i915/intel_i2c.c +++ b/drivers/gpu/drm/i915/intel_i2c.c @@ -405,7 +405,7 @@ clear_err: * timing out seems to happen when there _is_ a ddc chip present, but * it's slow responding and only answers on the 2nd retry. */ - ret = -ENXIO; + ret = 0; if (wait_for((I915_READ(GMBUS2 + reg_offset) & GMBUS_ACTIVE) == 0, 10)) { DRM_DEBUG_KMS("GMBUS [%s] timed out after NAK\n",