Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp2900280pxb; Tue, 24 Aug 2021 10:10:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEK9015Z00GNUwxJgaSR5fhITNfxq0X5AyPBDy/1J3tHc7xISwWIF3E5P8zOf5TzCRLZ0p X-Received: by 2002:a02:7f4c:: with SMTP id r73mr35391227jac.95.1629825040922; Tue, 24 Aug 2021 10:10:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629825040; cv=none; d=google.com; s=arc-20160816; b=gEYO862MCVMBhmR9j/oa7MHRW9pORi8ms5NP9mhSBmAL0VXkN15Fgn78be2lqiZusL GjPsii9FkhkQXMSsLuG1gsWHOOssvx9wKh6JgeVVVtKNLW1aSRk9ecwi4+05MUfB1RKu a8HUpoHTqKLARFxh8LqHS1GtZSVVCtjoHGQ4P2NxoB1QOOmRSDbklPoAPnJ2I9Y36nNk MUZPo9zThjPHfja+Htix8KUdTgaXKNOu0CoqyAwpJQtsXSeE4wvEZaD1kTKqhT8/ucOE 0atSP3Xy3Y4pnNU21G7pX79V7TPktqwifigHED/dKgP3ipxZpRMTsRwer7ysxTTLXzX+ AImg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ATCMjFyuZvvVoXYOIqk8TBz/ZsjFd08sQZh2rZl4UDo=; b=u6iCvLd0VE4p7RHWvwMcxpF2hUWf8ZRnACGtiMONmKFmm5DJkaGaHP3Nf05v+zytza vNjNJiMxDojsJ0Hu4k2NzvKc7B3zCOh+vMiCEccTQ3RpNJSKg9EhxIIlpltF+pX3IAIo zUlQEuIJHTd2kK0BwZ0y+nd2mTjlN8plXKkJFeIBkGi+EnTN8bp9bUVXAirO12lbIgzR gyXn0+ph9JUxSfdmCUsFbOjYftWLL3mkWM6TuXvBZ1y9CdW8zuutPAf4V9eyOI4vbBxr 8lj4MFRVwe8tLnUVHRP0YG9BvhJhHaYmhgXtkyWO/upH+cceC56crHHAOkbEvYLFZPL0 Gbgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fNWnzzB4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w13si17307329jae.1.2021.08.24.10.10.29; Tue, 24 Aug 2021 10:10:40 -0700 (PDT) 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=k20201202 header.b=fNWnzzB4; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238591AbhHXRI3 (ORCPT + 99 others); Tue, 24 Aug 2021 13:08:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:47426 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238795AbhHXRGO (ORCPT ); Tue, 24 Aug 2021 13:06:14 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8C17E61507; Tue, 24 Aug 2021 16:59:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629824383; bh=mhIoMzYbjb/1U29H3wpL1LFN0+mfiljrq3FStpfedtg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fNWnzzB4hR41Z4t4S+oN9dW8QSliitlGoqHVG+DZj02hKzVijosq4dY8JsEZJLohT Qx05YF2O+R15IgazLe3djRfCDzwuoaO3gQ6dmwim5TmKPhESS/a+0ylZ8DHnHot4TW mzNEd+LmDRGxzC+8XCEnsMpxLcIwbygI/stGIbPJPs4092q7GMuxYzXUgmjIBL278Q FPe/dtcO6TIR8mvcJfNikAWu9Aw2fIP27CvFiO/L3j3sYXQ4jviTKWqRBtCMIF5Kbn MOUJxmOTTp4S4o1QtcR+bebFJYR96pEhncSuYtglYZS9EFv5xyUcZ0dR++zR5Z4UBb G/kMXOCcu2PBQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Qingqing Zhuo , Hersen Wu , Aurabindo Pillai , Alex Deucher , Sasha Levin Subject: [PATCH 5.10 33/98] drm/amd/display: workaround for hard hang on HPD on native DP Date: Tue, 24 Aug 2021 12:58:03 -0400 Message-Id: <20210824165908.709932-34-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210824165908.709932-1-sashal@kernel.org> References: <20210824165908.709932-1-sashal@kernel.org> MIME-Version: 1.0 X-KernelTest-Patch: http://kernel.org/pub/linux/kernel/v5.x/stable-review/patch-5.10.61-rc1.gz X-KernelTest-Tree: git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git X-KernelTest-Branch: linux-5.10.y X-KernelTest-Patches: git://git.kernel.org/pub/scm/linux/kernel/git/stable/stable-queue.git X-KernelTest-Version: 5.10.61-rc1 X-KernelTest-Deadline: 2021-08-26T16:58+00:00 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Qingqing Zhuo [ Upstream commit c4152b297d56d3696ad0a9003169bc5b98ad7b72 ] [Why] HPD disable and enable sequences are not mutually exclusive on Linux. For HPDs that spans over 1s (i.e. HPD low = 1s), part of the disable sequence (specifically, a request to SMU to lower refclk) could come right before the call to PHY enable, causing DMUB to access an unresponsive PHY and thus a hard hang on the system. [How] Disable 48mhz refclk off on native DP. Reviewed-by: Hersen Wu Acked-by: Aurabindo Pillai Signed-off-by: Qingqing Zhuo Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c index 1c6e401dd4cc..0eba391e597f 100644 --- a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c +++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c @@ -66,9 +66,11 @@ int rn_get_active_display_cnt_wa( for (i = 0; i < context->stream_count; i++) { const struct dc_stream_state *stream = context->streams[i]; + /* Extend the WA to DP for Linux*/ if (stream->signal == SIGNAL_TYPE_HDMI_TYPE_A || stream->signal == SIGNAL_TYPE_DVI_SINGLE_LINK || - stream->signal == SIGNAL_TYPE_DVI_DUAL_LINK) + stream->signal == SIGNAL_TYPE_DVI_DUAL_LINK || + stream->signal == SIGNAL_TYPE_DISPLAY_PORT) tmds_present = true; } -- 2.30.2