From patchwork Sat Apr 6 16:05:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 2402211 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 6834EDFB7B for ; Sat, 6 Apr 2013 16:03:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5AC59E696C for ; Sat, 6 Apr 2013 09:03:09 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-ea0-f176.google.com (mail-ea0-f176.google.com [209.85.215.176]) by gabe.freedesktop.org (Postfix) with ESMTP id 3C62DE5F6B for ; Sat, 6 Apr 2013 09:02:11 -0700 (PDT) Received: by mail-ea0-f176.google.com with SMTP id h10so1742636eaj.21 for ; Sat, 06 Apr 2013 09:02:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=TzonSn3/+t31CXSCVvtmnNq0F0FlCqmPfLRhPC3FIMU=; b=MyYa/SNLoDhNP+oTfmK2p8rP5C/0ME8J3VxUvVd6T2oG7gt06c/sJFq2o/a14R5hMV xgQe8E1dTm3St5VLLXxPoqU7fXs3d4vrma9j4Ms7v8hkBHK9bjRf5zZhJR9LOIXsv+qC sbibumwB8t/I87zeVk7EBiHKUiIoD/kKvv6sw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=TzonSn3/+t31CXSCVvtmnNq0F0FlCqmPfLRhPC3FIMU=; b=dq4Cdw4+mXQ2TdqSXfGt4D6X7QVXHYAuf0XbCebED7kiZETU0XVXrRjeZnjsMicF2s yKhBXnL1ikXbVBUlPD2wir2z3eCnox6xLo/r9vhzXYMFTotft3NlU+kvgvgWAOT/IM+/ 7Pf5JP4ldc54LkHb2VV3J4ox9P3+rWi3Bw4XFVj4llHrqDXupPvhYVAz31YfoWypv3pG 2MfWhLbSg+xyRzppCQ1+yTSfdZRJ+jYzBzxdU9UnfvILGnuca6vus+wMFoDtk+g/lGu8 PaR63Giz1GcYdxqWyUeA5YmII+pgfulr1kxXIrFyRvKF92mSWYPLQD2ibdNE2NO807B6 8GIg== X-Received: by 10.15.76.132 with SMTP id n4mr11114443eey.16.1365264129897; Sat, 06 Apr 2013 09:02:09 -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 h5sm21655052eem.1.2013.04.06.09.02.07 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 06 Apr 2013 09:02:08 -0700 (PDT) From: Daniel Vetter To: Intel Graphics Development , DRI Development Date: Sat, 6 Apr 2013 18:05:03 +0200 Message-Id: <1365264303-27813-1-git-send-email-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQkHMr3plXYEdzwC3ZbBZWz5FG7e0B1I6Tv8X6O8jrkFsUJf0T7m/PlR/3fGpVIDaH9Kv3jt Cc: George Amanakis , Daniel Vetter , "for 3.8" , Dave Airlie Subject: [Intel-gfx] [PATCH] drm/kms-helper: disable hpd_irq handling when poll=0 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+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org When inlining the actual hpd output probing in commit 69787f7da6b2adc4054357a661aaa1701a9ca76f Author: Daniel Vetter Date: Tue Oct 23 18:23:34 2012 +0000 drm: run the hpd irq event code directly the check for the drm_kms_hlper.poll module option was lost. This regressed systems where this option is used to work-around output probing issues (like irq storms). Restore the old behaviour. Reported-by: George Amanakis Cc: George Amanakis Cc: Dave Airlie Cc: stable@vger.kernel.org (for 3.8) Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_crtc_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index 7b2d378..3260736 100644 --- a/drivers/gpu/drm/drm_crtc_helper.c +++ b/drivers/gpu/drm/drm_crtc_helper.c @@ -1067,7 +1067,7 @@ void drm_helper_hpd_irq_event(struct drm_device *dev) enum drm_connector_status old_status; bool changed = false; - if (!dev->mode_config.poll_enabled) + if (!dev->mode_config.poll_enabled || !drm_kms_helper_poll) return; mutex_lock(&dev->mode_config.mutex);