Skip to content

Commit 2484b17

Browse files
yanzhao56zhenyw
authored andcommitted
drm/i915/gvt: add support to command SWTESS_BASE_ADDRESS
This cmd access is found on BDW. Signed-off-by: Yan Zhao <[email protected]> Acked-by: Zhenyu Wang <[email protected]> Signed-off-by: Zhenyu Wang <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 75db1a5 commit 2484b17

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/gpu/drm/i915/gvt/cmd_parser.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ struct decode_info {
164164
#define OP_STATE_BASE_ADDRESS OP_3D_MEDIA(0x0, 0x1, 0x01)
165165
#define OP_STATE_SIP OP_3D_MEDIA(0x0, 0x1, 0x02)
166166
#define OP_3D_MEDIA_0_1_4 OP_3D_MEDIA(0x0, 0x1, 0x04)
167+
#define OP_SWTESS_BASE_ADDRESS OP_3D_MEDIA(0x0, 0x1, 0x03)
167168

168169
#define OP_3DSTATE_VF_STATISTICS_GM45 OP_3D_MEDIA(0x1, 0x0, 0x0B)
169170

@@ -2485,6 +2486,9 @@ static const struct cmd_info cmd_info[] = {
24852486
{"OP_3D_MEDIA_0_1_4", OP_3D_MEDIA_0_1_4, F_LEN_VAR, R_RCS, D_ALL,
24862487
ADDR_FIX_1(1), 8, NULL},
24872488

2489+
{"OP_SWTESS_BASE_ADDRESS", OP_SWTESS_BASE_ADDRESS,
2490+
F_LEN_VAR, R_RCS, D_ALL, ADDR_FIX_2(1, 2), 3, NULL},
2491+
24882492
{"3DSTATE_VS", OP_3DSTATE_VS, F_LEN_VAR, R_RCS, D_ALL, 0, 8, NULL},
24892493

24902494
{"3DSTATE_SF", OP_3DSTATE_SF, F_LEN_VAR, R_RCS, D_ALL, 0, 8, NULL},

0 commit comments

Comments
 (0)