Skip to content

Commit 2e273e4

Browse files
committed
drm/xe: Move LRC_ENGINE_ID_PPHWSP_OFFSET outside of parallel offset
The parallel scratch layout spans 2k and LRC_ENGINE_ID_PPHWSP_OFFSET lands within than space. This happens to be ok as the offset lands in reserved part of guc_sched_wq_desc, but for future safety move LRC_ENGINE_ID_PPHWSP_OFFSET to the unused offset of 1024 below parallel scratch layout. Signed-off-by: Matthew Brost <[email protected]> Reviewed-by: Umesh Nerlige Ramappa <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent badf456 commit 2e273e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/xe/xe_lrc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,8 +655,8 @@ u32 xe_lrc_pphwsp_offset(struct xe_lrc *lrc)
655655
#define LRC_SEQNO_PPHWSP_OFFSET 512
656656
#define LRC_START_SEQNO_PPHWSP_OFFSET (LRC_SEQNO_PPHWSP_OFFSET + 8)
657657
#define LRC_CTX_JOB_TIMESTAMP_OFFSET (LRC_START_SEQNO_PPHWSP_OFFSET + 8)
658+
#define LRC_ENGINE_ID_PPHWSP_OFFSET 1024
658659
#define LRC_PARALLEL_PPHWSP_OFFSET 2048
659-
#define LRC_ENGINE_ID_PPHWSP_OFFSET 2096
660660

661661
u32 xe_lrc_regs_offset(struct xe_lrc *lrc)
662662
{

0 commit comments

Comments
 (0)