dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
From: "Marco Diego Aurélio Mesquita" <marcodiegomesquita@gmail.com>
To: Hans de Goede <hdegoede@redhat.com>
Cc: Daniel Vetter <daniel.vetter@intel.com>,
	Emil Velikov <emil.l.velikov@gmail.com>,
	ML dri-devel <dri-devel@lists.freedesktop.org>
Subject: Re: [RFC 0/1] drm: Add Grain Media GM12U320 kms driver
Date: Fri, 9 Jun 2017 17:59:22 -0300	[thread overview]
Message-ID: <CAE_m23kcdhyJBz_srnq=NeMiiPxOV+pPFvCiWQB+8mKrc=kD4w@mail.gmail.com> (raw)
In-Reply-To: <ea0132eb-061f-7d15-0720-be0514366e1d@redhat.com>

Hi Devs!

On Thu, Jun 8, 2017 at 4:08 AM, Hans de Goede <hdegoede@redhat.com> wrote:
> I don't think that using cma for the gm12u320 is a good idea, it will
> typically be used as a secondary GPU output together with a real GPU
> extending the desktop by being a prime display output. So for the memory
> management stuff I would keep the code copied from the udl driver (which
> we may later split out in a separate helper lib for devices where
> the framebuffer is in normal system memory and we have some scather-gather
> capable process copying it to the real device over e.g. USB)
>

I got the PL111 driver and stripped all device specific code. Also, I
added the get_modes and driver usb probe functions from gm12u320. The
resulting code is available in
https://gitlab.com/marcodiego/dummy-display-driver .

The driver compiles, loads, identifies the device when I plug it,
/dev/fb1 is created adequately but it stops there. Gnome monitors tool
does not see it as a new monitor. What I expected was that it would be
seen as a new monitor and that I could even activate it. Instead,
syslog complains: "Cannot find any crtc or sizes".

Anyway, I think this is a first step. My first doubt: where should I
go from now? What should I change in the driver so that gnome monitors
tool sees it as a new monitor and I could activate it, even if it
works as a mere dummy device?

Second doubt is: is this really the simplest/best way? I mean, the
repaper driver that Emil pointed seems a lot simpler, wouldn't it be
better to mimic it? How complicated is it to modify the repaper driver
to build a dummy driver?

By dummy driver, I mean something that gnome monitors tools can
identify as a new monitor and I can activate it. I hope to reach a
point where the update or dirty callback is called. From that point on
it is just a matter of sending the framebuffer through USB the way
gm12u320 does currently.

Thanks!
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2017-06-09 20:59 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-01 11:59 [RFC 0/1] drm: Add Grain Media GM12U320 kms driver Hans de Goede
2017-06-01 11:59 ` [RFC] " Hans de Goede
2017-06-20  8:57   ` Daniel Vetter
2017-06-01 22:46 ` [RFC 0/1] " Marco Diego Aurélio Mesquita
2017-06-02 16:14   ` Emil Velikov
2017-06-02 16:39     ` Marco Diego Aurélio Mesquita
2017-06-07 10:30       ` Emil Velikov
2017-06-07 15:35         ` Marco Diego Aurélio Mesquita
2017-06-07 16:56           ` Noralf Trønnes
2017-06-07 18:46             ` Marco Diego Aurélio Mesquita
2017-06-07 19:38               ` Noralf Trønnes
2017-06-07 19:50                 ` Marco Diego Aurélio Mesquita
2017-06-07 20:19                   ` Noralf Trønnes
2017-06-07 21:14                     ` Noralf Trønnes
2017-06-08  7:08                       ` Hans de Goede
2017-06-09 20:59                         ` Marco Diego Aurélio Mesquita [this message]
2017-06-09 22:31                           ` Noralf Trønnes
2017-06-10 17:14                             ` Marco Diego Aurélio Mesquita
2017-06-10 18:39                               ` Hans de Goede
2017-06-11 17:20                                 ` Marco Diego Aurélio Mesquita
2017-06-11 19:22                                   ` Hans de Goede
2017-06-11 20:24                                   ` Noralf Trønnes
2017-06-10  9:49                           ` Hans de Goede

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='CAE_m23kcdhyJBz_srnq=NeMiiPxOV+pPFvCiWQB+8mKrc=kD4w@mail.gmail.com' \
    --to=marcodiegomesquita@gmail.com \
    --cc=daniel.vetter@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=emil.l.velikov@gmail.com \
    --cc=hdegoede@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).