Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6782859rwn; Tue, 13 Sep 2022 08:58:51 -0700 (PDT) X-Google-Smtp-Source: AA6agR46U4D4opMfPF2GTyLlfbGecA0K6sV15GchfKfbaajOr2+oup+7uA3aTYPyz8s6A5ZZK6Cl X-Received: by 2002:a17:907:7632:b0:76f:f6e7:36cf with SMTP id jy18-20020a170907763200b0076ff6e736cfmr23461902ejc.442.1663084731225; Tue, 13 Sep 2022 08:58:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663084731; cv=none; d=google.com; s=arc-20160816; b=HbHkk6x9g5FwV70Lf7lvMr4RbJNLRSMkVimaGoWwreqRO8o1aHR+Gwd6V3MlDRwPV0 cNKcclbUK2X5dg7676Vtmk62xqp8U3HTQI7IxnI9tYO1ee9pdf+QuCfv2xqBZEHKFzu1 5yL1x3kF5eEOZcJhKlnWjexkzmCiGcc0WjjrxePWszg5chCcdiJOGxh9A07ml0I8oXiS qbiWnkcnLGpYXkaaxD8GQhJKGRKOIBZU5dz4iaABwyQz34NPQWnFZpSLL7H4VjXElr4v 6MVOZo+CGPYkOHApDyiTWkEHcvQl0LXEmX6KlhAmyWER2deMC16smJMEQ1GQpuP/jumZ FWiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=Uxenzw8tkNyvX0lkO9yxXwXtOB+riZKdHwT6bqSX9nc=; b=0fpnGWQnbJjbQrnGsUFMyd+w5pDJ5vIH5ZeLdcZYRaNUkwStRCfODBH77qivLEtgK5 t+YCrblYpAwzGamXqha+eT4IhCBpjT8TW54n8Zyk4heUFBp97h1qqeCDY+oCGq0as9HH gaej37fpKG3Qyaao3TQ908pnO+AWhMmcHx2mR4TD30U79OZgO+kaUicdhYXcEaoUeUTX BjHxsTXD3OVUccQvl1zqw2sfQS1lPxTGEIWlbTGrWCns3ODWJ3SV9Of6e6c9yLwYo/Bl pPvxLxAYWzZeAkOHGRFZGyiv9pcDhwsfdUlOyzypDlNR4+b0MI0bKhnLN5k6Xc6AMLCh tZpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WgIOeD5F; 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=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d2-20020a170906040200b00732fd99cdb5si7249225eja.854.2022.09.13.08.58.23; Tue, 13 Sep 2022 08:58:51 -0700 (PDT) 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=@redhat.com header.s=mimecast20190719 header.b=WgIOeD5F; 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=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234645AbiIMPuV (ORCPT + 99 others); Tue, 13 Sep 2022 11:50:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234499AbiIMPty (ORCPT ); Tue, 13 Sep 2022 11:49:54 -0400 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 112D98A1C0 for ; Tue, 13 Sep 2022 07:51:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1663080602; 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=Uxenzw8tkNyvX0lkO9yxXwXtOB+riZKdHwT6bqSX9nc=; b=WgIOeD5Fomxg6d5RJaHmzDRMFo7vPje+AyUZG328JOMj0EE4f5jBez+Y29VwnvFs8sIaui YuWnSVb0srhVfBmNmQ1eH7ZqMhCMgwGrv6iilvAwyl/uMDu8b+LyMYKM6fNt9NOX81RSIw menEEjukLPYyv9JOsevVNSe3C7cydd4= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-240-4_e8YfL2MJiG6NrYyI_ZiA-1; Tue, 13 Sep 2022 10:46:34 -0400 X-MC-Unique: 4_e8YfL2MJiG6NrYyI_ZiA-1 Received: by mail-wm1-f71.google.com with SMTP id v128-20020a1cac86000000b003b33fab37e8so6580078wme.0 for ; Tue, 13 Sep 2022 07:46:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=Uxenzw8tkNyvX0lkO9yxXwXtOB+riZKdHwT6bqSX9nc=; b=C/Tud7qLVkgMee1octnr8uerRmHJuHUCUWgYrr52bdtGPpCb84Z6kdWAPpZ1tWmMFk wb//Itp2cHcpZhq5R2WrILXCnlkSP0FNtpg6sEsoXSpjBRFK3W57YlJwvjNVJgpE4c07 LdjoDWYymLAtlafr/hkPh93raeDgHPfs+bVxmOzJ6U3iY6qw8KWutPXiNZUUhGRwaq0g oaXGuVbfD7KEN2e3Qh1wos10Ntol/tEh8O9WvKuUL5Ucw5BdBeuXyT99uSMxJ0eHrhUU nHm3mHwVwxZIIgPWCpgjSNChjaFXouvxEeI5P0V+re+ENhrFh3bF4jKBuLVQmieqTKtB RI8g== X-Gm-Message-State: ACgBeo04mAO+j0qZHC22pYcKemGatyGj5bde1896W5L4XLmV5eeni7C3 Ic/Q68TL72eNz59PBGRExjijruLJbja39u7lhjenLkVxicwserBdP8x3d7nirgDHgGTK75Cdwwe KKoOCB5Ae1dN3aVwSj1BHYtGl X-Received: by 2002:a5d:4f81:0:b0:21e:2cd7:25df with SMTP id d1-20020a5d4f81000000b0021e2cd725dfmr19467732wru.439.1663080392551; Tue, 13 Sep 2022 07:46:32 -0700 (PDT) X-Received: by 2002:a5d:4f81:0:b0:21e:2cd7:25df with SMTP id d1-20020a5d4f81000000b0021e2cd725dfmr19467717wru.439.1663080392333; Tue, 13 Sep 2022 07:46:32 -0700 (PDT) Received: from [172.16.38.252] ([185.122.133.20]) by smtp.gmail.com with ESMTPSA id m22-20020a05600c4f5600b003b47581979bsm11556372wmq.33.2022.09.13.07.46.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Sep 2022 07:46:31 -0700 (PDT) Message-ID: <2b67dfcc-9027-6bb5-d42b-7465f2236747@redhat.com> Date: Tue, 13 Sep 2022 16:46:31 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.0 Subject: Re: [PATCH v2] drm/plane-helper: Add a drm_plane_helper_atomic_check() helper Content-Language: en-US To: Harry Wentland , linux-kernel@vger.kernel.org Cc: Thomas Zimmermann , David Airlie , dri-devel@lists.freedesktop.org References: <20220913093339.106625-1-javierm@redhat.com> From: Javier Martinez Canillas In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/13/22 15:49, Harry Wentland wrote: > > > On 2022-09-13 05:33, Javier Martinez Canillas wrote: >> Provides a default plane state check handler for primary planes that are a >> fullscreen scanout buffer and whose state scale and position can't change. >> > > Even though this might be how some drivers are handling the primary > plane this assumption is not universal. For example, on ChromeOS when > the (default) underlay strategy is selected the compositor will > position the video plane as the bottom-most plane and mark it > as primary, while the desktop plane is marked as overlay and > will contain an alpha cutout to show the underlying video. > > In this case the video plane (primary) won't span the screen > and is regularly panned and resized. > I see. Interesting. > No objections to this change as it helps share code between drivers, > but maybe specify that this behavior is a unique requirement of > these drivers. > I tried to make it clear in the comment by mentioning that this helper is applicable for drivers whose primary plane is always fullscreen and can't scale or change position. Any suggestions of what's missing in the helper kernel-doc comment to be more clear ? > Harry > -- Best regards, Javier Martinez Canillas Core Platforms Red Hat