[PATCH 1/8] drm/amdgpu/gfx8: whitespace cleanup

Christian König deathsimple at vodafone.de
Thu Mar 23 16:07:23 UTC 2017


Am 23.03.2017 um 16:55 schrieb Alex Deucher:
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>

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

> ---
>   drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 11 +++++------
>   1 file changed, 5 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
> index 0ff776e..cc4945f 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
> @@ -7085,8 +7085,8 @@ static int gfx_v8_0_compute_mqd_soft_init(struct amdgpu_device *adev)
>   	ring = &adev->gfx.kiq.ring;
>   	if (!ring->mqd_obj) {
>   		r = amdgpu_bo_create_kernel(adev, sizeof(struct vi_mqd), PAGE_SIZE,
> -						AMDGPU_GEM_DOMAIN_GTT, &ring->mqd_obj,
> -						&ring->mqd_gpu_addr, &ring->mqd_ptr);
> +					    AMDGPU_GEM_DOMAIN_GTT, &ring->mqd_obj,
> +					    &ring->mqd_gpu_addr, &ring->mqd_ptr);
>   		if (r) {
>   			dev_warn(adev->dev, "failed to create ring mqd ob (%d)", r);
>   			return r;
> @@ -7099,13 +7099,12 @@ static int gfx_v8_0_compute_mqd_soft_init(struct amdgpu_device *adev)
>   	}
>   
>   	/* create MQD for each KCQ */
> -	for (i = 0; i < adev->gfx.num_compute_rings; i++)
> -	{
> +	for (i = 0; i < adev->gfx.num_compute_rings; i++) {
>   		ring = &adev->gfx.compute_ring[i];
>   		if (!ring->mqd_obj) {
>   			r = amdgpu_bo_create_kernel(adev, sizeof(struct vi_mqd), PAGE_SIZE,
> -							AMDGPU_GEM_DOMAIN_GTT, &ring->mqd_obj,
> -							&ring->mqd_gpu_addr, &ring->mqd_ptr);
> +						    AMDGPU_GEM_DOMAIN_GTT, &ring->mqd_obj,
> +						    &ring->mqd_gpu_addr, &ring->mqd_ptr);
>   			if (r) {
>   				dev_warn(adev->dev, "failed to create ring mqd ob (%d)", r);
>   				return r;




More information about the amd-gfx mailing list