Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp308982pxj; Tue, 18 May 2021 04:02:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwINLy8FnXffbGS0injSIirg5uubazAN/wcW8ZAe35x5jzXbNoOoPtc+EiwC6xwUMhgMwfS X-Received: by 2002:aa7:de9a:: with SMTP id j26mr6282606edv.269.1621335760582; Tue, 18 May 2021 04:02:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621335760; cv=none; d=google.com; s=arc-20160816; b=eZyWSHb864FackvhEnZCJ/jMJftZAeDjXCllVVT/sSptI1L1kCjJKRq4kHUA9vMGkg d7gHk/rT3f1oXkPiPuyrUfoW8dYz6SrOF0AKg5YvQixaiProHAW1KWDrM10S7+/cWmC0 rftddBFMGitfGuLXPBO1Y/c8lVc3vkvxCJPjxKFiow8JCOIlpS+sIZtBwtcJv9MpLgNx BS18xXSjFUbGSggJvAtRXKROvVzSV64+8gjWm3LrgzaRrIIsAWhELkJvBsIxWuwNSwTo ICsrB+PrbFMnQPwsF2rSk/N+Qc952PVtD7MluId9eh/vkk/78OYZO/s7GjIp/d3u89O2 AbQw== 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=/7cAwhb/MnD7jaDlQtYNDjyUdpV/I3XI4bsBY1Bmq9Y=; b=VdGwUzqLRVfrXinK60oJV5cxHutnxvZa2mddUQWoNmG+qmw31tOb4gGhzddnPEZClc dUg4DI+Lns3DoDWcdwHZsoC4mEzqvLjm5JqRfKeYECXibE8aO3MkdsizfsvXc7Fzrx8h Cw7MZa/gIk7qlt5/2+PANAOPGUqe8p84bA15y/db9KSP7rM5LPMYTXlIKE9q+VgxJX7+ IkaCaQVd01qR21KdAn7lxhi+6eIhRhgVeU9G02jWwpoTjH+f/pBoJ4AxjcqVjLSKirn3 O8yKOr72R6z9yCW3TyaHwVBywcUgeD2bY7yO+FWsqXODf3XBod5mwPTXXbwdMjsPwmIU /Xvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bfBew03+; 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 k18si15793039edx.427.2021.05.18.04.02.16; Tue, 18 May 2021 04:02: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=@linuxfoundation.org header.s=korg header.b=bfBew03+; 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 S243691AbhEQPQK (ORCPT + 99 others); Mon, 17 May 2021 11:16:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:52138 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241679AbhEQPGM (ORCPT ); Mon, 17 May 2021 11:06:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 15FAE61C19; Mon, 17 May 2021 14:28:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621261739; bh=Q/OWEiJDvzDDwZsXGm2lKw/bJrxOTvp9kCnaQ13auuc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bfBew03+znPe66ciOnG0k5lask3rucM1RG/C3FXmzDfcNeKLYaTAlhlMuUcOTKOj/ htNl627B4X65VH8Z0WY9FxgYXOj0ieWswD9xr0pOjOEk7geJ3DAxX6D50pd1Zv9NOl 3cpnRWJ6PI13jfAAcpmNkgYdi+P3lHz7eNeluhTo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anthony Wang , Bindu Ramamurthy , Daniel Wheeler , Alex Deucher , Sasha Levin Subject: [PATCH 5.10 059/289] drm/amd/display: Force vsync flip when reconfiguring MPCC Date: Mon, 17 May 2021 15:59:44 +0200 Message-Id: <20210517140307.190360882@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140305.140529752@linuxfoundation.org> References: <20210517140305.140529752@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: Anthony Wang [ Upstream commit 56d63782af9bbd1271bff1422a6a013123eade4d ] [Why] Underflow observed when disabling PIP overlay in-game when vsync is disabled, due to OTC master lock not working with game pipe which is immediate flip. [How] When performing a full update, override flip_immediate value to false for all planes, so that flip occurs on vsync. Signed-off-by: Anthony Wang Acked-by: Bindu Ramamurthy Tested-by: Daniel Wheeler Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/core/dc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 921c4ca6e902..284ed1c8a35a 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -2504,6 +2504,10 @@ static void commit_planes_for_stream(struct dc *dc, plane_state->triplebuffer_flips = true; } } + if (update_type == UPDATE_TYPE_FULL) { + /* force vsync flip when reconfiguring pipes to prevent underflow */ + plane_state->flip_immediate = false; + } } } -- 2.30.2