Received: by 10.192.165.148 with SMTP id m20csp77531imm; Fri, 20 Apr 2018 03:21:13 -0700 (PDT) X-Google-Smtp-Source: AIpwx48BrPBeWjcSB0BF2hMYSjUHyhWodSFBBm2LMxX4uoBOg3O6F43xebhovC07pOZcHgCIW+ts X-Received: by 2002:a17:902:2f:: with SMTP id 44-v6mr9863989pla.187.1524219673294; Fri, 20 Apr 2018 03:21:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524219673; cv=none; d=google.com; s=arc-20160816; b=cUtOuT07KVCXqI0yYlXED5iL2Y6NrFpsbIIuATcm+SQ++arclwGI2xXixBrQs+odg2 lKGVCIEOtyqnQcwl6njAFwMFsgm5sW0Ip+LE7GVdE3+vm+zvt2hIvr8a/bX5MotPeN56 sop+w3+T75eaojuqbbgCC7/85MNaq7NAZlIZz1OSxIglhLuqYkfejlG0998lBhlihrKA HWoneR9EYA3K6YzyZMsKHvjLqd1ZAYxVFA/0ciaO+uBLbk4poUNlIZF9jqewrKX7S8gK eHA5KL4TKeSupaI0Et76Oj07RI54QazvLb9+DDhOKXIS8iuXol4wbygNPTedYV6pZqyj 9jbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=E7H9fEDKSOW9hKs2QMtmkkRhAqtcFvJLkKfmnm385Sw=; b=HoMTUtVNaxyypt5iI9fV0kH+ocmXPigjl7pKQONKfKolQQQYlD+kcSH5m3kzSI0xYM tMT3Y77lpTq0bT9lwkzdfloYUrFRMplrb3GKLtsAZGAdaRL5DK+lQ11nz49bMkateyoe H5l5zOQc7aR/6xZYwkkTiqIYmK/M7Grgh1jov43jQGtcumGH7qSKBzcgs9S+6UYaE63f t0Q0fV7cyQbAC4gIqrBg3YHiQ042N5IMy43nCqDFP+skvw/9ClyYFk3BS5d6oCwWclHd Pq2QaCgOjugWwu8yoS8/vxzUtyfmsNro+q702dhAvaF2Sm+GrvUssxbh8SAhInNJv0Rs pJKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fooishbar-org.20150623.gappssmtp.com header.s=20150623 header.b=YypYqcqu; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 132si4597496pgb.470.2018.04.20.03.20.58; Fri, 20 Apr 2018 03:21:13 -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; dkim=pass header.i=@fooishbar-org.20150623.gappssmtp.com header.s=20150623 header.b=YypYqcqu; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754601AbeDTKTk (ORCPT + 99 others); Fri, 20 Apr 2018 06:19:40 -0400 Received: from mail-lf0-f42.google.com ([209.85.215.42]:46215 "EHLO mail-lf0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754528AbeDTKTh (ORCPT ); Fri, 20 Apr 2018 06:19:37 -0400 Received: by mail-lf0-f42.google.com with SMTP id j68-v6so4375783lfg.13 for ; Fri, 20 Apr 2018 03:19:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fooishbar-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=E7H9fEDKSOW9hKs2QMtmkkRhAqtcFvJLkKfmnm385Sw=; b=YypYqcqu6N0NEPetGnoCXhmIxBHYWobgP2ywl58xplh1irddOmcx0V/VLhNMOlqw6Z CcaET1tJRNhaamT7lRVjXQ8hRuTmiSzaI9yGTxwUR/1YlrJXi/UWnZT/Sv44nF8cMYg2 HsXc5GKVbLksSPmzLG1jiUoLZhD8rxCRFaMJUHhXbHHnMhwTBSaysIuKC+aVpgHPxOYR nW/a/bl/GEViaKdCdiKesUMecLp7al+GOrjzB8O2VcvrBNwaw5yLsLiAfANPV+izJD6N Hay41VnXUTV1BFQWUjLub0pnjxq+Gj/SddXPMcC74eK9Ido1SfhqjVNHwTnyUBeuHFF/ UKHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=E7H9fEDKSOW9hKs2QMtmkkRhAqtcFvJLkKfmnm385Sw=; b=hu5nDIp1DUcyI9MjaM6HLso4ySkFmvpV6PUvEBFK9/A/oMPwVpw1tbYw6cw0u+O7yE 76TO9OMkKhp7org8MAfwLZZSAM5+Ph0Uc0T9hcMllhK5bdHhgGeinuxYeiiFLHIehOdd A2QL7bPvLz1PbjFRo9FKwLR6VZNQmt3SVn5EegDjC0J9iJKolhMfiBcsSNeUNOBIK6t3 SURGFrihvCJ1tI3VDlsf1cxAs+8WNXfcIx7kpXmC6QOm/tNgub9Y794qEefUyarTCM0W ZU9XgVdgRofB0AAHeaIimMa2o+rkHxeabVNkamjZ7xXgGQ1fjsH/SBWBpmsSauw4+pTc MgHA== X-Gm-Message-State: ALQs6tB1IUzt/5XodyrLOoUN4wnePtZTMRvdxzL90Pg6IxdrVTR8RMx8 eTqoQUMQ112IKf4wdtaoLd4DbhTlmQDPxmYvsonfYQ== X-Received: by 10.46.152.203 with SMTP id s11mr6465140ljj.92.1524219575834; Fri, 20 Apr 2018 03:19:35 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.17.202 with HTTP; Fri, 20 Apr 2018 03:19:35 -0700 (PDT) In-Reply-To: References: <20180330171822.25896-1-sebastian.reichel@collabora.co.uk> <20180330171822.25896-4-sebastian.reichel@collabora.co.uk> From: Daniel Stone Date: Fri, 20 Apr 2018 11:19:35 +0100 Message-ID: Subject: Re: [PATCHv3 3/8] drm/omap: add support for manually updated displays To: Tomi Valkeinen Cc: Sebastian Reichel , Sebastian Reichel , Tony Lindgren , Pavel Machek , Laurent Pinchart , Rob Herring , Mark Rutland , dri-devel , devicetree@vger.kernel.org, linux-omap@vger.kernel.org, Linux Kernel Mailing List , kernel@collabora.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tomi, On 20 April 2018 at 08:09, Tomi Valkeinen wrote: > It's actually not quite clear to me how manual update displays work with > DRM... > > As far as I see, we have essentially two cases: 1) single buffering, > where the userspace must set an area in the fb dirty, which then > triggers the update, 2) multi buffering, which doesn't need fb dirty, > but just a page flip which triggers the update. > > In the 2) case (which I think is the optimal case which all the modern > apps should use), there's no need for delayed work or any work, and the > code flow should be very similar to the auto-update model. Correct. There's been talk (and I think patches?) of adding a per-plane dirty property, so userspace can as an optimisation inform the kernel of the area changed between frames. But short of that, a pageflip needs to trigger a full-plane update, with no dirtyfb required. Cheers, Daniel