Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2503384imb; Mon, 4 Mar 2019 06:52:04 -0800 (PST) X-Google-Smtp-Source: APXvYqyg+ixv0ELiP5tBUE6Z6+v5BRDDWt7ya98dmT8LqgWMxhYUXnK+VazMyfIkV4AMYSohvKws X-Received: by 2002:a63:460a:: with SMTP id t10mr18385926pga.354.1551711124238; Mon, 04 Mar 2019 06:52:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551711124; cv=none; d=google.com; s=arc-20160816; b=QK1F/QUFg1mqHNWtlLYUjbvl+IOWNZmpMOcAdNlQCWchP6rKvcIq9qwVSvsftf16Mg aJZeOmUUcSzK1zAfPOW1cpYlnlEjdz0CxoNTrSIszR8WNOGwIKkXNndfpYBeh1FIemHa lXU7jDv0OrxRItBrjx1UAscfCSyAEor9MuKk7ggYSqNAe4aQIyMeBoziqNbA3KEMwkE6 az1S4RTpwcDXRuAr6u+vPlYHObymAzh1YCIcW+EFUic11m0WrlQhfdAYSPXvgL5squ3l C3QZgguSE3nKa21wSq6fiN5iwz4Bom/yLhoWGWJTNfYV9rUru7Cez41Vxthob8Hsz5dM c9sQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=7evM/oZP1fsxcwiyuw2AEThc40QOWcnzLAOluA/i360=; b=fU79sXWe9MsvWyvt9PYVgTJYclZb++uNrJv++66XzK3G7ug4xynjN0/CWCPfKlmkhS r9kIdeBBikIbR31A27Kq4oPsRlOohKWziMoRInGfUEqeli3N3xMKGc+qvtG/1h8R2sbS +mCO6j+1pie9LgdZG07HQLutalMcKeRR1piFrc0/of+3ghNM3goIuXuTh/ifbGXwOK+F 8/p2TL+bzy8YwpsiX0g5pfNJXZ7mzlr50Zr8Cly2DekUeUXAPzeezbuEMDNbgV0yvc/I XD2kEdxCRLfynYVu6BjP1ecIKrGPfeavVsyuCKgchhPQR4SRJEj9w/RDZc8k3H3vLszw zpcA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cg7si6227583plb.127.2019.03.04.06.51.49; Mon, 04 Mar 2019 06:52:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726672AbfCDOtY (ORCPT + 99 others); Mon, 4 Mar 2019 09:49:24 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:49284 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726161AbfCDOtY (ORCPT ); Mon, 4 Mar 2019 09:49:24 -0500 Received: from localhost.localdomain (unknown [IPv6:2804:431:9718:a1b1:9d17:4c45:79a4:9c61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: koike) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 86EEA2822B8; Mon, 4 Mar 2019 14:49:18 +0000 (GMT) From: Helen Koike To: dri-devel@lists.freedesktop.org, nicholas.kazlauskas@amd.com Cc: andrey.grodzovsky@amd.com, daniel.vetter@ffwll.ch, linux-kernel@vger.kernel.org, Tomasz Figa , boris.brezillon@collabora.com, David Airlie , Sean Paul , kernel@collabora.com, harry.wentland@amd.com, =?UTF-8?q?St=C3=A9phane=20Marchesin?= Subject: [PATCH 0/5] drm: Fix fb changes for async updates Date: Mon, 4 Mar 2019 11:49:04 -0300 Message-Id: <20190304144909.6267-1-helen.koike@collabora.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, This series is a first attempt to fix the slow down in performance introduced by "[PATCH v2] drm: Block fb changes for async plane updates" where async update falls back to a sync update, causing igt failures of type: "CRITICAL: completed 97 cursor updated in a period of 30 flips, we expect to complete approximately 15360 updates, with the threshold set at 7680" Please read the commit message of the first patch to understand how it works. I tested on the rockchip and on i915 (with a patch I am still working on for replacing cursors by async update), with igt plane_cursor_legacy and kms_cursor_legacy and I didn't see any regressions. I couldn't test on MSM and AMD because I don't have the hardware and my vc4 raspberry pi is not recognizing my display for some reason, I would appreciate if anyone could help me testing those. I also separated the patches per platform to be easier to get the tested-by tags, please let me know if it should be a single patch. Also, I added CC stable (as the "drm: Block fb changes for async plane updates" was also CCed to stable). I am not used to CC stable, please let me know if anything is off. Thanks! Helen Helen Koike (5): drm: don't block fb changes for async plane updates drm/rockchip: fix fb references in async update drm/amd: fix fb references in async update drm/msm: fix fb references in async update drm/vc4: fix fb references in async update .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 +- drivers/gpu/drm/drm_atomic_helper.c | 20 ++++----- drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c | 4 ++ drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 42 +++++++++++-------- drivers/gpu/drm/vc4/vc4_plane.c | 2 +- 5 files changed, 40 insertions(+), 31 deletions(-) -- 2.20.1