dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Kyungmin Park <kyungmin.park@samsung.com>
To: 'Dave Airlie' <airlied@gmail.com>, 'Inki Dae' <inki.dae@samsung.com>
Cc: rob@ti.com, eric.y.miao@gmail.com,
	dri-devel@lists.freedesktop.org,
	'Kyungmin Park' <kmpark@infradead.org>
Subject: RE: Review request to DRM Driver for Samsung SoC Exynos4210.
Date: Tue, 30 Aug 2011 09:01:40 +0900	[thread overview]
Message-ID: <062401cc66a7$feebce60$fcc36b20$%park@samsung.com> (raw)
In-Reply-To: <CAPM=9txHvffNpm4kawuZQfeJXwo-q-gh+oJcK2bBdyyotcVPOA@mail.gmail.com>

CC Eric (freescale), Rob (TI) who working the DRM with other ARM SoCs.

As Dave mentioned, Please review Samsung DRM codes.

Thank you,
Kyungmin Park

-----Original Message-----
From: Dave Airlie [mailto:airlied@gmail.com] 
Sent: Monday, August 29, 2011 11:27 PM
To: Inki Dae
Cc: airlied@linux.ie; kyungmin.park@samsung.com;
dri-devel@lists.freedesktop.org
Subject: Re: Review request to DRM Driver for Samsung SoC Exynos4210.

> I had sent DRM Driver for Samsung SoC Exynos4210 over the three times.
>
> But I didn't received any comments from you.

I was sort of hoping someone else would take a look at these ARM
drivers before me, it might be worth getting some inter-company review
between the vendors submitting drm components as I'm guessing its
going to be a lot of the same thing.

But I've done a quick review and some things that stick out.

1. include/drm/samsung_drm.h should only contain public information
for use on the userspace ioctl interface, it shouldn't contain any
kernel private data structures, they should be in
drivers/gpu/drm/samsung/samsung_drv.h or something very similiar.

2. I'm not sure why samsung_drm_fn_encoder exists, it looks like from
the crtc mode set functions you call the encoder mode set functions,
is it not possible to use the helper drm_crtc_helper_set_mode so that
the crtc mode set is called then the encoder ones without having the
explicit calls? If not please either document it or point at the
explaination I missed.

3. Not terribly urgent but is samsung the best name for this? what
happens if you bring out another chip, I also think there is a lot of
samsung_drm_ in function names that seems not that useful. dropping
_drm_ might help.

4 ioctls: drm_samsung_gem_map_off needs explicit padding before the
64-bit, drm_samsung_gem_mmap needs explicit padding before the
64-bit,, though I'm not sure you need these ioctls all now that the
dumb interface is upstream,

what is usr_addr in the gem create ioctl for? this seems wrong, it
also looks too short for 64-bit addresses, but passing in userspace
addr to kernel is generally not a great plan.

5. you probably don't need master_create/set ops.

Dave.

  reply	other threads:[~2011-08-30  0:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-29 10:31 Review request to DRM Driver for Samsung SoC Exynos4210 Inki Dae
2011-08-29 14:26 ` Dave Airlie
2011-08-30  0:01   ` Kyungmin Park [this message]
2011-08-30  5:27   ` Inki Dae
2011-08-30  9:46     ` Dave Airlie
2011-08-30 12:38       ` Inki Dae
2011-08-30 22:16         ` Rob Clark
2011-08-31  4:36           ` Inki Dae

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='062401cc66a7$feebce60$fcc36b20$%park@samsung.com' \
    --to=kyungmin.park@samsung.com \
    --cc=airlied@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=eric.y.miao@gmail.com \
    --cc=inki.dae@samsung.com \
    --cc=kmpark@infradead.org \
    --cc=rob@ti.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