diff mbox

drm/radeon: fix typo in cik_copy_dma

Message ID 1386694657-2409-1-git-send-email-deathsimple@vodafone.de (mailing list archive)
State New, archived
Headers show

Commit Message

Christian König Dec. 10, 2013, 4:57 p.m. UTC
From: Christian König <christian.koenig@amd.com>

Otherwise we end up with a rather strange looking result.

Signed-off-by: Christian König <christian.koenig@amd.com>
Cc: stable@vger.kernel.org
---
 drivers/gpu/drm/radeon/cik_sdma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Stellard Dec. 10, 2013, 5:12 p.m. UTC | #1
On Tue, Dec 10, 2013 at 05:57:37PM +0100, Christian König wrote:
> From: Christian König <christian.koenig@amd.com>
> 
> Otherwise we end up with a rather strange looking result.
> 
Tested-by: Tom Stellard <thomas.stellard@amd.com>
> Signed-off-by: Christian König <christian.koenig@amd.com>
> Cc: stable@vger.kernel.org
> ---
>  drivers/gpu/drm/radeon/cik_sdma.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/radeon/cik_sdma.c b/drivers/gpu/drm/radeon/cik_sdma.c
> index 0300727..d08b83c 100644
> --- a/drivers/gpu/drm/radeon/cik_sdma.c
> +++ b/drivers/gpu/drm/radeon/cik_sdma.c
> @@ -458,7 +458,7 @@ int cik_copy_dma(struct radeon_device *rdev,
>  		radeon_ring_write(ring, 0); /* src/dst endian swap */
>  		radeon_ring_write(ring, src_offset & 0xffffffff);
>  		radeon_ring_write(ring, upper_32_bits(src_offset) & 0xffffffff);
> -		radeon_ring_write(ring, dst_offset & 0xfffffffc);
> +		radeon_ring_write(ring, dst_offset & 0xffffffff);
>  		radeon_ring_write(ring, upper_32_bits(dst_offset) & 0xffffffff);
>  		src_offset += cur_size_in_bytes;
>  		dst_offset += cur_size_in_bytes;
> -- 
> 1.8.1.2
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher Dec. 10, 2013, 7:28 p.m. UTC | #2
Applied!  thanks!

Alex

On Tue, Dec 10, 2013 at 11:57 AM, Christian König
<deathsimple@vodafone.de> wrote:
> From: Christian König <christian.koenig@amd.com>
>
> Otherwise we end up with a rather strange looking result.
>
> Signed-off-by: Christian König <christian.koenig@amd.com>
> Cc: stable@vger.kernel.org
> ---
>  drivers/gpu/drm/radeon/cik_sdma.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/radeon/cik_sdma.c b/drivers/gpu/drm/radeon/cik_sdma.c
> index 0300727..d08b83c 100644
> --- a/drivers/gpu/drm/radeon/cik_sdma.c
> +++ b/drivers/gpu/drm/radeon/cik_sdma.c
> @@ -458,7 +458,7 @@ int cik_copy_dma(struct radeon_device *rdev,
>                 radeon_ring_write(ring, 0); /* src/dst endian swap */
>                 radeon_ring_write(ring, src_offset & 0xffffffff);
>                 radeon_ring_write(ring, upper_32_bits(src_offset) & 0xffffffff);
> -               radeon_ring_write(ring, dst_offset & 0xfffffffc);
> +               radeon_ring_write(ring, dst_offset & 0xffffffff);
>                 radeon_ring_write(ring, upper_32_bits(dst_offset) & 0xffffffff);
>                 src_offset += cur_size_in_bytes;
>                 dst_offset += cur_size_in_bytes;
> --
> 1.8.1.2
>
diff mbox

Patch

diff --git a/drivers/gpu/drm/radeon/cik_sdma.c b/drivers/gpu/drm/radeon/cik_sdma.c
index 0300727..d08b83c 100644
--- a/drivers/gpu/drm/radeon/cik_sdma.c
+++ b/drivers/gpu/drm/radeon/cik_sdma.c
@@ -458,7 +458,7 @@  int cik_copy_dma(struct radeon_device *rdev,
 		radeon_ring_write(ring, 0); /* src/dst endian swap */
 		radeon_ring_write(ring, src_offset & 0xffffffff);
 		radeon_ring_write(ring, upper_32_bits(src_offset) & 0xffffffff);
-		radeon_ring_write(ring, dst_offset & 0xfffffffc);
+		radeon_ring_write(ring, dst_offset & 0xffffffff);
 		radeon_ring_write(ring, upper_32_bits(dst_offset) & 0xffffffff);
 		src_offset += cur_size_in_bytes;
 		dst_offset += cur_size_in_bytes;