From patchwork Thu Nov 9 17:24:40 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: 163529 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b129:0:b0:403:3b70:6f57 with SMTP id q9csp589294vqs; Thu, 9 Nov 2023 09:27:22 -0800 (PST) X-Google-Smtp-Source: AGHT+IFp8Spn5RerpId3+/43sbpRK6m2YA42pdTmZIr/cnOKtChcq1zsjcBdKS0KYvR8RXIPNEtu X-Received: by 2002:a17:902:74c5:b0:1cc:6dd3:e73c with SMTP id f5-20020a17090274c500b001cc6dd3e73cmr5140009plt.49.1699550842219; Thu, 09 Nov 2023 09:27:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699550842; cv=none; d=google.com; s=arc-20160816; b=LEx/8e1RjWSkdCA8ZqTj0YoJgKPpG//FVVBQDTYQDH7IEtsxpaz01I0CXyYpGX3c+8 HA7drD2B8Tqp3MOcJzbOCm/pFUeok3kFeim4Fo/qhzEQiJO8P7951WQevER4wUM65oBO qu402dR9EVXujSgNIKNlf14XDQvYPZrQfYASWxIDriQWgDMTcFY+s4jNdB5Kq9Mm68h3 RqwZEDaEUZRQuM3tEj9FeLNMTz2TkK6xowt+jYpKG8yUg0bu+LXIHuXAT3a+VcycNtQz 2hJJeIinfs6DtJHRc3kmzVtaVb0TNybm9uFe2kB9O3WVTnY94/S2MfFD0XvbstYlnhSJ NDJA== 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=LQsLMrBO0s8gsbhcurrkAKTlTUKc8bmHZW0Ex5lVbpk=; fh=sLuhEBDRpdA8o4irrTwlOuBLfRcI7JDd2TTXIeVLH04=; b=qe2sqIYlU7xS+086NuK4tf8lpHKhtTM3BrKXkCzyqhS6vIzoKCvSihN7Xj8G7b+zaY Su3t3L1phnegRvKmOPIrZckBryIl2qR9W6JIFPfIIE1H+zA6F0FEpsF1dR4gczGIbmwD tIfhdNDjvPIvNKmG2nVmX7Ei6EvuzkZRcXmHQq+Gr2Ly8h5Y1i9llF+3k2S8efdfSGpZ VhhR0IzdRBFoB1wDOeOtskE+NAt9Aj+/NDxuHhizAhGdMT9IxmmryE3s3Xj9iAF3AefQ 853z/ZGMJbloqow/KBQhJ+f8uICauOYTuJywEPfR9hZaB+ZAIyxabbk7OP3jVZPQmSiq fsgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DMX+sItO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id i5-20020a17090332c500b001cc453f5178si5776799plr.439.2023.11.09.09.27.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Nov 2023 09:27:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DMX+sItO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (Postfix) with ESMTP id CA70C8078288; Thu, 9 Nov 2023 09:27:19 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344741AbjKIR0U (ORCPT + 31 others); Thu, 9 Nov 2023 12:26:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344661AbjKIR0H (ORCPT ); Thu, 9 Nov 2023 12:26:07 -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 5961F35BE for ; Thu, 9 Nov 2023 09:25:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1699550722; 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=LQsLMrBO0s8gsbhcurrkAKTlTUKc8bmHZW0Ex5lVbpk=; b=DMX+sItOYcOs2cnMjOd+jDBrke9M0RGB+HrRhlxbT7+7jJO56EtgSPoQsmTkxZGlTjATOU fEEcfi+Lf9JeWfVgxc7eLo2OClzUH9JDHfpJaL7iX5x7y8EFqUcXMNQVCBVe/XskL9WY+I MfvGhv0DNRtsZZDAukNfsZ49dYijGqs= Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-639-KgoYNOBQOmajo8gOq3HdxA-1; Thu, 09 Nov 2023 12:25:21 -0500 X-MC-Unique: KgoYNOBQOmajo8gOq3HdxA-1 Received: by mail-wr1-f69.google.com with SMTP id ffacd0b85a97d-32f7cfab43eso568415f8f.1 for ; Thu, 09 Nov 2023 09:25:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699550718; x=1700155518; 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=LQsLMrBO0s8gsbhcurrkAKTlTUKc8bmHZW0Ex5lVbpk=; b=o6uNIIPzwIPdrtwqwzztt9OLKbVZUAkww/dCcQVaZVBSwc+MD582EoaZu8Q8pbqWD9 coaOMiY3grqBtBjEe1wiOLA11TAMxrCHxzTADb/JRRcN2gQ/Z6VUjjNfsUvu/QRfvQjs uUHdFKA1cC57QoztAGEB0s4R6PjE3dRYdlZ8PzH5EmflZTemPqnjS2VUNP+sgIP3UU1o idmz2s2Lb7y8trOUTCvxIgrrTNEu6viMLKE4gkqRljsAqBEEV+U3UGz/8YxyVHss3NVN bUcow1LNezdom88yDzGmSIZ/2F2cv5OrTgjJ7nAif18EDyd9wQgbplqBPjfs7IRz0pb2 H3uQ== X-Gm-Message-State: AOJu0YyelwCDyUzVesQmpLh7vraUE8LIXHb+tXyX8Dgbomp99AevqBUu pg5QO7Iz6A0YvR0Rz/kvAyxRS+/XvAsk4gT8D1Vvc+Dj+0TprjiA5ekJNHRIOYjRWTobjJCC1IM 6BbyWXHO9enx6iCk4Q3SOXm6VhDcuGp7O65rYHcFdz5r0PPQqA1u/rUh95IYeIZixfelT5aCKSi biPPcf+nw= X-Received: by 2002:a05:6000:1cb:b0:32f:7963:8493 with SMTP id t11-20020a05600001cb00b0032f79638493mr4461568wrx.37.1699550718246; Thu, 09 Nov 2023 09:25:18 -0800 (PST) X-Received: by 2002:a05:6000:1cb:b0:32f:7963:8493 with SMTP id t11-20020a05600001cb00b0032f79638493mr4461536wrx.37.1699550717778; Thu, 09 Nov 2023 09:25:17 -0800 (PST) Received: from localhost (205.pool92-176-231.dynamic.orange.es. [92.176.231.205]) by smtp.gmail.com with ESMTPSA id k8-20020a5d6e88000000b0032db430fb9bsm121425wrz.68.2023.11.09.09.25.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Nov 2023 09:25:17 -0800 (PST) From: Javier Martinez Canillas To: linux-kernel@vger.kernel.org Cc: Simon Ser , Sima Vetter , Pekka Paalanen , Maxime Ripard , Bilal Elmoussaoui , Erico Nunes , Javier Martinez Canillas , Daniel Vetter , David Airlie , Jonathan Corbet , Maarten Lankhorst , Thomas Zimmermann , dri-devel@lists.freedesktop.org, linux-doc@vger.kernel.org Subject: [PATCH 6/6] drm/todo: Add entry about implementing buffer age for damage tracking Date: Thu, 9 Nov 2023 18:24:40 +0100 Message-ID: <20231109172449.1599262-7-javierm@redhat.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20231109172449.1599262-1-javierm@redhat.com> References: <20231109172449.1599262-1-javierm@redhat.com> MIME-Version: 1.0 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 (fry.vger.email [0.0.0.0]); Thu, 09 Nov 2023 09:27:19 -0800 (PST) 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 fry.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782108223815943372 X-GMAIL-MSGID: 1782108223815943372 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 --- Documentation/gpu/todo.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Documentation/gpu/todo.rst b/Documentation/gpu/todo.rst index 03fe5d1247be..adaa154210a0 100644 --- a/Documentation/gpu/todo.rst +++ b/Documentation/gpu/todo.rst @@ -765,6 +765,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 ===========