Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37948453rwd; Wed, 12 Jul 2023 00:26:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlE0+NHCaDtqtHYxLw9Hr0Tw+LCG3Xat78mpHAowv7FcjFK9Ijqzm0QXSz79uTlq4EPTxjJX X-Received: by 2002:aa7:cd5a:0:b0:51e:1690:1b9a with SMTP id v26-20020aa7cd5a000000b0051e16901b9amr14085243edw.29.1689146760207; Wed, 12 Jul 2023 00:26:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689146760; cv=none; d=google.com; s=arc-20160816; b=kKgz8+0P8rqUQ3USECl3N9KqKPqLVSE23KBbXRFpGQNyEb+h9ZDaopYFBUsFrAI0l8 5/aXZ+DSCog1ydkVdI8h8FlYwQ40IsBAtQpiHuRqaf4KYzr9iWvHTm13g4BrkiUJ72qy elwQj4f00pFH1wVBDSmk6nrw0NJyYYyrr0MzCIZEDngstW8cT3ePZTEMcS5UyqZstxwV tcGxsrhzjcLo7g0u5MYIYiZfn6xnO3z3M7YSQCttZhI9NW80Gsb3Va//MpPdtyJUC0Nu aqjG1hmXq3/qxnMBKJWfP7NOZjg/ptKfLGPLUFW5pjp4IKHIek2LGgzfHoei9AUUHi2I hI1A== 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; bh=En5671OwJY4JtuwTbWaWJw7MAEWpNKZUW0TE/kYpMOg=; fh=POjCIscCdcOQ/AUgz9SLKy0IGiIidpNQXu2R6NK4+wQ=; b=OHpEMem9S+DCuGRIv0+JupvtLa8gHsUlYpP9qav66fZyWCQncNAxw7dX5oyRw+HBDW 6hpdDsxQ6Xh+CG+yE/5ObctjbinsZN5dzCqI1tWmo9si7Gx7imJqyfF21QF5tFaX6DS+ kiGzdLnmbqCGICfInvQsqCNbyFNvNUfYILb8cAp+6VxINNMntMaJr0RrA5vVRR2iwAo4 peX730UcNu6m72LZEC/WeD0FstJ8Zm4T0zbz8PUPuFa+0W1HUt/F7fZjfY9iwYY2KlMo cVZG/oblUpx2CHMpFkWwDurJNMC8FMJ67cK25/baC2FDk5893t/Ud7xIfmQ7SFpdc/Y9 0CMg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r5-20020a056402034500b0051debf122f6si3976222edw.95.2023.07.12.00.25.36; Wed, 12 Jul 2023 00:26:00 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230321AbjGLGkm (ORCPT + 99 others); Wed, 12 Jul 2023 02:40:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229610AbjGLGkl (ORCPT ); Wed, 12 Jul 2023 02:40:41 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E4010DC for ; Tue, 11 Jul 2023 23:40:37 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D733F2F4; Tue, 11 Jul 2023 23:41:19 -0700 (PDT) Received: from [10.163.48.19] (unknown [10.163.48.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4DEBF3F67D; Tue, 11 Jul 2023 23:40:36 -0700 (PDT) Message-ID: Date: Wed, 12 Jul 2023 12:10:32 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH] drm/arm/komeda: Remove component framework and add a simple encoder Content-Language: en-US To: Sam Ravnborg Cc: Liviu Dudau , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org References: <20230621084116.26882-1-faiz.abbas@arm.com> <90f386c3-b2bb-b876-80df-c67005e89a66@arm.com> <20230704165654.GA940443@ravnborg.org> From: Mohammad Faiz Abbas Rizvi In-Reply-To: <20230704165654.GA940443@ravnborg.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,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 Hi Sam, On 7/4/2023 10:26 PM, Sam Ravnborg wrote: > Hi Mohammed, > > On Tue, Jul 04, 2023 at 07:19:04PM +0530, Mohammad Faiz Abbas Rizvi wrote: >> Hi Liviu, >> >> On 6/29/2023 3:21 PM, Liviu Dudau wrote: >>> Hi Faiz, >>> >>> Thanks for the patch and for addressing what was at some moment on my "nice to >>> improve / cleanup" list. Sorry for the delay in responding, I had to revive >>> the bits of an old setup to be able to test this properly, with 2 encoders >>> attached. >>> >>> On Wed, Jun 21, 2023 at 02:11:16PM +0530, Faiz Abbas wrote: >>>> The Komeda driver always expects the remote connector node to initialize >>>> an encoder. It uses the component aggregator framework which consists >>>> of component->bind() calls used to initialize the remote encoder and attach >>>> it to the crtc. This is different from other drm implementations which expect >>>> the display driver to supply a crtc and connect an encoder to it. >>> I think both approaches are valid in DRM. We don't want to remove the component >>> framework because it is doing the wrong thing, but because we cannot use it >>> with drivers that implement the drm_bridge API. Given that we usually pair with >>> a component encoder that also implements a drm_bridge, dropping support for >>> component framework should not affect the users of the driver. > > Glad to see the patch - I think this is moving things in the right > direction. > > > While at it do you plan to support DRM_BRIDGE_ATTACH_NO_CONNECTOR? > > I did not read the patch carefully but noticed this call with no flags: > >> drm_bridge_attach(&kcrtc->encoder, bridge, NULL, 0); > > To add support for DRM_BRIDGE_ATTACH_NO_CONNECTOR you may need to verify > that all relevant bridge drivers supports the flag. > You will be told at runtime but only if the relevant bridge driver is > used. Just from reading the documentation on this (https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/drm_bridge.c#L439) I gather this is useful for chains of multiple bridges where the connector is discovered at runtime? I'm not sure if we have a configuration like this with komeda here. Also I'm not sure what it means for the CRTC driver to "support" this flag. Do I always call drm_bridge_attach() with it? > > It can be done later and is obviously a separate patch. > Sure though I cannot promise I can look into it anytime soon. Thanks, Faiz