From: Konrad Rzeszutek Wilk Subject: Re: [PATCH 05/25] vmwgfx: Make sure the reserved area is at the start of vram Date: Mon, 3 Oct 2011 13:40:51 -0400 Message-ID: <20111003174051.GB13271@phenom.oracle.com> References: <1317219021-4155-1-git-send-email-thellstrom@vmware.com> <1317219021-4155-6-git-send-email-thellstrom@vmware.com> <20110929214251.GB9091@phenom.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by gabe.freedesktop.org (Postfix) with ESMTP id 37ADAA027C for ; Mon, 3 Oct 2011 10:41:10 -0700 (PDT) Content-Disposition: inline In-Reply-To: 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: Jakob Bornecrantz Cc: Thomas Hellstrom , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org On Mon, Oct 03, 2011 at 03:18:32AM +0200, Jakob Bornecrantz wrote: > On Thu, Sep 29, 2011 at 11:42 PM, Konrad Rzeszutek Wilk > wrote: > > On Wed, Sep 28, 2011 at 04:10:01PM +0200, Thomas Hellstrom wrote: > >> From: Jakob Bornecrantz > >> > >> Signed-off-by: Jakob Bornecrantz > >> Reviewed-by: Thomas Hellstrom > >> --- > >> =A0drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | =A0 =A05 ++++- > >> =A01 files changed, 4 insertions(+), 1 deletions(-) > >> > >> diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmw= gfx/vmwgfx_kms.c > >> index c14eb76..8ac6cee 100644 > >> --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c > >> +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c > >> @@ -716,7 +716,10 @@ static int vmw_surface_dmabuf_pin(struct vmw_fram= ebuffer *vfb) > >> =A0 =A0 =A0 struct vmw_framebuffer_surface *vfbs =3D > >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 vmw_framebuffer_to_vfbs(&vfb->base); > >> =A0 =A0 =A0 unsigned long size =3D vfbs->base.base.pitch * vfbs->base.= base.height; > >> - =A0 =A0 int ret; > >> + =A0 =A0 struct ttm_placement ne_placement =3D vmw_vram_ne_placement; > >> + =A0 =A0 int ret =3D 0; > > > > So why the 'int ret =3D 0' ? That looks like it belongs to > > a different patch? > = > It doesn't do anything and is not a part of any later patch, > then again its okay to be paranoid. Ok. Just looked odd .. but no biggie.