Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp642216rdh; Thu, 23 Nov 2023 14:14:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHKrybrgt78zxNCMnwOfW3kmGRZnGIM4u2VdJwdNUQN+0tsRubt2UeISRFyEMIOopvoPqTv X-Received: by 2002:a17:902:7409:b0:1cf:a2e7:f851 with SMTP id g9-20020a170902740900b001cfa2e7f851mr146575pll.32.1700777642804; Thu, 23 Nov 2023 14:14:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700777642; cv=none; d=google.com; s=arc-20160816; b=vRX8sFo8d9JeVPCGPTqvIgPnryVMOgO7TQi5TxI5n/FXfbBRlxcS6MILZRsxFdwGl0 Xj/HFJfYBHt7nL5uACDf39Bvf4Mo8ONs5ghdvK97Tga4QzQBeGYYXov7Rf9hkYCkrzFI Ha+JUL5y048nSDlbpxMBtC1vTtaFCXkQx0WDLnBf0mhlp84rsCX6HLRS0dqyHgQ8I7mr PswlU8U+sJPwtQUBOtwF3nweQ1ULoEvhNCJbtF5WlPHfYKWpNGqn+6cfwJSowjO4g34W R8Xjs20kbHdjEZbl1XhAGdKVyCwrym9pdQCJmomxVsoVOBQvbm1Zsy5KVataWPk40pYX rScw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7MuULYoz5ao+rLNA+YbUecP2cAJXv6WyavKrHjMaHS4=; fh=0MWXDH7wEewjyqOYDmllAb1Cur/vsO6NBr4BITYN9go=; b=G5NM2J6dNRb2IoSZFJdqhFWThcTANS3nSZMNdpmdyBZ5SDY4xvD/g+pVg27iCUH8ec CuJA/A6nyxNd1YERGdCxi8BpcVqAOMlhnu70gGhY9Vm4lfa7bkVQh1r9GeMzVfCMEMkj 49rsvqsag0k7wTffY1+Um4wcAW/SXoVeXfTLO2uA1oQb1Rl1DJpoKJKXZ3rrlU3i9dpW EU0a6Ky6crg055HuS4ufoT4QLo/xIkXzKibpWEUaZAthpsfqe6S5CWpbv98Ek7+IunhQ n1ARsfbTUzXQFSFJbAqu6oFO26Uo7gO+AP/VHtujmefPtenn72lH63QY4lc5rVDbshYO 2/Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=N5vrvuTS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id ix20-20020a170902f81400b001cfa344f539si62424plb.586.2023.11.23.14.14.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 14:14:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=N5vrvuTS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id F333180A1E1A; Thu, 23 Nov 2023 14:13:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230031AbjKWWNh (ORCPT + 99 others); Thu, 23 Nov 2023 17:13:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229478AbjKWWN0 (ORCPT ); Thu, 23 Nov 2023 17:13:26 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE1B110D0 for ; Thu, 23 Nov 2023 14:13:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700777611; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7MuULYoz5ao+rLNA+YbUecP2cAJXv6WyavKrHjMaHS4=; b=N5vrvuTS1sPYcdT+cCZ3vQHFtX0dE5FOp6XmnK6NUU41W25BSVQoU1NVsdJBmfflWqWCFX YFCJT/gRXsUO2HhFZ37r8Sf2ziqj3R7N5jka8wvzsq/sqlNLc5zughSY5lJwxx69V1qf+e C4sbbrJgjuz76GMxfnFzm36mBecU960= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-695-Q5LmLyhONca7s1lakKbPhg-1; Thu, 23 Nov 2023 17:13:29 -0500 X-MC-Unique: Q5LmLyhONca7s1lakKbPhg-1 Received: by mail-wr1-f71.google.com with SMTP id ffacd0b85a97d-332e41ed0b4so571516f8f.3 for ; Thu, 23 Nov 2023 14:13:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700777607; x=1701382407; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7MuULYoz5ao+rLNA+YbUecP2cAJXv6WyavKrHjMaHS4=; b=g7HMCdelWokJfFWVeklyf6hFvoX2vgEzvaLTMy1g3/f2TKPXuCOePJeomGEkeBNfxU Si5h7MROka7+yp1Wq7yEkVCeynUNO4GtZqKmaNqse+XrGw7oPaxTv2b2EwuTi+PMYRP6 IYDQF4UCXd4IJGSwbct0C0ycxpuiaW0a4KMYeFFST2AErzQQavN54DoZ7+dYmpTdIDAf JNIRvcSf8GMuSSly2Sh9jIgtgEZk26uC5svB95IOFKYFOOdu/VyrdZHnzJxmSA63Tk1h eYw87k+BGQkic48lPpwRe6+LWcwKN2ith9S4NaagE+hVY7zIgTa6TXkDn5Fin4/ElgsR A+uw== X-Gm-Message-State: AOJu0Yx1uKLjuJEeS7H9A3Rdj9edNTxRfMypj8G3+jj40BuIwU4uaz6z o/cLIzF6UqAhp9+ACc6/vAZgi6vAKTDZ7PrmUaimKjLYBmhyrK/K5t2+o0JxwEikw/TPBTY2h4U NAMez+46GqAqZ1Wn7QiKexo+uwCOl310gzHdTCnx5wUuHCYncCF64AOp3lT0oH2cbKhLNKIFuVw Y66KyAVdE= X-Received: by 2002:a5d:40c8:0:b0:332:e777:a8d4 with SMTP id b8-20020a5d40c8000000b00332e777a8d4mr565989wrq.36.1700777607690; Thu, 23 Nov 2023 14:13:27 -0800 (PST) X-Received: by 2002:a5d:40c8:0:b0:332:e777:a8d4 with SMTP id b8-20020a5d40c8000000b00332e777a8d4mr565964wrq.36.1700777607350; Thu, 23 Nov 2023 14:13:27 -0800 (PST) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id s7-20020a5d5107000000b00332c6a52040sm2681153wrt.100.2023.11.23.14.13.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Nov 2023 14:13:27 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Maxime Ripard , Zack Rusin , Thomas Zimmermann , Pekka Paalanen , Bilal Elmoussaoui , Simon Ser , Erico Nunes , Sima Vetter , Javier Martinez Canillas , Daniel Vetter , David Airlie , Jonathan Corbet , Maarten Lankhorst , dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org Subject: [PATCH v4 5/5] drm/todo: Add entry about implementing buffer age for damage tracking Date: Thu, 23 Nov 2023 23:13:04 +0100 Message-ID: <20231123221315.3579454-6-javierm@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231123221315.3579454-1-javierm@redhat.com> References: <20231123221315.3579454-1-javierm@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Thu, 23 Nov 2023 14:13:58 -0800 (PST) Currently, only damage tracking for frame damage is supported. If a driver needs to do buffer damage (e.g: the framebuffer attached to plane's state has changed since the last page-flip), the damage helpers just fallback to a full plane update. Add en entry in the TODO about implementing buffer age or any other damage accumulation algorithm for buffer damage handling. Suggested-by: Simon Ser Signed-off-by: Javier Martinez Canillas Reviewed-by: Simon Ser Reviewed-by: Thomas Zimmermann Reviewed-by: Zack Rusin Acked-by: Sima Vetter --- Changes in v4: - Reference the &drm_plane_state.ignore_damage_clips and the damage helpers in the buffer damage TODO entry (Sima Vetter). Documentation/gpu/todo.rst | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Documentation/gpu/todo.rst b/Documentation/gpu/todo.rst index b62c7fa0c2bc..503d57c75215 100644 --- a/Documentation/gpu/todo.rst +++ b/Documentation/gpu/todo.rst @@ -782,6 +782,29 @@ Contact: Hans de Goede Level: Advanced +Buffer age or other damage accumulation algorithm for buffer damage +=================================================================== + +Drivers that do per-buffer uploads, need a buffer damage handling (rather than +frame damage like drivers that do per-plane or per-CRTC uploads), but there is +no support to get the buffer age or any other damage accumulation algorithm. + +For this reason, the damage helpers just fallback to a full plane update if the +framebuffer attached to a plane has changed since the last page-flip. Drivers +set &drm_plane_state.ignore_damage_clips to true as indication to +drm_atomic_helper_damage_iter_init() and drm_atomic_helper_damage_iter_next() +helpers that the damage clips should be ignored. + +This should be improved to get damage tracking properly working on drivers that +do per-buffer uploads. + +More information about damage tracking and references to learning materials can +be found in :ref:`damage_tracking_properties`. + +Contact: Javier Martinez Canillas + +Level: Advanced + Outside DRM =========== -- 2.41.0