[PATCH 2/4] drm/amdkfd: Added more SDMA queue type
Alex Deucher
alexdeucher at gmail.com
Tue Nov 13 19:57:48 UTC 2018
On Tue, Nov 13, 2018 at 2:11 PM Oak Zeng <ozeng at amd.com> wrote:
>
> From: Oak Zeng <Oak.Zeng at amd.com>
>
> The new types are used to allocate SDMA queue on specific
> SDMA engine
>
> Change-Id: Ica4cd7013eb86103a92cec2f74d96ac037b5ecbd
> Signed-off-by: Oak Zeng <Oak.Zeng at amd.com>
> Reviewd-by: Felix Kuehling <Felix.Kuehling at amd.com>
Typo: Reviewed-by
With that fixed:
Acked-by: Alex Deucher <alexander.deucher at amd.com>
> ---
> include/uapi/linux/kfd_ioctl.h | 10 +++++++---
> 1 file changed, 7 insertions(+), 3 deletions(-)
>
> diff --git a/include/uapi/linux/kfd_ioctl.h b/include/uapi/linux/kfd_ioctl.h
> index b01eb50..8cc6e7d 100644
> --- a/include/uapi/linux/kfd_ioctl.h
> +++ b/include/uapi/linux/kfd_ioctl.h
> @@ -35,9 +35,13 @@ struct kfd_ioctl_get_version_args {
> };
>
> /* For kfd_ioctl_create_queue_args.queue_type. */
> -#define KFD_IOC_QUEUE_TYPE_COMPUTE 0
> -#define KFD_IOC_QUEUE_TYPE_SDMA 1
> -#define KFD_IOC_QUEUE_TYPE_COMPUTE_AQL 2
> +#define KFD_IOC_QUEUE_TYPE_COMPUTE 0x0
> +#define KFD_IOC_QUEUE_TYPE_SDMA 0x1
> +#define KFD_IOC_QUEUE_TYPE_COMPUTE_AQL 0x2
> +#define KFD_IOC_QUEUE_TYPE_SDMA_ENGINE(e) (0x10000 + (e))
> +#define KFD_IOC_QUEUE_TYPE_SDMA_AQL_ENGINE(e) (0x20000 + (e))
> +#define KFD_IOC_QUEUE_TYPE_SDMA_ENGINE_MAX (KFD_IOC_QUEUE_TYPE_SDMA_ENGINE(0xffff))
> +#define KFD_IOC_QUEUE_TYPE_SDMA_AQL_ENGINE_MAX (KFD_IOC_QUEUE_TYPE_SDMA_AQL_ENGINE(0xffff))
>
> #define KFD_MAX_QUEUE_PERCENTAGE 100
> #define KFD_MAX_QUEUE_PRIORITY 15
> --
> 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