[PATCH 3/9] drm/amdkfd: Adjust the debug message in KFD ISR

Alex Deucher alexdeucher at gmail.com
Tue Nov 6 21:33:43 UTC 2018


On Mon, Nov 5, 2018 at 8:40 PM Kuehling, Felix <Felix.Kuehling at amd.com> wrote:
>
> From: Yong Zhao <Yong.Zhao at amd.com>
>
> This makes debug message get printed even when there is early return.
>
> Signed-off-by: Yong Zhao <Yong.Zhao at amd.com>
> Reviewed-by: Felix Kuehling <Felix.Kuehling at amd.com>
> Signed-off-by: Felix Kuehling <Felix.Kuehling at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c b/drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c
> index f836897..8497864 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_int_process_v9.c
> @@ -39,20 +39,20 @@ static bool event_interrupt_isr_v9(struct kfd_dev *dev,
>             vmid > dev->vm_info.last_vmid_kfd)
>                 return 0;
>
> -       /* If there is no valid PASID, it's likely a firmware bug */
> -       pasid = SOC15_PASID_FROM_IH_ENTRY(ih_ring_entry);
> -       if (WARN_ONCE(pasid == 0, "FW bug: No PASID in KFD interrupt"))
> -               return 0;
> -
>         source_id = SOC15_SOURCE_ID_FROM_IH_ENTRY(ih_ring_entry);
>         client_id = SOC15_CLIENT_ID_FROM_IH_ENTRY(ih_ring_entry);
> +       pasid = SOC15_PASID_FROM_IH_ENTRY(ih_ring_entry);
>
> -       pr_debug("client id 0x%x, source id %d, pasid 0x%x. raw data:\n",
> -                client_id, source_id, pasid);
> +       pr_debug("client id 0x%x, source id %d, vmid %d, pasid 0x%x. raw data:\n",
> +                client_id, source_id, vmid, pasid);
>         pr_debug("%8X, %8X, %8X, %8X, %8X, %8X, %8X, %8X.\n",
>                  data[0], data[1], data[2], data[3],
>                  data[4], data[5], data[6], data[7]);
>
> +       /* If there is no valid PASID, it's likely a firmware bug */
> +       if (WARN_ONCE(pasid == 0, "FW bug: No PASID in KFD interrupt"))
> +               return 0;
> +
>         /* Interrupt types we care about: various signals and faults.
>          * They will be forwarded to a work queue (see below).
>          */
> --
> 2.7.4
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list