From patchwork Sat Oct 22 07:28:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7674 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1108726wrr; Sat, 22 Oct 2022 01:45:53 -0700 (PDT) X-Google-Smtp-Source: AMsMyM483iSqGl6TkzJ0nrqziECMI7ohvY+bne/yfm0U1b8Uum7V8Gx3tIYXcyzaairbjjxHbIa+ X-Received: by 2002:a05:6402:f96:b0:459:4180:6cf4 with SMTP id eh22-20020a0564020f9600b0045941806cf4mr21261463edb.64.1666428353570; Sat, 22 Oct 2022 01:45:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666428353; cv=none; d=google.com; s=arc-20160816; b=NTK/Wd0Rd2Hv7qVvM9na04yV6QDkcVjySORAPZhIRU8aq6iUrHgD54/ZFVjaWl4ehJ J6/1gmiloph7Nq+l1A0HVGlS8vmsgj5fmIkRrQMwit0n0YHtjhf55XG23rLybgppcnsa 1hqa7mEN39u9n0CAPWOXAGKEhp0XlNzMulrQ7hkCPe/3Fvr8BoIQzhvauLUTRDnWeGFw akeJPRz5NCU2y1Jh+5mLZucTUA/tLpO+WDLIphHfy+14SmZHJoKmHXOzkLecAfH6Xp91 zSAdneOjjIOohsyro2gTOYEBuIU2IDmu6RGfUC3/s1fxdWn8Rgv066OWhQudQKZ/BUmD H/Fg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v3-20020a170906338300b0078e1206d934si20150419eja.162.2022.10.22.01.45.26; Sat, 22 Oct 2022 01:45:53 -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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747376777446042863?= X-GMAIL-MSGID: =?utf-8?q?1747376777446042863?= 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,