From patchwork Sun Nov 19 10:57:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 13460383 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B9856C5ACB3 for ; Sun, 19 Nov 2023 10:57:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E148910E1CA; Sun, 19 Nov 2023 10:57:30 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2338C10E1C8 for ; Sun, 19 Nov 2023 10:57:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700391447; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=paKcR4aagnq4OR4cFFNyGyCczT8YfM2615gwz6U/Ifs=; b=eqqagPN1rqWAkzWwuneyLotHOQKZqRjtxFx6swn9AcqY2YGELwlqqr/WZRtyJL6BFrMql0 3CbwZk8VWMnIN/K6gaQNIBpSx9hM/FMe493gjzG8jw+C3Kxm8gWUkDpFzZc8++aTsDgGhy rwgEO581W9T4TdQhOSrACC2uTnL5DIE= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-68-7YWHVxt3OeCypjWhHNGhjA-1; Sun, 19 Nov 2023 05:57:26 -0500 X-MC-Unique: 7YWHVxt3OeCypjWhHNGhjA-1 Received: by mail-wm1-f72.google.com with SMTP id 5b1f17b1804b1-40853e14f16so6119275e9.1 for ; Sun, 19 Nov 2023 02:57:26 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700391444; x=1700996244; 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=paKcR4aagnq4OR4cFFNyGyCczT8YfM2615gwz6U/Ifs=; b=Durb6TGCAi1O2UBIzhkNKk98/mtz62D0bqFRjLan8VpAJjGdi3VYmL718hcQ0TVp84 QjQoJnTjLAXh3iCrfW3xZGVcwHSvxwVtZQRG4RzBZ4tFe/DBsoPCZJRcSuVEFJPq+2yZ 8QsOVQBFxulPMKwO6KxVe46K7d7YFt1j+57v3Cr+qgFFZ7mMnI5uG7cfk+8pfShvAPve Xp9R0FCmU7z+Dy1CzvHMRaPWW/UDqesNfaJO0CyNkwHaSkIrLTNH/8KjDtQ5bA7EFFV9 0Y3uGb7odj5H12PQUxmplBw+ZmVjzwW9VFPQNgvGKfT28kLgjSLNsMS0VMujU3oq1bH0 d6bQ== X-Gm-Message-State: AOJu0YzRc+4S6n13wbQ8jNAfcewZuJhimwfneN5TE6TyY/KWbma6XVsP XNvNjUR1p1OJoTQuAeTv6EoGSI6+1cbFPHjoS1sayxfOiZ0sSOgO3Rhi60i8nVUdHVHsrOnTT15 JVkGBS91S9qK+iuiu6iC5uhv7LuWnNv74KZuS X-Received: by 2002:adf:e58b:0:b0:32d:b051:9a27 with SMTP id l11-20020adfe58b000000b0032db0519a27mr2879796wrm.20.1700391444493; Sun, 19 Nov 2023 02:57:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IFi7SRJ7y81uoAdnNo/STFG3TuDFoHARhcCF0tpowHTWIp4MigNAbZkJfZ0hoizOoIOzIYjFQ== X-Received: by 2002:adf:e58b:0:b0:32d:b051:9a27 with SMTP id l11-20020adfe58b000000b0032db0519a27mr2879785wrm.20.1700391444248; Sun, 19 Nov 2023 02:57:24 -0800 (PST) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id dm15-20020a0560000bcf00b0032d81837433sm7796649wrb.30.2023.11.19.02.57.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 19 Nov 2023 02:57:23 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Subject: [PATCH v3 5/5] drm/todo: Add entry about implementing buffer age for damage tracking Date: Sun, 19 Nov 2023 11:57:01 +0100 Message-ID: <20231119105709.3143489-6-javierm@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231119105709.3143489-1-javierm@redhat.com> References: <20231119105709.3143489-1-javierm@redhat.com> MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Pekka Paalanen , Jonathan Corbet , Sima Vetter , Bilal Elmoussaoui , linux-doc@vger.kernel.org, Javier Martinez Canillas , Maxime Ripard , dri-devel@lists.freedesktop.org, Thomas Zimmermann , Erico Nunes Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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 --- (no changes since v1) Documentation/gpu/todo.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/gpu/todo.rst b/Documentation/gpu/todo.rst index b62c7fa0c2bc..5c43a958814b 100644 --- a/Documentation/gpu/todo.rst +++ b/Documentation/gpu/todo.rst @@ -782,6 +782,26 @@ Contact: Hans de Goede Level: Advanced +Buffer age or other damage accumulation algorithm for buffer damage handling +============================================================================ + +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. + +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 in +`Damage Tracking Properties `_ + +Contact: Javier Martinez Canillas + +Level: Advanced + Outside DRM ===========