From: Inki Dae Subject: RE: [PATCH 10/10] drm/exynos: added virtual display driver. Date: Thu, 15 Mar 2012 20:36:14 +0900 Message-ID: <002b01cd029f$d3eb4800$7bc1d800$%dae@samsung.com> References: <1331650024-10578-1-git-send-email-inki.dae@samsung.com> <1331650024-10578-11-git-send-email-inki.dae@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mailout1.samsung.com (mailout1.samsung.com [203.254.224.24]) by gabe.freedesktop.org (Postfix) with ESMTP id 256AAA0B46 for ; Thu, 15 Mar 2012 04:36:18 -0700 (PDT) Received: from epcpsbgm2.samsung.com (mailout1.samsung.com [203.254.224.24]) by mailout1.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0M0X00AL6C7QMQ60@mailout1.samsung.com> for dri-devel@lists.freedesktop.org; Thu, 15 Mar 2012 20:36:17 +0900 (KST) Received: from NOINKIDAE02 ([165.213.219.102]) by mmp2.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTPA id <0M0X004MBC8LY880@mmp2.samsung.com> for dri-devel@lists.freedesktop.org; Thu, 15 Mar 2012 20:36:21 +0900 (KST) In-reply-to: Content-language: ko List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: 'Dave Airlie' Cc: kyungmin.park@samsung.com, sw0312.kim@samsung.com, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org > -----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 { > > =A0 =A0 =A0 =A0uint64_t mapped; > > =A0}; > > > > +/** > > + * 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 > > + * =A0 =A0 128bytes edid data. > > + * @pad: just padding to be 64-bit aligned. > > + * @edid: the edid data pointer from user side. > > + */ > > +struct drm_exynos_vidi_connection { > > + =A0 =A0 =A0 unsigned int connection; > > + =A0 =A0 =A0 unsigned int extensions; > > + =A0 =A0 =A0 unsigned int pad; > > + =A0 =A0 =A0 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. Thanks, Inki Dae