From: Inki Dae <inki.dae@samsung.com>
To: 'David Airlie' <airlied@redhat.com>
Cc: 'kyungmin park' <kyungmin.park@samsung.com>,
'sw0312 kim' <sw0312.kim@samsung.com>,
dri-devel@lists.freedesktop.org
Subject: RE: [PATCH 10/10] drm/exynos: added virtual display driver.
Date: Thu, 15 Mar 2012 21:01:30 +0900 [thread overview]
Message-ID: <002c01cd02a3$5b81a400$1284ec00$%dae@samsung.com> (raw)
In-Reply-To: <c2bee826-ce7e-4f42-adc6-ce88b9991426@zmail16.collab.prod.int.phx2.redhat.com>
> -----Original Message-----
> From: David Airlie [mailto:airlied@redhat.com]
> Sent: Thursday, March 15, 2012 8:44 PM
> To: Inki Dae
> Cc: kyungmin park; sw0312 kim; dri-devel@lists.freedesktop.org; Dave
> Airlie
> Subject: Re: [PATCH 10/10] drm/exynos: added virtual display driver.
>
>
>
> ----- Original Message -----
> > From: "Inki Dae" <inki.dae@samsung.com>
> > To: "Dave Airlie" <airlied@gmail.com>
> > Cc: "kyungmin park" <kyungmin.park@samsung.com>, "sw0312 kim"
> <sw0312.kim@samsung.com>,
> > dri-devel@lists.freedesktop.org
> > Sent: Thursday, 15 March, 2012 11:36:14 AM
> > Subject: RE: [PATCH 10/10] drm/exynos: added virtual display driver.
> >
> >
> >
> > > -----Original Message-----
> > > From: Dave Airlie [mailto:airlied@gmail.com]
> > > Sent: Thursday, March 15, 2012 7:44 PM
> > > To: Inki Dae
> > > Cc: dri-devel@lists.freedesktop.org; kyungmin.park@samsung.com;
> > > sw0312.kim@samsung.com
> > > Subject: Re: [PATCH 10/10] drm/exynos: added virtual display
> > > driver.
> > >
> > > > diff --git a/include/drm/exynos_drm.h b/include/drm/exynos_drm.h
> > > > index 907daaf..1123342 100644
> > > > --- a/include/drm/exynos_drm.h
> > > > +++ b/include/drm/exynos_drm.h
> > > > @@ -76,6 +76,22 @@ struct drm_exynos_gem_mmap {
> > > > uint64_t mapped;
> > > > };
> > > >
> > > > +/**
> > > > + * A structure for user connection request of virtual display.
> > > > + *
> > > > + * @connection: indicate whether doing connetion or not by user.
> > > > + * @extensions: if this value is 1 then the vidi driver would
> > > > need
> > > additional
> > > > + * 128bytes edid data.
> > > > + * @pad: just padding to be 64-bit aligned.
> > > > + * @edid: the edid data pointer from user side.
> > > > + */
> > > > +struct drm_exynos_vidi_connection {
> > > > + unsigned int connection;
> > > > + unsigned int extensions;
> > > > + unsigned int pad;
> > > > + void *edid;
> > > > +};
> > > > +
> > >
> > > No void * in ioctl structs use u64, also not sure why you have a
> > > 32-bit pad since you probably want it padded to 64-bit.
> > >
> > > Dave.
> >
> > Yes, right. I wanted it to be padded to 64-bit. and edid would point
> > to
> > buffer containing edit data and it would be passed from user to
> > kernel side
> > so for this, is it right to use u64? I will change variable type to
> > "void
> > __user *" if your missing point. please let me know if there is any
> > problem.
> >
>
> You need to use __u64 instead of a void, since void * isn't a fixed length
> across 32/64-bit.
>
> You'll notice this done a few places in the drm kms interfaces.
>
> Dave.
Ok, got it. thanks for your comment.
Inki Dae
next prev parent reply other threads:[~2012-03-15 12:01 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-13 14:46 [PATCH 00/10] updated exynos-drm-next Inki Dae
2012-03-13 14:46 ` [PATCH 01/10] drm/exynos: add HDMI version 1.4 support Inki Dae
2012-03-13 14:46 ` [PATCH 02/10] drm/exynos: added mode_fixup feature and code clean Inki Dae
2012-03-15 10:39 ` Dave Airlie
2012-03-15 11:21 ` Inki Dae
2012-03-16 4:52 ` InKi Dae
2012-03-13 14:46 ` [PATCH 03/10] drm/exynos: added buffer allocation type Inki Dae
2012-03-13 14:46 ` [PATCH 04/10] drm/exynos: added new funtion to get/put dma address Inki Dae
2012-03-13 14:46 ` [PATCH 05/10] drm/exynos: release pending pageflip events when closed Inki Dae
2012-03-13 14:47 ` [PATCH 06/10] drm/exynos: remove module of exynos drm subdrv Inki Dae
2012-03-13 14:47 ` [PATCH 07/10] drm/exynos: add subdrv open/close functions Inki Dae
2012-03-13 14:47 ` [PATCH 08/10] drm/exynos: add is_local member in exynos_drm_subdrv struct Inki Dae
2012-03-13 14:47 ` [PATCH 09/10] drm/exynos: add G2D driver Inki Dae
2012-03-15 10:50 ` Dave Airlie
2012-03-15 11:05 ` Joonyoung Shim
2012-03-16 6:28 ` Joonyoung Shim
2013-01-20 17:33 ` Rob Clark
2013-01-22 1:33 ` Inki Dae
2013-01-22 1:41 ` Rob Clark
2012-03-13 14:47 ` [PATCH 10/10] drm/exynos: added virtual display driver Inki Dae
2012-03-15 10:44 ` Dave Airlie
2012-03-15 11:36 ` Inki Dae
2012-03-15 11:43 ` David Airlie
2012-03-15 12:01 ` Inki Dae [this message]
2012-03-13 15:00 ` [RESEND][PATCH 01/10] drm/exynos: add HDMI version 1.4 support Inki Dae
2012-03-13 15:00 ` [RESEND][PATCH 09/10] drm/exynos: add G2D driver Inki Dae
2012-03-15 10:52 ` [RESEND][PATCH 01/10] drm/exynos: add HDMI version 1.4 support Dave Airlie
2012-03-15 10:59 ` Joonyoung Shim
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='002c01cd02a3$5b81a400$1284ec00$%dae@samsung.com' \
--to=inki.dae@samsung.com \
--cc=airlied@redhat.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=kyungmin.park@samsung.com \
--cc=sw0312.kim@samsung.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