Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp4451890pxv; Tue, 27 Jul 2021 07:42:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoc8OVmNSXlMccbFQ2PoszakPN+Td0tc7hjCMJBYc4LJBoq/eqnLB8hPRd+9nGlo2KjI6F X-Received: by 2002:a17:906:3c04:: with SMTP id h4mr4071221ejg.89.1627396975418; Tue, 27 Jul 2021 07:42:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627396975; cv=none; d=google.com; s=arc-20160816; b=hU6VxFEl9VFIBkcUJ1oWJTjxzc+Su5rAPmF4IX0mxUSGqqenWVSVHa1Cx33vfSe6Il VJOifbEVcqlO+K/VX366m+F21b7KHsA7o1N1y4doy4CHUHVUQ1QsfYqQANYBJ32DLT5U EmaoHhlqwOaaeq9FtTeLAfcRPZc6VA6Dlh3GY4Bswh9OLWImim0MToHX4gXTnj+6b8j0 tza0yTHaMLR+vyOXraqmcHJQJKSJpEP2LqYtlEQ4AbdaI9ZRLY5gVp/IWDHXW2TmOEk8 LE3w1J/+xdbUD+/sClDtaDhz1oOKxc4Ogn/ok93Lo3M4FqdSRzVciutxbT4BzegYKlXd d0xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:subject:from :references:cc:to; bh=446NfkSPwLwRknvHbhxKoANztNulujrvOaJ1kPWDhGM=; b=xh8WjA8OykAtDQMYWuxJ9QNISILl7L5x/a+BwnFydG+ZrK1Ve33Uu9xIgjxkU0Dgm1 ui96+9DbrsRrWYGS/epX3bwHABX3QKc9vZYSmJNpTy2byQ+I+dJlLjwE8lGCsnr7FfSK aQz4xkyjtyy1Gl27UnqEbFz3a+3YE+pNjT7Jpo21WYZIzjTdjYQomrTKfIAq1HB7LQP3 H89jA+l3kFcNna8QWBBXcHZrTlcdofjy4DMRELCjQurwtqJNaOjEiKUetyP5ErsV9pzS IWzgV+O/romk6gvjIb6Z/NY3JX757xA5bISAVE1CVxfXyTqABSBiFAx2/k9HglUDqOnQ Fsdg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a3si3066317edt.127.2021.07.27.07.42.32; Tue, 27 Jul 2021 07:42:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232344AbhG0OlK (ORCPT + 99 others); Tue, 27 Jul 2021 10:41:10 -0400 Received: from mail.netline.ch ([148.251.143.180]:37824 "EHLO netline-mail3.netline.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231466AbhG0OlJ (ORCPT ); Tue, 27 Jul 2021 10:41:09 -0400 Received: from localhost (localhost [127.0.0.1]) by netline-mail3.netline.ch (Postfix) with ESMTP id 1247720201C; Tue, 27 Jul 2021 16:41:08 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at netline-mail3.netline.ch Received: from netline-mail3.netline.ch ([127.0.0.1]) by localhost (netline-mail3.netline.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id LbFgcm9rFac0; Tue, 27 Jul 2021 16:41:06 +0200 (CEST) Received: from thor (24.99.2.85.dynamic.wline.res.cust.swisscom.ch [85.2.99.24]) by netline-mail3.netline.ch (Postfix) with ESMTPA id 368B120201A; Tue, 27 Jul 2021 16:41:06 +0200 (CEST) Received: from localhost ([::1]) by thor with esmtp (Exim 4.94.2) (envelope-from ) id 1m8OGW-000qa4-SG; Tue, 27 Jul 2021 16:41:04 +0200 To: Rob Clark Cc: Matthew Brost , Rob Clark , Jack Zhang , Roy Sun , =?UTF-8?Q?Christian_K=c3=b6nig?= , open list , "moderated list:DMA BUFFER SHARING FRAMEWORK" , Luben Tuikov , Gustavo Padovan , Alex Deucher , Tian Tao , Lee Jones , =?UTF-8?Q?Christian_K=c3=b6nig?= , "open list:DMA BUFFER SHARING FRAMEWORK" , dri-devel@lists.freedesktop.org References: <20210726233854.2453899-1-robdclark@gmail.com> From: =?UTF-8?Q?Michel_D=c3=a4nzer?= Subject: Re: [RFC 0/4] dma-fence: Deadline awareness Message-ID: <28ca4167-4a65-0ccc-36be-5fb017f6f49d@daenzer.net> Date: Tue, 27 Jul 2021 16:41:04 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210726233854.2453899-1-robdclark@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-CA Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021-07-27 1:38 a.m., Rob Clark wrote: > From: Rob Clark > > Based on discussion from a previous series[1] to add a "boost" mechanism > when, for example, vblank deadlines are missed. Instead of a boost > callback, this approach adds a way to set a deadline on the fence, by > which the waiter would like to see the fence signalled. > > I've not yet had a chance to re-work the drm/msm part of this, but > wanted to send this out as an RFC in case I don't have a chance to > finish the drm/msm part this week. > > Original description: > > In some cases, like double-buffered rendering, missing vblanks can > trick the GPU into running at a lower frequence, when really we > want to be running at a higher frequency to not miss the vblanks > in the first place. > > This is partially inspired by a trick i915 does, but implemented > via dma-fence for a couple of reasons: > > 1) To continue to be able to use the atomic helpers > 2) To support cases where display and gpu are different drivers > > [1] https://patchwork.freedesktop.org/series/90331/ Unfortunately, none of these approaches will have the full intended effect once Wayland compositors start waiting for client buffers to become idle before using them for an output frame (to prevent output frames from getting delayed by client work). See https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1880 (shameless plug :) for a proof of concept of this for mutter. The boost will only affect the compositor's own GPU work, not the client work (which means no effect at all for fullscreen apps where the compositor can scan out the client buffers directly). -- Earthling Michel Dänzer | https://redhat.com Libre software enthusiast | Mesa and X developer