[PATCH] drm/amd/amdgpu: debugfs SMC addresses are byte addresses

Christian König deathsimple at vodafone.de
Mon Aug 29 13:52:24 UTC 2016


Am 29.08.2016 um 15:06 schrieb Tom St Denis:
> Signed-off-by: Tom St Denis <tom.stdenis at amd.com>

Reviewed-by: Christian König <christian.koenig at amd.com>

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> index 1b31a7c1d217..288cfb4fa2ba 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
> @@ -2678,7 +2678,7 @@ static ssize_t amdgpu_debugfs_regs_smc_read(struct file *f, char __user *buf,
>   	while (size) {
>   		uint32_t value;
>   
> -		value = RREG32_SMC(*pos >> 2);
> +		value = RREG32_SMC(*pos);
>   		r = put_user(value, (uint32_t *)buf);
>   		if (r)
>   			return r;
> @@ -2709,7 +2709,7 @@ static ssize_t amdgpu_debugfs_regs_smc_write(struct file *f, const char __user *
>   		if (r)
>   			return r;
>   
> -		WREG32_SMC(*pos >> 2, value);
> +		WREG32_SMC(*pos, value);
>   
>   		result += 4;
>   		buf += 4;




More information about the amd-gfx mailing list