Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp3924889rwi; Sat, 22 Oct 2022 02:19:03 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6oqdqdFnY5FCAIApD4jUyKzvPRfZ8WbYDKnFGrMPz1A84vjAKK8Y0T2ylsbHjzvqUmBuX/ X-Received: by 2002:a05:6a00:218b:b0:569:a7c5:4cf7 with SMTP id h11-20020a056a00218b00b00569a7c54cf7mr9693074pfi.27.1666430343356; Sat, 22 Oct 2022 02:19:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666430343; cv=none; d=google.com; s=arc-20160816; b=pQQ1mYBB793E8yqJ7l3UTOLhpT4SWkELSBO9AGKxTC+bnUjUR5Z3IZPmJDf/2jaUjl gnTwWEJ7hJwp4qpSmNmh0nWpKF9066VgBoP4EjWubc90crs8hiPNkfTEQXSwwoOhSGOn fF+6NaU1TvgzORu/lHevtO3C6WcsSbYO5xBNWmnRUS9E3QIzhy7WFV6DrEKrAwmGZKfK ScBJBILbddypkPipwFMflIwbKFqHNaR4kHVLTh6N2uNuWZX2b5qiABEcgP7f+wdShKOc 5yq8XJEFYc7OfIkjV5UlxU6rnq2rXVcmw2QXHwNB6/e2GM9D0WO9K1vp3JuSroGE1+Dn +XVQ== 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=ASw7rQcgGchXNtvOPeuTpiqU2jtJjAeTsM/B4BbCHE4=; b=UEwu3xmhjmru9iV5ztrxaK1mhEPtEEA+mNWxe9fygIuesWVH8JK2REcLvF3PYzMCR5 2GJL/Jevjl9eH6p1+MMd8D62+XBmW5jU4EBkviSHuAxNFmPg5hcw63b8hr62zDfSh9n3 q3sUo0X+fjoYtlARZURqEw8n7pYLiLrHMt+VFAgLOi0/bBp/GqAsgrCvXdlH14S9s5gs KFXF4Q8y7KiCF2CbhS52xd0y2ftodqBsW9B2NslsGbGi6U5AZwznVaJ3QSBdRQdkVAF6 +F7Jnn/oEkYYkEM0btqyfi/xZvPzt4qoKBhnDTpaSmdPEwfXnVdZISetSathgJ1wDKbp D8fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cCT65868; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d18-20020a170902ced200b001865dfb6774si11670600plg.458.2022.10.22.02.18.50; Sat, 22 Oct 2022 02:19:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=cCT65868; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234589AbiJVInK (ORCPT + 99 others); Sat, 22 Oct 2022 04:43:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234490AbiJVIlY (ORCPT ); Sat, 22 Oct 2022 04:41:24 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2812B87BA; Sat, 22 Oct 2022 01:06:53 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 80506B82E40; Sat, 22 Oct 2022 08:05:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9784BC433C1; Sat, 22 Oct 2022 08:05:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666425916; bh=Ol+2Xj2+b+tySJ+C/RyQP4TaRR4MLjLtzXy+zmFgurg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cCT65868Lai2MZbtICuL4+IJnFd4m43CI011rSupSJAdZ26KCSuVNg280se7rwUYd t6xXa3hPm932ZcEVT7eys0Dah6td550RgUhGomHP7by+YQGt/b5SoaFVhKIHmUvzxN 1a8n3YJ2KPWC8j4qiQFM2vI/XmvT/b2YsZeSXGVY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ariel Bernstein , Jasdeep Dhillon , Wenjing Liu , Daniel Wheeler , Alex Deucher , Sasha Levin Subject: [PATCH 5.19 627/717] drm/amd/display: polling vid stream status in hpo dp blank Date: Sat, 22 Oct 2022 09:28:26 +0200 Message-Id: <20221022072526.194343496@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Wenjing Liu [ Upstream commit e32df0c7ecead95d70ca89f39b1b2b02a59ff691 ] [why] vid stream control is double bufferred, if we don't wait for video stream enable set to 0, we may get temporary image corruption showing on the stream when setting PIXEL_TO_SYMBOL_FIFO_ENABLE to 0. Reviewed-by: Ariel Bernstein Acked-by: Jasdeep Dhillon Signed-off-by: Wenjing Liu Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- .../drm/amd/display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c b/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c index 23621ff08c90..52fb2bf3d578 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c +++ b/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_hpo_dp_stream_encoder.c @@ -150,9 +150,9 @@ static void dcn31_hpo_dp_stream_enc_dp_blank( * 10us*5000=50ms. This covers 41.7ms of minimum 24 Hz mode + * a little more because we may not trust delay accuracy. */ - //REG_WAIT(DP_SYM32_ENC_VID_STREAM_CONTROL, - // VID_STREAM_STATUS, 0, - // 10, 5000); + REG_WAIT(DP_SYM32_ENC_VID_STREAM_CONTROL, + VID_STREAM_STATUS, 0, + 10, 5000); /* Disable SDP tranmission */ REG_UPDATE(DP_SYM32_ENC_SDP_CONTROL, -- 2.35.1