Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp742954imm; Thu, 13 Sep 2018 07:07:28 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYNeql5BRoO7jHPqbTk+d3T5TlDsUdxb5aV8kuFLq01psv3blLKQ0EOBXeetkdJafzrUa3s X-Received: by 2002:a62:d113:: with SMTP id z19-v6mr7607573pfg.98.1536847648160; Thu, 13 Sep 2018 07:07:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536847648; cv=none; d=google.com; s=arc-20160816; b=HpfgzQJb+e/S0UdbkNB/3UA1CsduKKWnGFkrlS/bqWLQT7NM8wyGX6uUU/90J/2Y09 MwvVyXgHTkf9eSwQ9eKyI7TelITwA/b9GOAw9krtdTpykH+roIaEXcldFiH8DKcPPnQQ LX2AdwViomrPum1ngZbsbP1pSpVNal+QEqTwuA4ixK6iilHMiIRtz3DhUk8ypEedMdeJ KBjg8mo4+VbdWx2FdhlD/1WzUu8cBi0AE19ilzjLpFPSMAj8ExTRJhMzZiz8+knTOIzx k39rJyGsYuch2/18ey8a/594QHwOq+PCwYMfitJbJ7LVBrTxkmoT0EviG1Wr+CG7w96y nhaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=QbI+yjxW4X+2Xfu8aqOvnGTM3S1c1QZea4bu+Hn018M=; b=ShEUQuXNaTO7b1vgzY5VwArOkYB1bKztCZaudtFhM9AI5OuAGp/UrB4Z1Aycx4Kdos eB0W7aIY8Ge+XDH1PlFkpTc3xx0S9dNSrU/g7YyQjIVCmN1gCcl2uwKxPRzDsepiav4f FNWcJJ2p3V350vehaEX+UJf9x/+h2gzt2Z6UQsJKsW+wm+aDtLC6Jg7pJ9A+V+X7L530 92UJIbpLbKho5ygN0/OMIkSU2AT6uHlP3bPwd1moYSvK4KT0ZehHsr9tx9LgoOeMV1s0 4VkICmfekGERIDbL3qaApVb6dPPAoYpK1L6XekNtD3VfMMY0giOKn/SiW6iz/P+o6loi 2jOQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c10-v6si4358451pgg.315.2018.09.13.07.07.11; Thu, 13 Sep 2018 07:07:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729231AbeIMTPY (ORCPT + 99 others); Thu, 13 Sep 2018 15:15:24 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:35540 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727995AbeIMTPX (ORCPT ); Thu, 13 Sep 2018 15:15:23 -0400 Received: from localhost (ip-213-127-77-73.ip.prioritytelecom.net [213.127.77.73]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 78CF2D39; Thu, 13 Sep 2018 14:05:43 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Shashank Sharma , Imre Deak , Jani Nikula , Rodrigo Vivi , =?UTF-8?q?Fredrik=20Sch=C3=B6n?= Subject: [PATCH 4.18 154/197] drm/i915: Increase LSPCON timeout Date: Thu, 13 Sep 2018 15:31:43 +0200 Message-Id: <20180913131847.710817359@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20180913131841.568116777@linuxfoundation.org> References: <20180913131841.568116777@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Fredrik Schön commit 299c2a904b1e8d5096d4813df6371357d97a6cd1 upstream. 100 ms is not enough time for the LSPCON adapter on Intel NUC devices to settle. This causes dropped display modes at boot or screen reconfiguration. Empirical testing can reproduce the error up to a timeout of 190 ms. Basic boot and stress testing at 200 ms has not (yet) failed. Increase timeout to 400 ms to get some margin of error. Changes from v1: The initial suggestion of 1000 ms was lowered due to concerns about delaying valid timeout cases. Update patch metadata. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107503 Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1570392 Fixes: 357c0ae9198a ("drm/i915/lspcon: Wait for expected LSPCON mode to settle") Cc: Shashank Sharma Cc: Imre Deak Cc: Jani Nikula Cc: # v4.11+ Reviewed-by: Rodrigo Vivi Reviewed-by: Shashank Sharma Signed-off-by: Fredrik Schön Signed-off-by: Jani Nikula Link: https://patchwork.freedesktop.org/patch/msgid/20180817200728.8154-1-fredrik.schon@gmail.com (cherry picked from commit 59f1c8ab30d6f9042562949f42cbd3f3cf69de94) Signed-off-by: Rodrigo Vivi Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/i915/intel_lspcon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/i915/intel_lspcon.c +++ b/drivers/gpu/drm/i915/intel_lspcon.c @@ -74,7 +74,7 @@ static enum drm_lspcon_mode lspcon_wait_ DRM_DEBUG_KMS("Waiting for LSPCON mode %s to settle\n", lspcon_mode_name(mode)); - wait_for((current_mode = lspcon_get_current_mode(lspcon)) == mode, 100); + wait_for((current_mode = lspcon_get_current_mode(lspcon)) == mode, 400); if (current_mode != mode) DRM_ERROR("LSPCON mode hasn't settled\n");