[PATCH] drm/amdgpu: use queue 0 for kiq ring

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 22, 2018 at 12:53 PM, Andres Rodriguez <andresx7 at gmail.com> wrote:
>
>
> On 2018-01-22 08:45 AM, Huang Rui wrote:
>>
>> It must use queue id 0, because CGPG_IDLE/SAVE/LOAD/RUN only can be issued
>> on
>> queue 0.
>>
>> Signed-off-by: Huang Rui <ray.huang at amd.com>
>> Acked-by: Hawking Zhang <Hawking.Zhang at amd.com>
>> Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
>> ---
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 8 ++++++--
>>   1 file changed, 6 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
>> b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
>> index ef04336..0cfb939 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
>> @@ -179,8 +179,12 @@ static int amdgpu_gfx_kiq_acquire(struct
>> amdgpu_device *adev,
>>                 amdgpu_gfx_bit_to_queue(adev, queue_bit, &mec, &pipe,
>> &queue);
>>   -             /* Using pipes 2/3 from MEC 2 seems cause problems */
>> -               if (mec == 1 && pipe > 1)
>> +               /*
>> +                * 1. Using pipes 2/3 from MEC 2 seems cause problems.'
>
>
> Could this have been related to #2? Should we just simplify this by
> guaranteeing KIQ MEC[0] PIPE[0] QUEUE[0]?
>

It's possible.  Other OSes use a hardcoded config for KIQ so there may
be corner cases we never validated when using a non-standard config.

Alex

> Regards,
> Andres
>
>> +                * 2. It must use queue id 0, because
>> CGPG_IDLE/SAVE/LOAD/RUN
>> +                * only can be issued on queue 0.
>> +                */
>> +               if ((mec == 1 && pipe > 1) || queue != 0)
>>                         continue;
>>                 ring->me = mec + 1;
>>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux