Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp3392311imc; Wed, 13 Mar 2019 17:21:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyp1+8z1i5RgBfNgJBw+2QtiGhFcCmvhQ+sxXZfoGfMv/DWHninGrnb6hNmkeUiae7m3sQ7 X-Received: by 2002:a17:902:ba8c:: with SMTP id k12mr49002379pls.193.1552522889859; Wed, 13 Mar 2019 17:21:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552522889; cv=none; d=google.com; s=arc-20160816; b=gmjRf2MNVoL1Uqb/eaMsRe3AyIR37xLGgG6pPtx8IOZRGSeKz0eqzNHaLKgu17iHfU V4JqcEVnUz/Z3hZ6OQpySDyLTirIJtKoxl23k2fF3alhvOqRclvAEOpVQLzyZGZvia11 mJAddwCei1flK0VnOrDfLVWe+zFfXCMuV9jCZXgWhg0sXejy+au5ORbsxzR2su6LqvEA OBXaSc0VnfvmdN+YCh5Y/WhatvEFoaWyPB78CEUgaFDLrKZ8GbWXmR9rwe6C152SpZLC aEp4Tsgx0by+8uUr1mq6qvkdyB1AbcYAgSnA87EanpI5toJpiJUDoQH72f+C51blwUXX IfnA== 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=bH8M9ELgKf/w2FWM1e5Edkq71h2Ccph4hYYadWwCNnQ=; b=FHZJ89FZanb5lIY1q369v2RUTnURSkhWH0rm37tA+ynLG/lDyTkvaWoadJrXFhgTQY UMUB0LyoSO5tFA3++p1tVrIxf7xCaKljxoWywRMmE+OOxzKJQJwBSg6iUSZSS4RFqqAq xfXgU86GgJmSyZ8qm6wsA20aoIyuCfCK6WXUlmtBIO9hOVfKNEWP2Ebj9Z2xkN054IvU quTlI5C68QbcqMdNy3pQnMfIF/dye5M1QDB0sIqb+8vDGFprgMceI4Ez7bdCOIBK0RiX NBtQrBMG3DxU4bIB91BBBNivLHVJky2NVab0rm/TaB0eiaTLVQgRGyN/k9SySz0QkXT1 dwrA== 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 s139si11116808pgs.405.2019.03.13.17.21.13; Wed, 13 Mar 2019 17:21:29 -0700 (PDT) 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 S1727043AbfCNAUw (ORCPT + 99 others); Wed, 13 Mar 2019 20:20:52 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:38110 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726640AbfCNAUw (ORCPT ); Wed, 13 Mar 2019 20:20:52 -0400 Received: from localhost.localdomain (unknown [IPv6:2804:431:9719:798c:867b:ebff:fe52:de60]) (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 2BF1B26016E; Thu, 14 Mar 2019 00:20:41 +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?= , Helen Koike , Sean Paul , Sandy Huang , eric@anholt.net, Alex Deucher , Bhawanpreet Lakha , "David (ChunMing) Zhou" , Anthony Koo , amd-gfx@lists.freedesktop.org, linux-rockchip@lists.infradead.org, =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , Rob Clark , =?UTF-8?q?Heiko=20St=C3=BCbner?= , Leo Li , linux-arm-msm@vger.kernel.org, =?UTF-8?q?Christian=20K=C3=B6nig?= , linux-arm-kernel@lists.infradead.org, David Francis , Mikita Lipski , Maarten Lankhorst , Maxime Ripard , freedreno@lists.freedesktop.org, Mamta Shukla , Daniel Vetter Subject: [PATCH v3 0/5] drm: Fix fb changes for async updates Date: Wed, 13 Mar 2019 21:20:21 -0300 Message-Id: <20190314002027.7833-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 fixes 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 "drm: don't block fb changes for async plane updates" to understand how it works. I tested on the rockchip, on i915 and on vc4 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 I would appreciate if anyone could help me testing those. v1 link: https://patchwork.kernel.org/cover/10837847/ Thanks! Helen Changes in v3: - use swap() to swap old and new framebuffers in async_update - get the reference to old_fb and set the worker after vop_plane_atomic_update() - add a FIXME tag for when we have multiple fbs to be released when vblank happens. - update commit message - Add Reviewed-by tags - Add TODO in drm_atomic_helper_async_commit() Changes in v2: - added reviewed-by tag - update CC stable and Fixes tag - Added reviewed-by tag - updated CC stable and Fixes tag - Change the order of the patch in the series, add this as the last one. - Add documentation - s/ballanced/balanced Helen Koike (5): 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 drm: don't block fb changes for async plane updates .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 +- drivers/gpu/drm/drm_atomic_helper.c | 22 ++++---- drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c | 4 ++ drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 51 ++++++++++--------- drivers/gpu/drm/vc4/vc4_plane.c | 2 +- include/drm/drm_modeset_helper_vtables.h | 5 ++ 6 files changed, 49 insertions(+), 38 deletions(-) -- 2.20.1