drm/amd/amdgpu: Fix alignment issue
authorArunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Tue, 7 Jun 2022 06:36:21 +0000 (12:06 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jun 2022 15:40:11 +0000 (11:40 -0400)
Fix alignment problems reported by zuul for the
commit b07d1d73b09e ("drm/amd/amdgpu: Enable high priority gfx queue")

Fixes: b07d1d73b09e ("drm/amd/amdgpu: Enable high priority gfx queue")
Signed-off-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c

index 00c69f0a9f52ea2e17a1be6a589f301c31b17c7e..b697353e5a7ae87d2618b9e99cab376a6b5f9a96 100644 (file)
@@ -241,7 +241,7 @@ void amdgpu_gfx_graphics_queue_acquire(struct amdgpu_device *adev)
                                adev->gfx.me.num_queue_per_pipe;
 
                        set_bit(pipe * adev->gfx.me.num_queue_per_pipe + queue,
-                                       adev->gfx.me.queue_bitmap);
+                               adev->gfx.me.queue_bitmap);
                }
        } else {
                for (i = 0; i < max_queues_per_me; ++i)
index 1fa9edf04022553e2458eec16d5161c836d89b94..d3558c34d406cee6f88c5df4782062a20b3f6be3 100644 (file)
@@ -544,9 +544,9 @@ static void amdgpu_ring_to_mqd_prop(struct amdgpu_ring *ring,
        prop->hqd_active = ring->funcs->type == AMDGPU_RING_TYPE_KIQ;
 
        if ((ring->funcs->type == AMDGPU_RING_TYPE_COMPUTE &&
-           amdgpu_gfx_is_high_priority_compute_queue(adev, ring)) ||
+            amdgpu_gfx_is_high_priority_compute_queue(adev, ring)) ||
            (ring->funcs->type == AMDGPU_RING_TYPE_GFX &&
-           amdgpu_gfx_is_high_priority_graphics_queue(adev, ring))) {
+            amdgpu_gfx_is_high_priority_graphics_queue(adev, ring))) {
                prop->hqd_pipe_priority = AMDGPU_GFX_PIPE_PRIO_HIGH;
                prop->hqd_queue_priority = AMDGPU_GFX_QUEUE_PRIORITY_MAXIMUM;
        }