Skip to content

Commit

Permalink
drm/radeon/kms: don't require up to 64k allocations. (v2)
Browse files Browse the repository at this point in the history
This avoids needing to do a kmalloc > PAGE_SIZE for the main
indirect buffer chunk, it adds an accessor for all reads from
the chunk and caches a single page at a time for subsequent
reads.

changes since v1:
Use a two page pool which should be the most common case
a single packet spanning > PAGE_SIZE will be hit, but I'm
having trouble seeing anywhere we currently generate anything like that.
hopefully proper short page copying at end
added parser_error flag to set deep errors instead of having to test
every ib value fetch.
fixed bug in patch that went to list.

Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Dave Airlie authored and Dave Airlie committed Sep 25, 2009
1 parent 35e4b7a commit 513bcb4
Show file tree
Hide file tree
Showing 7 changed files with 370 additions and 271 deletions.
Loading

0 comments on commit 513bcb4

Please sign in to comment.