Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp2140653pxb; Wed, 2 Feb 2022 23:25:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJylWn8oPjH2osmOS4sMlNHybgjrWn8Oao8i0vmuE35zdMeUVE+k+J2tyUCQep47v8Z/0g6r X-Received: by 2002:a63:8b4c:: with SMTP id j73mr27430718pge.580.1643873157202; Wed, 02 Feb 2022 23:25:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643873157; cv=none; d=google.com; s=arc-20160816; b=P/E4Uh5T9D7CHdvK2whg3LcOGzaks0XYAisfc/rbrME6t2qtAPEukaldV1ySQEcpCj z+lFGTIdBuClSO2H/yju9t7g88E66S4OrHSn/PAlMhGgnsaTt9ELgNQ7CaK4UgH7MbQ7 8PnMZoPBqhdOyydNu6dDYytc9P79PheAiL66jOYBUJKQujLIseqGMuuBJO6zmQbkngJm B8eb9n8B/fbTRP3UnLLaSgHW7Wq5NLb/UVEGZrZOJetHOHCJwgj5FqBqPnM9QdcFZAXl BkY7f1bwFjSuLwdYoEdeP2OtuAi89V0l/kBhOIv0OLSLCToEuBaLtjoWqaUbrQaLm52n Ag4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=zGAcEl5zSbDsGaRdTk3xOxAdBMyz853R9ybuFrbrUe8=; b=H43docSnHWsBpAbt5TdzshYphJXX3gbPmGUkngWo2yE9vDYEo7bej8Z2fHzba4JKUp f3admDIxZCL0SOjuegS5Oz8WFjzT1Atq5ogo7ldTmxLN0lJXsAbiFca7Wf3noJP/v+85 2ycjubTWoKxBuQaFoYagUdUuMy4QlyL2IVKbx+1Ew/NH/aiYmPytY6+agBRYri4qW2GB UiHcosIawiWuDDJkeq8/uTuiYPr+cmn2oryYPkkbVYbBxa2jV5YarBYXX6Qp1yOFgEDm M9d2zo5INe75Ox/pfHgwsZm0PIrGjUb7WJSc7b0snwFlEBjh+P60CRQeh3PXsOq/qI3b mMYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jStWXkAT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y7si22551971plg.246.2022.02.02.23.25.45; Wed, 02 Feb 2022 23:25:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jStWXkAT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345311AbiBBPFK (ORCPT + 99 others); Wed, 2 Feb 2022 10:05:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232269AbiBBPFJ (ORCPT ); Wed, 2 Feb 2022 10:05:09 -0500 Received: from mail-lj1-x236.google.com (mail-lj1-x236.google.com [IPv6:2a00:1450:4864:20::236]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD8FCC061714; Wed, 2 Feb 2022 07:05:08 -0800 (PST) Received: by mail-lj1-x236.google.com with SMTP id q22so29309987ljh.7; Wed, 02 Feb 2022 07:05:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version; bh=zGAcEl5zSbDsGaRdTk3xOxAdBMyz853R9ybuFrbrUe8=; b=jStWXkATdsbkE3n4Nr46atX2F1K4ZanuB8lCDQJ4p/b1+AHcdvD86KaYRm1bAHkyJw AiHxqz98X0ZNGKItIVe/Aq5pbhWMIzeKnTgOaK1k5Sz5K9miHRfpJ8M5pxXIFwTmdDTz gKEOW4EiTuwI+1R+zwpe5k9vBL2N4L2RuT4JSRjRAZ3a8KVWzHSVClpHPdEHsq08wPhH Y9p1d1rQJ6/wxDx7oqb+lSuOk2zpbkMrFqszjsh6Bs6jPbD8VlDFbt8g52e5aW0iRyqQ KldHeeb8LV/PQT8urJ1yhxMhI1/W44MfISox2cTI45VqzbFIlhOkne24S/KRRfs6z/eu Nxjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version; bh=zGAcEl5zSbDsGaRdTk3xOxAdBMyz853R9ybuFrbrUe8=; b=OHAaRGvGo5MAEsLgCDN9gbSV6yWbHzYQ7LEqmN8YAOJh3pONajji64ACnCu9MecDD7 9VDxrV/6EyKZUX+4txvHAoDSX61NXfphwAvQtch4gez7tkmwOeyxR2enJhSmkoaijV8s EaDRh+zij9s6+g/Z8VJZRRBC2xB92SIop4g0lF8+nPReW9qX8Q5VgLSgp13IVp+eZbpR Q/28DD0Pmknd1j/mDEDlsZtaalbL+Kp11TCyQJVLf+Xqzd+rftPZSnomYRHfPh87MN8+ YZl1Lh+YrC5KA9F9eL8wq5vMchsjeO77aFy470wFEmon5pEqsDenNdMc4zGKKIAXf9Ty qUEg== X-Gm-Message-State: AOAM5310TLsaiMIMNKWgIksraYMHfQMxevz/PsGtlOxMjTZA7JQScz49 Y3wxGoXxPMoMWmVkbrZ8kQE= X-Received: by 2002:a2e:3102:: with SMTP id x2mr19669295ljx.211.1643814306787; Wed, 02 Feb 2022 07:05:06 -0800 (PST) Received: from eldfell ([194.136.85.206]) by smtp.gmail.com with ESMTPSA id j5sm1485618ljo.137.2022.02.02.07.05.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Feb 2022 07:05:06 -0800 (PST) Date: Wed, 2 Feb 2022 17:04:55 +0200 From: Pekka Paalanen To: Noralf =?UTF-8?B?VHLDuG5uZXM=?= Cc: Thomas Zimmermann , Sam Ravnborg , Javier Martinez Canillas , linux-fbdev@vger.kernel.org, David Airlie , Daniel Vetter , Emil Velikov , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Geert Uytterhoeven , Maxime Ripard , Andy Shevchenko Subject: Re: [PATCH 1/4] drm: Add I2C connector type Message-ID: <20220202170455.3eece5a3@eldfell> In-Reply-To: References: <20220131201225.2324984-1-javierm@redhat.com> <20220131201225.2324984-2-javierm@redhat.com> <4d9a56a7-da25-b411-61cc-372c6fa9011d@tronnes.org> <4966d03e-ee0c-5130-3819-05a90a8f6d06@suse.de> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/WjkHlZCIIXSuY/pBxDvwVSo"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/WjkHlZCIIXSuY/pBxDvwVSo Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, 2 Feb 2022 10:45:42 +0100 Noralf Tr=C3=B8nnes wrote: > Den 02.02.2022 10.14, skrev Thomas Zimmermann: > > Hi Noralf, > >=20 > > since you're here, I'll just hijack the discussion to ask something only > > semi-related. > >=20 > > IIRC the gud driver doesn't update the display immediately during atomic > > commits. Instead, it instructs a helper thread to do the update. What's > > the rational behind this design? Is that something we should adopt for > > other drivers that operate over slow buses (USB, I2C, etc)? Would this > > be relevant for the ssd1307 driver? > > =20 >=20 > Async flushing is only necessary on multi display setups where there's > only one rendering loop for all the displays. I saw what tiny/gm12u320.c > did and Hans gave me the rationale. The SPI drivers run flushing inline. > Info on the gud wiki: > https://github.com/notro/gud/wiki/Linux-Host-Driver#asynchronous-flushing Hi, please also consider that userspace may throttle to the KMS pageflip events. If the pageflip event is immediate from submitting a flip, that could mean userspace will be repainting in a busy-loop, like 1 kHz. However, I remember something about virtual KMS drivers doing exactly this, and there being something that tells userspace to throttle itself instead of depending on pageflip completions. I just forget how that is supposed to work, and I'm fairly sure that e.g. Weston does not behave well there. Unfortunately, the pageflip event is also what synchronises FB usage. Once flipping in a new FB completed, the old FB is free for re-use. But, if the kernel is still copying out from the old FB, userspace may partially overwrite the contents, temporarily leading to an incomplete or too new image on screen. Do you have anything to prevent that? Thanks, pq --Sig_/WjkHlZCIIXSuY/pBxDvwVSo Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEJQjwWQChkWOYOIONI1/ltBGqqqcFAmH6nZcACgkQI1/ltBGq qqf/fA/9GWEbIffTcEQ1bgTLS1bvxOSJHl23hNSsG+SZKOAWl4xRyKbPxAxUlXST dHeg56RX0psfejXIy0/u8b1+kFtoW2fGgrDSpVyHWVJS0CThcjLvjA7/VU5JaYBm 6TQNDvHe1sT8d00XsNaTOXJ4MQm1EhC1YOguoqr74a84ixVrvEbYxmfF58wX6uVi 4Kq2As+831fH1iGlTPULBLpjK0pJdlVM+LfCZjCR8IjznaPIvH8qle9QJDjriRE2 IBqc0zw0HwSCUTs5k68oltjvFVNfEiVLWQISK8CK1Mnw29CKWkeowbx76RzsTx2U qSIxwkS3JnpzBVOQIw83i74GzMcJK78a4PGWQc2BP1Zdr5XXx1CjDG4V5i/oj7LS V4sfIIi29esJ6wb1C0wAoxNHKA1FxI9QFqhiIXaD5R7pTeM+ysnh0Iqh/42KMOSA CfSMbTBIs2oP0YzoUh+tLU1FEwfpW7LQBci32EujuUsQggcGWRvtI6Y2b8+L+a4F Nnojdf5BrB0Ggq22LvfctgUze+DY6OdDQz0Y12e7QPAHlrErLLAeqp560Z8SwNYP 86sq8TOgfN094rp4jwdmuYr1Kn73Lxe6kuHgwwwaF/xDfTM+0gjnYqfogzCVDC4W Uj2Ry8T8pGajGwsMSiWOM9hutqO4UXuaJ04+T6qY3otLIXhxuDo= =V1N6 -----END PGP SIGNATURE----- --Sig_/WjkHlZCIIXSuY/pBxDvwVSo--