From: Jerome Glisse <j.glisse@gmail.com>
To: Jammy Zhou <jammy.zhou@linaro.org>
Cc: Dave Martin <dave.martin@linaro.org>,
linaro-dev@lists.linaro.org, Arnd Bergmann <arnd@arndb.de>,
Linus Walleij <linus.walleij@linaro.org>,
dri-devel@lists.freedesktop.org,
Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org>
Subject: Re: Freescale Linux BSP review
Date: Mon, 13 Dec 2010 21:06:47 -0500 [thread overview]
Message-ID: <AANLkTinRdmfL+Jce_gRwuWP_F-G82a9hsUwtH8H-+_N5@mail.gmail.com> (raw)
In-Reply-To: <AANLkTimfKMG7yd16+KqOgeGzzwm1ij1h1C8WL5MpBCx=@mail.gmail.com>
On Mon, Dec 13, 2010 at 9:04 PM, Jammy Zhou <jammy.zhou@linaro.org> wrote:
>
>
> On Tue, Dec 14, 2010 at 12:11 AM, Jerome Glisse <j.glisse@gmail.com> wrote:
>>
>> On Mon, Dec 13, 2010 at 10:18 AM, Arnd Bergmann <arnd@arndb.de> wrote:
>> > On Monday 13 December 2010, Jammy Zhou wrote:
>> >> On Mon, Dec 13, 2010 at 4:45 AM, Linus Walleij
>> >> <linus.walleij@linaro.org>wrote:
>> >>
>> >> > On 11 December 2010 22:41, Arnd Bergmann <arnd@arndb.de> wrote:
>> >> >
>> >> > * amd-gpu -- a single but huge driver for the GPU. As is normally the
>> >> >> case with GPU drivers, we can expect long discussions
>> >> >> before it will get considered for mainline
>> >> >> 4 patches
>> >> >> 98 files changed, 278321 insertions(+), 0 deletions(-)
>> >> >>
>> >> >
>> >> > Just out of curiosity, following the discussion between Dave Airlie
>> >> > and Codeaurora this summer re GPU driver shims.
>> >> >
>> >> > Is the AMD GPU exposing all functionality in its kernel driver or
>> >> > is there some userspace blob somewhere with lots of e.g. GL
>> >> > goodies?
>> >> >
>> >> All the functionality for the kernel driver of AMD GPU Z430/Z160 (now
>> >> belongs to Qualcom) is exposed. But we need accompanied userspace
>> >> library to
>> >> call these functionality (buffer management, command submission, ...).
>> >
>> > Who owns these components? If it's closed source, the only options we
>> > have are lobbying for complete release of the specs for a
>> > reimplementation
>> > or reverse-engineering the drivers, which may at least get easier with
>> > a user space driver than it would be with a kernel driver.
>> >
>> > Until there is a solution with an open source user space part, I would
>> > suggest that the driver better be dropped from the Freescale BSP and
>> > we should at least not waste time reviewing it.
>> >
>> > Arnd
>>
>> From a quick look it also seems that the API exposed to userspace
>> would allow easy abuse of the GPU to access any system ram. There is a
>> reason we do expensive command checking in the other amd gpu driver
>> (drivers/gpu/drm/radeon/*cs.c files)
>
> No, the memory used by the GPU is reserved at boot time, so I think there is
> no such a problem.
>
>>
>> Cheers,
>> Jerome
>
>
This isn't about what's reserved, this is about GPU capacity, if the
GPU is isolated through an IOMMU and the GPU can't reprogram it then
fine. But if not, then it's easy to abuse packet to reprogram the GPU
GART (either by reprogramming GART register or by overwritting GART
table) to point to any system ram.
Cheers,
Jerome
next prev parent reply other threads:[~2010-12-14 2:06 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <A0FE16A2704AB741A3E0B2C29D6E77FF015710@039-SN1MPN1-004.039d.mgd.msft.net>
[not found] ` <AANLkTinV7C90jy=DdLMO6=_dti6TsTCRsD8o3tTT0J=3@mail.gmail.com>
[not found] ` <AANLkTimu8MKUoF7ywpkdGXdLocDp9e_5ya-0Rh0JFhhx@mail.gmail.com>
[not found] ` <AANLkTimu8MKUoF7ywpkdGXdLocDp9e_5ya-0Rh0JFhhx-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-13 15:18 ` Freescale Linux BSP review Arnd Bergmann
2010-12-13 16:11 ` Jerome Glisse
[not found] ` <AANLkTikqKb238p5kdwWu55-e5rr9CfP8gPdYE=ztpms_-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-14 2:04 ` Jammy Zhou
2010-12-14 2:06 ` Jerome Glisse [this message]
[not found] ` <AANLkTinRdmfL+Jce_gRwuWP_F-G82a9hsUwtH8H-+_N5-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-14 2:30 ` Jammy Zhou
2010-12-14 2:35 ` Jerome Glisse
[not found] ` <201012131618.04298.arnd-r2nGTMty4D4@public.gmane.org>
2010-12-14 1:59 ` Jammy Zhou
[not found] ` <AANLkTikpN0ALBKmhaT6eQG2oecti-81FPB80OPp3+VcS-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-14 2:35 ` Eric Miao
[not found] ` <AANLkTikNW7T2_=UMB=uf7w+fW5V7FX0wA4jrx8J=2EZL-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-14 8:59 ` Marcin Juszkiewicz
2010-12-14 13:15 ` Arnd Bergmann
2010-12-20 16:18 ` Matt Sealey
[not found] ` <AANLkTinGNK3Jv5wfjmAzwvV3xcKsTVcO7PLb+v7Py0TX-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-20 17:17 ` Jerome Glisse
[not found] ` <AANLkTikgXy8jr5Obxk9CYTX8BUvsOiO5sMpUsEcsdQxV-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-20 17:41 ` Matt Sealey
[not found] ` <AANLkTikxidr1eFmMxFNWGLmpN4Kn1MTcDiX52yUXBbR7-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-20 18:07 ` Jerome Glisse
[not found] ` <AANLkTimO9gQ3uOor3DBW8=EAe8-cVPz9jm9-UmGv1GhV-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-20 19:29 ` Arnd Bergmann
2010-12-20 20:14 ` Alan Cox
2010-12-20 19:54 ` Dave Airlie
2010-12-20 20:09 ` Alan Cox
2010-12-21 2:17 ` Piotr Gluszenia Slawinski
[not found] ` <Pine.LNX.4.64.1012210313040.9770-APZTmCvJ1e4cvTeJY7g42e4opr6GJZWbqwyb7XGsRfw@public.gmane.org>
2010-12-21 11:50 ` Arnd Bergmann
[not found] ` <201012211250.10793.arnd-r2nGTMty4D4@public.gmane.org>
2010-12-21 17:29 ` Matt Sealey
2010-12-21 19:12 ` Arnd Bergmann
[not found] ` <AANLkTimotkPt5fc8-3DPSK5urD-1+XroagLcFdhjc4zu-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-22 1:32 ` Dave Airlie
2010-12-22 1:54 ` Piotr Gluszenia Slawinski
[not found] ` <Pine.LNX.4.64.1012220252230.9770-APZTmCvJ1e4cvTeJY7g42e4opr6GJZWbqwyb7XGsRfw@public.gmane.org>
2010-12-22 2:36 ` Dave Airlie
2010-12-22 3:07 ` Piotr Gluszenia Slawinski
[not found] ` <AANLkTikENVUbf76ck6XeXC0+na9-EpEtWgjS_mD2G26--JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-22 7:51 ` Matt Sealey
[not found] ` <AANLkTinKO8UHO8RcrVHyZi3jbi_Y==-HZ86eBnfXBgZ--JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-22 11:02 ` Konstantinos Margaritis
[not found] ` <AANLkTikmK+SOupH3WsB338QQ=Wwg6dGgaM6SfK_XxUC9-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-22 11:49 ` David Rusling
[not found] ` <865A2CE2-D623-4478-A96B-6DF7942AEC39-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2010-12-22 17:20 ` Nicolas Pitre
[not found] ` <alpine.LFD.2.00.1012221006130.10437-QuJgVwGFrdf/9pzu0YdTqQ@public.gmane.org>
2010-12-22 17:38 ` Tom Gall
[not found] ` <AANLkTimbn4FBQM0FQCyuweTE7g0__T5rnvpcPrZdGDuN-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-22 18:23 ` Nicolas Pitre
2010-12-22 18:39 ` Piotr Gluszenia Slawinski
[not found] ` <Pine.LNX.4.64.1012221932410.9770-APZTmCvJ1e4cvTeJY7g42e4opr6GJZWbqwyb7XGsRfw@public.gmane.org>
2010-12-22 18:49 ` Konstantinos Margaritis
[not found] ` <AANLkTi=Zo=Y=9170DCp1_7uzwePzmzXxxroobXzExHOM-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-22 19:22 ` Nicolas Pitre
[not found] ` <alpine.LFD.2.00.1012221411330.10437-QuJgVwGFrdf/9pzu0YdTqQ@public.gmane.org>
2010-12-22 19:46 ` Konstantinos Margaritis
[not found] ` <AANLkTikCPqqjhU+QtYtpYusgQfOBAtK2vWX3b6gidaFF-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-12-22 20:09 ` Dave Airlie
2010-12-22 20:29 ` Nicolas Pitre
2010-12-22 23:52 ` Xavier Bestel
2010-12-23 0:19 ` Nicolas Pitre
2010-12-22 20:30 ` Piotr Gluszenia Slawinski
2010-12-22 20:20 ` Piotr Gluszenia Slawinski
2010-12-23 17:17 ` Alan Cox
[not found] ` <20101223171701.72cb14db-qBU/x9rampVanCEyBjwyrvXRex20P6io@public.gmane.org>
2010-12-23 17:40 ` David Rusling
2010-12-22 18:23 ` Jerome Glisse
2010-12-23 16:46 ` Alan Cox
2010-12-23 16:07 ` Matthew Garrett
2010-12-14 8:42 ` Dave Airlie
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=AANLkTinRdmfL+Jce_gRwuWP_F-G82a9hsUwtH8H-+_N5@mail.gmail.com \
--to=j.glisse@gmail.com \
--cc=arnd@arndb.de \
--cc=dave.martin@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=jammy.zhou@linaro.org \
--cc=linaro-dev@lists.linaro.org \
--cc=linus.walleij@linaro.org \
--cc=marcin.juszkiewicz@linaro.org \
/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;
as well as URLs for NNTP newsgroup(s).