diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2163-drm-amdgpu-add-members-in-amdgpu_me-for-gfx-queue.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2163-drm-amdgpu-add-members-in-amdgpu_me-for-gfx-queue.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2163-drm-amdgpu-add-members-in-amdgpu_me-for-gfx-queue.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2163-drm-amdgpu-add-members-in-amdgpu_me-for-gfx-queue.patch new file mode 100644 index 00000000..2f55c225 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.19.8/2163-drm-amdgpu-add-members-in-amdgpu_me-for-gfx-queue.patch @@ -0,0 +1,43 @@ +From caeff8169bf0392d6151daae44cd8bde113793c8 Mon Sep 17 00:00:00 2001 +From: Hawking Zhang <Hawking.Zhang@amd.com> +Date: Fri, 3 Aug 2018 17:26:33 +0800 +Subject: [PATCH 2163/2940] drm/amdgpu: add members in amdgpu_me for gfx queue + +Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com> +Reviewed-by: Jack Xiao <jack.xiao@amd.com> +Reviewed-by: Alex Deucher <alexander.deucher@amd.com> +Acked-by: Felix Kuehling <Felix.Kuehling@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h | 8 ++++++++ + 1 file changed, 8 insertions(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h +index 9d0ef6a6aab6..68f7d3cf4fa2 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.h +@@ -38,6 +38,7 @@ + #define AMDGPU_GFX_CG_DISABLED_MODE 0x00000004L + #define AMDGPU_GFX_LBPW_DISABLED_MODE 0x00000008L + ++#define AMDGPU_MAX_GFX_QUEUES KGD_MAX_QUEUES + #define AMDGPU_MAX_COMPUTE_QUEUES KGD_MAX_QUEUES + + struct amdgpu_mec { +@@ -211,6 +212,13 @@ struct amdgpu_me { + struct amdgpu_bo *me_fw_obj; + uint64_t me_fw_gpu_addr; + uint32_t *me_fw_ptr; ++ uint32_t num_me; ++ uint32_t num_pipe_per_me; ++ uint32_t num_queue_per_pipe; ++ void *mqd_backup[AMDGPU_MAX_GFX_RINGS + 1]; ++ ++ /* These are the resources for which amdgpu takes ownership */ ++ DECLARE_BITMAP(queue_bitmap, AMDGPU_MAX_GFX_QUEUES); + }; + + struct amdgpu_gfx { +-- +2.17.1 + |