drm/xe: Add build on bug to assert access counter queue works
authorMatthew Brost <matthew.brost@intel.com>
Wed, 10 Jan 2024 01:24:38 +0000 (17:24 -0800)
committerMatthew Brost <matthew.brost@intel.com>
Wed, 10 Jan 2024 23:11:22 +0000 (15:11 -0800)
commitd0ca70c0339838198a704b15b7e6c3318f887536
tree62af61368d7e0156bb6885c713b85cccaf411878
parent1fd77ceaf0d843af2b7fde83e447b0738d0404cb
drm/xe: Add build on bug to assert access counter queue works

If ACC_QUEUE_NUM_DW % ACC_MSG_LEN_DW != 0 then the access counter queue
logic does not work when wrapping occurs. Add a build bug on to assert
ACC_QUEUE_NUM_DW % ACC_MSG_LEN_DW == 0 to enforce this restriction and
document the code.

v2:
- s/NUM_ACC_QUEUE/ACC_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