Skip to content

Commit 8d4aec4

Browse files
WangX-1lucasdemarchi
authored andcommitted
drm/xe: Update register definitions in LRC layout header
Update the register definitions in xe_lrc_layout.h to align with the official hardware specification (Bspec) terminology. Specifically: - rename PVC_CTX_ACC_CTR_THOLD to CTX_ACC_CTR_THOLD - rename PVC_CTX_ASID to CTX_ASID Signed-off-by: Xin Wang <[email protected]> Reviewed-by: Stuart Summers <[email protected]> Reviewed-by: Lucas De Marchi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lucas De Marchi <[email protected]>
1 parent fba1230 commit 8d4aec4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

drivers/gpu/drm/xe/regs/xe_lrc_layout.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#define CTX_TIMESTAMP (0x22 + 1)
1818
#define CTX_TIMESTAMP_UDW (0x24 + 1)
1919
#define CTX_INDIRECT_RING_STATE (0x26 + 1)
20+
#define CTX_ACC_CTR_THOLD (0x2a + 1)
21+
#define CTX_ASID (0x2e + 1)
2022
#define CTX_PDP0_UDW (0x30 + 1)
2123
#define CTX_PDP0_LDW (0x32 + 1)
2224

drivers/gpu/drm/xe/xe_lrc.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,9 +1147,6 @@ setup_indirect_ctx(struct xe_lrc *lrc, struct xe_hw_engine *hwe)
11471147
return 0;
11481148
}
11491149

1150-
#define PVC_CTX_ASID (0x2e + 1)
1151-
#define PVC_CTX_ACC_CTR_THOLD (0x2a + 1)
1152-
11531150
static int xe_lrc_init(struct xe_lrc *lrc, struct xe_hw_engine *hwe,
11541151
struct xe_vm *vm, u32 ring_size, u16 msix_vec,
11551152
u32 init_flags)
@@ -1271,7 +1268,7 @@ static int xe_lrc_init(struct xe_lrc *lrc, struct xe_hw_engine *hwe,
12711268
xe_lrc_write_ctx_reg(lrc, CTX_TIMESTAMP_UDW, 0);
12721269

12731270
if (xe->info.has_asid && vm)
1274-
xe_lrc_write_ctx_reg(lrc, PVC_CTX_ASID, vm->usm.asid);
1271+
xe_lrc_write_ctx_reg(lrc, CTX_ASID, vm->usm.asid);
12751272

12761273
lrc->desc = LRC_VALID;
12771274
lrc->desc |= FIELD_PREP(LRC_ADDRESSING_MODE, LRC_LEGACY_64B_CONTEXT);

0 commit comments

Comments
 (0)