linux-tegra.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Terje Bergström" <tbergstrom-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
To: Thierry Reding
	<thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.org>
Cc: "linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Mark Zhang <markz-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>,
	Stephen Warren <swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
Subject: Re: Binding together tegradrm & nvhost
Date: Mon, 20 Aug 2012 16:33:35 +0300	[thread overview]
Message-ID: <50323CAF.4080407@nvidia.com> (raw)
In-Reply-To: <20120820131800.GA13785-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>

On 20.08.2012 16:18, Thierry Reding wrote:
> I have a new patch series that takes care of these two steps. Mark sent
> some patches for Tegra30 and HDMI on top of the older series that I need
> to merge with what I have. Maybe I'll decide to send the series out
> without the patches merged, depending on how much time I'll get or how
> much effort it requires. I had hoped the next series would have working
> HDMI support, which is why I waited.

Ok. I have done my testing on top of Mark's changes, but I don't have
your latest code. Looks like you have already solved some of the quirks
I found while trying out tegradrm.

I'm working mostly on Tegra30, so it helps me if we have Tegra30 support.

Let's hope the freedesktop.org work area gets created fast so that we
could keep our code bases in sync.

> Basically what I have is a very rudimentary driver for host1x, which
> waits for some of the subdevices to be registered and then creates a
> dummy device against which the Tegra DRM driver can bind. It's not quite
> what you proposed above, but very similar.

This sounds pretty good. I'll look into the subdevices implementation -
I might need to move their handling to nvhost. But until that happens,
this scheme sounds good.

> For now I've also put the host1x driver in the same directory as the
> Tegra DRM because there are no other users. We may want to change that
> at some point.

Ok. I can take care of exporting the host1x driver at the same time when
I get more functionality into it.

> Some thought will probably have to go into these. The easiest would
> probably be to have a driver that needs to do synchronization or other
> channel operations. It may make the requirements on the exact ioctls
> clearer.

Got it. When we are so far that there's channel support, I'll also write
a simple test program that performs some simple accelerated operation
with 2D unit. That test program can be used then as a template for other
user space code.

>> 4) Buffer management
> This should be cheap if we use GEM along with DMA-BUF. However without
> other drivers that the buffers can be shared with this won't do us any
> good. So maybe something like a video capturing driver for Tegra should
> be added first so we can actually test buffer sharing.

DMA-BUF could still help with sharing buffers between user space and
kernel, and between user space processes, so not all of the benefits
need another driver.

Terje

  parent reply	other threads:[~2012-08-20 13:33 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-20 13:01 Binding together tegradrm & nvhost Terje Bergström
     [not found] ` <50323513.3090606-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-08-20 13:18   ` Thierry Reding
     [not found]     ` <20120820131800.GA13785-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2012-08-20 13:33       ` Terje Bergström [this message]
2012-08-21  3:50       ` Dennis Gilmore
2012-08-21  5:39       ` Mark Zhang
2012-08-21  5:42         ` Thierry Reding
     [not found]           ` <20120821054256.GA5325-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2012-08-21  6:16             ` Mark Zhang
2012-08-21  6:21               ` Thierry Reding
2012-08-21 14:57               ` Thierry Reding
     [not found]                 ` <20120821145709.GA701-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2012-08-22  2:29                   ` Mark Zhang
2012-08-22  8:42                   ` Terje Bergström
     [not found]                     ` <50349B58.4000809-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-08-22 10:33                       ` Thierry Reding
     [not found]                         ` <20120822103309.GB31448-RM9K5IK7kjIQXX3q8xo1gnVAuStQJXxyR5q1nwbD4aMs9pC9oP6+/A@public.gmane.org>
2012-08-22 11:42                           ` Terje Bergström
2012-08-21  4:57   ` Mark Zhang
2012-08-21  5:40     ` Terje Bergström
     [not found]       ` <50331F32.4040903-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-08-21  6:12         ` Mark Zhang
2012-08-21  6:35           ` Terje Bergström
     [not found]             ` <50332C22.7090009-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org>
2012-08-21  7:12               ` Mark Zhang
2012-08-21 21:57               ` Stephen Warren
     [not found]                 ` <50340445.6010908-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-08-22  5:54                   ` Thierry Reding
2012-08-21 21:53   ` Stephen Warren
     [not found]     ` <50340343.1050206-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org>
2012-08-22  6:49       ` Thierry Reding

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=50323CAF.4080407@nvidia.com \
    --to=tbergstrom-ddmlm1+adcrqt0dzr+alfa@public.gmane.org \
    --cc=linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=markz-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
    --cc=swarren-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org \
    --cc=thierry.reding-RM9K5IK7kjKj5M59NBduVrNAH6kLmebB@public.gmane.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;
as well as URLs for NNTP newsgroup(s).