All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: Thierry Reding <thierry.reding@gmail.com>,
	Andrzej Hajda <a.hajda@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>,
	Thierry Reding <treding@nvidia.com>,
	dri-devel@lists.freedesktop.org
Subject: Re: [RFC v2 PATCH] mipi-dsi-bus: add MIPI DSI bus support
Date: Thu, 5 Dec 2013 16:37:39 +0200	[thread overview]
Message-ID: <52A08FB3.5040800@ti.com> (raw)
In-Reply-To: <20131127105401.GB9639@ulmo.nvidia.com>


[-- Attachment #1.1: Type: text/plain, Size: 3051 bytes --]

On 2013-11-27 12:54, Thierry Reding wrote:

>> I am not sure about hardwiring devices to virtual channels.
>> There could be devices which uses more than one virtual channel,
>> in fact exynos-drm docs suggests that such hardware exists.
> 
> In that case, why not make them two logically separate devices within
> the kernel. We need the channel number so that the device can be
> addressed in the first place, so I don't see what's wrong with using
> that number in the device's name.
> 
> The whole point of this patch is to add MIPI DSI bus infrastructure, and
> the virtual channel is one of the fundamental aspects of that bus, so I
> think we need to make it an integral part of the implementation.

(I speak here more in the context of OMAP display subsystem and CDF, and
this might not be totally applicable to DRM).

In my opinion, DSI shouldn't be though of in the same way as other buses.

In most of the cases, there's just one DSI peripheral connected. This
peripheral may answer to multiple DSI VC IDs, though. I don't like the
idea of having to split one device driver into multiple drivers, just to
manage multiple DSI VC IDs.

In some rare cases (I've never seen one in production) there may be a
DSI hub, and one or two DSI peripherals behind it. But the hub is not
really a hub, but a router, and the router requires configuration. The
case here is not really one DSI bus with two or more peripherals, but
two or more independent 1-to-1 DSI buses.

I have never seen a pure hub, i.e. something that would just
forward/broadcast the DSI packet to two or more DSI peripherals.

So I think we should consider DSI as a one-to-one link, and let the DSI
peripheral manage the VC IDs as it wants. I don't see any benefit in
trying to create a similar linux bus for DSI as we have for, say, i2c or
spi.

>> I can also imagine scenarios when dynamic virtual channel (re-)association
>> can be useful and DSI specs are not against it AFAIK.
> 
> How is that going to work? There's no hotplug support or similar in DSI,
> so why would anyone want to reassign virtual channels.
> 
> Supposing even that we wanted to support this eventually, I think a more
> appropriate solution would be to completely remove the device and add a
> new one, because that also takes care of keeping the channel number
> embedded within the struct mipi_dsi_device up to date.
> 
>> reg property means device is at fixed virtual channel.
>> DSI specs says nothing about it IMHO.
> 
> Without that fixed virtual channel number we can't use the device in the
> first place. How are you going to address the device if you don't know
> its virtual channel?

The DSI peripheral driver must know the VC IDs. Often they are hardcoded
values, and they can be defined in the driver code. I don't see why the
DSI host driver would need to know the VC IDs, as it can't really do
anything independently with the peripheral anyway. All the transactions
should be started by the DSI peripheral driver.

 Tomi



[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 901 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2013-12-05 14:37 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-18 16:25 [RFC v2 PATCH] mipi-dsi-bus: add MIPI DSI bus support Andrzej Hajda
2013-11-22 17:41 ` Thierry Reding
2013-11-25 15:05   ` Andrzej Hajda
2013-11-27 10:54     ` Thierry Reding
2013-11-29 15:28       ` Andrzej Hajda
2013-12-02 10:22         ` Thierry Reding
2013-12-05 14:37       ` Tomi Valkeinen [this message]
2013-12-06 12:54         ` Thierry Reding
2013-12-09 11:34           ` Tomi Valkeinen
2013-12-09 13:10             ` Thierry Reding
2013-12-09 15:05               ` Tomi Valkeinen
2013-12-09 16:10                 ` Thierry Reding
2013-12-10  9:19                   ` Tomi Valkeinen
2013-12-12 12:19                     ` Thierry Reding
2013-12-13 11:21                       ` Tomi Valkeinen
2013-12-13 11:22                       ` Andrzej Hajda
2013-12-13 11:29                         ` Tomi Valkeinen
2013-12-13 12:06                           ` Thierry Reding
2013-12-13 12:23                             ` Tomi Valkeinen

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=52A08FB3.5040800@ti.com \
    --to=tomi.valkeinen@ti.com \
    --cc=a.hajda@samsung.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=kyungmin.park@samsung.com \
    --cc=thierry.reding@gmail.com \
    --cc=treding@nvidia.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.