drm/xe: Add build on bug to assert page fault queue works
authorMatthew Brost <matthew.brost@intel.com>
Wed, 10 Jan 2024 01:24:36 +0000 (17:24 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 10 Jan 2024 23:11:22 +0000 (15:11 -0800)
commit86f41f4333e31b62d143c5e38c0c58c85193c4c8
treeacc7a31b1cd393304323d590ae525ac22345b618
parent801e8c7ed6705bd34508f52376cdbb3fc374c921
drm/xe: Add build on bug to assert page fault queue works

If PF_QUEUE_NUM_DW % PF_MSG_LEN_DW != 0 then the page fault queue logic
does not work when wrapping occurs. Add a build bug on to assert
PF_QUEUE_NUM_DW % PF_MSG_LEN_DW == 0 to enforce this restriction and
document the code.

v2:
- s/NUM_PF_QUEUE/PF_QUEUE_NUM_DW (Brian)

Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_gt_pagefault.c