diff mbox

[2/2] drm/radeon/benchmark: allow same domains for dma copy

Message ID 1363192725-5902-2-git-send-email-alexdeucher@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Alex Deucher March 13, 2013, 4:38 p.m. UTC
From: Alex Deucher <alexander.deucher@amd.com>

Remove old comment and allow benchmarking moves within the
same memory domain for both dma and blit methods.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/radeon/radeon_benchmark.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

Comments

Paul Menzel March 14, 2013, 1:07 p.m. UTC | #1
Dear Alex,


Am Mittwoch, den 13.03.2013, 12:38 -0400 schrieb alexdeucher@gmail.com:
> From: Alex Deucher <alexander.deucher@amd.com>
> 
> Remove old comment and allow benchmarking moves within the
> same memory domain for both dma and blit methods.
>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> ---
>  drivers/gpu/drm/radeon/radeon_benchmark.c |    5 +----
>  1 files changed, 1 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/gpu/drm/radeon/radeon_benchmark.c b/drivers/gpu/drm/radeon/radeon_benchmark.c
> index a2f0c24..6e05a2e 100644
> --- a/drivers/gpu/drm/radeon/radeon_benchmark.c
> +++ b/drivers/gpu/drm/radeon/radeon_benchmark.c
> @@ -122,10 +122,7 @@ static void radeon_benchmark_move(struct radeon_device *rdev, unsigned size,
>  		goto out_cleanup;
>  	}
>  
> -	/* r100 doesn't have dma engine so skip the test */
> -	/* also, VRAM-to-VRAM test doesn't make much sense for DMA */
> -	/* skip it as well if domains are the same */
> -	if ((rdev->asic->copy.dma) && (sdomain != ddomain)) {
> +	if (rdev->asic->copy.dma) {

why is the comment not valid anymore? What changed?

>  		time = radeon_benchmark_do_move(rdev, size, saddr, daddr,
>  						RADEON_BENCHMARK_COPY_DMA, n);
>  		if (time < 0)


Thanks,

Paul
Alex Deucher March 14, 2013, 1:17 p.m. UTC | #2
On Thu, Mar 14, 2013 at 9:07 AM, Paul Menzel
<paulepanter@users.sourceforge.net> wrote:
> Dear Alex,
>
>
> Am Mittwoch, den 13.03.2013, 12:38 -0400 schrieb alexdeucher@gmail.com:
>> From: Alex Deucher <alexander.deucher@amd.com>
>>
>> Remove old comment and allow benchmarking moves within the
>> same memory domain for both dma and blit methods.
>>
>> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
>> ---
>>  drivers/gpu/drm/radeon/radeon_benchmark.c |    5 +----
>>  1 files changed, 1 insertions(+), 4 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/radeon/radeon_benchmark.c b/drivers/gpu/drm/radeon/radeon_benchmark.c
>> index a2f0c24..6e05a2e 100644
>> --- a/drivers/gpu/drm/radeon/radeon_benchmark.c
>> +++ b/drivers/gpu/drm/radeon/radeon_benchmark.c
>> @@ -122,10 +122,7 @@ static void radeon_benchmark_move(struct radeon_device *rdev, unsigned size,
>>               goto out_cleanup;
>>       }
>>
>> -     /* r100 doesn't have dma engine so skip the test */
>> -     /* also, VRAM-to-VRAM test doesn't make much sense for DMA */
>> -     /* skip it as well if domains are the same */
>> -     if ((rdev->asic->copy.dma) && (sdomain != ddomain)) {
>> +     if (rdev->asic->copy.dma) {
>
> why is the comment not valid anymore? What changed?

In my opinion it was never valid.

Alex
diff mbox

Patch

diff --git a/drivers/gpu/drm/radeon/radeon_benchmark.c b/drivers/gpu/drm/radeon/radeon_benchmark.c
index a2f0c24..6e05a2e 100644
--- a/drivers/gpu/drm/radeon/radeon_benchmark.c
+++ b/drivers/gpu/drm/radeon/radeon_benchmark.c
@@ -122,10 +122,7 @@  static void radeon_benchmark_move(struct radeon_device *rdev, unsigned size,
 		goto out_cleanup;
 	}
 
-	/* r100 doesn't have dma engine so skip the test */
-	/* also, VRAM-to-VRAM test doesn't make much sense for DMA */
-	/* skip it as well if domains are the same */
-	if ((rdev->asic->copy.dma) && (sdomain != ddomain)) {
+	if (rdev->asic->copy.dma) {
 		time = radeon_benchmark_do_move(rdev, size, saddr, daddr,
 						RADEON_BENCHMARK_COPY_DMA, n);
 		if (time < 0)