Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp804271pxb; Tue, 3 Nov 2020 13:01:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyux3arWpC5JjwbYuosxKZOy0Shf63yzZpiOO1Ez8F3wQekKpqoHaqRsAVAdRnteSNYEqul X-Received: by 2002:a50:8d48:: with SMTP id t8mr24212562edt.228.1604437282912; Tue, 03 Nov 2020 13:01:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604437282; cv=none; d=google.com; s=arc-20160816; b=BpSsV8DZbv9FdgzY7/CV90ohd2zZKbo4neb+/5UJ/gltOEwo0cXwtluceS2dMh5NTH pJqiJWEowNfQVya2/cul0F6wMfVKLSLbHHEUszYT7A2m8vngLV4WRXwXTi9ZtmcArWUR yLf/r0nT5nWUGWiayZFPekT508V9Pm7xj9ZNLnMVkqpkUPqnnvEfd9SNWni0V4X21sHi 4SXtyuPIBXQ6USwMK2jJ0UsCY1dnZeewH/Fg2Pn+7VP8TAC8kfMqGst9KB5Odo6TjvY3 mXHup+SPo8CNO87k0LjO5tOQcn7W0Q6+G4MPgJLTp+yWE6TLiA+CMQ5/R5IbnRoo1Fqb ED4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=mvVTHadoU7T9M3El3tk2jlkr0qOm6XVfuvtnJfIDDn4=; b=igv2BZzFwPulAmNDYPbwk0pINH+cZjDjCiN1jdEfa0u59B6tegOLHioFRfSrfBCQ0u wCeaoz30DGZxKcd/P31tQk/nwg3I9y+aDbKbRTg7Wf0IreqrL1XoRulDvJ3ZOnfF0D87 w+YsCRwmygBAP9Ko0ghISkjqjsD29OvupTckojD41Q8scmxnw+K7y66Agf/XAVy3USj/ VRlG75RoSPZW5qQWhPR2FZDpy5pG5zk9JAH+C5dGPhONkJe5g3h0NTukaCQ+C9K+eEoO 4b6CzxKrbapoZIqfGcKon1KLwfPtBaR/4+9CyPJAg/tiR4Ascj57nmqXExd6lRM4Tenh /jbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NIxh2zFn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c25si7304746edy.364.2020.11.03.13.00.59; Tue, 03 Nov 2020 13:01:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NIxh2zFn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732234AbgKCU7m (ORCPT + 99 others); Tue, 3 Nov 2020 15:59:42 -0500 Received: from mail.kernel.org ([198.145.29.99]:34918 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733137AbgKCU7j (ORCPT ); Tue, 3 Nov 2020 15:59:39 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A3C882053B; Tue, 3 Nov 2020 20:59:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604437179; bh=++ju2fKRxiCQv1EbNy1d6SkepNYAyD/77pNvAKt6BFU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NIxh2zFnvGh5WSdVZFYGqPmYjZ9uXT/JWhf9VqLVYkiGkdMvTYEffun2zqcnJnYRa 62ovWtVAIKoGlneDZ86cpz7hLkcsBaVQ33FgkG/8YcOPETWpk6J9+0TmuzBI1kEm75 LapoGMwtZwobGkVdTB1F+UySrsbOW0t95Z0kVfXU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wesley Chalmers , Aric Cyr , Qingqing Zhuo , Alex Deucher Subject: [PATCH 5.4 180/214] drm/amd/display: Increase timeout for DP Disable Date: Tue, 3 Nov 2020 21:37:08 +0100 Message-Id: <20201103203307.580064817@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201103203249.448706377@linuxfoundation.org> References: <20201103203249.448706377@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wesley Chalmers commit 37b7cb10f07c1174522faafc1d51c6591b1501d4 upstream. [WHY] When disabling DP video, the current REG_WAIT timeout of 50ms is too low for certain cases with very high VSYNC intervals. [HOW] Increase the timeout to 102ms, so that refresh rates as low as 10Hz can be handled properly. Signed-off-by: Wesley Chalmers Reviewed-by: Aric Cyr Acked-by: Qingqing Zhuo Signed-off-by: Alex Deucher Cc: Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_stream_encoder.c @@ -898,10 +898,10 @@ void enc1_stream_encoder_dp_blank( */ REG_UPDATE(DP_VID_STREAM_CNTL, DP_VID_STREAM_DIS_DEFER, 2); /* Larger delay to wait until VBLANK - use max retry of - * 10us*5000=50ms. This covers 41.7ms of minimum 24 Hz mode + + * 10us*10200=102ms. This covers 100.0ms of minimum 10 Hz mode + * a little more because we may not trust delay accuracy. */ - max_retries = DP_BLANK_MAX_RETRY * 250; + max_retries = DP_BLANK_MAX_RETRY * 501; /* disable DP stream */ REG_UPDATE(DP_VID_STREAM_CNTL, DP_VID_STREAM_ENABLE, 0);