From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Christian_K=c3=b6nig?= Subject: Re: Fw: add find_bo_from_cpu_mapping interface Date: Thu, 3 Dec 2015 20:01:41 +0100 Message-ID: <56609195.1070006@vodafone.de> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2035479238==" Return-path: Received: from pegasos-out.vodafone.de (pegasos-out.vodafone.de [80.84.1.38]) by gabe.freedesktop.org (Postfix) with ESMTP id 8E87C6E384 for ; Thu, 3 Dec 2015 11:01:46 -0800 (PST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: "Zhou, David(ChunMing)" , "dri-devel@lists.freedesktop.org" List-Id: dri-devel@lists.freedesktop.org This is a multi-part message in MIME format. --===============2035479238== Content-Type: multipart/alternative; boundary="------------000007040509080006090002" This is a multi-part message in MIME format. --------------000007040509080006090002 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Well a bit background would probably help here. This is useful because certain applications are hopelessly braindead and pass a CPU which they got from the driver in the first place and which is a pointer to a memory mapped BO back to the driver. With this IOCTL the driver is capable to handle this case gracefully and use the original BO for example as replacement for an userptr. Regards, Christian. On 03.12.2015 14:02, Zhou, David(ChunMing) wrote: > > > UMD can find the bo by the cpu address of BO. Any comments? > > > Regards, > > David Zhou > > > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/dri-devel --------------000007040509080006090002 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Well a bit background would probably help here.

This is useful because certain applications are hopelessly braindead and pass a CPU which they got from the driver in the first place and which is a pointer to a memory mapped BO back to the driver.

With this IOCTL the driver is capable to handle this case gracefully and use the original BO for example as replacement for an userptr.

Regards,
Christian.

On 03.12.2015 14:02, Zhou, David(ChunMing) wrote:


=C2=A0

UMD can find the bo by the cpu address of BO. Any comments?


Regards,

David Zhou



_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/=
dri-devel

--------------000007040509080006090002-- --===============2035479238== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHA6Ly9saXN0 cy5mcmVlZGVza3RvcC5vcmcvbWFpbG1hbi9saXN0aW5mby9kcmktZGV2ZWwK --===============2035479238==--