Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2990821pxj; Mon, 17 May 2021 15:04:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEytZOd9Lt0Lh21javpKCGK1IGdN9W0DDsP5Km+1l3pS29QeaJd6/rhosBW3eWWLXed2cs X-Received: by 2002:aa7:c84a:: with SMTP id g10mr2576077edt.326.1621289072308; Mon, 17 May 2021 15:04:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621289072; cv=none; d=google.com; s=arc-20160816; b=Uh2KLmO1Eqf61gPhCo+cXUxH9X7uIBh/R2kJUa9lpDuOXc0DtFzvTh/ERDSHAzfWsc ATyocJJ9dhGU3n4V0yq/jNDu/5Za0/l4mdRYo0aieln72oVMC11ZkQ9ByS55O0/PJ0aD lAFQyOTz9nndRJ52kg87US2cou5mBJ2qnUl+uyFBkRKAqKnRUGgIkf9JMd/Ad971qXEJ 04ewPdAnCdysUJlO8n63U5y+5nF4aN7yWrPZ+OotlTaC/4A5dl1QWJkJukCZuaM2MM5b H0iKoiY0F7vVALdfPHqtm7Cw+VlbM1rz9j3dhafqDaBIjba/loVegNlNv1dpZmD7BrLc Iy/w== 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=54R23ZVDsFF43S3ReOM/dg+rE/GRtRwlHYReoKJIXB4=; b=nm7YyI8XUg3rQI2lqZ2xsD/vja6HZqWGabFz2axSaNlVckEMd1T7XaD60VYhyGmd8h 4+ddMt+kGaAxs2QaSNlnv/szkzDAuhwtMO/kEBxLkq5nUsORzSksHfiFfN4ly8DDnXnr HjgqdogA/+0A1jRTl1pEu+cdNpJ3HToW08+/1sRwh/BCVcX7wpCW8OCF2pJJ33Kr3OtJ TAwOvCRQblo5oCBssH2Fei0+5xHooltopkyUasOcUz2QbAhxku1cPP4NVAYnJnFwys3w wSwFMgQ1mUm9Qoex+xmHbl25AdJY/OyEjPgU5HjoRNEl4fC8nKXXGnRxyZLhgl8EsCNi 2AYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uWfWmZPL; 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 v18si3999821ejg.79.2021.05.17.15.04.08; Mon, 17 May 2021 15:04:32 -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=uWfWmZPL; 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 S237674AbhEQOMy (ORCPT + 99 others); Mon, 17 May 2021 10:12:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:58174 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238560AbhEQOLM (ORCPT ); Mon, 17 May 2021 10:11:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 12104613BB; Mon, 17 May 2021 14:07:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621260444; bh=vWpf/hwBTBjAtSGrvUvoDyKVGfSyWu0iXnUR5OoeHfw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uWfWmZPLvkIAlB5UM7IghMmrAj7/bHxXs745/iliOzUSpMKUfKCwrCJPZJo9y7Tpv 4ZNV1RmDZmMRySf80J/59yrIRDzVCrL15TQIratPrG3G28XUQ3AVIi9DVvVf+EC/rX A8MUETk+twoSrjzNkuVcZ4hSCW/+En+xcM/c0Rts= 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.12 084/363] drm/amd/display: Force vsync flip when reconfiguring MPCC Date: Mon, 17 May 2021 15:59:10 +0200 Message-Id: <20210517140305.438980909@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140302.508966430@linuxfoundation.org> References: <20210517140302.508966430@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 c0b827d16268..4781279024a9 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -2546,6 +2546,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