Skip to content

Commit c9a95db

Browse files
mbrost05lucasdemarchi
authored andcommitted
drm/xe: Allocate PF queue size on pow2 boundary
CIRC_SPACE does not work unless the size argument is a power of 2, allocate PF queue size on power of 2 boundary. Cc: [email protected] Fixes: 3338e4f ("drm/xe: Use topology to determine page fault queue size") Fixes: 29582e0 ("drm/xe: Add page queue multiplier") Signed-off-by: Matthew Brost <[email protected]> Reviewed-by: Francois Dugast <[email protected]> Link: https://lore.kernel.org/r/[email protected] (cherry picked from commit 491b978) Signed-off-by: Lucas De Marchi <[email protected]>
1 parent 705a412 commit c9a95db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/xe/xe_gt_pagefault.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ static int xe_alloc_pf_queue(struct xe_gt *gt, struct pf_queue *pf_queue)
444444
#define PF_MULTIPLIER 8
445445
pf_queue->num_dw =
446446
(num_eus + XE_NUM_HW_ENGINES) * PF_MSG_LEN_DW * PF_MULTIPLIER;
447+
pf_queue->num_dw = roundup_pow_of_two(pf_queue->num_dw);
447448
#undef PF_MULTIPLIER
448449

449450
pf_queue->gt = gt;

0 commit comments

Comments
 (0)