Skip to content

Commit 491b978

Browse files
committed
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: stable@vger.kernel.org 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 <matthew.brost@intel.com> Reviewed-by: Francois Dugast <francois.dugast@intel.com> Link: https://lore.kernel.org/r/20250702213511.3226167-1-matthew.brost@intel.com
1 parent 3fae691 commit 491b978

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpu/drm/xe/xe_gt_pagefault.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ static int xe_alloc_pf_queue(struct xe_gt *gt, struct pf_queue *pf_queue)
419419
#define PF_MULTIPLIER 8
420420
pf_queue->num_dw =
421421
(num_eus + XE_NUM_HW_ENGINES) * PF_MSG_LEN_DW * PF_MULTIPLIER;
422+
pf_queue->num_dw = roundup_pow_of_two(pf_queue->num_dw);
422423
#undef PF_MULTIPLIER
423424

424425
pf_queue->gt = gt;

0 commit comments

Comments
 (0)