Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1647800pxy; Mon, 2 Aug 2021 07:02:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZ7NaH+OU/RDhJ1xquFq2yNV4Mf0zr9Te0hCA8gEhor0qBo3aD0IbyNCY/5CchvlBvwKYd X-Received: by 2002:a92:d141:: with SMTP id t1mr1656556ilg.171.1627912978520; Mon, 02 Aug 2021 07:02:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627912978; cv=none; d=google.com; s=arc-20160816; b=yxZ+8/KJKDwlLNJpSyePhHSd1Dwji4a5BJjLpxIEACN+/PlQJftSGnEmzUE16Hce6N XeNMmCaAHrKfpU3ed87MaasxM7k4MayIp7VV8vNfv/dKLpZidLcnYleUhDd8gfnWXsqc dm8KOdfu1ai7RYv2uOD06SBCmV4PA63rw3qjvHi2vCQTOD4BhZj/riDLHm0H8MP0LAJM dnn97i6OStIY6X72V8pHb1iR42V6gQKcFeBFJuYgJ8Hoo3yPoflP/4IVwcGg2/Ad1LGO JMAopt53kcEU0Bct2D4lDIaPi5k+s7rqOUTFxmH+w8Js7y8y0na8PC2hEqnw9SoFbYDV hMzg== 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=Bcp0OxYVBmV1dAvD7voIVPx7WuogF8BR5D3FywOoAmM=; b=oc8RlPA2HN3y0Jmj8Hxsk8ccxPWRIjvvh05OTmgDOnTC9tD+7GKNtKqz9GdsoFUHpG T2GmH1cXqUXlTj/skApy1MWK7eCdsMsOdxVlhq1getvZCodC3+dSCAENurG7f1TMnayr /0/tahPohRJT0YJvQoOWzC9lujTlXSr/8FjYL0tcfGLwupA8f6qTcRSHrzmc2sItuKy3 orEFkPE2JVRghV1mxFAEsJFfeGzv7ngqCz35GeIq0V4aMFLaX92JS9X5WB8mmeJxICej nBqY9Mh2iKP8qj74f772h7cP6P+rkbXZ6DjrphYd1ymnfa3AaNuuIT8pEGKkv1oHqKHL yfbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cwCFNWEG; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b16si12983143ile.135.2021.08.02.07.02.47; Mon, 02 Aug 2021 07:02:58 -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=@linuxfoundation.org header.s=korg header.b=cwCFNWEG; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235419AbhHBOAn (ORCPT + 99 others); Mon, 2 Aug 2021 10:00:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:34568 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236113AbhHBNy6 (ORCPT ); Mon, 2 Aug 2021 09:54:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 197A3610FD; Mon, 2 Aug 2021 13:53:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1627912393; bh=VWn1pRYRch8VQtd9CdKf2P13Rx3yuBIScbJ1pJ6oaHs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cwCFNWEGUcotDnEe926TX+2sC6UJf7uNB1rXpYs8mmTl+rP/ul35QGiptmiFMXYEB m55gWWCUul4VsUwfhaOfEEXVcjV7zHpGVx88LTG03Xte7UjCoAM8XWSnJOEpCbV9Fu W+BBi3qrXsfSGlrXZCaraZvCTqGF2VzCcEKE01Cc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Cyr Aric , Solomon Chiu , Dale Zhao , Daniel Wheeler , Alex Deucher Subject: [PATCH 5.10 22/67] drm/amd/display: ensure dentist display clock update finished in DCN20 Date: Mon, 2 Aug 2021 15:44:45 +0200 Message-Id: <20210802134339.771646255@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210802134339.023067817@linuxfoundation.org> References: <20210802134339.023067817@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: Dale Zhao commit b53e041d8e4308f7324999398aec092dbcb130f5 upstream. [Why] We don't check DENTIST_DISPCLK_CHG_DONE to ensure dentist display clockis updated to target value. In some scenarios with large display clock margin, it will deliver unfinished display clock and cause issues like display black screen. [How] Checking DENTIST_DISPCLK_CHG_DONE to ensure display clock has been update to target value before driver do other clock related actions. Reviewed-by: Cyr Aric Acked-by: Solomon Chiu Signed-off-by: Dale Zhao Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c +++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c @@ -135,7 +135,7 @@ void dcn20_update_clocks_update_dentist( REG_UPDATE(DENTIST_DISPCLK_CNTL, DENTIST_DISPCLK_WDIVIDER, dispclk_wdivider); -// REG_WAIT(DENTIST_DISPCLK_CNTL, DENTIST_DISPCLK_CHG_DONE, 1, 5, 100); + REG_WAIT(DENTIST_DISPCLK_CNTL, DENTIST_DISPCLK_CHG_DONE, 1, 50, 1000); REG_UPDATE(DENTIST_DISPCLK_CNTL, DENTIST_DPPCLK_WDIVIDER, dppclk_wdivider); REG_WAIT(DENTIST_DISPCLK_CNTL, DENTIST_DPPCLK_CHG_DONE, 1, 5, 100);