[RFC] ttm merge ttm_backend & ttm_tt

Jerome Glisse j.glisse at gmail.com
Tue Nov 1 18:11:37 PDT 2011


Hi,

So attached is patch serie (sorry for that i am away of my normal mail
config) which ultimately merge ttm_backend & ttm_tt it allows to get
rid of data duplication btw the two, especialy btw ttm_tt and driver
specific backend. So net result is less 300lines of code accross ttm
and driver.

Konrad given some of the upstream nouveau change, your patchserie
conflict and would lead to revert some nouveau fixes. I believe the
intention is to get the ttm-dma code into 3.3 (3.2 seems late but
dunno). If 3.3 is the aim than i will rebase your patch on top of this
serie, this should lower the number of change your serie needed.

Note that this is early code, only compile tested, i just wanted to
get feedback to know if anyone has objection on that.

For quick review, first 5 patches can be ignored, they are cleanup and
dead code removal or small fixes. The real action is in the last
patch.

Next set is to move page allocation through ttm_helper into the driver
thus making the whole dma stuff a driver business, driver who don't
care about dma (like vmw) could ignore it, while driver that have to
would deal with it through ttm_helper.

Cheers,
Jerome
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-drm-ttm-remove-userspace-backed-ttm-object-support.patch
Type: application/octet-stream
Size: 9288 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20111101/9fa0f9b2/attachment-0006.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-drm-ttm-remove-split-btw-highmen-and-lowmem-page.patch
Type: application/octet-stream
Size: 3194 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20111101/9fa0f9b2/attachment-0007.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-drm-ttm-remove-unused-backend-flags-field.patch
Type: application/octet-stream
Size: 1527 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20111101/9fa0f9b2/attachment-0008.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-drm-ttm-convert-page-allocation-to-use-page-ptr-arra.patch
Type: application/octet-stream
Size: 13246 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20111101/9fa0f9b2/attachment-0009.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-drm-ttm-test-for-dma_address-array-allocation-failur.patch
Type: application/octet-stream
Size: 896 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20111101/9fa0f9b2/attachment-0010.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-drm-ttm-merge-ttm_backend-and-ttm_tt.patch
Type: application/octet-stream
Size: 40639 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20111101/9fa0f9b2/attachment-0011.obj>


More information about the dri-devel mailing list