drm/radeon: fix page directory update size estimation
Subsystems (2)
PATCH 1/2 drm/radeon: fix page directory update size estimation
From: Christian König <[email protected]>
Take padding into account as well.
--- drivers/gpu/drm/radeon/radeon_vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/radeon_vm.c +1 -1
@@ -595,7 +595,7 @@ int radeon_vm_update_page_directory(struct radeon_device *rdev, ndw =64 ;/* assume the worst case */ - ndw += vm->max_pde_used *12 ; + ndw += vm->max_pde_used *16 ;/* update too big for an IB */ if (ndw >0xfffff )
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/2 drm/radeon: fix buffer placement under memory pressure v2
From: Christian König <[email protected]>
Some buffers (UVD/VM page tables) must be placed in VRAM, but the byte restriction for moving buffers didn't took this into account.
v2: keep closer to the original code
--- drivers/gpu/drm/radeon/radeon_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/radeon/radeon_object.c +1 -1
@@ -458,7 +458,7 @@ int radeon_bo_list_validate(struct radeon_device *rdev,* into account. We don't want to disallow buffer moves * completely. */ -if (current_domain !=RADEON_GEM_DOMAIN_CPU && +if ((lobj->alt_domain & current_domain) !=0 && (domain & current_domain) ==0 &&/* will be moved */ bytes_moved > bytes_moved_threshold) {/* don't move it */
Signature · 6 lines
1.9.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 2/2] drm/radeon: fix buffer placement under memory pressure v2
For the patch:
It would be clearer if alt_domain was renamed to allowed_domains.
Marek
Quoted 29 lines · Christian König
From: Christian König <[email protected]>
Some buffers (UVD/VM page tables) must be placed in VRAM, but the byte restriction for moving buffers didn't took this into account.
v2: keep closer to the original code
Signed-off-by Christian König <[email protected]>--- drivers/gpu/drm/radeon/radeon_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/radeon/radeon_object.c +1
-2@@ -458,7 +458,7 @@ int radeon_bo_list_validate(struct radeon_device *rdev,* into account. We don't want to disallow buffer moves * completely. */ -if (current_domain !=RADEON_GEM_DOMAIN_CPU && +if ((lobj->alt_domain & current_domain) !=0 && (domain & current_domain) ==0 &&/* will be moved */ bytes_moved > bytes_moved_threshold) {/* don't move it */ --1.9.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 2/2] drm/radeon: fix buffer placement under memory pressure v2
Am 13.05.2014 21:47, schrieb Marek Olšák:
Quoted 5 lines
For the patch:
Reviewed-by Marek Olšák <[email protected]>It would be clearer if
alt_domainwas renamed toallowed_domains.
Yeah, already had the same idea. Going to rename "domain" to "prefered_domains" and "alt_domain" to "allowed_domains" for 3.16.
Thanks,
Christian.
Quoted 34 lines
Marek
Quoted 29 lines · Christian König
From: Christian König <[email protected]>
Some buffers (UVD/VM page tables) must be placed in VRAM, but the byte restriction for moving buffers didn't took this into account.
v2: keep closer to the original code
Signed-off-by Christian König <[email protected]>--- drivers/gpu/drm/radeon/radeon_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/radeon/radeon_object.c +1
-2@@ -458,7 +458,7 @@ int radeon_bo_list_validate(struct radeon_device *rdev,* into account. We don't want to disallow buffer moves * completely. */ -if (current_domain !=RADEON_GEM_DOMAIN_CPU && +if ((lobj->alt_domain & current_domain) !=0 && (domain & current_domain) ==0 &&/* will be moved */ bytes_moved > bytes_moved_threshold) {/* don't move it */ --1.9.1
Quoted 4 lines
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 7 lines · Christian König
From: Christian König <[email protected]>
Take padding into account as well.
Signed-off-by Christian König <[email protected]>
For the series:
Quoted 20 lines
--- drivers/gpu/drm/radeon/radeon_vm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/radeon/radeon_vm.c +1
-2@@ -595,7 +595,7 @@ int radeon_vm_update_page_directory(struct radeon_device *rdev, ndw =64 ;/* assume the worst case */ - ndw += vm->max_pde_used *12 ; + ndw += vm->max_pde_used *16 ;/* update too big for an IB */ if (ndw >0xfffff ) --1.9.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel