diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2024-drm-amdgpu-reduce-wb-to-512-slot.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2024-drm-amdgpu-reduce-wb-to-512-slot.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2024-drm-amdgpu-reduce-wb-to-512-slot.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2024-drm-amdgpu-reduce-wb-to-512-slot.patch new file mode 100644 index 00000000..b7ab32b1 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2024-drm-amdgpu-reduce-wb-to-512-slot.patch @@ -0,0 +1,35 @@ +From b46a10398fee12882233dc3fbbac4ea8de5faed0 Mon Sep 17 00:00:00 2001 +From: Monk Liu <Monk.Liu@amd.com> +Date: Tue, 17 Oct 2017 19:23:42 +0800 +Subject: [PATCH 2024/4131] drm/amdgpu:reduce wb to 512 slot +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +with current WB usage we only use 57 slots, so 512 +is extreamly sufficient, and reduce to 512 can +make WB fit into one page. + +Change-Id: I4261630731f132b9bec91b0037e914030b5c031f +Signed-off-by: Monk Liu <Monk.Liu@amd.com> +Reviewed-by: Christian König <christian.koenig@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h +index abe9258..b13c94f 100755 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h +@@ -1178,7 +1178,7 @@ static inline void amdgpu_set_ib_value(struct amdgpu_cs_parser *p, + /* + * Writeback + */ +-#define AMDGPU_MAX_WB 1024 /* Reserve at most 1024 WB slots for amdgpu-owned rings. */ ++#define AMDGPU_MAX_WB 512 /* Reserve at most 512 WB slots for amdgpu-owned rings. */ + + struct amdgpu_wb { + struct amdgpu_bo *wb_obj; +-- +2.7.4 + |