Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5282531imu; Tue, 15 Jan 2019 14:47:59 -0800 (PST) X-Google-Smtp-Source: ALg8bN4Vkf+9ar/K0aFpBTJeli8qU2m1ZL7F3+9Ylq1dG/+GYvpR+1aFzydwhLfqbeY8Oq0sU4tq X-Received: by 2002:a63:8149:: with SMTP id t70mr6026188pgd.172.1547592479746; Tue, 15 Jan 2019 14:47:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547592479; cv=none; d=google.com; s=arc-20160816; b=Biw2/2+HE/e0OO2XIcwUUQVw77qCrsLbiesnQ3jA9OqqgD1c0YXT/rvj02eO+WAf88 CYSmRyVY8LU1Qwj1pcESkkqyKNvZKSh8GBBN9/M8zdeQ8oqinTuyVGuiXHnFj3nR8spd ba3aLRvFd2x1tHGFXRRN1nSRRtmMvGaWJyLWKtcUL6mOVtRKl0ieKc70dAf+Zzp8ePBy jAV5vMEvSAlR5Bo3G59OCgNvtS683dLqtt4ULWrtFfPVJBZ3CDeuSwARGKwgfBcKCC97 eRudPv/Egm4Ca1K8dEb+XoCVBErawB+yAnYEUsjAXHO4j6xw9CaCYdZfEIFwUaWgBxoV ZLuw== 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:dkim-signature; bh=AmQ5fVKn0Qh8tsrQBVKW8kuqhkmgTt3sPVZ91/2+g8Q=; b=KqSP0u7htxr2/+qnIWkOkT4zR9Cx3d0ZVArFWRCnaMSu4Mt+lOLJHySQvk6Z15PzvX oh1tUWGFhU8YOgKa6M8386FvCl6n8imwoJzK67jjbNXUk3P2kqedIPx0CZUNCjSj5DSR Sun9QXDXlC8I1qThqmJah85ZKHb0UFczjuNzpOc+TLNTKisgedz91kw994tIppf7bo2u P4ODcgxDin7ZcqGL9OsJlh2ArQ/szzswYxGGlMB7HqxKXF0ceVUYIMEkt3ZKQZIskWoa +n7U2fxE8u+6e5ztBuV6TNSE3nwu5qeLH5n5dFEyFM3lfUDrLxu5vV+eOGUxJ0nEVUji b4dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EbfxAZfd; 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 s62si4615478pgc.113.2019.01.15.14.47.41; Tue, 15 Jan 2019 14:47:59 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=EbfxAZfd; 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 S2387714AbfAOQpK (ORCPT + 99 others); Tue, 15 Jan 2019 11:45:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:34768 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387697AbfAOQpF (ORCPT ); Tue, 15 Jan 2019 11:45:05 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 C19912086D; Tue, 15 Jan 2019 16:45:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547570704; bh=4uJRWyjirpe/ZIkzSYDs6Ij2zqo2ZS2rRs5RgM8Frfc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EbfxAZfdanLzgT54NfeQ4I2VRgfy9OqWHD1cW1CKMQk54b4DuBrHzsidtcoiH70HX GxAu2qbcTY1uzeAr28dYRMcGQVP86aVjGp2r6XUYoeuC6LPax+v2w+Sn3+xFajkHfr LnDynY6sWibOKiQ4ElfQ3BBt82dqp53zPj69hRSc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Jerry (Fangzhi) Zuo" , Hersen Wu , Harry Wentland , Alex Deucher , Lyude Paul Subject: [PATCH 4.20 41/57] drm/amd/display: Fix MST dp_blank REG_WAIT timeout Date: Tue, 15 Jan 2019 17:36:22 +0100 Message-Id: <20190115154913.187392300@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190115154910.734892368@linuxfoundation.org> References: <20190115154910.734892368@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore 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.20-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jerry (Fangzhi) Zuo commit 8c9d90eebd23b6d40ddf4ce5df5ca2b932336a06 upstream. Need to blank stream before deallocate MST payload. [drm:generic_reg_wait [amdgpu]] *ERROR* REG_WAIT timeout 10us * 3000 tries - dce110_stream_encoder_dp_blank line:944 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 2201 at /var/lib/dkms/amdgpu/18.50-690240/build/amd/amdgpu/../display/dc/dc_helper.c:249 generic_reg_wait+0xe7/0x160 [amdgpu] Call Trace: dce110_stream_encoder_dp_blank+0x11c/0x180 [amdgpu] core_link_disable_stream+0x40/0x230 [amdgpu] ? generic_reg_update_ex+0xdb/0x130 [amdgpu] dce110_reset_hw_ctx_wrap+0xb7/0x1f0 [amdgpu] dce110_apply_ctx_to_hw+0x30/0x430 [amdgpu] ? dce110_apply_ctx_for_surface+0x206/0x260 [amdgpu] dc_commit_state+0x2ba/0x4d0 [amdgpu] amdgpu_dm_atomic_commit_tail+0x297/0xd70 [amdgpu] ? amdgpu_bo_pin_restricted+0x58/0x260 [amdgpu] ? wait_for_completion_timeout+0x1f/0x120 ? wait_for_completion_interruptible+0x1c/0x160 commit_tail+0x3d/0x60 [drm_kms_helper] drm_atomic_helper_commit+0xf6/0x100 [drm_kms_helper] drm_atomic_connector_commit_dpms+0xe5/0xf0 [drm] drm_mode_obj_set_property_ioctl+0x14f/0x250 [drm] drm_mode_connector_property_set_ioctl+0x2e/0x40 [drm] drm_ioctl+0x1e0/0x430 [drm] ? drm_mode_connector_set_obj_prop+0x70/0x70 [drm] ? ep_read_events_proc+0xb0/0xb0 ? ep_scan_ready_list.constprop.18+0x1e6/0x1f0 ? timerqueue_add+0x52/0x80 amdgpu_drm_ioctl+0x49/0x80 [amdgpu] do_vfs_ioctl+0x90/0x5f0 SyS_ioctl+0x74/0x80 do_syscall_64+0x74/0x140 entry_SYSCALL_64_after_hwframe+0x3d/0xa2 ---[ end trace 3ed7b77a97d60f72 ]--- Signed-off-by: Jerry (Fangzhi) Zuo Reviewed-by: Hersen Wu Acked-by: Harry Wentland Acked-by: Alex Deucher Tested-by: Lyude Paul Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/dc/core/dc_link.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c @@ -2617,11 +2617,11 @@ void core_link_disable_stream(struct pip { struct dc *core_dc = pipe_ctx->stream->ctx->dc; + core_dc->hwss.blank_stream(pipe_ctx); + if (pipe_ctx->stream->signal == SIGNAL_TYPE_DISPLAY_PORT_MST) deallocate_mst_payload(pipe_ctx); - core_dc->hwss.blank_stream(pipe_ctx); - core_dc->hwss.disable_stream(pipe_ctx, option); disable_link(pipe_ctx->stream->sink->link, pipe_ctx->stream->signal);