From: Mohammad Faiz Abbas Rizvi <faiz.abbas@arm.com>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Liviu Dudau <liviu.dudau@arm.com>,
linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/arm/komeda: Remove component framework and add a simple encoder
Date: Wed, 12 Jul 2023 12:10:32 +0530 [thread overview]
Message-ID: <b910cd19-9dd2-662d-f258-91719b9906ce@arm.com> (raw)
In-Reply-To: <20230704165654.GA940443@ravnborg.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
prev parent reply other threads:[~2023-07-12 6:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-21 8:41 Faiz Abbas
2023-06-29 9:51 ` Liviu Dudau
2023-07-04 13:49 ` Mohammad Faiz Abbas Rizvi
2023-07-04 16:56 ` Sam Ravnborg
2023-07-12 6:40 ` Mohammad Faiz Abbas Rizvi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b910cd19-9dd2-662d-f258-91719b9906ce@arm.com \
--to=faiz.abbas@arm.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=liviu.dudau@arm.com \
--cc=sam@ravnborg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®