All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomi Valkeinen <tomi.valkeinen@ti.com>
To: Rob Clark <robdclark@gmail.com>
Cc: dri-devel <dri-devel@lists.freedesktop.org>
Subject: Re: Multiple issues with omapdrm
Date: Wed, 5 Jun 2013 15:16:04 +0300	[thread overview]
Message-ID: <51AF2C04.9010406@ti.com> (raw)
In-Reply-To: <CAF6AEGvBnn+1RvjBuUHsWopWKQpe_cQKcDHZ1Kcfh=F=B6AYsQ@mail.gmail.com>


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

On 05/06/13 14:52, Rob Clark wrote:
> On Wed, Jun 5, 2013 at 7:35 AM, Tomi Valkeinen <tomi.valkeinen@ti.com> wrote:
>> On 05/06/13 13:57, Rob Clark wrote:
>>
>>> 1) drmOpen("omap") will try to modprobe "omap", not "omapdrm" so we
>>> need to rename the .ko
>>
>> Has something been changed that broke that? Or was "omapdrm" just a
>> badly chosen name from the start? If drmOpen("omapdrm") works now,
>> doesn't changing the module name break userspace compatibility?
> 
> it was broken all along, because you need to drmOpen("omap") so the
> module should have been called omap.ko from the beginning

But it wasn't, so wouldn't changing it break userspace compatibility?

Why do you "need" drmOpen("omap")? Is it just a convention to use that
kind of name, instead of "omapdrm" style name?

>> I had a quick look at libdrm. It calls server_info->load_module() but I
>> couldn't figure out where that call actually goes...
> 
> it's registered from xserver, fyi

Ah ok. So in my testing, running without X, there's actually no module
loading happening. The test tools print something like "trying to load
module omapdrm...success." but I guess that only means that the module
is already there.

>>> 2) sorting out the modprobe of panel drivers..  although with the
>>> current structure of omapdrm+omapdss I can't think of any clean way to
>>> handle this.  I suppose we could do a hack with a bunch of
>>> request_module()s
>>
>> If omapdrm and omapdss were merged, what would be the clean way be? Or
>> did you mean some other structure?
> 
> well, then we'd just build it all into one .ko

So you didn't actually mean omapdrm+omapdss, but omapdrm + omapdss +
all-the-panel-drivers? And then have some kind of forced method to probe
the panels at omapdrm start?

That would be quite a horrible solution, in my opinion =). It would also
be even worse when we get platform independent panel drivers, as all the
drm drivers using those panel drivers would include all the panel drivers.

>> I'm no expert on this, but my understanding is that udev (or such)
>> should load the modules for the devices that the board has. If it's a
>> requirement that the drm drivers are loaded only by a call to drmOpen()
>> (why is that?), then maybe udev could load only the panel drivers.
> 
> I'm not quite sure the entire history offhand.. maybe drmOpen()
> pre-dated that?  At any rate, the main issue is just ensuring the
> panel modules (if they are split out into different .ko's) are loaded
> first

I think there should be a core display facility in the kernel to which
the panel drivers register the displays in probe().

At boot time udev would go through /sys, find the panel devices somehow
(how? modalias is probably somehow involved..), and load their
respective modules.

Later, when X is started, omapdrm and omapdss are loaded, and at that
point all the panels are already there.

 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

  reply	other threads:[~2013-06-05 12:16 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-05  8:59 Multiple issues with omapdrm Tomi Valkeinen
2013-06-05 10:43 ` Rob Clark
2013-06-05 10:55   ` Tomi Valkeinen
2013-06-05 10:57   ` Rob Clark
2013-06-05 11:35     ` Tomi Valkeinen
2013-06-05 11:52       ` Rob Clark
2013-06-05 12:16         ` Tomi Valkeinen [this message]
2013-06-05 14:58           ` Rob Clark
2013-06-06  7:14             ` Tomi Valkeinen
2013-06-06 11:25               ` Rob Clark
2013-06-06 19:35                 ` Dave Airlie

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=51AF2C04.9010406@ti.com \
    --to=tomi.valkeinen@ti.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=robdclark@gmail.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.