diff options
author | Christian König <christian.koenig@amd.com> | 2017-04-27 18:19:46 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-12-06 18:48:03 +0100 |
commit | 6cd2e71e897f423412c6d5d0d1190341935d36b5 (patch) | |
tree | d66254e9643d5582568410fe3c84994b136cc719 /drivers/gpu/drm | |
parent | drm/ttm: add context to driver move callback as well (diff) | |
download | linux-6cd2e71e897f423412c6d5d0d1190341935d36b5.tar.xz linux-6cd2e71e897f423412c6d5d0d1190341935d36b5.zip |
drm/ttm: add number of bytes moved to the operation context
Add some statistics how many bytes we have moved.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_bo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index d3448c38f00d..97c3da6d5f17 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c @@ -361,6 +361,7 @@ moved: else bo->offset = 0; + ctx->bytes_moved += bo->num_pages << PAGE_SHIFT; return 0; out_err: |