Fixing kernel memory allocation bugs in radeon command stream parser requires 
splitting the buffer to multiple independ pages.

To make splitting one large array to multiple pages first patch adds drm_buffer 
structure and functions to reference data in the buffer.

Second patch converts existing parsing code to use drm_buffer to hold the 
command stream.

There is 2 beta tester reporting that patch works with their r300 based 
systems. I have tested the patch with r200 card.

After posting patch to the bug report I have cleaned the code from errors that 
checkpatch.pl reported.

 drivers/gpu/drm/Makefile              |    2 +-
 drivers/gpu/drm/drm_buffer.c          |  184 +++++++++++++++++++++
 drivers/gpu/drm/radeon/r300_cmdbuf.c  |  280 +++++++++++++++------------------
 drivers/gpu/drm/radeon/radeon_drv.h   |   32 ++++-
 drivers/gpu/drm/radeon/radeon_state.c |  197 ++++++++++++-----------
 include/drm/drm_buffer.h              |  148 +++++++++++++++++
 6 files changed, 595 insertions(+), 248 deletions(-)

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to