Skip to content

Commit

Permalink
drm/radeon: Fix memory allocation failures in the preKMS command stre…
Browse files Browse the repository at this point in the history
…am checking.

Allocation of single large block of memory may fail under memory
presure. drm_buffer object can hold one large block of data in
multiple independ pages which preents alloation failures.

This patch converts all access to command stream to use drm_buffer
interface. All direct access to array has to go tough drm_buffer
functions to get correct pointer.

Outputting the command stream to ring buffer needs to be awear of
the split nature of drm_buffer. The output operation requires the
new OUT_RING_DRM_BUFFER.

Signed-off-by: Pauli Nieminen <suokkos@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Pauli Nieminen authored and Dave Airlie committed Feb 22, 2010
1 parent 7a9f0dd commit b4fe945
Show file tree
Hide file tree
Showing 3 changed files with 262 additions and 247 deletions.
Loading

0 comments on commit b4fe945

Please sign in to comment.