intel: intel_dump_gpu: use simulator id in captures

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
This commit is contained in:
Lionel Landwerlin 2018-06-16 23:25:12 +01:00
parent aab21cedc6
commit 87915baa23
2 changed files with 2 additions and 2 deletions

View file

@ -103,7 +103,7 @@
/* DW2 */
#define AUB_MEM_TRACE_VERSION_DEVICE_MASK 0x0000ff00
#define AUB_MEM_TRACE_VERSION_DEVICE_CNL (15 << 8)
#define AUB_MEM_TRACE_VERSION_DEVICE_SHIFT 8
#define AUB_MEM_TRACE_VERSION_METHOD_MASK 0x000c0000
#define AUB_MEM_TRACE_VERSION_METHOD_PHY (1 << 18)

View file

@ -512,7 +512,7 @@ write_execlists_header(void)
dwords = 5 + app_name_len / sizeof(uint32_t);
dword_out(CMD_MEM_TRACE_VERSION | (dwords - 1));
dword_out(AUB_MEM_TRACE_VERSION_FILE_VERSION);
dword_out(AUB_MEM_TRACE_VERSION_DEVICE_CNL);
dword_out(devinfo.simulator_id << AUB_MEM_TRACE_VERSION_DEVICE_SHIFT);
dword_out(0); /* version */
dword_out(0); /* version */
data_out(app_name, app_name_len);