Start using intel_gpu_commands.h header
Subsystems (3)
v2 cover Start using intel_gpu_commands.h header
Reduce code duplication by using kernel intel_gpu_commands.h header.
v2: Address review comments (Kamil)
Zbigniew Kempczyński (3):
intel_gpu_commands: Use kernel gpu command definitions lib/huc_copy: Rename to avoid macro name clash
igt: Remove duplicated macros
benchmarks/gem_wsim.c | 6 +- include/intel_gpu_commands.h | 470 +++++++++++++++++++++++ include/intel_gpu_commands_staging.h | 18 + include/linux/bitops.h | 22 ++ include/linux_scaffold.h | 54 +++ lib/gen4_render.h | 2 - lib/gen7_media.h | 2 - lib/gen7_render.h | 3 - lib/gen8_media.h | 2 - lib/huc_copy.c | 6 +- lib/huc_copy.h | 2 +- lib/i830_reg.h | 16 - lib/i915/i915_blt.h | 4 +- lib/i915/i915_crc.c | 15 +- lib/igt_draw.c | 4 +- lib/igt_dummyload.c | 2 +- lib/igt_store.c | 2 +- lib/intel_allocator.h | 8 +- lib/intel_aux_pgtable.c | 5 +- lib/intel_batchbuffer.c | 12 +- lib/intel_bufops.c | 7 + lib/intel_reg.h | 69 +--- lib/ioctl_wrappers.h | 4 +- lib/rendercopy_gen9.c | 9 +- meson.build | 2 +- tests/i915/api_intel_bb.c | 2 +- tests/i915/gem_blits.c | 20 +- tests/i915/gem_busy.c | 8 +- tests/i915/gem_ccs.c | 2 +- tests/i915/gem_ctx_shared.c | 4 +- tests/i915/gem_exec_async.c | 2 +- tests/i915/gem_exec_balancer.c | 23 +- tests/i915/gem_exec_capture.c | 4 +- tests/i915/gem_exec_endless.c | 13 +- tests/i915/gem_exec_fair.c | 18 +- tests/i915/gem_exec_fence.c | 43 +-- tests/i915/gem_exec_flush.c | 6 +- tests/i915/gem_exec_gttfill.c | 2 +- tests/i915/gem_exec_nop.c | 4 +- tests/i915/gem_exec_parallel.c | 2 +- tests/i915/gem_exec_params.c | 4 +- tests/i915/gem_exec_reloc.c | 29 +- tests/i915/gem_exec_schedule.c | 43 +-- tests/i915/gem_exec_store.c | 6 +- tests/i915/gem_exec_suspend.c | 2 +- tests/i915/gem_exec_whisper.c | 2 +- tests/i915/gem_pipe_control_store_loop.c | 11 +- tests/i915/gem_pxp.c | 7 +- tests/i915/gem_ringfill.c | 2 +- tests/i915/gem_softpin.c | 16 +- tests/i915/gem_sync.c | 16 +- tests/i915/gem_userptr_blits.c | 6 +- tests/i915/gem_vm_create.c | 2 +- tests/i915/gem_watchdog.c | 6 +- tests/i915/gem_workarounds.c | 2 +- tests/i915/gen7_exec_parse.c | 34 +- tests/i915/gen9_exec_parse.c | 47 +-- tests/i915/i915_module_load.c | 2 +- tests/i915/perf.c | 17 +- tests/i915/perf_pmu.c | 18 +- tests/i915/sysfs_timeslice_duration.c | 17 +- tests/prime_vgem.c | 2 +- tools/intel_audio_dump.c | 1 + tools/intel_reg.c | 2 +- 64 files changed, 775 insertions(+), 418 deletions(-) create mode 100644 include/intel_gpu_commands.h create mode 100644 include/intel_gpu_commands_staging.h create mode 100644 include/linux/bitops.h create mode 100644 include/linux_scaffold.h
Signature · 1 line
2.34.1
PATCH v2 1/3 intel_gpu_commands: Use kernel gpu command definitions
i915 has nicely collected command macros in one file. We want to use this pattern (file) and remove duplicated definitions. Unfortunately command file uses includes which don't exists in userspace, so we need to import minimal set of kernel includes to ensure we will have verbatim copy in the future.
v2: Add comment about origin of linux/bitops.h file (Kamil)
Provide local _AC() macro to avoid other const.h include (Kamil)
--- include/intel_gpu_commands.h | 470 +++++++++++++++++++++++++++++++++++ include/linux/bitops.h | 20 ++ include/linux_scaffold.h | 54 ++++ meson.build | 2 +- 4 files changed, 545 insertions(+), 1 deletion(-) create mode 100644 include/intel_gpu_commands.h create mode 100644 include/linux/bitops.h create mode 100644 include/linux_scaffold.h
include/intel_gpu_commands.h new file +470 -0
@@ -0,0 +1,470 @@ +/* SPDX-License-Identifier: MIT*/ +/* +* Copyright © 2003-2018 Intel Corporation +*/ + +#ifndef _INTEL_GPU_COMMANDS_H_ +#define _INTEL_GPU_COMMANDS_H_ + +#include <linux/bitops.h> + +/* +* Target address alignments required for GPU access e.g. +* MI_STORE_DWORD_IMM. +*/ +#define alignof_dword 4 +#define alignof_qword 8 + +/* +* Instruction field definitions used by the command parser +*/ +#define INSTR_CLIENT_SHIFT 29 +#define INSTR_MI_CLIENT 0x0 +#define INSTR_BC_CLIENT 0x2 +#define INSTR_GSC_CLIENT 0x2/* MTL+ */ +#define INSTR_RC_CLIENT 0x3 +#define INSTR_SUBCLIENT_SHIFT 27 +#define INSTR_SUBCLIENT_MASK 0x18000000 +#define INSTR_MEDIA_SUBCLIENT 0x2 +#define INSTR_26_TO_24_MASK 0x7000000 +#define INSTR_26_TO_24_SHIFT 24 + +#define __INSTR (client) ((client) << INSTR_CLIENT_SHIFT) + +/* +* Memory interface instructions used by the kernel +*/ +#define MI_INSTR (opcode, flags) \ + (__INSTR(INSTR_MI_CLIENT) | (opcode) << 23 | (flags)) +/* Many MI commands use bit 22 of the header dword for GGTT vs PPGTT */ +#define MI_GLOBAL_GTT (1<<22) + +#define MI_NOOP MI_INSTR(0, 0) +#define MI_SET_PREDICATE MI_INSTR(0x01, 0) +#define MI_SET_PREDICATE_DISABLE (0 << 0) +#define MI_USER_INTERRUPT MI_INSTR(0x02, 0) +#define MI_WAIT_FOR_EVENT MI_INSTR(0x03, 0) +#define MI_WAIT_FOR_OVERLAY_FLIP (1<<16) +#define MI_WAIT_FOR_PLANE_B_FLIP (1<<6) +#define MI_WAIT_FOR_PLANE_A_FLIP (1<<2) +#define MI_WAIT_FOR_PLANE_A_SCANLINES (1<<1) +#define MI_FLUSH MI_INSTR(0x04, 0) +#define MI_READ_FLUSH (1 << 0) +#define MI_EXE_FLUSH (1 << 1) +#define MI_NO_WRITE_FLUSH (1 << 2) +#define MI_SCENE_COUNT (1 << 3)/* just increment scene count */ +#define MI_END_SCENE (1 << 4)/* flush binner and incr scene count */ +#define MI_INVALIDATE_ISP (1 << 5)/* invalidate indirect state pointers */ +#define MI_REPORT_HEAD MI_INSTR(0x07, 0) +#define MI_ARB_ON_OFF MI_INSTR(0x08, 0) +#define MI_ARB_ENABLE (1<<0) +#define MI_ARB_DISABLE (0<<0) +#define MI_BATCH_BUFFER_END MI_INSTR(0x0a, 0) +#define MI_SUSPEND_FLUSH MI_INSTR(0x0b, 0) +#define MI_SUSPEND_FLUSH_EN (1<<0) +#define MI_SET_APPID MI_INSTR(0x0e, 0) +#define MI_SET_APPID_SESSION_ID (x) ((x) << 0) +#define MI_OVERLAY_FLIP MI_INSTR(0x11, 0) +#define MI_OVERLAY_CONTINUE (0x0<<21) +#define MI_OVERLAY_ON (0x1<<21) +#define MI_OVERLAY_OFF (0x2<<21) +#define MI_LOAD_SCAN_LINES_INCL MI_INSTR(0x12, 0) +#define MI_DISPLAY_FLIP MI_INSTR(0x14, 2) +#define MI_DISPLAY_FLIP_I915 MI_INSTR(0x14, 1) +#define MI_DISPLAY_FLIP_PLANE (n) ((n) << 20) +/* IVB has funny definitions for which plane to flip. */ +#define MI_DISPLAY_FLIP_IVB_PLANE_A (0 << 19) +#define MI_DISPLAY_FLIP_IVB_PLANE_B (1 << 19) +#define MI_DISPLAY_FLIP_IVB_SPRITE_A (2 << 19) +#define MI_DISPLAY_FLIP_IVB_SPRITE_B (3 << 19) +#define MI_DISPLAY_FLIP_IVB_PLANE_C (4 << 19) +#define MI_DISPLAY_FLIP_IVB_SPRITE_C (5 << 19) +/* SKL ones */ +#define MI_DISPLAY_FLIP_SKL_PLANE_1_A (0 << 8) +#define MI_DISPLAY_FLIP_SKL_PLANE_1_B (1 << 8) +#define MI_DISPLAY_FLIP_SKL_PLANE_1_C (2 << 8) +#define MI_DISPLAY_FLIP_SKL_PLANE_2_A (4 << 8) +#define MI_DISPLAY_FLIP_SKL_PLANE_2_B (5 << 8) +#define MI_DISPLAY_FLIP_SKL_PLANE_2_C (6 << 8) +#define MI_DISPLAY_FLIP_SKL_PLANE_3_A (7 << 8) +#define MI_DISPLAY_FLIP_SKL_PLANE_3_B (8 << 8) +#define MI_DISPLAY_FLIP_SKL_PLANE_3_C (9 << 8) +#define MI_SEMAPHORE_MBOX MI_INSTR(0x16, 1)/* gen6, gen7 */ +#define MI_SEMAPHORE_GLOBAL_GTT (1<<22) +#define MI_SEMAPHORE_UPDATE (1<<21) +#define MI_SEMAPHORE_COMPARE (1<<20) +#define MI_SEMAPHORE_REGISTER (1<<18) +#define MI_SEMAPHORE_SYNC_VR (0<<16)/* RCS wait for VCS (RVSYNC) */ +#define MI_SEMAPHORE_SYNC_VER (1<<16)/* RCS wait for VECS (RVESYNC) */ +#define MI_SEMAPHORE_SYNC_BR (2<<16)/* RCS wait for BCS (RBSYNC) */ +#define MI_SEMAPHORE_SYNC_BV (0<<16)/* VCS wait for BCS (VBSYNC) */ +#define MI_SEMAPHORE_SYNC_VEV (1<<16)/* VCS wait for VECS (VVESYNC) */ +#define MI_SEMAPHORE_SYNC_RV (2<<16)/* VCS wait for RCS (VRSYNC) */ +#define MI_SEMAPHORE_SYNC_RB (0<<16)/* BCS wait for RCS (BRSYNC) */ +#define MI_SEMAPHORE_SYNC_VEB (1<<16)/* BCS wait for VECS (BVESYNC) */ +#define MI_SEMAPHORE_SYNC_VB (2<<16)/* BCS wait for VCS (BVSYNC) */ +#define MI_SEMAPHORE_SYNC_BVE (0<<16)/* VECS wait for BCS (VEBSYNC) */ +#define MI_SEMAPHORE_SYNC_VVE (1<<16)/* VECS wait for VCS (VEVSYNC) */ +#define MI_SEMAPHORE_SYNC_RVE (2<<16)/* VECS wait for RCS (VERSYNC) */ +#define MI_SEMAPHORE_SYNC_INVALID (3<<16) +#define MI_SEMAPHORE_SYNC_MASK (3<<16) +#define MI_SET_CONTEXT MI_INSTR(0x18, 0) +#define MI_MM_SPACE_GTT (1<<8) +#define MI_MM_SPACE_PHYSICAL (0<<8) +#define MI_SAVE_EXT_STATE_EN (1<<3) +#define MI_RESTORE_EXT_STATE_EN (1<<2) +#define MI_FORCE_RESTORE (1<<1) +#define MI_RESTORE_INHIBIT (1<<0) +#define HSW_MI_RS_SAVE_STATE_EN (1<<3) +#define HSW_MI_RS_RESTORE_STATE_EN (1<<2) +#define MI_SEMAPHORE_SIGNAL MI_INSTR(0x1b, 0)/* GEN8+ */ +#define MI_SEMAPHORE_TARGET (engine) ((engine)<<15) +#define MI_SEMAPHORE_WAIT MI_INSTR(0x1c, 2)/* GEN8+ */ +#define MI_SEMAPHORE_WAIT_TOKEN MI_INSTR(0x1c, 3)/* GEN12+ */ +#define MI_SEMAPHORE_POLL (1 << 15) +#define MI_SEMAPHORE_SAD_GT_SDD (0 << 12) +#define MI_SEMAPHORE_SAD_GTE_SDD (1 << 12) +#define MI_SEMAPHORE_SAD_LT_SDD (2 << 12) +#define MI_SEMAPHORE_SAD_LTE_SDD (3 << 12) +#define MI_SEMAPHORE_SAD_EQ_SDD (4 << 12) +#define MI_SEMAPHORE_SAD_NEQ_SDD (5 << 12) +#define MI_SEMAPHORE_TOKEN_MASK REG_GENMASK(9, 5) +#define MI_SEMAPHORE_TOKEN_SHIFT 5 +#define MI_STORE_DATA_IMM MI_INSTR(0x20, 0) +#define MI_STORE_DWORD_IMM MI_INSTR(0x20, 1) +#define MI_STORE_DWORD_IMM_GEN4 MI_INSTR(0x20, 2) +#define MI_STORE_QWORD_IMM_GEN8 (MI_INSTR(0x20, 3) | REG_BIT(21)) +#define MI_MEM_VIRTUAL (1 << 22)/* 945,g33,965 */ +#define MI_USE_GGTT (1 << 22)/* g4x+ */ +#define MI_STORE_DWORD_INDEX MI_INSTR(0x21, 1) +#define MI_ATOMIC MI_INSTR(0x2f, 1) +#define MI_ATOMIC_INLINE (MI_INSTR(0x2f, 9) | MI_ATOMIC_INLINE_DATA) +#define MI_ATOMIC_GLOBAL_GTT (1 << 22) +#define MI_ATOMIC_INLINE_DATA (1 << 18) +#define MI_ATOMIC_CS_STALL (1 << 17) +#define MI_ATOMIC_MOVE (0x4 << 8) + +/* +* Official intel docs are somewhat sloppy concerning MI_LOAD_REGISTER_IMM: +* - Always issue a MI_NOOP _before_ the MI_LOAD_REGISTER_IMM - otherwise hw +* simply ignores the register load under certain conditions. +* - One can actually load arbitrary many arbitrary registers: Simply issue x +* address/value pairs. Don't overdue it, though, x <= 2^4 must hold! +*/ +#define MI_LOAD_REGISTER_IMM (x) MI_INSTR(0x22, 2*(x)-1) +/* Gen11+. addr = base + (ctx_restore ? offset & GENMASK(12,2) : offset) */ +#define MI_LRI_LRM_CS_MMIO REG_BIT(19) +#define MI_LRI_MMIO_REMAP_EN REG_BIT(17) +#define MI_LRI_FORCE_POSTED (1<<12) +#define MI_LOAD_REGISTER_IMM_MAX_REGS (126) +#define MI_STORE_REGISTER_MEM MI_INSTR(0x24, 1) +#define MI_STORE_REGISTER_MEM_GEN8 MI_INSTR(0x24, 2) +#define MI_SRM_LRM_GLOBAL_GTT (1<<22) +#define MI_FLUSH_DW MI_INSTR(0x26, 1)/* for GEN6 */ +#define MI_FLUSH_DW_PROTECTED_MEM_EN (1 << 22) +#define MI_FLUSH_DW_STORE_INDEX (1<<21) +#define MI_INVALIDATE_TLB (1<<18) +#define MI_FLUSH_DW_CCS (1<<16) +#define MI_FLUSH_DW_OP_STOREDW (1<<14) +#define MI_FLUSH_DW_OP_MASK (3<<14) +#define MI_FLUSH_DW_LLC (1<<9) +#define MI_FLUSH_DW_NOTIFY (1<<8) +#define MI_INVALIDATE_BSD (1<<7) +#define MI_FLUSH_DW_USE_GTT (1<<2) +#define MI_FLUSH_DW_USE_PPGTT (0<<2) +#define MI_LOAD_REGISTER_MEM MI_INSTR(0x29, 1) +#define MI_LOAD_REGISTER_MEM_GEN8 MI_INSTR(0x29, 2) +#define MI_LOAD_REGISTER_REG MI_INSTR(0x2A, 1) +#define MI_LRR_SOURCE_CS_MMIO REG_BIT(18) +#define MI_BATCH_BUFFER MI_INSTR(0x30, 1) +#define MI_BATCH_NON_SECURE (1) +/* for snb/ivb/vlv this also means "batch in ppgtt" when ppgtt is enabled. */ +#define MI_BATCH_NON_SECURE_I965 (1<<8) +#define MI_BATCH_PPGTT_HSW (1<<8) +#define MI_BATCH_NON_SECURE_HSW (1<<13) +#define MI_BATCH_BUFFER_START MI_INSTR(0x31, 0) +#define MI_BATCH_GTT (2<<6)/* aliased with (1<<7) on gen4 */ +#define MI_BATCH_BUFFER_START_GEN8 MI_INSTR(0x31, 1) +#define MI_BATCH_RESOURCE_STREAMER REG_BIT(10) +#define MI_BATCH_PREDICATE REG_BIT(15)/* HSW+ on RCS only*/ + +#define MI_OPCODE (x) (((x) >> 23) & 0x3f) +#define IS_MI_LRI_CMD (x) (MI_OPCODE(x) == MI_OPCODE(MI_INSTR(0x22, 0))) +#define MI_LRI_LEN (x) (((x) & 0xff) + 1) + +/* +* 3D instructions used by the kernel +*/ +#define GFX_INSTR (opcode, flags) ((0x3 << 29) | ((opcode) << 24) | (flags)) + +#define GEN9_MEDIA_POOL_STATE ((0x3 << 29) | (0x2 << 27) | (0x5 << 16) | 4) +#define GEN9_MEDIA_POOL_ENABLE (1 << 31) +#define GFX_OP_RASTER_RULES ((0x3<<29)|(0x7<<24)) +#define GFX_OP_SCISSOR ((0x3<<29)|(0x1c<<24)|(0x10<<19)) +#define SC_UPDATE_SCISSOR (0x1<<1) +#define SC_ENABLE_MASK (0x1<<0) +#define SC_ENABLE (0x1<<0) +#define GFX_OP_LOAD_INDIRECT ((0x3<<29)|(0x1d<<24)|(0x7<<16)) +#define GFX_OP_SCISSOR_INFO ((0x3<<29)|(0x1d<<24)|(0x81<<16)|(0x1)) +#define SCI_YMIN_MASK (0xffff<<16) +#define SCI_XMIN_MASK (0xffff<<0) +#define SCI_YMAX_MASK (0xffff<<16) +#define SCI_XMAX_MASK (0xffff<<0) +#define GFX_OP_SCISSOR_ENABLE ((0x3<<29)|(0x1c<<24)|(0x10<<19)) +#define GFX_OP_SCISSOR_RECT ((0x3<<29)|(0x1d<<24)|(0x81<<16)|1) +#define GFX_OP_COLOR_FACTOR ((0x3<<29)|(0x1d<<24)|(0x1<<16)|0x0) +#define GFX_OP_STIPPLE ((0x3<<29)|(0x1d<<24)|(0x83<<16)) +#define GFX_OP_MAP_INFO ((0x3<<29)|(0x1d<<24)|0x4) +#define GFX_OP_DESTBUFFER_VARS ((0x3<<29)|(0x1d<<24)|(0x85<<16)|0x0) +#define GFX_OP_DESTBUFFER_INFO ((0x3<<29)|(0x1d<<24)|(0x8e<<16)|1) +#define GFX_OP_DRAWRECT_INFO ((0x3<<29)|(0x1d<<24)|(0x80<<16)|(0x3)) +#define GFX_OP_DRAWRECT_INFO_I965 ((0x7900<<16)|0x2) + +#define XY_CTRL_SURF_INSTR_SIZE 5 +#define MI_FLUSH_DW_SIZE 3 +#define XY_CTRL_SURF_COPY_BLT ((2 << 29) | (0x48 << 22) | 3) +#define SRC_ACCESS_TYPE_SHIFT 21 +#define DST_ACCESS_TYPE_SHIFT 20 +#define CCS_SIZE_MASK 0x3FF +#define CCS_SIZE_SHIFT 8 +#define XY_CTRL_SURF_MOCS_MASK GENMASK(31, 25) +#define NUM_CCS_BYTES_PER_BLOCK 256 +#define NUM_BYTES_PER_CCS_BYTE 256 +#define NUM_CCS_BLKS_PER_XFER 1024 +#define INDIRECT_ACCESS 0 +#define DIRECT_ACCESS 1 + +#define COLOR_BLT_CMD (2 << 29 | 0x40 << 22 | (5 - 2)) +#define XY_COLOR_BLT_CMD (2 << 29 | 0x50 << 22) +#define XY_FAST_COLOR_BLT_CMD (2 << 29 | 0x44 << 22) +#define XY_FAST_COLOR_BLT_DEPTH_32 (2 << 19) +#define XY_FAST_COLOR_BLT_DW 16 +#define XY_FAST_COLOR_BLT_MOCS_MASK GENMASK(27, 21) +#define XY_FAST_COLOR_BLT_MEM_TYPE_SHIFT 31 + +#define XY_FAST_COPY_BLT_D0_SRC_TILING_MASK REG_GENMASK(21, 20) +#define XY_FAST_COPY_BLT_D0_DST_TILING_MASK REG_GENMASK(14, 13) +#define XY_FAST_COPY_BLT_D0_SRC_TILE_MODE (mode) \ + REG_FIELD_PREP(XY_FAST_COPY_BLT_D0_SRC_TILING_MASK, mode) +#define XY_FAST_COPY_BLT_D0_DST_TILE_MODE (mode) \ + REG_FIELD_PREP(XY_FAST_COPY_BLT_D0_DST_TILING_MASK, mode) +#define LINEAR 0 +#define TILE_X 0x1 +#define XMAJOR 0x1 +#define YMAJOR 0x2 +#define TILE_64 0x3 +#define XY_FAST_COPY_BLT_D1_SRC_TILE4 REG_BIT(31) +#define XY_FAST_COPY_BLT_D1_DST_TILE4 REG_BIT(30) +#define BLIT_CCTL_SRC_MOCS_MASK REG_GENMASK(6, 0) +#define BLIT_CCTL_DST_MOCS_MASK REG_GENMASK(14, 8) +/* Note: MOCS value = (index << 1) */ +#define BLIT_CCTL_SRC_MOCS (idx) \ + REG_FIELD_PREP(BLIT_CCTL_SRC_MOCS_MASK, (idx) << 1) +#define BLIT_CCTL_DST_MOCS (idx) \ + REG_FIELD_PREP(BLIT_CCTL_DST_MOCS_MASK, (idx) << 1) + +#define SRC_COPY_BLT_CMD (2 << 29 | 0x43 << 22) +#define GEN9_XY_FAST_COPY_BLT_CMD (2 << 29 | 0x42 << 22) +#define XY_SRC_COPY_BLT_CMD (2 << 29 | 0x53 << 22) +#define XY_MONO_SRC_COPY_IMM_BLT (2 << 29 | 0x71 << 22 | 5) +#define BLT_WRITE_A (2<<20) +#define BLT_WRITE_RGB (1<<20) +#define BLT_WRITE_RGBA (BLT_WRITE_RGB | BLT_WRITE_A) +#define BLT_DEPTH_8 (0<<24) +#define BLT_DEPTH_16_565 (1<<24) +#define BLT_DEPTH_16_1555 (2<<24) +#define BLT_DEPTH_32 (3<<24) +#define BLT_ROP_SRC_COPY (0xcc<<16) +#define BLT_ROP_COLOR_COPY (0xf0<<16) +#define XY_SRC_COPY_BLT_SRC_TILED (1<<15)/* 965+ only */ +#define XY_SRC_COPY_BLT_DST_TILED (1<<11)/* 965+ only */ +#define CMD_OP_DISPLAYBUFFER_INFO ((0x0<<29)|(0x14<<23)|2) +#define ASYNC_FLIP (1<<22) +#define DISPLAY_PLANE_A (0<<20) +#define DISPLAY_PLANE_B (1<<20) +#define GFX_OP_PIPE_CONTROL (len) ((0x3<<29)|(0x3<<27)|(0x2<<24)|((len)-2)) +#define PIPE_CONTROL_COMMAND_CACHE_INVALIDATE (1<<29)/* gen11+ */ +#define PIPE_CONTROL_TILE_CACHE_FLUSH (1<<28)/* gen11+ */ +#define PIPE_CONTROL_FLUSH_L3 (1<<27) +#define PIPE_CONTROL_AMFS_FLUSH (1<<25)/* gen12+ */ +#define PIPE_CONTROL_GLOBAL_GTT_IVB (1<<24)/* gen7+ */ +#define PIPE_CONTROL_MMIO_WRITE (1<<23) +#define PIPE_CONTROL_STORE_DATA_INDEX (1<<21) +#define PIPE_CONTROL_CS_STALL (1<<20) +#define PIPE_CONTROL_GLOBAL_SNAPSHOT_RESET (1<<19) +#define PIPE_CONTROL_TLB_INVALIDATE (1<<18) +#define PIPE_CONTROL_PSD_SYNC (1<<17)/* gen11+ */ +#define PIPE_CONTROL_MEDIA_STATE_CLEAR (1<<16) +#define PIPE_CONTROL_WRITE_TIMESTAMP (3<<14) +#define PIPE_CONTROL_QW_WRITE (1<<14) +#define PIPE_CONTROL_POST_SYNC_OP_MASK (3<<14) +#define PIPE_CONTROL_DEPTH_STALL (1<<13) +#define PIPE_CONTROL_WRITE_FLUSH (1<<12) +#define PIPE_CONTROL_RENDER_TARGET_CACHE_FLUSH (1<<12)/* gen6+ */ +#define PIPE_CONTROL_INSTRUCTION_CACHE_INVALIDATE (1<<11)/* MBZ on ILK */ +#define PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE (1<<10)/* GM45+ only */ +#define PIPE_CONTROL_INDIRECT_STATE_DISABLE (1<<9) +#define PIPE_CONTROL0_HDC_PIPELINE_FLUSH REG_BIT(9)/* gen12 */ +#define PIPE_CONTROL_NOTIFY (1<<8) +#define PIPE_CONTROL_FLUSH_ENABLE (1<<7)/* gen7+ */ +#define PIPE_CONTROL_DC_FLUSH_ENABLE (1<<5) +#define PIPE_CONTROL_VF_CACHE_INVALIDATE (1<<4) +#define PIPE_CONTROL_CONST_CACHE_INVALIDATE (1<<3) +#define PIPE_CONTROL_STATE_CACHE_INVALIDATE (1<<2) +#define PIPE_CONTROL_STALL_AT_SCOREBOARD (1<<1) +#define PIPE_CONTROL_DEPTH_CACHE_FLUSH (1<<0) +#define PIPE_CONTROL_GLOBAL_GTT (1<<2)/* in addr dword */ + +/* +* 3D-related flags that can't be set on _engines_ that lack access to the 3D +* pipeline (i.e., CCS engines). +*/ +#define PIPE_CONTROL_3D_ENGINE_FLAGS (\ + PIPE_CONTROL_RENDER_TARGET_CACHE_FLUSH | \ + PIPE_CONTROL_DEPTH_CACHE_FLUSH | \ + PIPE_CONTROL_TILE_CACHE_FLUSH | \ + PIPE_CONTROL_DEPTH_STALL | \ + PIPE_CONTROL_STALL_AT_SCOREBOARD | \ + PIPE_CONTROL_PSD_SYNC | \ + PIPE_CONTROL_AMFS_FLUSH | \ + PIPE_CONTROL_VF_CACHE_INVALIDATE | \ + PIPE_CONTROL_GLOBAL_SNAPSHOT_RESET) + +/* 3D-related flags that can't be set on _platforms_ that lack a 3D pipeline */ +#define PIPE_CONTROL_3D_ARCH_FLAGS ( \ + PIPE_CONTROL_3D_ENGINE_FLAGS | \ + PIPE_CONTROL_INDIRECT_STATE_DISABLE | \ + PIPE_CONTROL_FLUSH_ENABLE | \ + PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE | \ + PIPE_CONTROL_DC_FLUSH_ENABLE) + +#define MI_MATH (x) MI_INSTR(0x1a, (x) - 1) +#define MI_MATH_INSTR (opcode, op1, op2) ((opcode) << 20 | (op1) << 10 | (op2)) +/* Opcodes for MI_MATH_INSTR */ +#define MI_MATH_NOOP MI_MATH_INSTR(0x000, 0x0, 0x0) +#define MI_MATH_LOAD (op1, op2) MI_MATH_INSTR(0x080, op1, op2) +#define MI_MATH_LOADINV (op1, op2) MI_MATH_INSTR(0x480, op1, op2) +#define MI_MATH_LOAD0 (op1) MI_MATH_INSTR(0x081, op1) +#define MI_MATH_LOAD1 (op1) MI_MATH_INSTR(0x481, op1) +#define MI_MATH_ADD MI_MATH_INSTR(0x100, 0x0, 0x0) +#define MI_MATH_SUB MI_MATH_INSTR(0x101, 0x0, 0x0) +#define MI_MATH_AND MI_MATH_INSTR(0x102, 0x0, 0x0) +#define MI_MATH_OR MI_MATH_INSTR(0x103, 0x0, 0x0) +#define MI_MATH_XOR MI_MATH_INSTR(0x104, 0x0, 0x0) +#define MI_MATH_STORE (op1, op2) MI_MATH_INSTR(0x180, op1, op2) +#define MI_MATH_STOREINV (op1, op2) MI_MATH_INSTR(0x580, op1, op2) +/* Registers used as operands in MI_MATH_INSTR */ +#define MI_MATH_REG (x) (x) +#define MI_MATH_REG_SRCA 0x20 +#define MI_MATH_REG_SRCB 0x21 +#define MI_MATH_REG_ACCU 0x31 +#define MI_MATH_REG_ZF 0x32 +#define MI_MATH_REG_CF 0x33 + +/* +* Media instructions used by the kernel +*/ +#define MEDIA_INSTR (pipe, op, sub_op, flags) \ + (__INSTR(INSTR_RC_CLIENT) | (pipe) << INSTR_SUBCLIENT_SHIFT | \ + (op) << INSTR_26_TO_24_SHIFT | (sub_op) << 16 | (flags)) + +#define MFX_WAIT MEDIA_INSTR(1, 0, 0, 0) +#define MFX_WAIT_DW0_MFX_SYNC_CONTROL_FLAG REG_BIT(8) +#define MFX_WAIT_DW0_PXP_SYNC_CONTROL_FLAG REG_BIT(9) + +#define CRYPTO_KEY_EXCHANGE MEDIA_INSTR(2, 6, 9, 0) + +/* +* Commands used only by the command parser +*/ +#define MI_SET_PREDICATE MI_INSTR(0x01, 0) +#define MI_ARB_CHECK MI_INSTR(0x05, 0) +#define MI_RS_CONTROL MI_INSTR(0x06, 0) +#define MI_URB_ATOMIC_ALLOC MI_INSTR(0x09, 0) +#define MI_PREDICATE MI_INSTR(0x0C, 0) +#define MI_RS_CONTEXT MI_INSTR(0x0F, 0) +#define MI_TOPOLOGY_FILTER MI_INSTR(0x0D, 0) +#define MI_LOAD_SCAN_LINES_EXCL MI_INSTR(0x13, 0) +#define MI_URB_CLEAR MI_INSTR(0x19, 0) +#define MI_UPDATE_GTT MI_INSTR(0x23, 0) +#define MI_CLFLUSH MI_INSTR(0x27, 0) +#define MI_REPORT_PERF_COUNT MI_INSTR(0x28, 0) +#define MI_REPORT_PERF_COUNT_GGTT (1<<0) +#define MI_RS_STORE_DATA_IMM MI_INSTR(0x2B, 0) +#define MI_LOAD_URB_MEM MI_INSTR(0x2C, 0) +#define MI_STORE_URB_MEM MI_INSTR(0x2D, 0) +#define MI_CONDITIONAL_BATCH_BUFFER_END MI_INSTR(0x36, 0) +#define MI_DO_COMPARE REG_BIT(21) + +#define STATE_BASE_ADDRESS \ + ((0x3 << 29) | (0x0 << 27) | (0x1 << 24) | (0x1 << 16)) +#define BASE_ADDRESS_MODIFY REG_BIT(0) +#define PIPELINE_SELECT \ + ((0x3 << 29) | (0x1 << 27) | (0x1 << 24) | (0x4 << 16)) +#define PIPELINE_SELECT_MEDIA REG_BIT(0) +#define GFX_OP_3DSTATE_VF_STATISTICS \ + ((0x3 << 29) | (0x1 << 27) | (0x0 << 24) | (0xB << 16)) +#define MEDIA_VFE_STATE \ + ((0x3 << 29) | (0x2 << 27) | (0x0 << 24) | (0x0 << 16)) +#define MEDIA_VFE_STATE_MMIO_ACCESS_MASK (0x18) +#define MEDIA_INTERFACE_DESCRIPTOR_LOAD \ + ((0x3 << 29) | (0x2 << 27) | (0x0 << 24) | (0x2 << 16)) +#define MEDIA_OBJECT \ + ((0x3 << 29) | (0x2 << 27) | (0x1 << 24) | (0x0 << 16)) +#define GPGPU_OBJECT ((0x3<<29)|(0x2<<27)|(0x1<<24)|(0x4<<16)) +#define GPGPU_WALKER ((0x3<<29)|(0x2<<27)|(0x1<<24)|(0x5<<16)) +#define GFX_OP_3DSTATE_DX9_CONSTANTF_VS \ + ((0x3<<29)|(0x3<<27)|(0x0<<24)|(0x39<<16)) +#define GFX_OP_3DSTATE_DX9_CONSTANTF_PS \ + ((0x3<<29)|(0x3<<27)|(0x0<<24)|(0x3A<<16)) +#define GFX_OP_3DSTATE_SO_DECL_LIST \ + ((0x3<<29)|(0x3<<27)|(0x1<<24)|(0x17<<16)) + +#define GFX_OP_3DSTATE_BINDING_TABLE_EDIT_VS \ + ((0x3<<29)|(0x3<<27)|(0x0<<24)|(0x43<<16)) +#define GFX_OP_3DSTATE_BINDING_TABLE_EDIT_GS \ + ((0x3<<29)|(0x3<<27)|(0x0<<24)|(0x44<<16)) +#define GFX_OP_3DSTATE_BINDING_TABLE_EDIT_HS \ + ((0x3<<29)|(0x3<<27)|(0x0<<24)|(0x45<<16)) +#define GFX_OP_3DSTATE_BINDING_TABLE_EDIT_DS \ + ((0x3<<29)|(0x3<<27)|(0x0<<24)|(0x46<<16)) +#define GFX_OP_3DSTATE_BINDING_TABLE_EDIT_PS \ + ((0x3<<29)|(0x3<<27)|(0x0<<24)|(0x47<<16)) + +#define COLOR_BLT ((0x2<<29)|(0x40<<22)) +#define SRC_COPY_BLT ((0x2<<29)|(0x43<<22)) + +#define GSC_INSTR (opcode, data, flags) \ + (__INSTR(INSTR_GSC_CLIENT) | (opcode) << 22 | (data) << 9 | (flags)) + +#define GSC_FW_LOAD GSC_INSTR(1, 0, 2) +#define HECI1_FW_LIMIT_VALID (1 << 31) + +/* +* Used to convert any address to canonical form. +* Starting from gen8, some commands (e.g. STATE_BASE_ADDRESS, +* MI_LOAD_REGISTER_MEM and others, see Broadwell PRM Vol2a) require the +* addresses to be in a canonical form: +* "GraphicsAddress[63:48] are ignored by the HW and assumed to be in correct +* canonical form [63:48] == [47]." +*/ +#define GEN8_HIGH_ADDRESS_BIT 47 +static inline u64 gen8_canonical_addr (u64 address) +{ +return sign_extend64 (address,GEN8_HIGH_ADDRESS_BIT ); +} + +static inline u64 gen8_noncanonical_addr (u64 address) +{ +return address &GENMASK_ULL (GEN8_HIGH_ADDRESS_BIT ,0 ); +} + +static inline u32 *__gen6_emit_bb_start (u32 *cs,u32 addr,unsigned int flags) +{ + *cs++ =MI_BATCH_BUFFER_START | flags; + *cs++ = addr; + +return cs; +} + +#endif /* _INTEL_GPU_COMMANDS_H_ */
include/linux/bitops.h new file +20 -0
@@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: MIT */ + +#ifndef _LINUX_BITOPS_H_ +#define _LINUX_BITOPS_H_ + +/* +* Origin of this file requires some comment. +* +* In the i915 we use nicely collected gpu command macros in +* intel_gpu_commands.h file and we want to reuse it here. Moreover we want +* to copy this file verbatimly and not touch it at all. Unfortunatly this file +* includes kernel header which doesn't have its userspace counterpart. +* +* We need to solve this include substituting kernel file with this one and +* provide some scaffold macros which will solve the rest. +*/ + +#include "linux_scaffold.h" + +#endif /* _LINUX_BITOPS_H_ */
include/linux_scaffold.h new file +54 -0
54 lines not on this page · raw message
meson.build +1 -1
@@ -85,7 +85,7 @@ with_libdrm = get_option('libdrm_drivers') build_info = ['Build type: ' + get_option('buildtype')] -inc = include_directories('include/drm-uapi', 'include/linux-uapi', 'lib', 'lib/stubs/syscalls', '.') +inc = include_directories('include', 'include/drm-uapi', 'include/linux-uapi', 'lib', 'lib/stubs/syscalls', '.') inc_for_gtkdoc = include_directories('lib')
Signature · 1 line
2.34.1
Re: [igt-dev] [PATCH i-g-t v2 1/3] intel_gpu_commands: Use kernel gpu command definitions
Quoted 553 lines · Zbigniew Kempczyński
i915 has nicely collected command macros in one file. We want to use this pattern (file) and remove duplicated definitions. Unfortunately command file uses includes which don't exists in userspace, so we need to import minimal set of kernel includes to ensure we will have verbatim copy in the future.
v2: Add comment about origin of
linux/bitops.hfile (Kamil)
Provide local_AC()macro to avoid otherconst.hinclude (Kamil)Signed-off-by Zbigniew Kempczyński <[email protected]>Cc Petri Latvala <[email protected]>Cc Kamil Konieczny <[email protected]>--- include/intel_gpu_commands.h | 470 +++++++++++++++++++++++++++++++++++ include/linux/bitops.h | 20 ++ include/linux_scaffold.h | 54 ++++ meson.build | 2 +- 4 files changed, 545 insertions(+), 1 deletion(-) create mode 100644 include/intel_gpu_commands.h create mode 100644 include/linux/bitops.h create mode 100644 include/linux_scaffold.hinclude/intel_gpu_commands.h new file +470
-0@@ -0,0 +1,470 @@ +/* SPDX-License-Identifier: MIT*/ +/* +* Copyright © 2003-2018 Intel Corporation +*/ + +#ifndef _INTEL_GPU_COMMANDS_H_ +#define _INTEL_GPU_COMMANDS_H_ + +#include <linux/bitops.h> + +/* +* Target address alignments required for GPU access e.g. +* MI_STORE_DWORD_IMM. +*/ +#define alignof_dword 4 +#define alignof_qword 8 + +/* +* Instruction field definitions used by the command parser +*/ +#define INSTR_CLIENT_SHIFT 29 +#define INSTR_MI_CLIENT 0x0 +#define INSTR_BC_CLIENT 0x2 +#define INSTR_GSC_CLIENT 0x2/* MTL+ */ +#define INSTR_RC_CLIENT 0x3 +#define INSTR_SUBCLIENT_SHIFT 27 +#define INSTR_SUBCLIENT_MASK 0x18000000 +#define INSTR_MEDIA_SUBCLIENT 0x2 +#define INSTR_26_TO_24_MASK 0x7000000 +#define INSTR_26_TO_24_SHIFT 24 + +#define __INSTR (client) ((client) << INSTR_CLIENT_SHIFT) + +/* +* Memory interface instructions used by the kernel +*/ +#define MI_INSTR (opcode, flags) \ + (__INSTR(INSTR_MI_CLIENT) | (opcode) << 23 | (flags)) +/* Many MI commands use bit 22 of the header dword for GGTT vs PPGTT */ +#define MI_GLOBAL_GTT (1<<22) + +#define MI_NOOP MI_INSTR(0, 0) +#define MI_SET_PREDICATE MI_INSTR(0x01, 0) +#define MI_SET_PREDICATE_DISABLE (0 << 0) +#define MI_USER_INTERRUPT MI_INSTR(0x02, 0) +#define MI_WAIT_FOR_EVENT MI_INSTR(0x03, 0) +#define MI_WAIT_FOR_OVERLAY_FLIP (1<<16) +#define MI_WAIT_FOR_PLANE_B_FLIP (1<<6) +#define MI_WAIT_FOR_PLANE_A_FLIP (1<<2) +#define MI_WAIT_FOR_PLANE_A_SCANLINES (1<<1) +#define MI_FLUSH MI_INSTR(0x04, 0) +#define MI_READ_FLUSH (1 << 0) +#define MI_EXE_FLUSH (1 << 1) +#define MI_NO_WRITE_FLUSH (1 << 2) +#define MI_SCENE_COUNT (1 << 3)/* just increment scene count */ +#define MI_END_SCENE (1 << 4)/* flush binner and incr scene count */ +#define MI_INVALIDATE_ISP (1 << 5)/* invalidate indirect state pointers */ +#define MI_REPORT_HEAD MI_INSTR(0x07, 0) +#define MI_ARB_ON_OFF MI_INSTR(0x08, 0) +#define MI_ARB_ENABLE (1<<0) +#define MI_ARB_DISABLE (0<<0) +#define MI_BATCH_BUFFER_END MI_INSTR(0x0a, 0) +#define MI_SUSPEND_FLUSH MI_INSTR(0x0b, 0) +#define MI_SUSPEND_FLUSH_EN (1<<0) +#define MI_SET_APPID MI_INSTR(0x0e, 0) +#define MI_SET_APPID_SESSION_ID (x) ((x) << 0) +#define MI_OVERLAY_FLIP MI_INSTR(0x11, 0) +#define MI_OVERLAY_CONTINUE (0x0<<21) +#define MI_OVERLAY_ON (0x1<<21) +#define MI_OVERLAY_OFF (0x2<<21) +#define MI_LOAD_SCAN_LINES_INCL MI_INSTR(0x12, 0) +#define MI_DISPLAY_FLIP MI_INSTR(0x14, 2) +#define MI_DISPLAY_FLIP_I915 MI_INSTR(0x14, 1) +#define MI_DISPLAY_FLIP_PLANE (n) ((n) << 20) +/* IVB has funny definitions for which plane to flip. */ +#define MI_DISPLAY_FLIP_IVB_PLANE_A (0 << 19) +#define MI_DISPLAY_FLIP_IVB_PLANE_B (1 << 19) +#define MI_DISPLAY_FLIP_IVB_SPRITE_A (2 << 19) +#define MI_DISPLAY_FLIP_IVB_SPRITE_B (3 << 19) +#define MI_DISPLAY_FLIP_IVB_PLANE_C (4 << 19) +#define MI_DISPLAY_FLIP_IVB_SPRITE_C (5 << 19) +/* SKL ones */ +#define MI_DISPLAY_FLIP_SKL_PLANE_1_A (0 << 8) +#define MI_DISPLAY_FLIP_SKL_PLANE_1_B (1 << 8) +#define MI_DISPLAY_FLIP_SKL_PLANE_1_C (2 << 8) +#define MI_DISPLAY_FLIP_SKL_PLANE_2_A (4 << 8) +#define MI_DISPLAY_FLIP_SKL_PLANE_2_B (5 << 8) +#define MI_DISPLAY_FLIP_SKL_PLANE_2_C (6 << 8) +#define MI_DISPLAY_FLIP_SKL_PLANE_3_A (7 << 8) +#define MI_DISPLAY_FLIP_SKL_PLANE_3_B (8 << 8) +#define MI_DISPLAY_FLIP_SKL_PLANE_3_C (9 << 8) +#define MI_SEMAPHORE_MBOX MI_INSTR(0x16, 1)/* gen6, gen7 */ +#define MI_SEMAPHORE_GLOBAL_GTT (1<<22) +#define MI_SEMAPHORE_UPDATE (1<<21) +#define MI_SEMAPHORE_COMPARE (1<<20) +#define MI_SEMAPHORE_REGISTER (1<<18) +#define MI_SEMAPHORE_SYNC_VR (0<<16)/* RCS wait for VCS (RVSYNC) */ +#define MI_SEMAPHORE_SYNC_VER (1<<16)/* RCS wait for VECS (RVESYNC) */ +#define MI_SEMAPHORE_SYNC_BR (2<<16)/* RCS wait for BCS (RBSYNC) */ +#define MI_SEMAPHORE_SYNC_BV (0<<16)/* VCS wait for BCS (VBSYNC) */ +#define MI_SEMAPHORE_SYNC_VEV (1<<16)/* VCS wait for VECS (VVESYNC) */ +#define MI_SEMAPHORE_SYNC_RV (2<<16)/* VCS wait for RCS (VRSYNC) */ +#define MI_SEMAPHORE_SYNC_RB (0<<16)/* BCS wait for RCS (BRSYNC) */ +#define MI_SEMAPHORE_SYNC_VEB (1<<16)/* BCS wait for VECS (BVESYNC) */ +#define MI_SEMAPHORE_SYNC_VB (2<<16)/* BCS wait for VCS (BVSYNC) */ +#define MI_SEMAPHORE_SYNC_BVE (0<<16)/* VECS wait for BCS (VEBSYNC) */ +#define MI_SEMAPHORE_SYNC_VVE (1<<16)/* VECS wait for VCS (VEVSYNC) */ +#define MI_SEMAPHORE_SYNC_RVE (2<<16)/* VECS wait for RCS (VERSYNC) */ +#define MI_SEMAPHORE_SYNC_INVALID (3<<16) +#define MI_SEMAPHORE_SYNC_MASK (3<<16) +#define MI_SET_CONTEXT MI_INSTR(0x18, 0) +#define MI_MM_SPACE_GTT (1<<8) +#define MI_MM_SPACE_PHYSICAL (0<<8) +#define MI_SAVE_EXT_STATE_EN (1<<3) +#define MI_RESTORE_EXT_STATE_EN (1<<2) +#define MI_FORCE_RESTORE (1<<1) +#define MI_RESTORE_INHIBIT (1<<0) +#define HSW_MI_RS_SAVE_STATE_EN (1<<3) +#define HSW_MI_RS_RESTORE_STATE_EN (1<<2) +#define MI_SEMAPHORE_SIGNAL MI_INSTR(0x1b, 0)/* GEN8+ */ +#define MI_SEMAPHORE_TARGET (engine) ((engine)<<15) +#define MI_SEMAPHORE_WAIT MI_INSTR(0x1c, 2)/* GEN8+ */ +#define MI_SEMAPHORE_WAIT_TOKEN MI_INSTR(0x1c, 3)/* GEN12+ */ +#define MI_SEMAPHORE_POLL (1 << 15) +#define MI_SEMAPHORE_SAD_GT_SDD (0 << 12) +#define MI_SEMAPHORE_SAD_GTE_SDD (1 << 12) +#define MI_SEMAPHORE_SAD_LT_SDD (2 << 12) +#define MI_SEMAPHORE_SAD_LTE_SDD (3 << 12) +#define MI_SEMAPHORE_SAD_EQ_SDD (4 << 12) +#define MI_SEMAPHORE_SAD_NEQ_SDD (5 << 12) +#define MI_SEMAPHORE_TOKEN_MASK REG_GENMASK(9, 5) +#define MI_SEMAPHORE_TOKEN_SHIFT 5 +#define MI_STORE_DATA_IMM MI_INSTR(0x20, 0) +#define MI_STORE_DWORD_IMM MI_INSTR(0x20, 1) +#define MI_STORE_DWORD_IMM_GEN4 MI_INSTR(0x20, 2) +#define MI_STORE_QWORD_IMM_GEN8 (MI_INSTR(0x20, 3) | REG_BIT(21)) +#define MI_MEM_VIRTUAL (1 << 22)/* 945,g33,965 */ +#define MI_USE_GGTT (1 << 22)/* g4x+ */ +#define MI_STORE_DWORD_INDEX MI_INSTR(0x21, 1) +#define MI_ATOMIC MI_INSTR(0x2f, 1) +#define MI_ATOMIC_INLINE (MI_INSTR(0x2f, 9) | MI_ATOMIC_INLINE_DATA) +#define MI_ATOMIC_GLOBAL_GTT (1 << 22) +#define MI_ATOMIC_INLINE_DATA (1 << 18) +#define MI_ATOMIC_CS_STALL (1 << 17) +#define MI_ATOMIC_MOVE (0x4 << 8) + +/* +* Official intel docs are somewhat sloppy concerning MI_LOAD_REGISTER_IMM: +* - Always issue a MI_NOOP _before_ the MI_LOAD_REGISTER_IMM - otherwise hw +* simply ignores the register load under certain conditions. +* - One can actually load arbitrary many arbitrary registers: Simply issue x +* address/value pairs. Don't overdue it, though, x <= 2^4 must hold! +*/ +#define MI_LOAD_REGISTER_IMM (x) MI_INSTR(0x22, 2*(x)-1) +/* Gen11+. addr = base + (ctx_restore ? offset & GENMASK(12,2) : offset) */ +#define MI_LRI_LRM_CS_MMIO REG_BIT(19) +#define MI_LRI_MMIO_REMAP_EN REG_BIT(17) +#define MI_LRI_FORCE_POSTED (1<<12) +#define MI_LOAD_REGISTER_IMM_MAX_REGS (126) +#define MI_STORE_REGISTER_MEM MI_INSTR(0x24, 1) +#define MI_STORE_REGISTER_MEM_GEN8 MI_INSTR(0x24, 2) +#define MI_SRM_LRM_GLOBAL_GTT (1<<22) +#define MI_FLUSH_DW MI_INSTR(0x26, 1)/* for GEN6 */ +#define MI_FLUSH_DW_PROTECTED_MEM_EN (1 << 22) +#define MI_FLUSH_DW_STORE_INDEX (1<<21) +#define MI_INVALIDATE_TLB (1<<18) +#define MI_FLUSH_DW_CCS (1<<16) +#define MI_FLUSH_DW_OP_STOREDW (1<<14) +#define MI_FLUSH_DW_OP_MASK (3<<14) +#define MI_FLUSH_DW_LLC (1<<9) +#define MI_FLUSH_DW_NOTIFY (1<<8) +#define MI_INVALIDATE_BSD (1<<7) +#define MI_FLUSH_DW_USE_GTT (1<<2) +#define MI_FLUSH_DW_USE_PPGTT (0<<2) +#define MI_LOAD_REGISTER_MEM MI_INSTR(0x29, 1) +#define MI_LOAD_REGISTER_MEM_GEN8 MI_INSTR(0x29, 2) +#define MI_LOAD_REGISTER_REG MI_INSTR(0x2A, 1) +#define MI_LRR_SOURCE_CS_MMIO REG_BIT(18) +#define MI_BATCH_BUFFER MI_INSTR(0x30, 1) +#define MI_BATCH_NON_SECURE (1) +/* for snb/ivb/vlv this also means "batch in ppgtt" when ppgtt is enabled. */ +#define MI_BATCH_NON_SECURE_I965 (1<<8) +#define MI_BATCH_PPGTT_HSW (1<<8) +#define MI_BATCH_NON_SECURE_HSW (1<<13) +#define MI_BATCH_BUFFER_START MI_INSTR(0x31, 0) +#define MI_BATCH_GTT (2<<6)/* aliased with (1<<7) on gen4 */ +#define MI_BATCH_BUFFER_START_GEN8 MI_INSTR(0x31, 1) +#define MI_BATCH_RESOURCE_STREAMER REG_BIT(10) +#define MI_BATCH_PREDICATE REG_BIT(15)/* HSW+ on RCS only*/ + +#define MI_OPCODE (x) (((x) >> 23) & 0x3f) +#define IS_MI_LRI_CMD (x) (MI_OPCODE(x) == MI_OPCODE(MI_INSTR(0x22, 0))) +#define MI_LRI_LEN (x) (((x) & 0xff) + 1) + +/* +* 3D instructions used by the kernel +*/ +#define GFX_INSTR (opcode, flags) ((0x3 << 29) | ((opcode) << 24) | (flags)) + +#define GEN9_MEDIA_POOL_STATE ((0x3 << 29) | (0x2 << 27) | (0x5 << 16) | 4) +#define GEN9_MEDIA_POOL_ENABLE (1 << 31) +#define GFX_OP_RASTER_RULES ((0x3<<29)|(0x7<<24)) +#define GFX_OP_SCISSOR ((0x3<<29)|(0x1c<<24)|(0x10<<19)) +#define SC_UPDATE_SCISSOR (0x1<<1) +#define SC_ENABLE_MASK (0x1<<0) +#define SC_ENABLE (0x1<<0) +#define GFX_OP_LOAD_INDIRECT ((0x3<<29)|(0x1d<<24)|(0x7<<16)) +#define GFX_OP_SCISSOR_INFO ((0x3<<29)|(0x1d<<24)|(0x81<<16)|(0x1)) +#define SCI_YMIN_MASK (0xffff<<16) +#define SCI_XMIN_MASK (0xffff<<0) +#define SCI_YMAX_MASK (0xffff<<16) +#define SCI_XMAX_MASK (0xffff<<0) +#define GFX_OP_SCISSOR_ENABLE ((0x3<<29)|(0x1c<<24)|(0x10<<19)) +#define GFX_OP_SCISSOR_RECT ((0x3<<29)|(0x1d<<24)|(0x81<<16)|1) +#define GFX_OP_COLOR_FACTOR ((0x3<<29)|(0x1d<<24)|(0x1<<16)|0x0) +#define GFX_OP_STIPPLE ((0x3<<29)|(0x1d<<24)|(0x83<<16)) +#define GFX_OP_MAP_INFO ((0x3<<29)|(0x1d<<24)|0x4) +#define GFX_OP_DESTBUFFER_VARS ((0x3<<29)|(0x1d<<24)|(0x85<<16)|0x0) +#define GFX_OP_DESTBUFFER_INFO ((0x3<<29)|(0x1d<<24)|(0x8e<<16)|1) +#define GFX_OP_DRAWRECT_INFO ((0x3<<29)|(0x1d<<24)|(0x80<<16)|(0x3)) +#define GFX_OP_DRAWRECT_INFO_I965 ((0x7900<<16)|0x2) + +#define XY_CTRL_SURF_INSTR_SIZE 5 +#define MI_FLUSH_DW_SIZE 3 +#define XY_CTRL_SURF_COPY_BLT ((2 << 29) | (0x48 << 22) | 3) +#define SRC_ACCESS_TYPE_SHIFT 21 +#define DST_ACCESS_TYPE_SHIFT 20 +#define CCS_SIZE_MASK 0x3FF +#define CCS_SIZE_SHIFT 8 +#define XY_CTRL_SURF_MOCS_MASK GENMASK(31, 25) +#define NUM_CCS_BYTES_PER_BLOCK 256 +#define NUM_BYTES_PER_CCS_BYTE 256 +#define NUM_CCS_BLKS_PER_XFER 1024 +#define INDIRECT_ACCESS 0 +#define DIRECT_ACCESS 1 + +#define COLOR_BLT_CMD (2 << 29 | 0x40 << 22 | (5 - 2)) +#define XY_COLOR_BLT_CMD (2 << 29 | 0x50 << 22) +#define XY_FAST_COLOR_BLT_CMD (2 << 29 | 0x44 << 22) +#define XY_FAST_COLOR_BLT_DEPTH_32 (2 << 19) +#define XY_FAST_COLOR_BLT_DW 16 +#define XY_FAST_COLOR_BLT_MOCS_MASK GENMASK(27, 21) +#define XY_FAST_COLOR_BLT_MEM_TYPE_SHIFT 31 + +#define XY_FAST_COPY_BLT_D0_SRC_TILING_MASK REG_GENMASK(21, 20) +#define XY_FAST_COPY_BLT_D0_DST_TILING_MASK REG_GENMASK(14, 13) +#define XY_FAST_COPY_BLT_D0_SRC_TILE_MODE (mode) \ + REG_FIELD_PREP(XY_FAST_COPY_BLT_D0_SRC_TILING_MASK, mode) +#define XY_FAST_COPY_BLT_D0_DST_TILE_MODE (mode) \ + REG_FIELD_PREP(XY_FAST_COPY_BLT_D0_DST_TILING_MASK, mode) +#define LINEAR 0 +#define TILE_X 0x1 +#define XMAJOR 0x1 +#define YMAJOR 0x2 +#define TILE_64 0x3 +#define XY_FAST_COPY_BLT_D1_SRC_TILE4 REG_BIT(31) +#define XY_FAST_COPY_BLT_D1_DST_TILE4 REG_BIT(30) +#define BLIT_CCTL_SRC_MOCS_MASK REG_GENMASK(6, 0) +#define BLIT_CCTL_DST_MOCS_MASK REG_GENMASK(14, 8) +/* Note: MOCS value = (index << 1) */ +#define BLIT_CCTL_SRC_MOCS (idx) \ + REG_FIELD_PREP(BLIT_CCTL_SRC_MOCS_MASK, (idx) << 1) +#define BLIT_CCTL_DST_MOCS (idx) \ + REG_FIELD_PREP(BLIT_CCTL_DST_MOCS_MASK, (idx) << 1) + +#define SRC_COPY_BLT_CMD (2 << 29 | 0x43 << 22) +#define GEN9_XY_FAST_COPY_BLT_CMD (2 << 29 | 0x42 << 22) +#define XY_SRC_COPY_BLT_CMD (2 << 29 | 0x53 << 22) +#define XY_MONO_SRC_COPY_IMM_BLT (2 << 29 | 0x71 << 22 | 5) +#define BLT_WRITE_A (2<<20) +#define BLT_WRITE_RGB (1<<20) +#define BLT_WRITE_RGBA (BLT_WRITE_RGB | BLT_WRITE_A) +#define BLT_DEPTH_8 (0<<24) +#define BLT_DEPTH_16_565 (1<<24) +#define BLT_DEPTH_16_1555 (2<<24) +#define BLT_DEPTH_32 (3<<24) +#define BLT_ROP_SRC_COPY (0xcc<<16) +#define BLT_ROP_COLOR_COPY (0xf0<<16) +#define XY_SRC_COPY_BLT_SRC_TILED (1<<15)/* 965+ only */ +#define XY_SRC_COPY_BLT_DST_TILED (1<<11)/* 965+ only */ +#define CMD_OP_DISPLAYBUFFER_INFO ((0x0<<29)|(0x14<<23)|2) +#define ASYNC_FLIP (1<<22) +#define DISPLAY_PLANE_A (0<<20) +#define DISPLAY_PLANE_B (1<<20) +#define GFX_OP_PIPE_CONTROL (len) ((0x3<<29)|(0x3<<27)|(0x2<<24)|((len)-2)) +#define PIPE_CONTROL_COMMAND_CACHE_INVALIDATE (1<<29)/* gen11+ */ +#define PIPE_CONTROL_TILE_CACHE_FLUSH (1<<28)/* gen11+ */ +#define PIPE_CONTROL_FLUSH_L3 (1<<27) +#define PIPE_CONTROL_AMFS_FLUSH (1<<25)/* gen12+ */ +#define PIPE_CONTROL_GLOBAL_GTT_IVB (1<<24)/* gen7+ */ +#define PIPE_CONTROL_MMIO_WRITE (1<<23) +#define PIPE_CONTROL_STORE_DATA_INDEX (1<<21) +#define PIPE_CONTROL_CS_STALL (1<<20) +#define PIPE_CONTROL_GLOBAL_SNAPSHOT_RESET (1<<19) +#define PIPE_CONTROL_TLB_INVALIDATE (1<<18) +#define PIPE_CONTROL_PSD_SYNC (1<<17)/* gen11+ */ +#define PIPE_CONTROL_MEDIA_STATE_CLEAR (1<<16) +#define PIPE_CONTROL_WRITE_TIMESTAMP (3<<14) +#define PIPE_CONTROL_QW_WRITE (1<<14) +#define PIPE_CONTROL_POST_SYNC_OP_MASK (3<<14) +#define PIPE_CONTROL_DEPTH_STALL (1<<13) +#define PIPE_CONTROL_WRITE_FLUSH (1<<12) +#define PIPE_CONTROL_RENDER_TARGET_CACHE_FLUSH (1<<12)/* gen6+ */ +#define PIPE_CONTROL_INSTRUCTION_CACHE_INVALIDATE (1<<11)/* MBZ on ILK */ +#define PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE (1<<10)/* GM45+ only */ +#define PIPE_CONTROL_INDIRECT_STATE_DISABLE (1<<9) +#define PIPE_CONTROL0_HDC_PIPELINE_FLUSH REG_BIT(9)/* gen12 */ +#define PIPE_CONTROL_NOTIFY (1<<8) +#define PIPE_CONTROL_FLUSH_ENABLE (1<<7)/* gen7+ */ +#define PIPE_CONTROL_DC_FLUSH_ENABLE (1<<5) +#define PIPE_CONTROL_VF_CACHE_INVALIDATE (1<<4) +#define PIPE_CONTROL_CONST_CACHE_INVALIDATE (1<<3) +#define PIPE_CONTROL_STATE_CACHE_INVALIDATE (1<<2) +#define PIPE_CONTROL_STALL_AT_SCOREBOARD (1<<1) +#define PIPE_CONTROL_DEPTH_CACHE_FLUSH (1<<0) +#define PIPE_CONTROL_GLOBAL_GTT (1<<2)/* in addr dword */ + +/* +* 3D-related flags that can't be set on _engines_ that lack access to the 3D +* pipeline (i.e., CCS engines). +*/ +#define PIPE_CONTROL_3D_ENGINE_FLAGS (\ + PIPE_CONTROL_RENDER_TARGET_CACHE_FLUSH | \ + PIPE_CONTROL_DEPTH_CACHE_FLUSH | \ + PIPE_CONTROL_TILE_CACHE_FLUSH | \ + PIPE_CONTROL_DEPTH_STALL | \ + PIPE_CONTROL_STALL_AT_SCOREBOARD | \ + PIPE_CONTROL_PSD_SYNC | \ + PIPE_CONTROL_AMFS_FLUSH | \ + PIPE_CONTROL_VF_CACHE_INVALIDATE | \ + PIPE_CONTROL_GLOBAL_SNAPSHOT_RESET) + +/* 3D-related flags that can't be set on _platforms_ that lack a 3D pipeline */ +#define PIPE_CONTROL_3D_ARCH_FLAGS ( \ + PIPE_CONTROL_3D_ENGINE_FLAGS | \ + PIPE_CONTROL_INDIRECT_STATE_DISABLE | \ + PIPE_CONTROL_FLUSH_ENABLE | \ + PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE | \ + PIPE_CONTROL_DC_FLUSH_ENABLE) + +#define MI_MATH (x) MI_INSTR(0x1a, (x) - 1) +#define MI_MATH_INSTR (opcode, op1, op2) ((opcode) << 20 | (op1) << 10 | (op2)) +/* Opcodes for MI_MATH_INSTR */ +#define MI_MATH_NOOP MI_MATH_INSTR(0x000, 0x0, 0x0) +#define MI_MATH_LOAD (op1, op2) MI_MATH_INSTR(0x080, op1, op2) +#define MI_MATH_LOADINV (op1, op2) MI_MATH_INSTR(0x480, op1, op2) +#define MI_MATH_LOAD0 (op1) MI_MATH_INSTR(0x081, op1) +#define MI_MATH_LOAD1 (op1) MI_MATH_INSTR(0x481, op1) +#define MI_MATH_ADD MI_MATH_INSTR(0x100, 0x0, 0x0) +#define MI_MATH_SUB MI_MATH_INSTR(0x101, 0x0, 0x0) +#define MI_MATH_AND MI_MATH_INSTR(0x102, 0x0, 0x0) +#define MI_MATH_OR MI_MATH_INSTR(0x103, 0x0, 0x0) +#define MI_MATH_XOR MI_MATH_INSTR(0x104, 0x0, 0x0) +#define MI_MATH_STORE (op1, op2) MI_MATH_INSTR(0x180, op1, op2) +#define MI_MATH_STOREINV (op1, op2) MI_MATH_INSTR(0x580, op1, op2) +/* Registers used as operands in MI_MATH_INSTR */ +#define MI_MATH_REG (x) (x) +#define MI_MATH_REG_SRCA 0x20 +#define MI_MATH_REG_SRCB 0x21 +#define MI_MATH_REG_ACCU 0x31 +#define MI_MATH_REG_ZF 0x32 +#define MI_MATH_REG_CF 0x33 + +/* +* Media instructions used by the kernel +*/ +#define MEDIA_INSTR (pipe, op, sub_op, flags) \ + (__INSTR(INSTR_RC_CLIENT) | (pipe) << INSTR_SUBCLIENT_SHIFT | \ + (op) << INSTR_26_TO_24_SHIFT | (sub_op) << 16 | (flags)) + +#define MFX_WAIT MEDIA_INSTR(1, 0, 0, 0) +#define MFX_WAIT_DW0_MFX_SYNC_CONTROL_FLAG REG_BIT(8) +#define MFX_WAIT_DW0_PXP_SYNC_CONTROL_FLAG REG_BIT(9) + +#define CRYPTO_KEY_EXCHANGE MEDIA_INSTR(2, 6, 9, 0) + +/* +* Commands used only by the command parser +*/ +#define MI_SET_PREDICATE MI_INSTR(0x01, 0) +#define MI_ARB_CHECK MI_INSTR(0x05, 0) +#define MI_RS_CONTROL MI_INSTR(0x06, 0) +#define MI_URB_ATOMIC_ALLOC MI_INSTR(0x09, 0) +#define MI_PREDICATE MI_INSTR(0x0C, 0) +#define MI_RS_CONTEXT MI_INSTR(0x0F, 0) +#define MI_TOPOLOGY_FILTER MI_INSTR(0x0D, 0) +#define MI_LOAD_SCAN_LINES_EXCL MI_INSTR(0x13, 0) +#define MI_URB_CLEAR MI_INSTR(0x19, 0) +#define MI_UPDATE_GTT MI_INSTR(0x23, 0) +#define MI_CLFLUSH MI_INSTR(0x27, 0) +#define MI_REPORT_PERF_COUNT MI_INSTR(0x28, 0) +#define MI_REPORT_PERF_COUNT_GGTT (1<<0) +#define MI_RS_STORE_DATA_IMM MI_INSTR(0x2B, 0) +#define MI_LOAD_URB_MEM MI_INSTR(0x2C, 0) +#define MI_STORE_URB_MEM MI_INSTR(0x2D, 0) +#define MI_CONDITIONAL_BATCH_BUFFER_END MI_INSTR(0x36, 0) +#define MI_DO_COMPARE REG_BIT(21) + +#define STATE_BASE_ADDRESS \ + ((0x3 << 29) | (0x0 << 27) | (0x1 << 24) | (0x1 << 16)) +#define BASE_ADDRESS_MODIFY REG_BIT(0) +#define PIPELINE_SELECT \ + ((0x3 << 29) | (0x1 << 27) | (0x1 << 24) | (0x4 << 16)) +#define PIPELINE_SELECT_MEDIA REG_BIT(0) +#define GFX_OP_3DSTATE_VF_STATISTICS \ + ((0x3 << 29) | (0x1 << 27) | (0x0 << 24) | (0xB << 16)) +#define MEDIA_VFE_STATE \ + ((0x3 << 29) | (0x2 << 27) | (0x0 << 24) | (0x0 << 16)) +#define MEDIA_VFE_STATE_MMIO_ACCESS_MASK (0x18) +#define MEDIA_INTERFACE_DESCRIPTOR_LOAD \ + ((0x3 << 29) | (0x2 << 27) | (0x0 << 24) | (0x2 << 16)) +#define MEDIA_OBJECT \ + ((0x3 << 29) | (0x2 << 27) | (0x1 << 24) | (0x0 << 16)) +#define GPGPU_OBJECT ((0x3<<29)|(0x2<<27)|(0x1<<24)|(0x4<<16)) +#define GPGPU_WALKER ((0x3<<29)|(0x2<<27)|(0x1<<24)|(0x5<<16)) +#define GFX_OP_3DSTATE_DX9_CONSTANTF_VS \ + ((0x3<<29)|(0x3<<27)|(0x0<<24)|(0x39<<16)) +#define GFX_OP_3DSTATE_DX9_CONSTANTF_PS \ + ((0x3<<29)|(0x3<<27)|(0x0<<24)|(0x3A<<16)) +#define GFX_OP_3DSTATE_SO_DECL_LIST \ + ((0x3<<29)|(0x3<<27)|(0x1<<24)|(0x17<<16)) + +#define GFX_OP_3DSTATE_BINDING_TABLE_EDIT_VS \ + ((0x3<<29)|(0x3<<27)|(0x0<<24)|(0x43<<16)) +#define GFX_OP_3DSTATE_BINDING_TABLE_EDIT_GS \ + ((0x3<<29)|(0x3<<27)|(0x0<<24)|(0x44<<16)) +#define GFX_OP_3DSTATE_BINDING_TABLE_EDIT_HS \ + ((0x3<<29)|(0x3<<27)|(0x0<<24)|(0x45<<16)) +#define GFX_OP_3DSTATE_BINDING_TABLE_EDIT_DS \ + ((0x3<<29)|(0x3<<27)|(0x0<<24)|(0x46<<16)) +#define GFX_OP_3DSTATE_BINDING_TABLE_EDIT_PS \ + ((0x3<<29)|(0x3<<27)|(0x0<<24)|(0x47<<16)) + +#define COLOR_BLT ((0x2<<29)|(0x40<<22)) +#define SRC_COPY_BLT ((0x2<<29)|(0x43<<22)) + +#define GSC_INSTR (opcode, data, flags) \ + (__INSTR(INSTR_GSC_CLIENT) | (opcode) << 22 | (data) << 9 | (flags)) + +#define GSC_FW_LOAD GSC_INSTR(1, 0, 2) +#define HECI1_FW_LIMIT_VALID (1 << 31) + +/* +* Used to convert any address to canonical form. +* Starting from gen8, some commands (e.g. STATE_BASE_ADDRESS, +* MI_LOAD_REGISTER_MEM and others, see Broadwell PRM Vol2a) require the +* addresses to be in a canonical form: +* "GraphicsAddress[63:48] are ignored by the HW and assumed to be in correct +* canonical form [63:48] == [47]." +*/ +#define GEN8_HIGH_ADDRESS_BIT 47 +static inline u64 gen8_canonical_addr (u64 address) +{ +return sign_extend64 (address,GEN8_HIGH_ADDRESS_BIT ); +} + +static inline u64 gen8_noncanonical_addr (u64 address) +{ +return address &GENMASK_ULL (GEN8_HIGH_ADDRESS_BIT ,0 ); +} + +static inline u32 *__gen6_emit_bb_start (u32 *cs,u32 addr,unsigned int flags) +{ + *cs++ =MI_BATCH_BUFFER_START | flags; + *cs++ = addr; + +return cs; +} + +#endif /* _INTEL_GPU_COMMANDS_H_ */ include/linux/bitops.h new file +20
-0@@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: MIT */ + +#ifndef _LINUX_BITOPS_H_ +#define _LINUX_BITOPS_H_ + +/* +* Origin of this file requires some comment. +* +* In the i915 we use nicely collected gpu command macros in +* intel_gpu_commands.h file and we want to reuse it here. Moreover we want +* to copy this file verbatimly and not touch it at all. Unfortunatly this file +* includes kernel header which doesn't have its userspace counterpart. +* +* We need to solve this include substituting kernel file with this one and +* provide some scaffold macros which will solve the rest. +*/ + +#include "linux_scaffold.h" + +#endif /* _LINUX_BITOPS_H_ */ include/linux_scaffold.h new file +23
-0@@ -0,0 +1,54 @@ +/* SPDX-License-Identifier: MIT */ + +#ifndef _INTEL_GPU_COMMANDS_SCAFFOLD_H_ +#define _INTEL_GPU_COMMANDS_SCAFFOLD_H_ + +#include <stdint.h> + +typedef uint8_t u8 ; +typedef uint16_t u16 ; +typedef uint32_t u32 ; +typedef uint64_t u64 ; + +typedef int8_t s8 ; +typedef int16_t s16 ; +typedef int32_t s32 ; +typedef int64_t s64 ; + +static inline s64 sign_extend64 (u64 value,int index) +{ +int shift =63 - index; +return (s64)(value << shift) >> shift; +} +
include/linux_scaffold.h line 33
Quoted 10 lines
include/linux_scaffold.h new file +10
-0+#ifndef _AC +# define _AC (X ,Y ) X##Y +#else +# error "_AC macro already defined" +#endif + +/* Make IGT build with Kernels < 4.17 */ +#ifndef _AC +# define _AC (X ,Y ) __AC(X, Y) +#endif
You already have _AC above, but it is not a blocker.
Regards,
Kamil
Quoted 37 lines
include/linux_scaffold.h new file +21
-0+#ifndef _UL +# define _UL (x) (_AC(x, UL)) +#endif +#ifndef _ULL +# define _ULL (x) (_AC(x, ULL)) +#endif + +#define GENMASK (h, l) \ + (((~_UL(0)) - (_UL(1) << (l)) + 1) & \ + (~_UL(0) >> (BITS_PER_LONG - 1 - (h)))) + +#define GENMASK_ULL (h, l) \ + (((~_ULL(0)) - (_ULL(1) << (l)) + 1) & \ + (~_ULL(0) >> (BITS_PER_LONG_LONG - 1 - (h)))) + +#define BITS_PER_BYTE 8 +#define BITS_PER_TYPE (t) (sizeof(t) * BITS_PER_BYTE) +#define BITS_PER_LONG BITS_PER_TYPE(long) +#define BITS_PER_LONG_LONG BITS_PER_TYPE(long long) + +#endif /* _INTEL_GPU_COMMANDS_SCAFFOLD_H_ */ meson.build +1
-1@@ -85,7 +85,7 @@ with_libdrm = get_option('libdrm_drivers') build_info = ['Build type: ' + get_option('buildtype')] -inc = include_directories('include/drm-uapi', 'include/linux-uapi', 'lib', 'lib/stubs/syscalls', '.') +inc = include_directories('include', 'include/drm-uapi', 'include/linux-uapi', 'lib', 'lib/stubs/syscalls', '.') inc_for_gtkdoc = include_directories('lib')Signature · 1 line
2.34.1
PATCH v2 2/3 lib/huc_copy: Rename to avoid macro name clash
In reply to Zbigniew KempczyńskiAdding intel_gpu_commands.h requires to solve some name clashes. Rename MFX_WAIT to HUC_MFX_WAIT to be consistent with other macros in the huc code.
--- lib/huc_copy.c | 6 +++--- lib/huc_copy.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)
lib/huc_copy.c +3 -3
@@ -80,14 +80,14 @@ gen9_huc_copyfunc(int fd, uint64_t ahnd, buf[i++] =0 ; buf[i++] =0x3 ; - buf[i++] =MFX_WAIT ; - buf[i++] =MFX_WAIT ; + buf[i++] =HUC_MFX_WAIT ; + buf[i++] =HUC_MFX_WAIT ; buf[i++] =HUC_PIPE_MODE_SELECT ; buf[i++] =0 ; buf[i++] =0 ; - buf[i++] =MFX_WAIT ; + buf[i++] =HUC_MFX_WAIT ;memset (reloc,0 ,sizeof (reloc));
lib/huc_copy.h +1 -1
@@ -31,7 +31,7 @@#include "intel_reg.h" #define PARALLEL_VIDEO_PIPE (0x3<<29) -#define MFX_WAIT (PARALLEL_VIDEO_PIPE|(0x1<<27)|(0x1<<8)) +#define HUC_MFX_WAIT (PARALLEL_VIDEO_PIPE|(0x1<<27)|(0x1<<8))#define HUC_IMEM_STATE (PARALLEL_VIDEO_PIPE|(0x2<<27)|(0xb<<23)|(0x1<<16)|0x3)#define HUC_PIPE_MODE_SELECT (PARALLEL_VIDEO_PIPE|(0x2<<27)|(0xb<<23)|0x1)
Signature · 1 line
2.34.1
Re: [igt-dev] [PATCH i-g-t v2 2/3] lib/huc_copy: Rename to avoid macro name clash
Hi Zbigniew,
Quoted 6 lines · Zbigniew Kempczyński
Adding
intel_gpu_commands.hrequires to solve some name clashes. RenameMFX_WAITtoHUC_MFX_WAITto be consistent with other macros in the huc code.Signed-off-by Zbigniew Kempczyński <[email protected]>Cc Kamil Konieczny <[email protected]>
imho it may be better to place it as first patch.
Regards,
Kamil
Quoted 43 lines
--- lib/huc_copy.c | 6 +++--- lib/huc_copy.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-)lib/huc_copy.c +3
-3@@ -80,14 +80,14 @@ gen9_huc_copyfunc(int fd, uint64_t ahnd, buf[i++] =0 ; buf[i++] =0x3 ; - buf[i++] =MFX_WAIT ; - buf[i++] =MFX_WAIT ; + buf[i++] =HUC_MFX_WAIT ; + buf[i++] =HUC_MFX_WAIT ; buf[i++] =HUC_PIPE_MODE_SELECT ; buf[i++] =0 ; buf[i++] =0 ; - buf[i++] =MFX_WAIT ; + buf[i++] =HUC_MFX_WAIT ;memset (reloc,0 ,sizeof (reloc));lib/huc_copy.h +1
-1@@ -31,7 +31,7 @@#include "intel_reg.h" #define PARALLEL_VIDEO_PIPE (0x3<<29) -#define MFX_WAIT (PARALLEL_VIDEO_PIPE|(0x1<<27)|(0x1<<8)) +#define HUC_MFX_WAIT (PARALLEL_VIDEO_PIPE|(0x1<<27)|(0x1<<8))#define HUC_IMEM_STATE (PARALLEL_VIDEO_PIPE|(0x2<<27)|(0xb<<23)|(0x1<<16)|0x3)#define HUC_PIPE_MODE_SELECT (PARALLEL_VIDEO_PIPE|(0x2<<27)|(0xb<<23)|0x1)Signature · 1 line
2.34.1
PATCH v2 3/3 igt: Remove duplicated macros
In reply to Zbigniew KempczyńskiIntroducing intel_gpu_commands.h requires removing all conflicting macros definitions with altering the code (mostly command length).
For all commands used in IGT but not in the kernel (yet) add intel_gpu_commands_staging.h which will keep all commands used here only. Next import of command macros might finish verbatim copy + removing from staging in one commit to compile cleanly.
--- benchmarks/gem_wsim.c | 6 +-- include/intel_gpu_commands_staging.h | 18 +++++++ include/linux/bitops.h | 2 + lib/gen4_render.h | 2 - lib/gen7_media.h | 2 - lib/gen7_render.h | 3 -- lib/gen8_media.h | 2 - lib/i830_reg.h | 16 ------ lib/i915/i915_blt.h | 4 +- lib/i915/i915_crc.c | 15 +++--- lib/igt_draw.c | 4 +- lib/igt_dummyload.c | 2 +- lib/igt_store.c | 2 +- lib/intel_allocator.h | 8 +-- lib/intel_aux_pgtable.c | 5 +- lib/intel_batchbuffer.c | 12 ++--- lib/intel_bufops.c | 7 +++ lib/intel_reg.h | 69 ++---------------------- lib/ioctl_wrappers.h | 4 +- lib/rendercopy_gen9.c | 9 ++-- tests/i915/api_intel_bb.c | 2 +- tests/i915/gem_blits.c | 20 ++++--- tests/i915/gem_busy.c | 8 +-- tests/i915/gem_ccs.c | 2 +- tests/i915/gem_ctx_shared.c | 4 +- tests/i915/gem_exec_async.c | 2 +- tests/i915/gem_exec_balancer.c | 23 +++----- tests/i915/gem_exec_capture.c | 4 +- tests/i915/gem_exec_endless.c | 13 +---- tests/i915/gem_exec_fair.c | 18 +++---- tests/i915/gem_exec_fence.c | 43 ++++++--------- tests/i915/gem_exec_flush.c | 6 +-- tests/i915/gem_exec_gttfill.c | 2 +- tests/i915/gem_exec_nop.c | 4 +- tests/i915/gem_exec_parallel.c | 2 +- tests/i915/gem_exec_params.c | 4 +- tests/i915/gem_exec_reloc.c | 29 ++++------ tests/i915/gem_exec_schedule.c | 43 ++++++--------- tests/i915/gem_exec_store.c | 6 +-- tests/i915/gem_exec_suspend.c | 2 +- tests/i915/gem_exec_whisper.c | 2 +- tests/i915/gem_pipe_control_store_loop.c | 11 ++-- tests/i915/gem_pxp.c | 7 +-- tests/i915/gem_ringfill.c | 2 +- tests/i915/gem_softpin.c | 16 +----- tests/i915/gem_sync.c | 16 +++--- tests/i915/gem_userptr_blits.c | 6 +-- tests/i915/gem_vm_create.c | 2 +- tests/i915/gem_watchdog.c | 6 +-- tests/i915/gem_workarounds.c | 2 +- tests/i915/gen7_exec_parse.c | 34 ++++++------ tests/i915/gen9_exec_parse.c | 47 +++++----------- tests/i915/i915_module_load.c | 2 +- tests/i915/perf.c | 17 +----- tests/i915/perf_pmu.c | 18 +++---- tests/i915/sysfs_timeslice_duration.c | 17 ++---- tests/prime_vgem.c | 2 +- tools/intel_audio_dump.c | 1 + tools/intel_reg.c | 2 +- 59 files changed, 226 insertions(+), 413 deletions(-) create mode 100644 include/intel_gpu_commands_staging.h
benchmarks/gem_wsim.c +3 -3
@@ -1426,7 +1426,7 @@ static unsigned int create_bb(struct w_step *w, int self) cs = ptr =gem_mmap__wc (fd, w->bb_handle,0 ,4096 ,PROT_WRITE );/* Store initial 64b timestamp: start */ - *cs++ =MI_LOAD_REGISTER_IMM |MI_CS_MMIO_DST ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ) |MI_CS_MMIO_DST ; *cs++ =CS_GPR (START_TS ) +4 ; *cs++ =0 ; *cs++ =MI_LOAD_REGISTER_REG |MI_CS_MMIO_DST |MI_CS_MMIO_SRC ;
@@ -1441,7 +1441,7 @@ static unsigned int create_bb(struct w_step *w, int self) *cs++ =MI_ARB_CHECK ;/* Store this 64b timestamp: now */ - *cs++ =MI_LOAD_REGISTER_IMM |MI_CS_MMIO_DST ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ) |MI_CS_MMIO_DST ; *cs++ =CS_GPR (NOW_TS ) +4 ; *cs++ =0 ; *cs++ =MI_LOAD_REGISTER_REG |MI_CS_MMIO_DST |MI_CS_MMIO_SRC ;
@@ -1456,7 +1456,7 @@ static unsigned int create_bb(struct w_step *w, int self) *cs++ =MI_MATH_STOREINV (MI_MATH_REG (NOW_TS ),MI_MATH_REG_ACCU );/* Save delta for indirect read by COND_BBE */ - *cs++ =MI_STORE_REGISTER_MEM | (1 + use_64b) |MI_CS_MMIO_DST ; + *cs++ =MI_STORE_REGISTER_MEM_CMD | (1 + use_64b) |MI_CS_MMIO_DST ; *cs++ =CS_GPR (NOW_TS ); w->reloc[r].target_handle = self; w->reloc[r].offset =offset_in_page (cs);
include/intel_gpu_commands_staging.h new file +18 -0
@@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: MIT*/ +/* +* Copyright © 2022 Intel Corporation +*/ + +#ifndef _INTEL_GPU_COMMANDS_STAGING_H_ +#define _INTEL_GPU_COMMANDS_STAGING_H_ + +#include "linux_scaffold.h" + +/* Length-free commands */ +#define MI_SEMAPHORE_WAIT_CMD (0x1c << 23) +#define MI_STORE_DWORD_IMM_CMD (0x20 << 23) +#define MI_STORE_REGISTER_MEM_CMD (0x24 << 23) +#define MI_FLUSH_DW_CMD (0x26 << 23) +#define MI_LOAD_REGISTER_MEM_CMD (0x29 << 23) + +#endif /* _INTEL_GPU_COMMANDS_STAGING_H_ */
include/linux/bitops.h +2 -0
@@ -17,4 +17,6 @@#include "linux_scaffold.h" +#define REG_BIT (x) (1ul << (x)) +#endif /* _LINUX_BITOPS_H_ */
lib/gen4_render.h +0 -2
@@ -25,14 +25,12 @@#define GEN4_CS_URB_STATE GEN4_3D(0, 0, 1)#define GEN4_STATE_BASE_ADDRESS GEN4_3D(0, 1, 1) -# define BASE_ADDRESS_MODIFY (1 << 0)#define GEN4_STATE_SIP GEN4_3D(0, 1, 2)#define GEN4_PIPELINE_SELECT GEN4_3D(0, 1, 4)#define G4X_PIPELINE_SELECT GEN4_3D(1, 1, 4)# define PIPELINE_SELECT_3D 0 -# define PIPELINE_SELECT_MEDIA 1#define GEN4_3DSTATE_PIPELINED_POINTERS GEN4_3D(3, 0, 0)# define GEN4_GS_DISABLE 0
lib/gen7_media.h +0 -2
@@ -14,11 +14,9 @@#define GEN7_PIPELINE_SELECT GFXPIPE(1, 1, 4)# define PIPELINE_SELECT_3D (0 << 0) -# define PIPELINE_SELECT_MEDIA (1 << 0)# define PIPELINE_SELECT_GPGPU (2 << 0)#define GEN7_STATE_BASE_ADDRESS GFXPIPE(0, 1, 1) -# define BASE_ADDRESS_MODIFY (1 << 0)#define GEN7_MEDIA_VFE_STATE GFXPIPE(2, 0, 0)#define GEN7_MEDIA_CURBE_LOAD GFXPIPE(2, 0, 1)
lib/gen7_render.h +0 -3
@@ -170,9 +170,6 @@/* DW1 */ # define GEN7_PUSH_CONSTANT_BUFFER_OFFSET_SHIFT 16 -/* for GEN7_STATE_BASE_ADDRESS */ -#define BASE_ADDRESS_MODIFY (1 << 0) -/* for GEN7_PIPE_CONTROL */ #define GEN7_PIPE_CONTROL_CS_STALL (1 << 20)#define GEN7_PIPE_CONTROL_STALL_AT_SCOREBOARD (1 << 1)
lib/gen8_media.h +0 -2
@@ -14,10 +14,8 @@#define GEN8_PIPELINE_SELECT GFXPIPE(1, 1, 4)# define PIPELINE_SELECT_3D (0 << 0) -# define PIPELINE_SELECT_MEDIA (1 << 0)#define GEN8_STATE_BASE_ADDRESS GFXPIPE(0, 1, 1) -# define BASE_ADDRESS_MODIFY (1 << 0)#define GEN8_MEDIA_VFE_STATE GFXPIPE(2, 0, 0)#define GEN8_MEDIA_CURBE_LOAD GFXPIPE(2, 0, 1)
lib/i830_reg.h +0 -16
@@ -30,12 +30,7 @@#define I830_SET_FIELD ( var, mask, value ) (var &= ~(mask), var |= value) -/* Flush */ -#define MI_FLUSH (0x04<<23) -#define MI_FLUSH_DW (0x26<<23) -#define MI_WRITE_DIRTY_STATE (1<<4) -#define MI_END_SCENE (1<<3)#define MI_GLOBAL_SNAPSHOT_COUNT_RESET (1<<3)#define MI_INHIBIT_RENDER_CACHE_FLUSH (1<<2)#define MI_STATE_INSTRUCTION_CACHE_FLUSH (1<<1)
@@ -43,15 +38,11 @@/* broadwater flush bits */ #define BRW_MI_GLOBAL_SNAPSHOT_RESET (1 << 3) -#define MI_BATCH_BUFFER_END (0xA << 23) -/* Noop */ -#define MI_NOOP 0x00#define MI_NOOP_WRITE_ID (1<<22)#define MI_NOOP_ID_MASK (1<<22 - 1)/* Wait for Events */ -#define MI_WAIT_FOR_EVENT (0x03<<23)#define MI_WAIT_FOR_PIPEB_SVBLANK (1<<18)#define MI_WAIT_FOR_PIPEA_SVBLANK (1<<17)#define MI_WAIT_FOR_OVERLAY_FLIP (1<<16)
@@ -61,12 +52,10 @@#define MI_WAIT_FOR_PIPEA_SCAN_LINE_WINDOW (1<<1)/* Set the scan line for MI_WAIT_FOR_PIPE?_SCAN_LINE_WINDOW */ -#define MI_LOAD_SCAN_LINES_INCL (0x12<<23)#define MI_LOAD_SCAN_LINES_DISPLAY_PIPEA (0)#define MI_LOAD_SCAN_LINES_DISPLAY_PIPEB (0x1<<20)/* BLT commands */ -#define COLOR_BLT_CMD ((2<<29)|(0x40<<22)|(0x3))#define COLOR_BLT_WRITE_ALPHA (1<<21)#define COLOR_BLT_WRITE_RGB (1<<20)
@@ -76,16 +65,11 @@#define XY_SETUP_CLIP_BLT_CMD ((2<<29)|(3<<22)|1) -#define XY_SRC_COPY_BLT_CMD ((2<<29)|(0x53<<22))#define XY_SRC_COPY_BLT_WRITE_ALPHA (1<<21)#define XY_SRC_COPY_BLT_WRITE_RGB (1<<20)#define XY_SRC_COPY_BLT_SRC_TILED (1<<15)#define XY_SRC_COPY_BLT_DST_TILED (1<<11) -#define SRC_COPY_BLT_CMD ((2<<29)|(0x43<<22)|0x4) -#define SRC_COPY_BLT_WRITE_ALPHA (1<<21) -#define SRC_COPY_BLT_WRITE_RGB (1<<20) -#define XY_PAT_BLT_IMMEDIATE ((2<<29)|(0x72<<22))#define XY_MONO_PAT_BLT_CMD ((0x2<<29)|(0x52<<22)|0x7)
lib/i915/i915_blt.h +2 -2
@@ -135,8 +135,8 @@ struct blt_block_copy_data_ext { };enum blt_access_type { -INDIRECT_ACCESS , -DIRECT_ACCESS , +BLT_INDIRECT_ACCESS , +BLT_DIRECT_ACCESS , };struct blt_ctrl_surf_copy_object {
lib/i915/i915_crc.c +7 -8
@@ -9,7 +9,6 @@#include "gem_create.h" #include "gem_engine_topology.h" #include "gem_mman.h" -#include "i830_reg.h" #include "i915_drm.h" #include "intel_reg.h" #include "intel_chipset.h"
@@ -36,13 +35,13 @@ } while (0)#define LOAD_REGISTER_IMM32 (__reg, __imm1) do { \ - *bb++ = MI_LOAD_REGISTER_IMM | MI_CS_MMIO_DST; \ + *bb++ = MI_LOAD_REGISTER_IMM(1) | MI_CS_MMIO_DST; \ *bb++ = (__reg); \ *bb++ = (__imm1); \ } while (0)#define LOAD_REGISTER_IMM64 (__reg, __imm1, __imm2) do { \ - *bb++ = (MI_LOAD_REGISTER_IMM + 2) | MI_CS_MMIO_DST; \ + *bb++ = MI_LOAD_REGISTER_IMM(2) | MI_CS_MMIO_DST; \ *bb++ = (__reg); \ *bb++ = (__imm1); \ *bb++ = (__reg) + 4; \
@@ -50,29 +49,29 @@ } while (0)#define LOAD_REGISTER_MEM (__reg, __offset) do { \ - *bb++ = MI_LOAD_REGISTER_MEM | MI_CS_MMIO_DST | 2; \ + *bb++ = MI_LOAD_REGISTER_MEM_CMD | MI_CS_MMIO_DST | 2; \ *bb++ = (__reg); \ *bb++ = (__offset); \ *bb++ = (__offset) >> 32; \ } while (0)#define LOAD_REGISTER_MEM_WPARID (__reg, __offset) do { \ - *bb++ = MI_LOAD_REGISTER_MEM | MI_CS_MMIO_DST | MI_WPARID_ENABLE_GEN12 | 2; \ + *bb++ = MI_LOAD_REGISTER_MEM_CMD | MI_CS_MMIO_DST | MI_WPARID_ENABLE_GEN12 | 2; \ *bb++ = (__reg); \ *bb++ = (__offset); \ *bb++ = (__offset) >> 32; \ } while (0)#define STORE_REGISTER_MEM (__reg, __offset) do { \ - *bb++ = MI_STORE_REGISTER_MEM | MI_CS_MMIO_DST | 2; \ + *bb++ = MI_STORE_REGISTER_MEM_GEN8 | MI_CS_MMIO_DST; \ *bb++ = (__reg); \ *bb++ = (__offset); \ *bb++ = (__offset) >> 32; \ } while (0)#define STORE_REGISTER_MEM_PREDICATED (__reg, __offset) do { \ - *bb++ = MI_STORE_REGISTER_MEM | MI_CS_MMIO_DST | \ - MI_STORE_PREDICATE_ENABLE_GEN12 | 2; \ + *bb++ = MI_STORE_REGISTER_MEM_GEN8 | MI_CS_MMIO_DST | \ + MI_STORE_PREDICATE_ENABLE_GEN12; \ *bb++ = (__reg); \ *bb++ = (__offset); \ *bb++ = (__offset) >> 32; \
lib/igt_draw.c +2 -2
@@ -385,12 +385,12 @@ static void switch_blt_tiling(struct intel_bb *ibb, uint32_t tiling, bool on)/* To change the tile register, insert an MI_FLUSH_DW followed by an * MI_LOAD_REGISTER_IMM */ -intel_bb_out (ibb,MI_FLUSH_DW |2 ); +intel_bb_out (ibb,MI_FLUSH_DW_CMD |2 );intel_bb_out (ibb,0x0 );intel_bb_out (ibb,0x0 );intel_bb_out (ibb,0x0 ); -intel_bb_out (ibb,MI_LOAD_REGISTER_IMM ); +intel_bb_out (ibb,MI_LOAD_REGISTER_IMM (1 ));intel_bb_out (ibb,0x22200 );/* BCS_SWCTRL */ intel_bb_out (ibb, bcs_swctrl);intel_bb_out (ibb,MI_NOOP );
lib/igt_dummyload.c +1 -1
@@ -256,7 +256,7 @@ emit_recursive_batch(igt_spin_t *spin, r->offset =sizeof (uint32_t ) *1 ; r->delta =sizeof (uint32_t ) *SPIN_POLL_START_IDX ; - *cs++ =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + *cs++ =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { *cs++ = r->presumed_offset + r->delta;
lib/igt_store.c +1 -1
@@ -76,7 +76,7 @@ void igt_store_word(int fd, uint64_t ahnd, const intel_ctx_t *ctx, obj[BATCH ].offset = bb_offset; obj[BATCH ].flags |=EXEC_OBJECT_PINNED ; } - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) {uint64_t addr = target_gpu_addr + delta; batch[++i] =lower_32_bits (addr);
lib/intel_allocator.h +1 -7
@@ -12,6 +12,7 @@#include <stdint.h> #include <stdatomic.h> #include "i915/gem_submission.h" +#include "intel_reg.h" /** * SECTION:intel_allocator
@@ -217,13 +218,6 @@ void intel_allocator_print(uint64_t allocator_handle);#define GEN8_GTT_ADDRESS_WIDTH 48 -static inline uint64_t sign_extend64 (uint64_t x,int high) -{ -int shift =63 - high; - -return (int64_t )(x << shift) >> shift; -} -static inline uint64_t CANONICAL (uint64_t offset) {return sign_extend64 (offset,GEN8_GTT_ADDRESS_WIDTH -1 );
lib/intel_aux_pgtable.c +2 -3
@@ -9,7 +9,6 @@#include "i915/gem_mman.h" -#define BITS_PER_LONG_LONG (sizeof(long long) * 8)#define BITMASK (e, s) ((~0ULL << (s)) & \ (~0ULL >> (BITS_PER_LONG_LONG - 1 - (e))))
@@ -644,11 +643,11 @@ gen12_emit_aux_pgtable_state(struct intel_bb *ibb, uint32_t state, bool render)if (!state)return ; -intel_bb_out (ibb,MI_LOAD_REGISTER_MEM |MI_MMIO_REMAP_ENABLE_GEN12 |2 ); +intel_bb_out (ibb,MI_LOAD_REGISTER_MEM_CMD |MI_MMIO_REMAP_ENABLE_GEN12 |2 );intel_bb_out (ibb, table_base_reg);intel_bb_emit_reloc (ibb, ibb->handle,0 ,0 , state, ibb->batch_offset); -intel_bb_out (ibb,MI_LOAD_REGISTER_MEM |MI_MMIO_REMAP_ENABLE_GEN12 |2 ); +intel_bb_out (ibb,MI_LOAD_REGISTER_MEM_CMD |MI_MMIO_REMAP_ENABLE_GEN12 |2 );intel_bb_out (ibb, table_base_reg +4 );intel_bb_emit_reloc (ibb, ibb->handle,0 ,0 , state +4 , ibb->batch_offset); }
lib/intel_batchbuffer.c +6 -6
@@ -378,7 +378,7 @@ void igt_blitter_src_copy(int fd,if ((src_tiling | dst_tiling) >=I915_TILING_Y ) {unsigned int mask; - batch[i++] =MI_LOAD_REGISTER_IMM ; + batch[i++] =MI_LOAD_REGISTER_IMM (1 ); batch[i++] =BCS_SWCTRL ; mask = (BCS_SRC_Y |BCS_DST_Y ) <<16 ;
@@ -407,12 +407,12 @@ void igt_blitter_src_copy(int fd,if ((src_tiling | dst_tiling) >=I915_TILING_Y ) {igt_assert (gen >=6 ); - batch[i++] =MI_FLUSH_DW |2 ; + batch[i++] =MI_FLUSH_DW_CMD |2 ; batch[i++] =0 ; batch[i++] =0 ; batch[i++] =0 ; - batch[i++] =MI_LOAD_REGISTER_IMM ; + batch[i++] =MI_LOAD_REGISTER_IMM (1 ); batch[i++] =BCS_SWCTRL ; batch[i++] = (BCS_SRC_Y |BCS_DST_Y ) <<16 ; }
@@ -2413,7 +2413,7 @@ void intel_bb_emit_blt_copy(struct intel_bb *ibb, }if ((src->tiling | dst->tiling) >=I915_TILING_Y ) { -intel_bb_out (ibb,MI_LOAD_REGISTER_IMM ); +intel_bb_out (ibb,MI_LOAD_REGISTER_IMM (1 ));intel_bb_out (ibb,BCS_SWCTRL ); mask = (BCS_SRC_Y |BCS_DST_Y ) <<16 ;
@@ -2450,12 +2450,12 @@ void intel_bb_emit_blt_copy(struct intel_bb *ibb,if ((src->tiling | dst->tiling) >=I915_TILING_Y ) {igt_assert (ibb->gen >=6 ); -intel_bb_out (ibb,MI_FLUSH_DW |2 ); +intel_bb_out (ibb,MI_FLUSH_DW_CMD |2 );intel_bb_out (ibb,0 );intel_bb_out (ibb,0 );intel_bb_out (ibb,0 ); -intel_bb_out (ibb,MI_LOAD_REGISTER_IMM ); +intel_bb_out (ibb,MI_LOAD_REGISTER_IMM (1 ));intel_bb_out (ibb,BCS_SWCTRL );intel_bb_out (ibb, (BCS_SRC_Y |BCS_DST_Y ) <<16 ); }
lib/intel_bufops.c +7 -0
@@ -83,6 +83,13 @@#define DEBUGFN ()#endif +#undef TILE_NONE +#undef TILE_X +#undef TILE_Y +#undef TILE_Yf +#undef TILE_Ys +#undef TILE_4 +#define TILE_DEF (x) (1 << (x))#define TILE_NONE TILE_DEF(I915_TILING_NONE)#define TILE_X TILE_DEF(I915_TILING_X)
lib/intel_reg.h +3 -66
154 lines not on this page · raw message
lib/ioctl_wrappers.h +2 -2
@@ -173,9 +173,9 @@ static inline uint64_t to_user_pointer(const void *ptr)* * Casts a 64bit value from an ioctl into a pointer. */ -static inline void *from_user_pointer (uint64_t u64) +static inline void *from_user_pointer (uint64_t u64p) { -return (void *)(uintptr_t )u64; +return (void *)(uintptr_t )u64p; }/**
lib/rendercopy_gen9.c +3 -6
@@ -967,10 +967,7 @@ static void gen8_emit_primitive(struct intel_bb *ibb, uint32_t offset)intel_bb_out (ibb,0 );/* index buffer offset, ignored */ } -#define GFX_OP_PIPE_CONTROL ((3 << 29) | (3 << 27) | (2 << 24)) -#define PIPE_CONTROL_CS_STALL (1 << 20)#define PIPE_CONTROL_RENDER_TARGET_FLUSH (1 << 12) -#define PIPE_CONTROL_FLUSH_ENABLE (1 << 7)#define PIPE_CONTROL_DATA_CACHE_INVALIDATE (1 << 5)#define PIPE_CONTROL_PROTECTEDPATH_DISABLE (1 << 27)#define PIPE_CONTROL_PROTECTEDPATH_ENABLE (1 << 22)
@@ -986,7 +983,7 @@ static void gen12_emit_pxp_state(struct intel_bb *ibb, bool enable,if (enable) { pipe_ctl_flags =PIPE_CONTROL_FLUSH_ENABLE ; -intel_bb_out (ibb,GFX_OP_PIPE_CONTROL ); +intel_bb_out (ibb,GFX_OP_PIPE_CONTROL (2 ));intel_bb_out (ibb, pipe_ctl_flags); set_app_id = MI_SET_APPID |
@@ -1005,7 +1002,7 @@ static void gen12_emit_pxp_state(struct intel_bb *ibb, bool enable,PIPE_CONTROL_RENDER_TARGET_FLUSH |PIPE_CONTROL_DATA_CACHE_INVALIDATE | PIPE_CONTROL_POST_SYNC_OP); -intel_bb_out (ibb,GFX_OP_PIPE_CONTROL |4 ); +intel_bb_out (ibb,GFX_OP_PIPE_CONTROL (6 ));intel_bb_out (ibb, pipe_ctl_flags); intel_bb_emit_reloc(ibb, ibb->handle, 0, I915_GEM_DOMAIN_COMMAND, (enable ? pxp_write_op_offset : (pxp_write_op_offset+8)),
@@ -1107,7 +1104,7 @@ void _gen9_render_op(struct intel_bb *ibb,if (fast_clear) {for (int i =0 ; i <4 ; i++) { -intel_bb_out (ibb,MI_STORE_DWORD_IMM ); +intel_bb_out (ibb,MI_STORE_DWORD_IMM_GEN4 ); intel_bb_emit_reloc(ibb, dst->handle, I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER, dst->cc.offset + i*sizeof(float),
tests/i915/api_intel_bb.c +1 -1
@@ -1154,7 +1154,7 @@ static void delta_check(struct buf_ops *bops)intel_bb_add_object (ibb, buf->handle,intel_buf_bo_size (buf), buf->addr.offset,0 , false); -intel_bb_out (ibb,MI_STORE_DWORD_IMM ); +intel_bb_out (ibb,MI_STORE_DWORD_IMM_GEN4 ); intel_bb_emit_reloc(ibb, buf->handle, I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER,
tests/i915/gem_blits.c +9 -11
@@ -27,8 +27,6 @@#include "igt.h" #include "igt_x86.h" -#define MI_FLUSH_DW (0x26 << 23) -#define BCS_SWCTRL 0x22200#define BCS_SRC_Y (1 << 0)#define BCS_DST_Y (1 << 1)
@@ -198,7 +196,7 @@ static void buffer_set_tiling(const struct device *device,if ((tiling | buffer->tiling) >=I915_TILING_Y ) {unsigned int mask; - batch[i++] =MI_LOAD_REGISTER_IMM ; + batch[i++] =MI_LOAD_REGISTER_IMM (1 ); batch[i++] =BCS_SWCTRL ; mask = (BCS_SRC_Y |BCS_DST_Y ) <<16 ;
@@ -248,12 +246,12 @@ static void buffer_set_tiling(const struct device *device,if ((tiling | buffer->tiling) >=I915_TILING_Y ) {igt_assert (device->gen >=6 ); - batch[i++] =MI_FLUSH_DW |2 ; + batch[i++] =MI_FLUSH_DW_CMD |2 ; batch[i++] =0 ; batch[i++] =0 ; batch[i++] =0 ; - batch[i++] =MI_LOAD_REGISTER_IMM ; + batch[i++] =MI_LOAD_REGISTER_IMM (1 ); batch[i++] =BCS_SWCTRL ; batch[i++] = (BCS_SRC_Y |BCS_DST_Y ) <<16 ; }
@@ -345,7 +343,7 @@ static bool blit_to_linear(const struct device *device,if (buffer->tiling >=I915_TILING_Y ) {unsigned int mask; - batch[i++] =MI_LOAD_REGISTER_IMM ; + batch[i++] =MI_LOAD_REGISTER_IMM (1 ); batch[i++] =BCS_SWCTRL ; mask = (BCS_SRC_Y |BCS_DST_Y ) <<16 ;
@@ -388,12 +386,12 @@ static bool blit_to_linear(const struct device *device,if (buffer->tiling >=I915_TILING_Y ) {igt_assert (device->gen >=6 ); - batch[i++] =MI_FLUSH_DW |2 ; + batch[i++] =MI_FLUSH_DW_CMD |2 ; batch[i++] =0 ; batch[i++] =0 ; batch[i++] =0 ; - batch[i++] =MI_LOAD_REGISTER_IMM ; + batch[i++] =MI_LOAD_REGISTER_IMM (1 ); batch[i++] =BCS_SWCTRL ; batch[i++] = (BCS_SRC_Y |BCS_DST_Y ) <<16 ; }
@@ -678,7 +676,7 @@ blit(const struct device *device,if ((src->tiling | dst->tiling) >=I915_TILING_Y ) {unsigned int mask; - batch[i++] =MI_LOAD_REGISTER_IMM ; + batch[i++] =MI_LOAD_REGISTER_IMM (1 ); batch[i++] =BCS_SWCTRL ; mask = (BCS_SRC_Y |BCS_DST_Y ) <<16 ;
@@ -729,12 +727,12 @@ blit(const struct device *device,if ((src->tiling | dst->tiling) >=I915_TILING_Y ) {igt_assert (device->gen >=6 ); - batch[i++] =MI_FLUSH_DW |2 ; + batch[i++] =MI_FLUSH_DW_CMD |2 ; batch[i++] =0 ; batch[i++] =0 ; batch[i++] =0 ; - batch[i++] =MI_LOAD_REGISTER_IMM ; + batch[i++] =MI_LOAD_REGISTER_IMM (1 ); batch[i++] =BCS_SWCTRL ; batch[i++] = (BCS_SRC_Y |BCS_DST_Y ) <<16 ; }
tests/i915/gem_busy.c +4 -4
@@ -235,10 +235,10 @@ static void one(int fd, const intel_ctx_t *ctx,static void xchg_u32 (void *array,unsigned i,unsigned j) { -uint32_t *u32 = array; -uint32_t tmp = u32[i]; - u32[i] = u32[j]; - u32[j] = tmp; +uint32_t *ui32 = array; +uint32_t tmp = ui32[i]; + ui32[i] = ui32[j]; + ui32[j] = tmp; }static void close_race (int fd,const intel_ctx_t *ctx)
tests/i915/gem_ccs.c +1 -1
@@ -137,7 +137,7 @@ static void surf_copy(int i915, surf.i915 = i915; surf.print_bb = param.print_bb;set_surf_object (&surf.src, mid->handle, mid->region, mid->size, - uc_mocs,INDIRECT_ACCESS ); + uc_mocs,BLT_INDIRECT_ACCESS );set_surf_object (&surf.dst, ccs,REGION_SMEM , ccssize, uc_mocs,DIRECT_ACCESS ); bb_size =4096 ;
tests/i915/gem_ctx_shared.c +2 -2
@@ -309,7 +309,7 @@ static void exec_shared_gtt(int i915, const intel_ctx_cfg_t *cfg, batch =gem_create (i915,4096 ); i =0 ; - cs[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + cs[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { cs[++i] = obj.offset; cs[++i] = obj.offset >>32 ;
@@ -564,7 +564,7 @@ static void store_dword(int i915, uint64_t ahnd, const intel_ctx_t *ctx, obj[2 ].relocation_count = !ahnd ?1 :0 ; i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = reloc.presumed_offset + reloc.delta; batch[++i] =0 ;
tests/i915/gem_exec_async.c +1 -1
@@ -73,7 +73,7 @@ static void store_dword(int fd, int id, const intel_ctx_t *ctx, obj[1 ].relocation_count = !id ?1 :0 ; i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = target_offset + offset; batch[++i] = (target_offset + offset) >>32 ;
tests/i915/gem_exec_balancer.c +7 -16
@@ -41,15 +41,6 @@IGT_TEST_DESCRIPTION ("Exercise in-kernel load-balancing" ); -#define MI_SEMAPHORE_WAIT (0x1c << 23) -#define MI_SEMAPHORE_POLL (1 << 15) -#define MI_SEMAPHORE_SAD_GT_SDD (0 << 12) -#define MI_SEMAPHORE_SAD_GTE_SDD (1 << 12) -#define MI_SEMAPHORE_SAD_LT_SDD (2 << 12) -#define MI_SEMAPHORE_SAD_LTE_SDD (3 << 12) -#define MI_SEMAPHORE_SAD_EQ_SDD (4 << 12) -#define MI_SEMAPHORE_SAD_NEQ_SDD (5 << 12) -#define INSTANCE_COUNT (1 << I915_PMU_SAMPLE_INSTANCE_BITS)static size_t sizeof_load_balance (int count)
@@ -589,7 +580,7 @@ static uint32_t create_semaphore_to_spinner(int i915, igt_spin_t *spin)/* Wait until the spinner is running */ addr = spin->obj[0 ].offset +4 *SPIN_POLL_START_IDX ; - *cs++ =MI_SEMAPHORE_WAIT | + *cs++ =MI_SEMAPHORE_WAIT_CMD |MI_SEMAPHORE_POLL |MI_SEMAPHORE_SAD_NEQ_SDD | (4 -2 );
@@ -600,7 +591,7 @@ static uint32_t create_semaphore_to_spinner(int i915, igt_spin_t *spin)/* Then cancel the spinner */ addr = spin->obj[IGT_SPIN_BATCH ].offset +offset_in_page (spin->condition); - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ; *cs++ = addr; *cs++ = addr >>32 ; *cs++ =MI_BATCH_BUFFER_END ;
@@ -1116,7 +1107,7 @@ static uint32_t sync_from(int i915, uint32_t addr, uint32_t target) cs = map =gem_mmap__device_coherent (i915, handle,0 ,4096 ,PROT_WRITE );/* cancel target spinner */ - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ; *cs++ = target +64 ; *cs++ =0 ; *cs++ =0 ;
@@ -1131,7 +1122,7 @@ static uint32_t sync_from(int i915, uint32_t addr, uint32_t target) *cs++ =0 ;/* self-heal */ - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ; *cs++ = addr +64 ; *cs++ =0 ; *cs++ =MI_BATCH_BUFFER_START |1 <<8 |1 ;
@@ -1162,13 +1153,13 @@ static uint32_t sync_to(int i915, uint32_t addr, uint32_t target) *cs++ =MI_NOOP ;/* cancel their spin as a compliment */ - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ; *cs++ = target +64 ; *cs++ =0 ; *cs++ =0 ;/* self-heal */ - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ; *cs++ = addr +64 ; *cs++ =0 ; *cs++ =MI_BATCH_BUFFER_START |1 <<8 |1 ;
@@ -1906,7 +1897,7 @@ static uint32_t sema_create(int i915, uint64_t addr, uint32_t **x)for (int n =1 ; n <=32 ; n++) {uint32_t *cs = *x + n *16 ; - *cs++ =MI_SEMAPHORE_WAIT | + *cs++ =MI_SEMAPHORE_WAIT_CMD |MI_SEMAPHORE_POLL |MI_SEMAPHORE_SAD_GTE_SDD | (4 -2 );
tests/i915/gem_exec_capture.c +2 -2
@@ -308,7 +308,7 @@ static void __capture1(int fd, int dir, uint64_t ahnd, const intel_ctx_t *ctx, I915_GEM_DOMAIN_CPU, I915_GEM_DOMAIN_CPU); i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = obj[SCRATCH ].offset; batch[++i] = obj[SCRATCH ].offset >>32 ;
@@ -498,7 +498,7 @@ __captureN(int fd, int dir, uint64_t ahnd, const intel_ctx_t *ctx, I915_GEM_DOMAIN_CPU, I915_GEM_DOMAIN_CPU); i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = obj[0 ].offset; batch[++i] = obj[0 ].offset >>32 ;
tests/i915/gem_exec_endless.c +2 -11
@@ -33,15 +33,6 @@#define MAX_ENGINES 64 -#define MI_SEMAPHORE_WAIT (0x1c << 23) -#define MI_SEMAPHORE_POLL (1 << 15) -#define MI_SEMAPHORE_SAD_GT_SDD (0 << 12) -#define MI_SEMAPHORE_SAD_GTE_SDD (1 << 12) -#define MI_SEMAPHORE_SAD_LT_SDD (2 << 12) -#define MI_SEMAPHORE_SAD_LTE_SDD (3 << 12) -#define MI_SEMAPHORE_SAD_EQ_SDD (4 << 12) -#define MI_SEMAPHORE_SAD_NEQ_SDD (5 << 12) -static uint32_t batch_create (int i915) {const uint32_t bbe =MI_BATCH_BUFFER_END ;
@@ -133,7 +124,7 @@ static void __supervisor_run(struct supervisor *sv) sv->semaphore = cs +1000 ; - *cs++ =MI_SEMAPHORE_WAIT | + *cs++ =MI_SEMAPHORE_WAIT_CMD |MI_SEMAPHORE_POLL |MI_SEMAPHORE_SAD_EQ_SDD | (4 -2 );
@@ -142,7 +133,7 @@ static void __supervisor_run(struct supervisor *sv) *cs++ =0 ; sv->terminate = cs; - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ; *cs++ =offset_in_page (sv->semaphore); *cs++ =0 ; *cs++ =0 ;
tests/i915/gem_exec_fair.c +9 -9
@@ -131,7 +131,7 @@ static void delay(int i915, cs = map =gem_mmap__device_coherent (i915, handle,0 ,4096 ,PROT_WRITE ); - *cs++ =MI_LOAD_REGISTER_IMM ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ); *cs++ =CS_GPR (START_TS ) +4 ; *cs++ =0 ; *cs++ =MI_LOAD_REGISTER_REG ;
@@ -144,7 +144,7 @@ static void delay(int i915, *cs++ =0x5 <<23 ;/* MI_ARB_CHECK */ - *cs++ =MI_LOAD_REGISTER_IMM ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ); *cs++ =CS_GPR (NOW_TS ) +4 ; *cs++ =0 ; *cs++ =MI_LOAD_REGISTER_REG ;
@@ -166,7 +166,7 @@ static void delay(int i915,/* Delay between SRM and COND_BBE to post the writes */ for (int n =0 ; n <8 ; n++) { - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ;if (use_64b) { *cs++ = addr +4064 ; *cs++ = addr >>32 ;
@@ -244,25 +244,25 @@ static void tslog(int i915, *cs++ = addr >>32 ;/* Load the address + inc & mask variables */ - *cs++ =MI_LOAD_REGISTER_IMM ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ); *cs++ =CS_GPR (ADDR ); addr_lo = cs; *cs++ = addr; - *cs++ =MI_LOAD_REGISTER_IMM ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ); *cs++ =CS_GPR (ADDR ) +4 ; *cs++ = addr >>32 ; - *cs++ =MI_LOAD_REGISTER_IMM ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ); *cs++ =CS_GPR (INC ); *cs++ =4 ; - *cs++ =MI_LOAD_REGISTER_IMM ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ); *cs++ =CS_GPR (INC ) +4 ; *cs++ =0 ; - *cs++ =MI_LOAD_REGISTER_IMM ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ); *cs++ =CS_GPR (MASK ); *cs++ =0xfffff7ff ; - *cs++ =MI_LOAD_REGISTER_IMM ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ); *cs++ =CS_GPR (MASK ) +4 ; *cs++ =0xffffffff ;
tests/i915/gem_exec_fence.c +17 -26
137 lines not on this page · raw message
tests/i915/gem_exec_flush.c +3 -3
@@ -208,7 +208,7 @@ static void run(int fd, unsigned ring, int nchild, int timeout, reloc0[i].write_domain =I915_GEM_DOMAIN_INSTRUCTION ; offset = obj[0 ].offset + reloc0[i].delta; - *b++ =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + *b++ =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { *b++ = offset; *b++ = offset >>32 ;
@@ -242,7 +242,7 @@ static void run(int fd, unsigned ring, int nchild, int timeout, reloc1[i].write_domain =I915_GEM_DOMAIN_INSTRUCTION ; offset = obj[0 ].offset + reloc1[i].delta; - *b++ =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + *b++ =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { *b++ = offset; *b++ = offset >>32 ;
@@ -496,7 +496,7 @@ static void batch(int fd, unsigned ring, int nchild, int timeout, reloc.delta = i *sizeof (uint32_t ); offset = reloc.presumed_offset + reloc.delta; - *b++ =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + *b++ =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { *b++ = offset; *b++ = offset >>32 ;
tests/i915/gem_exec_gttfill.c +1 -1
@@ -70,7 +70,7 @@ static void submit(int fd, uint64_t ahnd, unsigned int gen, reloc[1 ].read_domains =I915_GEM_DOMAIN_INSTRUCTION ; n =0 ; - batch[n] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[n] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[n] |=1 <<21 ; batch[n]++;
tests/i915/gem_exec_nop.c +2 -2
@@ -144,7 +144,7 @@ static void poll_ring(int fd, const intel_ctx_t *ctx, r->delta =4092 ; r->read_domains =I915_GEM_DOMAIN_RENDER ; - *b =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + *b =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { *++b = r->delta; *++b =0 ;
@@ -272,7 +272,7 @@ static void poll_sequential(int fd, const intel_ctx_t *ctx, r->read_domains =I915_GEM_DOMAIN_RENDER ; r->write_domain =I915_GEM_DOMAIN_RENDER ; - *b =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + *b =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { *++b = r->delta; *++b =0 ;
tests/i915/gem_exec_parallel.c +1 -1
@@ -92,7 +92,7 @@ static void *thread(void *data) } i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (t->gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (t->gen <6 ?1 <<22 :0 );if (t->gen >=8 ) { batch[++i] =4 *t->id; batch[++i] =0 ;
tests/i915/gem_exec_params.c +2 -2
@@ -120,7 +120,7 @@ static void test_batch_first(int fd) map =gem_mmap__cpu (fd, obj[0 ].handle,0 ,4096 ,PROT_WRITE );gem_set_domain (fd, obj[0 ].handle,I915_GEM_DOMAIN_CPU ,I915_GEM_DOMAIN_CPU ); - map[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + map[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { map[++i] = obj[1 ].offset; map[++i] = obj[1 ].offset >>32 ;
@@ -152,7 +152,7 @@ static void test_batch_first(int fd) map =gem_mmap__cpu (fd, obj[2 ].handle,0 ,4096 ,PROT_WRITE );gem_set_domain (fd, obj[2 ].handle,I915_GEM_DOMAIN_CPU ,I915_GEM_DOMAIN_CPU ); - map[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + map[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { map[++i] = obj[1 ].offset; map[++i] = obj[1 ].offset >>32 ;
tests/i915/gem_exec_reloc.c +9 -20
@@ -79,7 +79,7 @@ static void write_dword(int fd, obj[1 ].handle =gem_create (fd,4096 ); i =0 ; - buf[i++] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + buf[i++] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { buf[i++] = target_offset; buf[i++] = target_offset >>32 ;
@@ -314,7 +314,7 @@ static void active(int fd, const intel_ctx_t *ctx, unsigned engine)for (pass =0 ; pass <1024 ; pass++) {uint32_t batch[16 ];int i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] =0 ; batch[++i] =0 ;
@@ -526,17 +526,6 @@ static void basic_reloc(int fd, unsigned before, unsigned after, unsigned flags)gem_close (fd, obj.handle); } -static inline uint64_t sign_extend (uint64_t x,int index) -{ -int shift =63 - index; -return (int64_t )(x << shift) >> shift; -} - -static uint64_t gen8_canonical_address (uint64_t address) -{ -return sign_extend (address,47 ); -} -static void basic_range (int fd,unsigned flags) {struct drm_i915_gem_relocation_entry reloc[128 ];
@@ -563,7 +552,7 @@ static void basic_range(int fd, unsigned flags)for (int i =0 ; i <= count; i++) { obj[n].handle =gem_create (fd,4096 ); obj[n].offset = (1ull << (i +12 )) -4096 ; - obj[n].offset =gen8_canonical_address (obj[n].offset); + obj[n].offset =gen8_canonical_addr (obj[n].offset); obj[n].flags =EXEC_OBJECT_PINNED |EXEC_OBJECT_SUPPORTS_48B_ADDRESS ;gem_write (fd, obj[n].handle,0 , &bbe,sizeof (bbe)); execbuf.buffers_ptr =to_user_pointer (&obj[n]);
@@ -583,7 +572,7 @@ static void basic_range(int fd, unsigned flags)for (int i =1 ; i < count; i++) { obj[n].handle =gem_create (fd,4096 ); obj[n].offset =1ull << (i +12 ); - obj[n].offset =gen8_canonical_address (obj[n].offset); + obj[n].offset =gen8_canonical_addr (obj[n].offset); obj[n].flags =EXEC_OBJECT_PINNED |EXEC_OBJECT_SUPPORTS_48B_ADDRESS ;gem_write (fd, obj[n].handle,0 , &bbe,sizeof (bbe)); execbuf.buffers_ptr =to_user_pointer (&obj[n]);
@@ -714,10 +703,10 @@ static int flags_to_index(const struct intel_execution_engine2 *e)static void xchg_u32 (void *array,unsigned i,unsigned j) { -uint32_t *u32 = array; -uint32_t tmp = u32[i]; - u32[i] = u32[j]; - u32[j] = tmp; +uint32_t *ui32 = array; +uint32_t tmp = ui32[i]; + ui32[i] = ui32[j]; + ui32[j] = tmp; } static void concurrent_child(int i915, const intel_ctx_t *ctx,
@@ -790,7 +779,7 @@ static uint32_t create_concurrent_batch(int i915, unsigned int count)uint32_t *map, *cs;uint32_t cmd; - cmd =MI_STORE_DWORD_IMM ; + cmd =MI_STORE_DWORD_IMM_GEN4 ;if (gen <6 ) cmd |=1 <<22 ;if (gen <4 )
tests/i915/gem_exec_schedule.c +17 -26
143 lines not on this page · raw message
tests/i915/gem_exec_store.c +3 -3
@@ -94,7 +94,7 @@ static void store_dword(int fd, const intel_ctx_t *ctx, } i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = obj[0 ].offset; batch[++i] = obj[0 ].offset >>32 ;
@@ -180,7 +180,7 @@ static void store_cachelines(int fd, const intel_ctx_t *ctx, reloc[n].write_domain =I915_GEM_DOMAIN_INSTRUCTION ; dst_offset =CANONICAL (reloc[n].presumed_offset + reloc[n].delta); - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = dst_offset; batch[++i] = dst_offset >>32 ;
@@ -283,7 +283,7 @@ static void store_all(int fd, const intel_ctx_t *ctx) offset =sizeof (uint32_t ); i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[address = ++i] =0 ; batch[++i] =0 ;
tests/i915/gem_exec_suspend.c +1 -1
@@ -159,7 +159,7 @@ static void run_test(int fd, const intel_ctx_t *ctx, } b =0 ; - buf[b] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + buf[b] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { buf[++b] = offset; buf[++b] = offset >>32 ;
tests/i915/gem_exec_whisper.c +1 -1
@@ -312,7 +312,7 @@ static void whisper(int fd, const intel_ctx_t *ctx, } i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = store.offset + loc; batch[++i] = (store.offset + loc) >>32 ;
tests/i915/gem_pipe_control_store_loop.c +5 -6
@@ -48,7 +48,6 @@ IGT_TEST_DESCRIPTION("Test (TLB-)Coherency of pipe_control QW writes.");static struct buf_ops *bops; -#define GFX_OP_PIPE_CONTROL ((0x3<<29)|(0x3<<27)|(0x2<<24)|2)#define PIPE_CONTROL_WRITE_IMMEDIATE (1<<14)#define PIPE_CONTROL_WRITE_TIMESTAMP (3<<14)#define PIPE_CONTROL_DEPTH_STALL (1<<13)
@@ -96,7 +95,7 @@ store_pipe_control_loop(bool preuse_buffer, int timeout)* support code will do that for us. */ if (ibb->gen >=8 ) {intel_bb_add_intel_buf (ibb, target_buf, true); -intel_bb_out (ibb,GFX_OP_PIPE_CONTROL +1 ); +intel_bb_out (ibb,GFX_OP_PIPE_CONTROL (5 ));intel_bb_out (ibb,PIPE_CONTROL_WRITE_IMMEDIATE ); intel_bb_emit_reloc_fenced(ibb, target_buf->handle, I915_GEM_DOMAIN_INSTRUCTION,
@@ -108,13 +107,13 @@ store_pipe_control_loop(bool preuse_buffer, int timeout)/* work-around hw issue, see intel_emit_post_sync_nonzero_flush * in mesa sources. */ intel_bb_add_intel_buf (ibb, target_buf, true); -intel_bb_out (ibb,GFX_OP_PIPE_CONTROL ); +intel_bb_out (ibb,GFX_OP_PIPE_CONTROL (4 ));intel_bb_out (ibb,PIPE_CONTROL_CS_STALL |PIPE_CONTROL_STALL_AT_SCOREBOARD );intel_bb_out (ibb,0 );/* address */ intel_bb_out (ibb,0 );/* write data */ -intel_bb_out (ibb,GFX_OP_PIPE_CONTROL ); +intel_bb_out (ibb,GFX_OP_PIPE_CONTROL (4 ));intel_bb_out (ibb,PIPE_CONTROL_WRITE_IMMEDIATE ); intel_bb_emit_reloc(ibb, target_buf->handle, I915_GEM_DOMAIN_INSTRUCTION,
@@ -124,10 +123,10 @@ store_pipe_control_loop(bool preuse_buffer, int timeout)intel_bb_out (ibb, val);/* write data */ }else if (ibb->gen >=4 ) {intel_bb_add_intel_buf (ibb, target_buf, true); -intel_bb_out (ibb,GFX_OP_PIPE_CONTROL | +intel_bb_out (ibb,GFX_OP_PIPE_CONTROL (4 ) |PIPE_CONTROL_WC_FLUSH |PIPE_CONTROL_TC_FLUSH | -PIPE_CONTROL_WRITE_IMMEDIATE |2 ); +PIPE_CONTROL_WRITE_IMMEDIATE ); intel_bb_emit_reloc(ibb, target_buf->handle, I915_GEM_DOMAIN_INSTRUCTION, I915_GEM_DOMAIN_INSTRUCTION,
tests/i915/gem_pxp.c +2 -5
@@ -748,10 +748,7 @@ static void test_pxp_pwrcycle_teardown_keychange(int i915, struct powermgt_dataigt_assert_eq (matched_after_keychange,0 ); } -#define GFX_OP_PIPE_CONTROL ((3 << 29) | (3 << 27) | (2 << 24)) -#define PIPE_CONTROL_CS_STALL (1 << 20)#define PIPE_CONTROL_RENDER_TARGET_FLUSH (1 << 12) -#define PIPE_CONTROL_FLUSH_ENABLE (1 << 7)#define PIPE_CONTROL_DATA_CACHE_INVALIDATE (1 << 5)#define PIPE_CONTROL_PROTECTEDPATH_DISABLE (1 << 27)#define PIPE_CONTROL_PROTECTEDPATH_ENABLE (1 << 22)
@@ -765,7 +762,7 @@ static void emit_pipectrl(struct intel_bb *ibb, struct intel_buf *fenceb, bool buint32_t pipe_ctl_flags =0 ;uint32_t ps_op_id; -intel_bb_out (ibb,GFX_OP_PIPE_CONTROL ); +intel_bb_out (ibb,GFX_OP_PIPE_CONTROL (4 ));intel_bb_out (ibb, pipe_ctl_flags);if (before)
@@ -776,7 +773,7 @@ static void emit_pipectrl(struct intel_bb *ibb, struct intel_buf *fenceb, bool b pipe_ctl_flags = (PIPE_CONTROL_FLUSH_ENABLE |PIPE_CONTROL_CS_STALL |PIPE_CONTROL_POST_SYNC_OP ); -intel_bb_out (ibb,GFX_OP_PIPE_CONTROL |4 ); +intel_bb_out (ibb,GFX_OP_PIPE_CONTROL (6 ));intel_bb_out (ibb, pipe_ctl_flags);intel_bb_emit_reloc (ibb, fenceb->handle,0 ,I915_GEM_DOMAIN_COMMAND , (before?0 :8 ), fenceb->addr.offset);
tests/i915/gem_ringfill.c +1 -1
@@ -158,7 +158,7 @@ static void setup_execbuf(int fd, const intel_ctx_t *ctx, reloc[i].write_domain =I915_GEM_DOMAIN_INSTRUCTION ; offset = obj[0 ].offset + reloc[i].delta; - *b++ =MI_STORE_DWORD_IMM ; + *b++ =MI_STORE_DWORD_IMM_GEN4 ;if (gen >=8 ) { *b++ = offset; *b++ = offset >>32 ;
tests/i915/gem_softpin.c +2 -14
@@ -41,18 +41,6 @@ IGT_TEST_DESCRIPTION("Tests softpin feature with normal usage, invalid inputs"#define LIMIT_32b ((1ull << 32) - (1ull << 12)) -/* gen8_canonical_addr -* Used to convert any address into canonical form, i.e. [63:48] == [47]. -* Based on kernel's sign_extend64 implementation. -* @address - a virtual address -*/ -#define GEN8_HIGH_ADDRESS_BIT 47 -static uint64_t gen8_canonical_addr (uint64_t address) -{ -__u8 shift =63 -GEN8_HIGH_ADDRESS_BIT ; -return (__s64)(address << shift) >> shift; -} -#define INTERRUPTIBLE 0x1static void test_invalid (int fd)
@@ -653,7 +641,7 @@ static void test_noreloc(int fd, enum sleep sleep, unsigned flags)gem_set_domain (fd, object[i].handle,I915_GEM_DOMAIN_CPU ,I915_GEM_DOMAIN_CPU );for (i =0 ; i <ARRAY_SIZE (object) -1 ; i++) { - *b++ =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + *b++ =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { *b++ = object[i].offset; *b++ = object[i].offset >>32 ;
@@ -922,7 +910,7 @@ static void submit(int fd, unsigned int gen, BATCH_ALIGNMENT); address = obj.offset +BATCH_SIZE - eb->batch_start_offset -8 ; n =0 ; - batch[n] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[n] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[n] |=1 <<21 ; batch[n]++;
tests/i915/gem_sync.c +8 -8
@@ -588,7 +588,7 @@ store_ring(int fd, const intel_ctx_t *ctx, unsigned ring, reloc[i].write_domain =I915_GEM_DOMAIN_INSTRUCTION ; offset = object[0 ].offset + reloc[i].delta; - *b++ =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + *b++ =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { *b++ = offset; *b++ = offset >>32 ;
@@ -698,7 +698,7 @@ switch_ring(int fd, const intel_ctx_t *ctx, unsigned ring, c->reloc[r].write_domain =I915_GEM_DOMAIN_INSTRUCTION ; offset = c->object[0 ].offset + c->reloc[r].delta; - *b++ =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + *b++ =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { *b++ = offset; *b++ = offset >>32 ;
@@ -772,10 +772,10 @@ switch_ring(int fd, const intel_ctx_t *ctx, unsigned ring,static void xchg (void *array,unsigned i,unsigned j) { -uint32_t *u32 = array; -uint32_t tmp = u32[i]; - u32[i] = u32[j]; - u32[j] = tmp; +uint32_t *ui32 = array; +uint32_t tmp = ui32[i]; + ui32[i] = ui32[j]; + ui32[j] = tmp; }struct waiter {
@@ -859,7 +859,7 @@ __store_many(int fd, const intel_ctx_t *ctx, unsigned ring, reloc[i].write_domain =I915_GEM_DOMAIN_INSTRUCTION ; offset = object[0 ].offset + reloc[i].delta; - *b++ =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + *b++ =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { *b++ = offset; *b++ = offset >>32 ;
@@ -1080,7 +1080,7 @@ store_all(int fd, const intel_ctx_t *ctx, int num_children, int timeout) reloc[i].write_domain =I915_GEM_DOMAIN_INSTRUCTION ; offset = object[0 ].offset + reloc[i].delta; - *b++ =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + *b++ =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { *b++ = offset; *b++ = offset >>32 ;
tests/i915/gem_userptr_blits.c +3 -3
@@ -338,7 +338,7 @@ static void store_dword(int fd, uint32_t target, obj[1 ].relocation_count =1 ; i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = offset; batch[++i] =0 ;
@@ -1318,7 +1318,7 @@ static void store_dword_rand(int i915, const intel_ctx_t *ctx, offset = reloc[n].presumed_offset + reloc[n].delta; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = offset; batch[++i] = offset >>32 ;
@@ -1379,7 +1379,7 @@ static void test_readonly(int i915)/* * We have only a 31bit delta which we use for generating -* the target address for MI_STORE_DWORD_IMM, so our maximum +* the target address for MI_STORE_DWORD_IMM_GEN4, so our maximum * usable object size is only 2GiB. For now. */ igt_nsec_elapsed (memset (&tv,0 ,sizeof (tv)));
tests/i915/gem_vm_create.c +1 -1
@@ -268,7 +268,7 @@ write_to_address(int fd, uint32_t ctx, uint64_t addr, uint32_t value)int i; i =0 ; - cs[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + cs[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { cs[++i] = addr; cs[++i] = addr >>32 ;
tests/i915/gem_watchdog.c +3 -3
@@ -332,7 +332,7 @@ static void delay(int i915, cs = map =gem_mmap__device_coherent (i915, handle,0 ,4096 ,PROT_WRITE ); - *cs++ =MI_LOAD_REGISTER_IMM ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ); *cs++ =CS_GPR (START_TS ) +4 ; *cs++ =0 ; *cs++ =MI_LOAD_REGISTER_REG ;
@@ -345,7 +345,7 @@ static void delay(int i915, *cs++ =0x5 <<23 ;/* MI_ARB_CHECK */ - *cs++ =MI_LOAD_REGISTER_IMM ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ); *cs++ =CS_GPR (NOW_TS ) +4 ; *cs++ =0 ; *cs++ =MI_LOAD_REGISTER_REG ;
@@ -367,7 +367,7 @@ static void delay(int i915,/* Delay between SRM and COND_BBE to post the writes */ for (int n =0 ; n <8 ; n++) { - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ;if (use_64b) { *cs++ = addr +4064 ; *cs++ = addr >>32 ;
tests/i915/gem_workarounds.c +1 -1
@@ -121,7 +121,7 @@ static int workaround_fail_count(int i915, const intel_ctx_t *ctx) out = base =gem_mmap__cpu (i915, obj[1 ].handle,0 , batch_sz,PROT_WRITE );for (int i =0 ; i < num_wa_regs; i++) { - *out++ =MI_STORE_REGISTER_MEM | (1 + (gen >=8 )); + *out++ =MI_STORE_REGISTER_MEM_CMD | (1 + (gen >=8 )); *out++ = wa_regs[i].addr; reloc[i].target_handle = obj[0 ].handle; reloc[i].offset = (out - base) *sizeof (*out);
tests/i915/gen7_exec_parse.c +15 -19
@@ -48,10 +48,6 @@#define INSTR_CLIENT_SHIFT 29#define INSTR_INVALID_CLIENT 0x7 -#define MI_ARB_ON_OFF (0x8 << 23) -#define MI_DISPLAY_FLIP ((0x14 << 23) | 1) - -#define GFX_OP_PIPE_CONTROL ((0x3<<29)|(0x3<<27)|(0x2<<24)|2)#define PIPE_CONTROL_QW_WRITE (1<<14)#define PIPE_CONTROL_LRI_POST_OP (1<<23)
@@ -298,7 +294,7 @@ static void test_lri(int fd, uint32_t handle, struct test_lri *test) { uint32_t lri[] = { - MI_LOAD_REGISTER_IMM, + MI_LOAD_REGISTER_IMM(1), test->reg, test->test_val, MI_BATCH_BUFFER_END,
@@ -372,13 +368,13 @@ static void test_allocations(int fd)static void hsw_load_register_reg (void ) {uint32_t init_gpr0[16 ] = { -MI_LOAD_REGISTER_IMM , +MI_LOAD_REGISTER_IMM (1 ),HSW_CS_GPR0 ,0xabcdabc0 ,/* leave [1:0] zero */ MI_BATCH_BUFFER_END , };uint32_t store_gpr0[16 ] = { -MI_STORE_REGISTER_MEM | (3 -2 ), +MI_STORE_REGISTER_MEM_CMD | (3 -2 ),HSW_CS_GPR0 ,0 ,/* reloc*/ MI_BATCH_BUFFER_END ,
@@ -475,7 +471,7 @@ igt_main igt_subtest("basic-allowed") {uint32_t pc[] = { -GFX_OP_PIPE_CONTROL , +GFX_OP_PIPE_CONTROL (4 ),PIPE_CONTROL_QW_WRITE ,0 ,/* To be patched */ 0x12000000 ,
@@ -490,7 +486,7 @@ igt_main igt_subtest("basic-offset") {uint32_t pc[] = { -GFX_OP_PIPE_CONTROL , +GFX_OP_PIPE_CONTROL (4 ),PIPE_CONTROL_QW_WRITE ,0 ,/* To be patched */ 0x12000000 ,
@@ -597,7 +593,7 @@ igt_main igt_subtest("bitmasks") {uint32_t pc[] = { -GFX_OP_PIPE_CONTROL , +GFX_OP_PIPE_CONTROL (4 ), (PIPE_CONTROL_QW_WRITE |PIPE_CONTROL_LRI_POST_OP ),0 ,/* To be patched */
@@ -631,13 +627,13 @@ igt_main igt_subtest("cmd-crossing-page") {uint32_t lri_ok[] = { -MI_LOAD_REGISTER_IMM , +MI_LOAD_REGISTER_IMM (1 ),SO_WRITE_OFFSET_0 ,/* allowed register address */ 0xdcbaabc0 ,/* [1:0] MBZ */ MI_BATCH_BUFFER_END , };uint32_t store_reg[] = { -MI_STORE_REGISTER_MEM | (3 -2 ), +MI_STORE_REGISTER_MEM_CMD | (3 -2 ),SO_WRITE_OFFSET_0 ,0 ,/* reloc */ MI_BATCH_BUFFER_END ,
@@ -655,29 +651,29 @@ igt_main igt_subtest("oacontrol-tracking") {uint32_t lri_ok[] = { -MI_LOAD_REGISTER_IMM , +MI_LOAD_REGISTER_IMM (1 ),OACONTROL ,0x31337000 , -MI_LOAD_REGISTER_IMM , +MI_LOAD_REGISTER_IMM (1 ),OACONTROL ,0x0 ,MI_BATCH_BUFFER_END ,0 };uint32_t lri_bad[] = { -MI_LOAD_REGISTER_IMM , +MI_LOAD_REGISTER_IMM (1 ),OACONTROL ,0x31337000 ,MI_BATCH_BUFFER_END , };uint32_t lri_extra_bad[] = { -MI_LOAD_REGISTER_IMM , +MI_LOAD_REGISTER_IMM (1 ),OACONTROL ,0x31337000 , -MI_LOAD_REGISTER_IMM , +MI_LOAD_REGISTER_IMM (1 ),OACONTROL ,0x0 , -MI_LOAD_REGISTER_IMM , +MI_LOAD_REGISTER_IMM (1 ),OACONTROL ,0x31337000 ,MI_BATCH_BUFFER_END ,
@@ -701,7 +697,7 @@ igt_main igt_subtest("chained-batch") {uint32_t pc[] = { -GFX_OP_PIPE_CONTROL , +GFX_OP_PIPE_CONTROL (4 ),PIPE_CONTROL_QW_WRITE ,0 ,/* To be patched */ 0x12000000 ,
tests/i915/gen9_exec_parse.c +14 -33
139 lines not on this page · raw message
tests/i915/i915_module_load.c +1 -1
@@ -80,7 +80,7 @@ static void store_all(int i915)int i; i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] =0 ; batch[++i] =0 ;
tests/i915/perf.c +2 -15
@@ -58,30 +58,17 @@ IGT_TEST_DESCRIPTION("Test the i915 perf metrics streaming interface");#define OAREPORT_REASON_GO (1<<4)#define OAREPORT_REASON_CLK_RATIO (1<<5) -#define GFX_OP_PIPE_CONTROL ((3 << 29) | (3 << 27) | (2 << 24)) -#define PIPE_CONTROL_CS_STALL (1 << 20)#define PIPE_CONTROL_GLOBAL_SNAPSHOT_COUNT_RESET (1 << 19) -#define PIPE_CONTROL_TLB_INVALIDATE (1 << 18)#define PIPE_CONTROL_SYNC_GFDT (1 << 17) -#define PIPE_CONTROL_MEDIA_STATE_CLEAR (1 << 16)#define PIPE_CONTROL_NO_WRITE (0 << 14)#define PIPE_CONTROL_WRITE_IMMEDIATE (1 << 14)#define PIPE_CONTROL_WRITE_DEPTH_COUNT (2 << 14) -#define PIPE_CONTROL_WRITE_TIMESTAMP (3 << 14) -#define PIPE_CONTROL_DEPTH_STALL (1 << 13)#define PIPE_CONTROL_RENDER_TARGET_FLUSH (1 << 12)#define PIPE_CONTROL_INSTRUCTION_INVALIDATE (1 << 11) -#define PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE (1 << 10)/* GM45+ only */ #define PIPE_CONTROL_ISP_DIS (1 << 9)#define PIPE_CONTROL_INTERRUPT_ENABLE (1 << 8) -#define PIPE_CONTROL_FLUSH_ENABLE (1 << 7)/* Gen7+ only */ /* GT */ #define PIPE_CONTROL_DATA_CACHE_INVALIDATE (1 << 5) -#define PIPE_CONTROL_VF_CACHE_INVALIDATE (1 << 4) -#define PIPE_CONTROL_CONST_CACHE_INVALIDATE (1 << 3) -#define PIPE_CONTROL_STATE_CACHE_INVALIDATE (1 << 2) -#define PIPE_CONTROL_STALL_AT_SCOREBOARD (1 << 1) -#define PIPE_CONTROL_DEPTH_CACHE_FLUSH (1 << 0)#define PIPE_CONTROL_PPGTT_WRITE (0 << 2)#define PIPE_CONTROL_GLOBAL_GTT_WRITE (1 << 2)
@@ -3242,9 +3229,9 @@ emit_stall_timestamp_and_rpc(struct intel_bb *ibb,intel_bb_add_intel_buf (ibb, dst, true);if (intel_gen (devid) >=8 ) -intel_bb_out (ibb,GFX_OP_PIPE_CONTROL | (6 -2 )); +intel_bb_out (ibb,GFX_OP_PIPE_CONTROL (6 ));else -intel_bb_out (ibb,GFX_OP_PIPE_CONTROL | (5 -2 )); +intel_bb_out (ibb,GFX_OP_PIPE_CONTROL (5 ));intel_bb_out (ibb, pipe_ctl_flags); intel_bb_emit_reloc(ibb, dst->handle,
tests/i915/perf_pmu.c +6 -12
@@ -681,12 +681,6 @@ no_sema(int gem_fd, const intel_ctx_t *ctx,assert_within_epsilon (val[0 ][1 ],0.0f , tolerance); } -#define MI_INSTR (opcode, flags) (((opcode) << 23) | (flags)) -#define MI_SEMAPHORE_WAIT MI_INSTR(0x1c, 2)/* GEN8+ */ -#define MI_SEMAPHORE_POLL (1<<15) -#define MI_SEMAPHORE_SAD_GTE_SDD (1<<12) -#define MI_SEMAPHORE_SAD_EQ_SDD (4 << 12) - static void sema_wait(int gem_fd, const intel_ctx_t *ctx, const struct intel_execution_engine2 *e,
@@ -719,7 +713,7 @@ sema_wait(int gem_fd, const intel_ctx_t *ctx, obj_ptr =gem_mmap__device_coherent (gem_fd, obj_handle,0 ,4096 ,PROT_WRITE ); - batch[0 ] =MI_STORE_DWORD_IMM ; + batch[0 ] =MI_STORE_DWORD_IMM_GEN4 ; batch[1 ] = obj_offset +sizeof (*obj_ptr); batch[2 ] = (obj_offset +sizeof (*obj_ptr)) >>32 ; batch[3 ] =1 ;
@@ -807,7 +801,7 @@ create_sema(int gem_fd, uint64_t ahnd, {uint32_t cs[] = {/* Reset our semaphore wait */ -MI_STORE_DWORD_IMM , +MI_STORE_DWORD_IMM_GEN4 ,0 ,0 ,1 ,
@@ -1108,17 +1102,17 @@ event_wait(int gem_fd, const intel_ctx_t *ctx, obj.handle =gem_create (gem_fd,4096 ); b = batch; - *b++ =MI_LOAD_REGISTER_IMM ; + *b++ =MI_LOAD_REGISTER_IMM (1 ); *b++ =FORCEWAKE_MT ; *b++ =2 <<16 |2 ; - *b++ =MI_LOAD_REGISTER_IMM ; + *b++ =MI_LOAD_REGISTER_IMM (1 ); *b++ =DERRMR ; *b++ = ~0u ; *b++ =MI_WAIT_FOR_EVENT ; - *b++ =MI_LOAD_REGISTER_IMM ; + *b++ =MI_LOAD_REGISTER_IMM (1 ); *b++ =DERRMR ; *b++ = ~0u ; - *b++ =MI_LOAD_REGISTER_IMM ; + *b++ =MI_LOAD_REGISTER_IMM (1 ); *b++ =FORCEWAKE_MT ; *b++ =2 <<16 ; *b++ =MI_BATCH_BUFFER_END ;
tests/i915/sysfs_timeslice_duration.c +4 -13
@@ -46,15 +46,6 @@#define ATTR "timeslice_duration_ms"#define RESET_TIMEOUT 50/* milliseconds, at least one jiffie for kworker */ -#define MI_SEMAPHORE_WAIT (0x1c << 23) -#define MI_SEMAPHORE_POLL (1 << 15) -#define MI_SEMAPHORE_SAD_GT_SDD (0 << 12) -#define MI_SEMAPHORE_SAD_GTE_SDD (1 << 12) -#define MI_SEMAPHORE_SAD_LT_SDD (2 << 12) -#define MI_SEMAPHORE_SAD_LTE_SDD (3 << 12) -#define MI_SEMAPHORE_SAD_EQ_SDD (4 << 12) -#define MI_SEMAPHORE_SAD_NEQ_SDD (5 << 12) -static bool __enable_hangcheck (int dir,bool state) {return igt_sysfs_set (dir,"enable_hangcheck" , state ?"1" :"0" );
@@ -214,7 +205,7 @@ static uint64_t __test_duration(int i915, int engine, unsigned int timeout) cs = map;for (i =0 ; i <10 ; i++) { - *cs++ =MI_SEMAPHORE_WAIT | + *cs++ =MI_SEMAPHORE_WAIT_CMD |MI_SEMAPHORE_POLL |MI_SEMAPHORE_SAD_NEQ_SDD | (4 -2 + (gen >=12 ));
@@ -229,7 +220,7 @@ static uint64_t __test_duration(int i915, int engine, unsigned int timeout) *cs++ = obj[1 ].offset +sizeof (uint32_t ) * i; *cs++ =0 ; - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ; *cs++ = obj[0 ].offset +4096 -sizeof (uint32_t ) * i -sizeof (uint32_t ); *cs++ =0 ;
@@ -240,12 +231,12 @@ static uint64_t __test_duration(int i915, int engine, unsigned int timeout) cs +=16 - ((cs - map) &15 ); start = (cs - map) *sizeof (*cs);for (i =0 ; i <10 ; i++) { - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ; *cs++ = obj[0 ].offset +sizeof (uint32_t ) * i; *cs++ =0 ; *cs++ =1 ; - *cs++ =MI_SEMAPHORE_WAIT | + *cs++ =MI_SEMAPHORE_WAIT_CMD |MI_SEMAPHORE_POLL |MI_SEMAPHORE_SAD_NEQ_SDD | (4 -2 + (gen >=12 ));
tests/prime_vgem.c +1 -1
@@ -624,7 +624,7 @@ static void work(int i915, uint64_t ahnd, uint64_t scratch_offset, int dmabuf, store[count].delta =sizeof (uint32_t ) * count; store[count].read_domains =I915_GEM_DOMAIN_INSTRUCTION ; store[count].write_domain =I915_GEM_DOMAIN_INSTRUCTION ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = scratch_offset + store[count].delta; batch[++i] = (scratch_offset + store[count].delta) >>32 ;
tools/intel_audio_dump.c +1 -0
@@ -48,6 +48,7 @@ static int disp_reg_base = 0; /* base address of display registers */#define BITSTO (n) (n >= sizeof(long) * 8 ? ~0 : (1UL << (n)) - 1)#define BITMASK (high, low) (BITSTO(high+1) & ~BITSTO(low))#define REG_BITS (reg, high, low) (((reg) & (BITMASK(high, low))) >> (low)) +#undef REG_BIT#define REG_BIT (reg, n) REG_BITS(reg, n, n)#define min_t (type, x, y) ({ \
tools/intel_reg.c +1 -1
@@ -322,7 +322,7 @@ static int register_srm(struct config *config, struct reg *reg, batch[i++] =MI_NOOP ; batch[i++] =MI_NOOP ; - batch[i++] =MI_LOAD_REGISTER_IMM ; + batch[i++] =MI_LOAD_REGISTER_IMM (1 ); batch[i++] = reg->addr; batch[i++] = *val_in; batch[i++] =MI_NOOP ;
Signature · 1 line
2.34.1
Re: [igt-dev] [PATCH i-g-t v2 3/3] igt: Remove duplicated macros
Quoted 11 lines · Zbigniew Kempczyński
Introducing
intel_gpu_commands.hrequires removing all conflicting macros definitions with altering the code (mostly command length).For all commands used in IGT but not in the kernel (yet) add
intel_gpu_commands_staging.hwhich will keep all commands used here only. Next import of command macros might finish verbatim copy + removing from staging in one commit to compile cleanly.Signed-off-by Zbigniew Kempczyński <[email protected]>Cc Petri Latvala <[email protected]>Cc Kamil Konieczny <[email protected]>
Quoted 2,417 lines
--- benchmarks/gem_wsim.c | 6 +-- include/intel_gpu_commands_staging.h | 18 +++++++ include/linux/bitops.h | 2 + lib/gen4_render.h | 2 - lib/gen7_media.h | 2 - lib/gen7_render.h | 3 -- lib/gen8_media.h | 2 - lib/i830_reg.h | 16 ------ lib/i915/i915_blt.h | 4 +- lib/i915/i915_crc.c | 15 +++--- lib/igt_draw.c | 4 +- lib/igt_dummyload.c | 2 +- lib/igt_store.c | 2 +- lib/intel_allocator.h | 8 +-- lib/intel_aux_pgtable.c | 5 +- lib/intel_batchbuffer.c | 12 ++--- lib/intel_bufops.c | 7 +++ lib/intel_reg.h | 69 ++---------------------- lib/ioctl_wrappers.h | 4 +- lib/rendercopy_gen9.c | 9 ++-- tests/i915/api_intel_bb.c | 2 +- tests/i915/gem_blits.c | 20 ++++--- tests/i915/gem_busy.c | 8 +-- tests/i915/gem_ccs.c | 2 +- tests/i915/gem_ctx_shared.c | 4 +- tests/i915/gem_exec_async.c | 2 +- tests/i915/gem_exec_balancer.c | 23 +++----- tests/i915/gem_exec_capture.c | 4 +- tests/i915/gem_exec_endless.c | 13 +---- tests/i915/gem_exec_fair.c | 18 +++---- tests/i915/gem_exec_fence.c | 43 ++++++--------- tests/i915/gem_exec_flush.c | 6 +-- tests/i915/gem_exec_gttfill.c | 2 +- tests/i915/gem_exec_nop.c | 4 +- tests/i915/gem_exec_parallel.c | 2 +- tests/i915/gem_exec_params.c | 4 +- tests/i915/gem_exec_reloc.c | 29 ++++------ tests/i915/gem_exec_schedule.c | 43 ++++++--------- tests/i915/gem_exec_store.c | 6 +-- tests/i915/gem_exec_suspend.c | 2 +- tests/i915/gem_exec_whisper.c | 2 +- tests/i915/gem_pipe_control_store_loop.c | 11 ++-- tests/i915/gem_pxp.c | 7 +-- tests/i915/gem_ringfill.c | 2 +- tests/i915/gem_softpin.c | 16 +----- tests/i915/gem_sync.c | 16 +++--- tests/i915/gem_userptr_blits.c | 6 +-- tests/i915/gem_vm_create.c | 2 +- tests/i915/gem_watchdog.c | 6 +-- tests/i915/gem_workarounds.c | 2 +- tests/i915/gen7_exec_parse.c | 34 ++++++------ tests/i915/gen9_exec_parse.c | 47 +++++----------- tests/i915/i915_module_load.c | 2 +- tests/i915/perf.c | 17 +----- tests/i915/perf_pmu.c | 18 +++---- tests/i915/sysfs_timeslice_duration.c | 17 ++---- tests/prime_vgem.c | 2 +- tools/intel_audio_dump.c | 1 + tools/intel_reg.c | 2 +- 59 files changed, 226 insertions(+), 413 deletions(-) create mode 100644 include/intel_gpu_commands_staging.hbenchmarks/gem_wsim.c +3
-3@@ -1426,7 +1426,7 @@ static unsigned int create_bb(struct w_step *w, int self) cs = ptr =gem_mmap__wc (fd, w->bb_handle,0 ,4096 ,PROT_WRITE );/* Store initial 64b timestamp: start */ - *cs++ =MI_LOAD_REGISTER_IMM |MI_CS_MMIO_DST ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ) |MI_CS_MMIO_DST ; *cs++ =CS_GPR (START_TS ) +4 ; *cs++ =0 ; *cs++ =MI_LOAD_REGISTER_REG |MI_CS_MMIO_DST |MI_CS_MMIO_SRC ;@@ -1441,7 +1441,7 @@ static unsigned int create_bb(struct w_step *w, int self) *cs++ =MI_ARB_CHECK ;/* Store this 64b timestamp: now */ - *cs++ =MI_LOAD_REGISTER_IMM |MI_CS_MMIO_DST ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ) |MI_CS_MMIO_DST ; *cs++ =CS_GPR (NOW_TS ) +4 ; *cs++ =0 ; *cs++ =MI_LOAD_REGISTER_REG |MI_CS_MMIO_DST |MI_CS_MMIO_SRC ;@@ -1456,7 +1456,7 @@ static unsigned int create_bb(struct w_step *w, int self) *cs++ =MI_MATH_STOREINV (MI_MATH_REG (NOW_TS ),MI_MATH_REG_ACCU );/* Save delta for indirect read by COND_BBE */ - *cs++ =MI_STORE_REGISTER_MEM | (1 + use_64b) |MI_CS_MMIO_DST ; + *cs++ =MI_STORE_REGISTER_MEM_CMD | (1 + use_64b) |MI_CS_MMIO_DST ; *cs++ =CS_GPR (NOW_TS ); w->reloc[r].target_handle = self; w->reloc[r].offset =offset_in_page (cs);include/intel_gpu_commands_staging.h new file +18
-0@@ -0,0 +1,18 @@ +/* SPDX-License-Identifier: MIT*/ +/* +* Copyright © 2022 Intel Corporation +*/ + +#ifndef _INTEL_GPU_COMMANDS_STAGING_H_ +#define _INTEL_GPU_COMMANDS_STAGING_H_ + +#include "linux_scaffold.h" + +/* Length-free commands */ +#define MI_SEMAPHORE_WAIT_CMD (0x1c << 23) +#define MI_STORE_DWORD_IMM_CMD (0x20 << 23) +#define MI_STORE_REGISTER_MEM_CMD (0x24 << 23) +#define MI_FLUSH_DW_CMD (0x26 << 23) +#define MI_LOAD_REGISTER_MEM_CMD (0x29 << 23) + +#endif /* _INTEL_GPU_COMMANDS_STAGING_H_ */ include/linux/bitops.h +2
-0@@ -17,4 +17,6 @@#include "linux_scaffold.h" +#define REG_BIT (x) (1ul << (x)) +#endif /* _LINUX_BITOPS_H_ */ lib/gen4_render.h +0
-2@@ -25,14 +25,12 @@#define GEN4_CS_URB_STATE GEN4_3D(0, 0, 1)#define GEN4_STATE_BASE_ADDRESS GEN4_3D(0, 1, 1) -# define BASE_ADDRESS_MODIFY (1 << 0)#define GEN4_STATE_SIP GEN4_3D(0, 1, 2)#define GEN4_PIPELINE_SELECT GEN4_3D(0, 1, 4)#define G4X_PIPELINE_SELECT GEN4_3D(1, 1, 4)# define PIPELINE_SELECT_3D 0 -# define PIPELINE_SELECT_MEDIA 1#define GEN4_3DSTATE_PIPELINED_POINTERS GEN4_3D(3, 0, 0)# define GEN4_GS_DISABLE 0lib/gen7_media.h +0
-2@@ -14,11 +14,9 @@#define GEN7_PIPELINE_SELECT GFXPIPE(1, 1, 4)# define PIPELINE_SELECT_3D (0 << 0) -# define PIPELINE_SELECT_MEDIA (1 << 0)# define PIPELINE_SELECT_GPGPU (2 << 0)#define GEN7_STATE_BASE_ADDRESS GFXPIPE(0, 1, 1) -# define BASE_ADDRESS_MODIFY (1 << 0)#define GEN7_MEDIA_VFE_STATE GFXPIPE(2, 0, 0)#define GEN7_MEDIA_CURBE_LOAD GFXPIPE(2, 0, 1)lib/gen7_render.h +0
-3@@ -170,9 +170,6 @@/* DW1 */ # define GEN7_PUSH_CONSTANT_BUFFER_OFFSET_SHIFT 16 -/* for GEN7_STATE_BASE_ADDRESS */ -#define BASE_ADDRESS_MODIFY (1 << 0) -/* for GEN7_PIPE_CONTROL */ #define GEN7_PIPE_CONTROL_CS_STALL (1 << 20)#define GEN7_PIPE_CONTROL_STALL_AT_SCOREBOARD (1 << 1)lib/gen8_media.h +0
-2@@ -14,10 +14,8 @@#define GEN8_PIPELINE_SELECT GFXPIPE(1, 1, 4)# define PIPELINE_SELECT_3D (0 << 0) -# define PIPELINE_SELECT_MEDIA (1 << 0)#define GEN8_STATE_BASE_ADDRESS GFXPIPE(0, 1, 1) -# define BASE_ADDRESS_MODIFY (1 << 0)#define GEN8_MEDIA_VFE_STATE GFXPIPE(2, 0, 0)#define GEN8_MEDIA_CURBE_LOAD GFXPIPE(2, 0, 1)lib/i830_reg.h +0
-16@@ -30,12 +30,7 @@#define I830_SET_FIELD ( var, mask, value ) (var &= ~(mask), var |= value) -/* Flush */ -#define MI_FLUSH (0x04<<23) -#define MI_FLUSH_DW (0x26<<23) -#define MI_WRITE_DIRTY_STATE (1<<4) -#define MI_END_SCENE (1<<3)#define MI_GLOBAL_SNAPSHOT_COUNT_RESET (1<<3)#define MI_INHIBIT_RENDER_CACHE_FLUSH (1<<2)#define MI_STATE_INSTRUCTION_CACHE_FLUSH (1<<1)@@ -43,15 +38,11 @@/* broadwater flush bits */ #define BRW_MI_GLOBAL_SNAPSHOT_RESET (1 << 3) -#define MI_BATCH_BUFFER_END (0xA << 23) -/* Noop */ -#define MI_NOOP 0x00#define MI_NOOP_WRITE_ID (1<<22)#define MI_NOOP_ID_MASK (1<<22 - 1)/* Wait for Events */ -#define MI_WAIT_FOR_EVENT (0x03<<23)#define MI_WAIT_FOR_PIPEB_SVBLANK (1<<18)#define MI_WAIT_FOR_PIPEA_SVBLANK (1<<17)#define MI_WAIT_FOR_OVERLAY_FLIP (1<<16)@@ -61,12 +52,10 @@#define MI_WAIT_FOR_PIPEA_SCAN_LINE_WINDOW (1<<1)/* Set the scan line for MI_WAIT_FOR_PIPE?_SCAN_LINE_WINDOW */ -#define MI_LOAD_SCAN_LINES_INCL (0x12<<23)#define MI_LOAD_SCAN_LINES_DISPLAY_PIPEA (0)#define MI_LOAD_SCAN_LINES_DISPLAY_PIPEB (0x1<<20)/* BLT commands */ -#define COLOR_BLT_CMD ((2<<29)|(0x40<<22)|(0x3))#define COLOR_BLT_WRITE_ALPHA (1<<21)#define COLOR_BLT_WRITE_RGB (1<<20)@@ -76,16 +65,11 @@#define XY_SETUP_CLIP_BLT_CMD ((2<<29)|(3<<22)|1) -#define XY_SRC_COPY_BLT_CMD ((2<<29)|(0x53<<22))#define XY_SRC_COPY_BLT_WRITE_ALPHA (1<<21)#define XY_SRC_COPY_BLT_WRITE_RGB (1<<20)#define XY_SRC_COPY_BLT_SRC_TILED (1<<15)#define XY_SRC_COPY_BLT_DST_TILED (1<<11) -#define SRC_COPY_BLT_CMD ((2<<29)|(0x43<<22)|0x4) -#define SRC_COPY_BLT_WRITE_ALPHA (1<<21) -#define SRC_COPY_BLT_WRITE_RGB (1<<20) -#define XY_PAT_BLT_IMMEDIATE ((2<<29)|(0x72<<22))#define XY_MONO_PAT_BLT_CMD ((0x2<<29)|(0x52<<22)|0x7)lib/i915/i915_blt.h +2
-2@@ -135,8 +135,8 @@ struct blt_block_copy_data_ext { };enum blt_access_type { -INDIRECT_ACCESS , -DIRECT_ACCESS , +BLT_INDIRECT_ACCESS , +BLT_DIRECT_ACCESS , };struct blt_ctrl_surf_copy_object {lib/i915/i915_crc.c +7
-8@@ -9,7 +9,6 @@#include "gem_create.h" #include "gem_engine_topology.h" #include "gem_mman.h" -#include "i830_reg.h" #include "i915_drm.h" #include "intel_reg.h" #include "intel_chipset.h" @@ -36,13 +35,13 @@ } while (0)#define LOAD_REGISTER_IMM32 (__reg, __imm1) do { \ - *bb++ = MI_LOAD_REGISTER_IMM | MI_CS_MMIO_DST; \ + *bb++ = MI_LOAD_REGISTER_IMM(1) | MI_CS_MMIO_DST; \ *bb++ = (__reg); \ *bb++ = (__imm1); \ } while (0)#define LOAD_REGISTER_IMM64 (__reg, __imm1, __imm2) do { \ - *bb++ = (MI_LOAD_REGISTER_IMM + 2) | MI_CS_MMIO_DST; \ + *bb++ = MI_LOAD_REGISTER_IMM(2) | MI_CS_MMIO_DST; \ *bb++ = (__reg); \ *bb++ = (__imm1); \ *bb++ = (__reg) + 4; \@@ -50,29 +49,29 @@ } while (0)#define LOAD_REGISTER_MEM (__reg, __offset) do { \ - *bb++ = MI_LOAD_REGISTER_MEM | MI_CS_MMIO_DST | 2; \ + *bb++ = MI_LOAD_REGISTER_MEM_CMD | MI_CS_MMIO_DST | 2; \ *bb++ = (__reg); \ *bb++ = (__offset); \ *bb++ = (__offset) >> 32; \ } while (0)#define LOAD_REGISTER_MEM_WPARID (__reg, __offset) do { \ - *bb++ = MI_LOAD_REGISTER_MEM | MI_CS_MMIO_DST | MI_WPARID_ENABLE_GEN12 | 2; \ + *bb++ = MI_LOAD_REGISTER_MEM_CMD | MI_CS_MMIO_DST | MI_WPARID_ENABLE_GEN12 | 2; \ *bb++ = (__reg); \ *bb++ = (__offset); \ *bb++ = (__offset) >> 32; \ } while (0)#define STORE_REGISTER_MEM (__reg, __offset) do { \ - *bb++ = MI_STORE_REGISTER_MEM | MI_CS_MMIO_DST | 2; \ + *bb++ = MI_STORE_REGISTER_MEM_GEN8 | MI_CS_MMIO_DST; \ *bb++ = (__reg); \ *bb++ = (__offset); \ *bb++ = (__offset) >> 32; \ } while (0)#define STORE_REGISTER_MEM_PREDICATED (__reg, __offset) do { \ - *bb++ = MI_STORE_REGISTER_MEM | MI_CS_MMIO_DST | \ - MI_STORE_PREDICATE_ENABLE_GEN12 | 2; \ + *bb++ = MI_STORE_REGISTER_MEM_GEN8 | MI_CS_MMIO_DST | \ + MI_STORE_PREDICATE_ENABLE_GEN12; \ *bb++ = (__reg); \ *bb++ = (__offset); \ *bb++ = (__offset) >> 32; \lib/igt_draw.c +2
-2@@ -385,12 +385,12 @@ static void switch_blt_tiling(struct intel_bb *ibb, uint32_t tiling, bool on)/* To change the tile register, insert an MI_FLUSH_DW followed by an * MI_LOAD_REGISTER_IMM */ -intel_bb_out (ibb,MI_FLUSH_DW |2 ); +intel_bb_out (ibb,MI_FLUSH_DW_CMD |2 );intel_bb_out (ibb,0x0 );intel_bb_out (ibb,0x0 );intel_bb_out (ibb,0x0 ); -intel_bb_out (ibb,MI_LOAD_REGISTER_IMM ); +intel_bb_out (ibb,MI_LOAD_REGISTER_IMM (1 ));intel_bb_out (ibb,0x22200 );/* BCS_SWCTRL */ intel_bb_out (ibb, bcs_swctrl);intel_bb_out (ibb,MI_NOOP );lib/igt_dummyload.c +1
-1@@ -256,7 +256,7 @@ emit_recursive_batch(igt_spin_t *spin, r->offset =sizeof (uint32_t ) *1 ; r->delta =sizeof (uint32_t ) *SPIN_POLL_START_IDX ; - *cs++ =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + *cs++ =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { *cs++ = r->presumed_offset + r->delta;lib/igt_store.c +1
-1@@ -76,7 +76,7 @@ void igt_store_word(int fd, uint64_t ahnd, const intel_ctx_t *ctx, obj[BATCH ].offset = bb_offset; obj[BATCH ].flags |=EXEC_OBJECT_PINNED ; } - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) {uint64_t addr = target_gpu_addr + delta; batch[++i] =lower_32_bits (addr);lib/intel_allocator.h +1
-7@@ -12,6 +12,7 @@#include <stdint.h> #include <stdatomic.h> #include "i915/gem_submission.h" +#include "intel_reg.h" /** * SECTION:intel_allocator @@ -217,13 +218,6 @@ void intel_allocator_print(uint64_t allocator_handle);#define GEN8_GTT_ADDRESS_WIDTH 48 -static inline uint64_t sign_extend64 (uint64_t x,int high) -{ -int shift =63 - high; - -return (int64_t )(x << shift) >> shift; -} -static inline uint64_t CANONICAL (uint64_t offset) {return sign_extend64 (offset,GEN8_GTT_ADDRESS_WIDTH -1 );lib/intel_aux_pgtable.c +2
-3@@ -9,7 +9,6 @@#include "i915/gem_mman.h" -#define BITS_PER_LONG_LONG (sizeof(long long) * 8)#define BITMASK (e, s) ((~0ULL << (s)) & \ (~0ULL >> (BITS_PER_LONG_LONG - 1 - (e))))@@ -644,11 +643,11 @@ gen12_emit_aux_pgtable_state(struct intel_bb *ibb, uint32_t state, bool render)if (!state)return ; -intel_bb_out (ibb,MI_LOAD_REGISTER_MEM |MI_MMIO_REMAP_ENABLE_GEN12 |2 ); +intel_bb_out (ibb,MI_LOAD_REGISTER_MEM_CMD |MI_MMIO_REMAP_ENABLE_GEN12 |2 );intel_bb_out (ibb, table_base_reg);intel_bb_emit_reloc (ibb, ibb->handle,0 ,0 , state, ibb->batch_offset); -intel_bb_out (ibb,MI_LOAD_REGISTER_MEM |MI_MMIO_REMAP_ENABLE_GEN12 |2 ); +intel_bb_out (ibb,MI_LOAD_REGISTER_MEM_CMD |MI_MMIO_REMAP_ENABLE_GEN12 |2 );intel_bb_out (ibb, table_base_reg +4 );intel_bb_emit_reloc (ibb, ibb->handle,0 ,0 , state +4 , ibb->batch_offset); }lib/intel_batchbuffer.c +6
-6@@ -378,7 +378,7 @@ void igt_blitter_src_copy(int fd,if ((src_tiling | dst_tiling) >=I915_TILING_Y ) {unsigned int mask; - batch[i++] =MI_LOAD_REGISTER_IMM ; + batch[i++] =MI_LOAD_REGISTER_IMM (1 ); batch[i++] =BCS_SWCTRL ; mask = (BCS_SRC_Y |BCS_DST_Y ) <<16 ;@@ -407,12 +407,12 @@ void igt_blitter_src_copy(int fd,if ((src_tiling | dst_tiling) >=I915_TILING_Y ) {igt_assert (gen >=6 ); - batch[i++] =MI_FLUSH_DW |2 ; + batch[i++] =MI_FLUSH_DW_CMD |2 ; batch[i++] =0 ; batch[i++] =0 ; batch[i++] =0 ; - batch[i++] =MI_LOAD_REGISTER_IMM ; + batch[i++] =MI_LOAD_REGISTER_IMM (1 ); batch[i++] =BCS_SWCTRL ; batch[i++] = (BCS_SRC_Y |BCS_DST_Y ) <<16 ; }@@ -2413,7 +2413,7 @@ void intel_bb_emit_blt_copy(struct intel_bb *ibb, }if ((src->tiling | dst->tiling) >=I915_TILING_Y ) { -intel_bb_out (ibb,MI_LOAD_REGISTER_IMM ); +intel_bb_out (ibb,MI_LOAD_REGISTER_IMM (1 ));intel_bb_out (ibb,BCS_SWCTRL ); mask = (BCS_SRC_Y |BCS_DST_Y ) <<16 ;@@ -2450,12 +2450,12 @@ void intel_bb_emit_blt_copy(struct intel_bb *ibb,if ((src->tiling | dst->tiling) >=I915_TILING_Y ) {igt_assert (ibb->gen >=6 ); -intel_bb_out (ibb,MI_FLUSH_DW |2 ); +intel_bb_out (ibb,MI_FLUSH_DW_CMD |2 );intel_bb_out (ibb,0 );intel_bb_out (ibb,0 );intel_bb_out (ibb,0 ); -intel_bb_out (ibb,MI_LOAD_REGISTER_IMM ); +intel_bb_out (ibb,MI_LOAD_REGISTER_IMM (1 ));intel_bb_out (ibb,BCS_SWCTRL );intel_bb_out (ibb, (BCS_SRC_Y |BCS_DST_Y ) <<16 ); }lib/intel_bufops.c +7
-0@@ -83,6 +83,13 @@#define DEBUGFN ()#endif +#undef TILE_NONE +#undef TILE_X +#undef TILE_Y +#undef TILE_Yf +#undef TILE_Ys +#undef TILE_4 +#define TILE_DEF (x) (1 << (x))#define TILE_NONE TILE_DEF(I915_TILING_NONE)#define TILE_X TILE_DEF(I915_TILING_X)lib/intel_reg.h +3
-66@@ -44,6 +44,9 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.#ifndef _I810_REG_H#define _I810_REG_H +#include "intel_gpu_commands.h" +#include "intel_gpu_commands_staging.h" +/* I/O register offsets */ #define CRX_MDA 0x3B4@@ -2534,7 +2537,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.#define I855_CLOCK_166_250 (3 << 0)/* BLT commands */ -#define COLOR_BLT_CMD ((2<<29)|(0x40<<22)|(0x3))#define COLOR_BLT_WRITE_ALPHA (1<<21)#define COLOR_BLT_WRITE_RGB (1<<20)@@ -2545,15 +2547,8 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.#define XY_SETUP_CLIP_BLT_CMD ((2<<29)|(3<<22)|1) -#define XY_SRC_COPY_BLT_CMD ((2<<29)|(0x53<<22))#define XY_SRC_COPY_BLT_WRITE_ALPHA (1<<21)#define XY_SRC_COPY_BLT_WRITE_RGB (1<<20) -#define XY_SRC_COPY_BLT_SRC_TILED (1<<15) -#define XY_SRC_COPY_BLT_DST_TILED (1<<11) - -#define SRC_COPY_BLT_CMD ((2<<29)|(0x43<<22)|0x4) -#define SRC_COPY_BLT_WRITE_ALPHA (1<<21) -#define SRC_COPY_BLT_WRITE_RGB (1<<20)#define XY_PAT_BLT_IMMEDIATE ((2<<29)|(0x72<<22))@@ -2591,15 +2586,10 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.#define XY_FAST_COPY_COLOR_DEPTH_64 (4 << 24)#define XY_FAST_COPY_COLOR_DEPTH_128 (5 << 24) -#define MI_STORE_DWORD_IMM ((0x20<<23)|2) -#define MI_MEM_VIRTUAL (1 << 22)/* 965+ only */ - -#define MI_SET_CONTEXT (0x18<<23)#define CTXT_NO_RESTORE (1)#define CTXT_PALETTE_SAVE_DISABLE (1<<3)#define CTXT_PALETTE_RESTORE_DISABLE (1<<2) -#define MI_SET_APPID (0x0E << 23)#define APPID_CTXREST_INHIBIT (1 << 9)#define APPID_CTXSAVE_INHIBIT (1 << 8)#define APPTYPE (n) ((n) << 7)@@ -2616,36 +2606,26 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.#define MI_VERTEX_BUFFER_DISABLE (1)/* Overlay Flip */ -#define MI_OVERLAY_FLIP (0x11<<23)#define MI_OVERLAY_FLIP_CONTINUE (0<<21)#define MI_OVERLAY_FLIP_ON (1<<21)#define MI_OVERLAY_FLIP_OFF (2<<21)/* Wait for Events */ -#define MI_WAIT_FOR_EVENT (0x03<<23)#define MI_WAIT_FOR_PIPEB_SVBLANK (1<<18)#define MI_WAIT_FOR_PIPEA_SVBLANK (1<<17) -#define MI_WAIT_FOR_OVERLAY_FLIP (1<<16)#define MI_WAIT_FOR_PIPEB_VBLANK (1<<7)#define MI_WAIT_FOR_PIPEA_VBLANK (1<<3)#define MI_WAIT_FOR_PIPEB_SCAN_LINE_WINDOW (1<<5)#define MI_WAIT_FOR_PIPEA_SCAN_LINE_WINDOW (1<<1) -#define MI_LOAD_SCAN_LINES_INCL (0x12<<23) -#define MI_LOAD_REGISTER_IMM ((0x22 << 23) | 1) -#define MI_LOAD_REGISTER_REG ((0x2A << 23) | 1) -#define MI_LOAD_REGISTER_MEM (0x29 << 23)#define MI_CS_MMIO_DST (1 << 19)#define MI_CS_MMIO_SRC (1 << 18)#define MI_MMIO_REMAP_ENABLE_GEN12 (1 << 17)#define MI_WPARID_ENABLE_GEN12 (1 << 16) -#define MI_STORE_REGISTER_MEM (0x24 << 23)#define MI_STORE_PREDICATE_ENABLE_GEN12 (1 << 21)/* Flush */ -#define MI_FLUSH (0x04<<23)#define MI_WRITE_DIRTY_STATE (1<<4) -#define MI_END_SCENE (1<<3)#define MI_GLOBAL_SNAPSHOT_COUNT_RESET (1<<3)#define MI_INHIBIT_RENDER_CACHE_FLUSH (1<<2)#define MI_STATE_INSTRUCTION_CACHE_FLUSH (1<<1)@@ -2654,27 +2634,16 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.#define BRW_MI_GLOBAL_SNAPSHOT_RESET (1 << 3)/* Noop */ -#define MI_NOOP 0x00#define MI_NOOP_WRITE_ID (1<<22)#define MI_NOOP_ID_MASK (1<<22 - 1) -/* ARB Check */ -#define MI_ARB_CHECK (0x5 << 23) -#define STATE3D_COLOR_FACTOR ((0x3<<29)|(0x1d<<24)|(0x01<<16))/* Atomics */ -#define MI_ATOMIC ((0x2f << 23) | 1) -#define MI_ATOMIC_INLINE_DATA (1 << 18)#define MI_ATOMIC_INC (0x5 << 8)#define MI_ATOMIC_ADD (0x7 << 8)/* Batch */ -#define MI_BATCH_BUFFER ((0x30 << 23) | 1) -#define MI_BATCH_BUFFER_START (0x31 << 23) -#define MI_BATCH_BUFFER_START_GEN8 ((0x31 << 13) | 1) -#define MI_BATCH_PREDICATE (1 << 15)/* HSW+ on RCS only*/ -#define MI_BATCH_BUFFER_END (0xA << 23)#define MI_COND_BATCH_BUFFER_END (0x36 << 23)#define MAD_GT_IDD (0 << 12)#define MAD_GT_OR_EQ_IDD (1 << 12)@@ -2682,45 +2651,13 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.#define MAD_LT_OR_EQ_IDD (3 << 12)#define MAD_EQ_IDD (4 << 12)#define MAD_NEQ_IDD (5 << 12) -#define MI_DO_COMPARE (1 << 21) - -#define MI_BATCH_NON_SECURE (1) -#define MI_BATCH_NON_SECURE_I965 (1 << 8) -#define MI_BATCH_NON_SECURE_HSW (1<<13)/* Additional bit for RCS */ /* Math */ -#define MI_INSTR (opcode, flags) (((opcode) << 23) | (flags)) -#define MI_MATH (x) MI_INSTR(0x1a, (x) - 1) -#define MI_MATH_INSTR (opcode, op1, op2) ((opcode) << 20 | (op1) << 10 | (op2)) -/* Opcodes for MI_MATH_INSTR */ -#define MI_MATH_NOOP MI_MATH_INSTR(0x000, 0x0, 0x0) -#define MI_MATH_LOAD (op1, op2) MI_MATH_INSTR(0x080, op1, op2) -#define MI_MATH_LOADINV (op1, op2) MI_MATH_INSTR(0x480, op1, op2) -#define MI_MATH_LOAD0 (op1) MI_MATH_INSTR(0x081, op1) -#define MI_MATH_LOAD1 (op1) MI_MATH_INSTR(0x481, op1) -#define MI_MATH_ADD MI_MATH_INSTR(0x100, 0x0, 0x0) -#define MI_MATH_SUB MI_MATH_INSTR(0x101, 0x0, 0x0) -#define MI_MATH_AND MI_MATH_INSTR(0x102, 0x0, 0x0) -#define MI_MATH_OR MI_MATH_INSTR(0x103, 0x0, 0x0) -#define MI_MATH_XOR MI_MATH_INSTR(0x104, 0x0, 0x0) -#define MI_MATH_STORE (op1, op2) MI_MATH_INSTR(0x180, op1, op2) -#define MI_MATH_STOREINV (op1, op2) MI_MATH_INSTR(0x580, op1, op2)/* DG2+ */ #define MI_MATH_SHL MI_MATH_INSTR(0x105, 0x0, 0x0)#define MI_MATH_SHR MI_MATH_INSTR(0x106, 0x0, 0x0)#define MI_MATH_SAR MI_MATH_INSTR(0x107, 0x0, 0x0) -/* Registers used as operands in MI_MATH_INSTR */ -#define MI_MATH_REG (x) (x) -#define MI_MATH_REG_SRCA 0x20 -#define MI_MATH_REG_SRCB 0x21 -#define MI_MATH_REG_ACCU 0x31 -#define MI_MATH_REG_ZF 0x32 -#define MI_MATH_REG_CF 0x33 - -/* DG2+ */ -#define MI_SET_PREDICATE MI_INSTR(0x1, 0) -#define MAX_DISPLAY_PIPES 2 typedef enum {lib/ioctl_wrappers.h +2
-2@@ -173,9 +173,9 @@ static inline uint64_t to_user_pointer(const void *ptr)* * Casts a 64bit value from an ioctl into a pointer. */ -static inline void *from_user_pointer (uint64_t u64) +static inline void *from_user_pointer (uint64_t u64p) { -return (void *)(uintptr_t )u64; +return (void *)(uintptr_t )u64p; }/** lib/rendercopy_gen9.c +3
-6@@ -967,10 +967,7 @@ static void gen8_emit_primitive(struct intel_bb *ibb, uint32_t offset)intel_bb_out (ibb,0 );/* index buffer offset, ignored */ } -#define GFX_OP_PIPE_CONTROL ((3 << 29) | (3 << 27) | (2 << 24)) -#define PIPE_CONTROL_CS_STALL (1 << 20)#define PIPE_CONTROL_RENDER_TARGET_FLUSH (1 << 12) -#define PIPE_CONTROL_FLUSH_ENABLE (1 << 7)#define PIPE_CONTROL_DATA_CACHE_INVALIDATE (1 << 5)#define PIPE_CONTROL_PROTECTEDPATH_DISABLE (1 << 27)#define PIPE_CONTROL_PROTECTEDPATH_ENABLE (1 << 22)@@ -986,7 +983,7 @@ static void gen12_emit_pxp_state(struct intel_bb *ibb, bool enable,if (enable) { pipe_ctl_flags =PIPE_CONTROL_FLUSH_ENABLE ; -intel_bb_out (ibb,GFX_OP_PIPE_CONTROL ); +intel_bb_out (ibb,GFX_OP_PIPE_CONTROL (2 ));intel_bb_out (ibb, pipe_ctl_flags); set_app_id = MI_SET_APPID |@@ -1005,7 +1002,7 @@ static void gen12_emit_pxp_state(struct intel_bb *ibb, bool enable,PIPE_CONTROL_RENDER_TARGET_FLUSH |PIPE_CONTROL_DATA_CACHE_INVALIDATE | PIPE_CONTROL_POST_SYNC_OP); -intel_bb_out (ibb,GFX_OP_PIPE_CONTROL |4 ); +intel_bb_out (ibb,GFX_OP_PIPE_CONTROL (6 ));intel_bb_out (ibb, pipe_ctl_flags); intel_bb_emit_reloc(ibb, ibb->handle, 0, I915_GEM_DOMAIN_COMMAND, (enable ? pxp_write_op_offset : (pxp_write_op_offset+8)),@@ -1107,7 +1104,7 @@ void _gen9_render_op(struct intel_bb *ibb,if (fast_clear) {for (int i =0 ; i <4 ; i++) { -intel_bb_out (ibb,MI_STORE_DWORD_IMM ); +intel_bb_out (ibb,MI_STORE_DWORD_IMM_GEN4 ); intel_bb_emit_reloc(ibb, dst->handle, I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER, dst->cc.offset + i*sizeof(float),tests/i915/api_intel_bb.c +1
-1@@ -1154,7 +1154,7 @@ static void delta_check(struct buf_ops *bops)intel_bb_add_object (ibb, buf->handle,intel_buf_bo_size (buf), buf->addr.offset,0 , false); -intel_bb_out (ibb,MI_STORE_DWORD_IMM ); +intel_bb_out (ibb,MI_STORE_DWORD_IMM_GEN4 ); intel_bb_emit_reloc(ibb, buf->handle, I915_GEM_DOMAIN_RENDER, I915_GEM_DOMAIN_RENDER,tests/i915/gem_blits.c +9
-11@@ -27,8 +27,6 @@#include "igt.h" #include "igt_x86.h" -#define MI_FLUSH_DW (0x26 << 23) -#define BCS_SWCTRL 0x22200#define BCS_SRC_Y (1 << 0)#define BCS_DST_Y (1 << 1)@@ -198,7 +196,7 @@ static void buffer_set_tiling(const struct device *device,if ((tiling | buffer->tiling) >=I915_TILING_Y ) {unsigned int mask; - batch[i++] =MI_LOAD_REGISTER_IMM ; + batch[i++] =MI_LOAD_REGISTER_IMM (1 ); batch[i++] =BCS_SWCTRL ; mask = (BCS_SRC_Y |BCS_DST_Y ) <<16 ;@@ -248,12 +246,12 @@ static void buffer_set_tiling(const struct device *device,if ((tiling | buffer->tiling) >=I915_TILING_Y ) {igt_assert (device->gen >=6 ); - batch[i++] =MI_FLUSH_DW |2 ; + batch[i++] =MI_FLUSH_DW_CMD |2 ; batch[i++] =0 ; batch[i++] =0 ; batch[i++] =0 ; - batch[i++] =MI_LOAD_REGISTER_IMM ; + batch[i++] =MI_LOAD_REGISTER_IMM (1 ); batch[i++] =BCS_SWCTRL ; batch[i++] = (BCS_SRC_Y |BCS_DST_Y ) <<16 ; }@@ -345,7 +343,7 @@ static bool blit_to_linear(const struct device *device,if (buffer->tiling >=I915_TILING_Y ) {unsigned int mask; - batch[i++] =MI_LOAD_REGISTER_IMM ; + batch[i++] =MI_LOAD_REGISTER_IMM (1 ); batch[i++] =BCS_SWCTRL ; mask = (BCS_SRC_Y |BCS_DST_Y ) <<16 ;@@ -388,12 +386,12 @@ static bool blit_to_linear(const struct device *device,if (buffer->tiling >=I915_TILING_Y ) {igt_assert (device->gen >=6 ); - batch[i++] =MI_FLUSH_DW |2 ; + batch[i++] =MI_FLUSH_DW_CMD |2 ; batch[i++] =0 ; batch[i++] =0 ; batch[i++] =0 ; - batch[i++] =MI_LOAD_REGISTER_IMM ; + batch[i++] =MI_LOAD_REGISTER_IMM (1 ); batch[i++] =BCS_SWCTRL ; batch[i++] = (BCS_SRC_Y |BCS_DST_Y ) <<16 ; }@@ -678,7 +676,7 @@ blit(const struct device *device,if ((src->tiling | dst->tiling) >=I915_TILING_Y ) {unsigned int mask; - batch[i++] =MI_LOAD_REGISTER_IMM ; + batch[i++] =MI_LOAD_REGISTER_IMM (1 ); batch[i++] =BCS_SWCTRL ; mask = (BCS_SRC_Y |BCS_DST_Y ) <<16 ;@@ -729,12 +727,12 @@ blit(const struct device *device,if ((src->tiling | dst->tiling) >=I915_TILING_Y ) {igt_assert (device->gen >=6 ); - batch[i++] =MI_FLUSH_DW |2 ; + batch[i++] =MI_FLUSH_DW_CMD |2 ; batch[i++] =0 ; batch[i++] =0 ; batch[i++] =0 ; - batch[i++] =MI_LOAD_REGISTER_IMM ; + batch[i++] =MI_LOAD_REGISTER_IMM (1 ); batch[i++] =BCS_SWCTRL ; batch[i++] = (BCS_SRC_Y |BCS_DST_Y ) <<16 ; }tests/i915/gem_busy.c +4
-4@@ -235,10 +235,10 @@ static void one(int fd, const intel_ctx_t *ctx,static void xchg_u32 (void *array,unsigned i,unsigned j) { -uint32_t *u32 = array; -uint32_t tmp = u32[i]; - u32[i] = u32[j]; - u32[j] = tmp; +uint32_t *ui32 = array; +uint32_t tmp = ui32[i]; + ui32[i] = ui32[j]; + ui32[j] = tmp; }static void close_race (int fd,const intel_ctx_t *ctx)tests/i915/gem_ccs.c +1
-1@@ -137,7 +137,7 @@ static void surf_copy(int i915, surf.i915 = i915; surf.print_bb = param.print_bb;set_surf_object (&surf.src, mid->handle, mid->region, mid->size, - uc_mocs,INDIRECT_ACCESS ); + uc_mocs,BLT_INDIRECT_ACCESS );set_surf_object (&surf.dst, ccs,REGION_SMEM , ccssize, uc_mocs,DIRECT_ACCESS ); bb_size =4096 ;tests/i915/gem_ctx_shared.c +2
-2@@ -309,7 +309,7 @@ static void exec_shared_gtt(int i915, const intel_ctx_cfg_t *cfg, batch =gem_create (i915,4096 ); i =0 ; - cs[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + cs[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { cs[++i] = obj.offset; cs[++i] = obj.offset >>32 ;@@ -564,7 +564,7 @@ static void store_dword(int i915, uint64_t ahnd, const intel_ctx_t *ctx, obj[2 ].relocation_count = !ahnd ?1 :0 ; i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = reloc.presumed_offset + reloc.delta; batch[++i] =0 ;tests/i915/gem_exec_async.c +1
-1@@ -73,7 +73,7 @@ static void store_dword(int fd, int id, const intel_ctx_t *ctx, obj[1 ].relocation_count = !id ?1 :0 ; i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = target_offset + offset; batch[++i] = (target_offset + offset) >>32 ;tests/i915/gem_exec_balancer.c +7
-16@@ -41,15 +41,6 @@IGT_TEST_DESCRIPTION ("Exercise in-kernel load-balancing" ); -#define MI_SEMAPHORE_WAIT (0x1c << 23) -#define MI_SEMAPHORE_POLL (1 << 15) -#define MI_SEMAPHORE_SAD_GT_SDD (0 << 12) -#define MI_SEMAPHORE_SAD_GTE_SDD (1 << 12) -#define MI_SEMAPHORE_SAD_LT_SDD (2 << 12) -#define MI_SEMAPHORE_SAD_LTE_SDD (3 << 12) -#define MI_SEMAPHORE_SAD_EQ_SDD (4 << 12) -#define MI_SEMAPHORE_SAD_NEQ_SDD (5 << 12) -#define INSTANCE_COUNT (1 << I915_PMU_SAMPLE_INSTANCE_BITS)static size_t sizeof_load_balance (int count)@@ -589,7 +580,7 @@ static uint32_t create_semaphore_to_spinner(int i915, igt_spin_t *spin)/* Wait until the spinner is running */ addr = spin->obj[0 ].offset +4 *SPIN_POLL_START_IDX ; - *cs++ =MI_SEMAPHORE_WAIT | + *cs++ =MI_SEMAPHORE_WAIT_CMD |MI_SEMAPHORE_POLL |MI_SEMAPHORE_SAD_NEQ_SDD | (4 -2 );@@ -600,7 +591,7 @@ static uint32_t create_semaphore_to_spinner(int i915, igt_spin_t *spin)/* Then cancel the spinner */ addr = spin->obj[IGT_SPIN_BATCH ].offset +offset_in_page (spin->condition); - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ; *cs++ = addr; *cs++ = addr >>32 ; *cs++ =MI_BATCH_BUFFER_END ;@@ -1116,7 +1107,7 @@ static uint32_t sync_from(int i915, uint32_t addr, uint32_t target) cs = map =gem_mmap__device_coherent (i915, handle,0 ,4096 ,PROT_WRITE );/* cancel target spinner */ - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ; *cs++ = target +64 ; *cs++ =0 ; *cs++ =0 ;@@ -1131,7 +1122,7 @@ static uint32_t sync_from(int i915, uint32_t addr, uint32_t target) *cs++ =0 ;/* self-heal */ - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ; *cs++ = addr +64 ; *cs++ =0 ; *cs++ =MI_BATCH_BUFFER_START |1 <<8 |1 ;@@ -1162,13 +1153,13 @@ static uint32_t sync_to(int i915, uint32_t addr, uint32_t target) *cs++ =MI_NOOP ;/* cancel their spin as a compliment */ - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ; *cs++ = target +64 ; *cs++ =0 ; *cs++ =0 ;/* self-heal */ - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ; *cs++ = addr +64 ; *cs++ =0 ; *cs++ =MI_BATCH_BUFFER_START |1 <<8 |1 ;@@ -1906,7 +1897,7 @@ static uint32_t sema_create(int i915, uint64_t addr, uint32_t **x)for (int n =1 ; n <=32 ; n++) {uint32_t *cs = *x + n *16 ; - *cs++ =MI_SEMAPHORE_WAIT | + *cs++ =MI_SEMAPHORE_WAIT_CMD |MI_SEMAPHORE_POLL |MI_SEMAPHORE_SAD_GTE_SDD | (4 -2 );tests/i915/gem_exec_capture.c +2
-2@@ -308,7 +308,7 @@ static void __capture1(int fd, int dir, uint64_t ahnd, const intel_ctx_t *ctx, I915_GEM_DOMAIN_CPU, I915_GEM_DOMAIN_CPU); i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = obj[SCRATCH ].offset; batch[++i] = obj[SCRATCH ].offset >>32 ;@@ -498,7 +498,7 @@ __captureN(int fd, int dir, uint64_t ahnd, const intel_ctx_t *ctx, I915_GEM_DOMAIN_CPU, I915_GEM_DOMAIN_CPU); i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = obj[0 ].offset; batch[++i] = obj[0 ].offset >>32 ;tests/i915/gem_exec_endless.c +2
-11@@ -33,15 +33,6 @@#define MAX_ENGINES 64 -#define MI_SEMAPHORE_WAIT (0x1c << 23) -#define MI_SEMAPHORE_POLL (1 << 15) -#define MI_SEMAPHORE_SAD_GT_SDD (0 << 12) -#define MI_SEMAPHORE_SAD_GTE_SDD (1 << 12) -#define MI_SEMAPHORE_SAD_LT_SDD (2 << 12) -#define MI_SEMAPHORE_SAD_LTE_SDD (3 << 12) -#define MI_SEMAPHORE_SAD_EQ_SDD (4 << 12) -#define MI_SEMAPHORE_SAD_NEQ_SDD (5 << 12) -static uint32_t batch_create (int i915) {const uint32_t bbe =MI_BATCH_BUFFER_END ;@@ -133,7 +124,7 @@ static void __supervisor_run(struct supervisor *sv) sv->semaphore = cs +1000 ; - *cs++ =MI_SEMAPHORE_WAIT | + *cs++ =MI_SEMAPHORE_WAIT_CMD |MI_SEMAPHORE_POLL |MI_SEMAPHORE_SAD_EQ_SDD | (4 -2 );@@ -142,7 +133,7 @@ static void __supervisor_run(struct supervisor *sv) *cs++ =0 ; sv->terminate = cs; - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ; *cs++ =offset_in_page (sv->semaphore); *cs++ =0 ; *cs++ =0 ;tests/i915/gem_exec_fair.c +9
-9@@ -131,7 +131,7 @@ static void delay(int i915, cs = map =gem_mmap__device_coherent (i915, handle,0 ,4096 ,PROT_WRITE ); - *cs++ =MI_LOAD_REGISTER_IMM ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ); *cs++ =CS_GPR (START_TS ) +4 ; *cs++ =0 ; *cs++ =MI_LOAD_REGISTER_REG ;@@ -144,7 +144,7 @@ static void delay(int i915, *cs++ =0x5 <<23 ;/* MI_ARB_CHECK */ - *cs++ =MI_LOAD_REGISTER_IMM ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ); *cs++ =CS_GPR (NOW_TS ) +4 ; *cs++ =0 ; *cs++ =MI_LOAD_REGISTER_REG ;@@ -166,7 +166,7 @@ static void delay(int i915,/* Delay between SRM and COND_BBE to post the writes */ for (int n =0 ; n <8 ; n++) { - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ;if (use_64b) { *cs++ = addr +4064 ; *cs++ = addr >>32 ;@@ -244,25 +244,25 @@ static void tslog(int i915, *cs++ = addr >>32 ;/* Load the address + inc & mask variables */ - *cs++ =MI_LOAD_REGISTER_IMM ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ); *cs++ =CS_GPR (ADDR ); addr_lo = cs; *cs++ = addr; - *cs++ =MI_LOAD_REGISTER_IMM ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ); *cs++ =CS_GPR (ADDR ) +4 ; *cs++ = addr >>32 ; - *cs++ =MI_LOAD_REGISTER_IMM ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ); *cs++ =CS_GPR (INC ); *cs++ =4 ; - *cs++ =MI_LOAD_REGISTER_IMM ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ); *cs++ =CS_GPR (INC ) +4 ; *cs++ =0 ; - *cs++ =MI_LOAD_REGISTER_IMM ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ); *cs++ =CS_GPR (MASK ); *cs++ =0xfffff7ff ; - *cs++ =MI_LOAD_REGISTER_IMM ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ); *cs++ =CS_GPR (MASK ) +4 ; *cs++ =0xffffffff ;tests/i915/gem_exec_fence.c +17
-26@@ -50,15 +50,6 @@ struct sync_merge_data {#define SYNC_IOC_MERGE _IOWR(SYNC_IOC_MAGIC, 3, struct sync_merge_data)#endif -#define MI_SEMAPHORE_WAIT (0x1c << 23) -#define MI_SEMAPHORE_POLL (1 << 15) -#define MI_SEMAPHORE_SAD_GT_SDD (0 << 12) -#define MI_SEMAPHORE_SAD_GTE_SDD (1 << 12) -#define MI_SEMAPHORE_SAD_LT_SDD (2 << 12) -#define MI_SEMAPHORE_SAD_LTE_SDD (3 << 12) -#define MI_SEMAPHORE_SAD_EQ_SDD (4 << 12) -#define MI_SEMAPHORE_SAD_NEQ_SDD (5 << 12) -static bool fence_busy (int fence) {return poll (&(struct pollfd ){fence,POLLIN },1 ,0 ) ==0 ;@@ -345,7 +336,7 @@ static uint32_t timeslicing_batches(int i915, uint32_t *offset)for (int step =0 ; step <8 ; step++) {if (pair) { cs[i++] = -MI_SEMAPHORE_WAIT | +MI_SEMAPHORE_WAIT_CMD |MI_SEMAPHORE_POLL |MI_SEMAPHORE_SAD_EQ_SDD | (4 -2 );@@ -354,14 +345,14 @@ static uint32_t timeslicing_batches(int i915, uint32_t *offset) cs[i++] =0 ; } - cs[i++] =MI_STORE_DWORD_IMM ; + cs[i++] =MI_STORE_DWORD_IMM_GEN4 ; cs[i++] = *offset; cs[i++] =0 ; cs[i++] = x++;if (!pair) { cs[i++] = -MI_SEMAPHORE_WAIT | +MI_SEMAPHORE_WAIT_CMD |MI_SEMAPHORE_POLL |MI_SEMAPHORE_SAD_EQ_SDD | (4 -2 );@@ -452,7 +443,7 @@ static uint32_t submitN_batches(int i915, uint32_t offset, int count)for (int step =0 ; step <8 ; step++) { cs[i++] = -MI_SEMAPHORE_WAIT | +MI_SEMAPHORE_WAIT_CMD |MI_SEMAPHORE_POLL |MI_SEMAPHORE_SAD_EQ_SDD | (4 -2 );@@ -460,7 +451,7 @@ static uint32_t submitN_batches(int i915, uint32_t offset, int count) cs[i++] = offset; cs[i++] =0 ; - cs[i++] =MI_STORE_DWORD_IMM ; + cs[i++] =MI_STORE_DWORD_IMM_GEN4 ; cs[i++] = offset; cs[i++] =0 ; cs[i++] = x +1 ;@@ -606,7 +597,7 @@ static void test_parallel(int i915, const intel_ctx_t *ctx, } i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = scratch_offset + reloc.delta; batch[++i] = scratch_offset >>32 ;@@ -726,7 +717,7 @@ static void test_concurrent(int i915, const intel_ctx_t *ctx,close (fence); i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = target_offset + reloc.delta; batch[++i] = target_offset >>32 ;@@ -2464,21 +2455,21 @@ build_wait_bb(int i915, map =gem_mmap__device_coherent (i915, obj.handle,0 ,4096 ,PROT_WRITE ); bb = map; - *bb++ =MI_LOAD_REGISTER_IMM ; + *bb++ =MI_LOAD_REGISTER_IMM (1 ); *bb++ = mmio_base +HSW_CS_GPR (0 ); *bb++ = wait_value &0xffffffff ; - *bb++ =MI_LOAD_REGISTER_IMM ; + *bb++ =MI_LOAD_REGISTER_IMM (1 ); *bb++ = mmio_base +HSW_CS_GPR (0 ) +4 ; *bb++ = wait_value >>32 ; *bb++ =MI_LOAD_REGISTER_REG ; *bb++ = mmio_base +RING_TIMESTAMP ; *bb++ = mmio_base +HSW_CS_GPR (1 ); - *bb++ =MI_LOAD_REGISTER_IMM ; + *bb++ =MI_LOAD_REGISTER_IMM (1 ); *bb++ = mmio_base +HSW_CS_GPR (1 ) +4 ; *bb++ =0 ; - *bb++ =MI_LOAD_REGISTER_IMM ; + *bb++ =MI_LOAD_REGISTER_IMM (1 ); *bb++ = mmio_base +HSW_CS_GPR (2 ) +4 ; *bb++ =0 ; relocs->delta =offset_in_page (bb);@@ -2563,23 +2554,23 @@ static void build_increment_engine_bb(struct inter_engine_batches *batch, {uint32_t *bb = batch->increment_bb =calloc (1 ,4096 ); - *bb++ =MI_LOAD_REGISTER_MEM |2 ; + *bb++ =MI_LOAD_REGISTER_MEM_CMD |2 ; *bb++ = mmio_base +HSW_CS_GPR (0 ); batch->read0_ptrs[0 ] = bb; *bb++ =0 ; *bb++ =0 ; - *bb++ =MI_LOAD_REGISTER_MEM |2 ; + *bb++ =MI_LOAD_REGISTER_MEM_CMD |2 ; *bb++ = mmio_base +HSW_CS_GPR (0 ) +4 ; batch->read0_ptrs[1 ] = bb; *bb++ =0 ; *bb++ =0 ; - *bb++ =MI_LOAD_REGISTER_MEM |2 ; + *bb++ =MI_LOAD_REGISTER_MEM_CMD |2 ; *bb++ = mmio_base +HSW_CS_GPR (1 ); batch->read1_ptrs[0 ] = bb; *bb++ =0 ; *bb++ =0 ; - *bb++ =MI_LOAD_REGISTER_MEM |2 ; + *bb++ =MI_LOAD_REGISTER_MEM_CMD |2 ; *bb++ = mmio_base +HSW_CS_GPR (1 ) +4 ; batch->read1_ptrs[1 ] = bb; *bb++ =0 ;@@ -2591,12 +2582,12 @@ static void build_increment_engine_bb(struct inter_engine_batches *batch, *bb++ =MI_MATH_ADD ; *bb++ =MI_MATH_STORE (MI_MATH_REG (0 ),MI_MATH_REG_ACCU ); - *bb++ =MI_STORE_REGISTER_MEM |2 ; + *bb++ =MI_STORE_REGISTER_MEM_GEN8 ; *bb++ = mmio_base +HSW_CS_GPR (0 ); batch->write_ptrs[0 ] = bb; *bb++ =0 ; *bb++ =0 ; - *bb++ =MI_STORE_REGISTER_MEM |2 ; + *bb++ =MI_STORE_REGISTER_MEM_GEN8 ; *bb++ = mmio_base +HSW_CS_GPR (0 ) +4 ; batch->write_ptrs[1 ] = bb; *bb++ =0 ;tests/i915/gem_exec_flush.c +3
-3@@ -208,7 +208,7 @@ static void run(int fd, unsigned ring, int nchild, int timeout, reloc0[i].write_domain =I915_GEM_DOMAIN_INSTRUCTION ; offset = obj[0 ].offset + reloc0[i].delta; - *b++ =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + *b++ =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { *b++ = offset; *b++ = offset >>32 ;@@ -242,7 +242,7 @@ static void run(int fd, unsigned ring, int nchild, int timeout, reloc1[i].write_domain =I915_GEM_DOMAIN_INSTRUCTION ; offset = obj[0 ].offset + reloc1[i].delta; - *b++ =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + *b++ =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { *b++ = offset; *b++ = offset >>32 ;@@ -496,7 +496,7 @@ static void batch(int fd, unsigned ring, int nchild, int timeout, reloc.delta = i *sizeof (uint32_t ); offset = reloc.presumed_offset + reloc.delta; - *b++ =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + *b++ =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { *b++ = offset; *b++ = offset >>32 ;tests/i915/gem_exec_gttfill.c +1
-1@@ -70,7 +70,7 @@ static void submit(int fd, uint64_t ahnd, unsigned int gen, reloc[1 ].read_domains =I915_GEM_DOMAIN_INSTRUCTION ; n =0 ; - batch[n] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[n] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[n] |=1 <<21 ; batch[n]++;tests/i915/gem_exec_nop.c +2
-2@@ -144,7 +144,7 @@ static void poll_ring(int fd, const intel_ctx_t *ctx, r->delta =4092 ; r->read_domains =I915_GEM_DOMAIN_RENDER ; - *b =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + *b =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { *++b = r->delta; *++b =0 ;@@ -272,7 +272,7 @@ static void poll_sequential(int fd, const intel_ctx_t *ctx, r->read_domains =I915_GEM_DOMAIN_RENDER ; r->write_domain =I915_GEM_DOMAIN_RENDER ; - *b =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + *b =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { *++b = r->delta; *++b =0 ;tests/i915/gem_exec_parallel.c +1
-1@@ -92,7 +92,7 @@ static void *thread(void *data) } i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (t->gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (t->gen <6 ?1 <<22 :0 );if (t->gen >=8 ) { batch[++i] =4 *t->id; batch[++i] =0 ;tests/i915/gem_exec_params.c +2
-2@@ -120,7 +120,7 @@ static void test_batch_first(int fd) map =gem_mmap__cpu (fd, obj[0 ].handle,0 ,4096 ,PROT_WRITE );gem_set_domain (fd, obj[0 ].handle,I915_GEM_DOMAIN_CPU ,I915_GEM_DOMAIN_CPU ); - map[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + map[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { map[++i] = obj[1 ].offset; map[++i] = obj[1 ].offset >>32 ;@@ -152,7 +152,7 @@ static void test_batch_first(int fd) map =gem_mmap__cpu (fd, obj[2 ].handle,0 ,4096 ,PROT_WRITE );gem_set_domain (fd, obj[2 ].handle,I915_GEM_DOMAIN_CPU ,I915_GEM_DOMAIN_CPU ); - map[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + map[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { map[++i] = obj[1 ].offset; map[++i] = obj[1 ].offset >>32 ;tests/i915/gem_exec_reloc.c +9
-20@@ -79,7 +79,7 @@ static void write_dword(int fd, obj[1 ].handle =gem_create (fd,4096 ); i =0 ; - buf[i++] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + buf[i++] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { buf[i++] = target_offset; buf[i++] = target_offset >>32 ;@@ -314,7 +314,7 @@ static void active(int fd, const intel_ctx_t *ctx, unsigned engine)for (pass =0 ; pass <1024 ; pass++) {uint32_t batch[16 ];int i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] =0 ; batch[++i] =0 ;@@ -526,17 +526,6 @@ static void basic_reloc(int fd, unsigned before, unsigned after, unsigned flags)gem_close (fd, obj.handle); } -static inline uint64_t sign_extend (uint64_t x,int index) -{ -int shift =63 - index; -return (int64_t )(x << shift) >> shift; -} - -static uint64_t gen8_canonical_address (uint64_t address) -{ -return sign_extend (address,47 ); -} -static void basic_range (int fd,unsigned flags) {struct drm_i915_gem_relocation_entry reloc[128 ];@@ -563,7 +552,7 @@ static void basic_range(int fd, unsigned flags)for (int i =0 ; i <= count; i++) { obj[n].handle =gem_create (fd,4096 ); obj[n].offset = (1ull << (i +12 )) -4096 ; - obj[n].offset =gen8_canonical_address (obj[n].offset); + obj[n].offset =gen8_canonical_addr (obj[n].offset); obj[n].flags =EXEC_OBJECT_PINNED |EXEC_OBJECT_SUPPORTS_48B_ADDRESS ;gem_write (fd, obj[n].handle,0 , &bbe,sizeof (bbe)); execbuf.buffers_ptr =to_user_pointer (&obj[n]);@@ -583,7 +572,7 @@ static void basic_range(int fd, unsigned flags)for (int i =1 ; i < count; i++) { obj[n].handle =gem_create (fd,4096 ); obj[n].offset =1ull << (i +12 ); - obj[n].offset =gen8_canonical_address (obj[n].offset); + obj[n].offset =gen8_canonical_addr (obj[n].offset); obj[n].flags =EXEC_OBJECT_PINNED |EXEC_OBJECT_SUPPORTS_48B_ADDRESS ;gem_write (fd, obj[n].handle,0 , &bbe,sizeof (bbe)); execbuf.buffers_ptr =to_user_pointer (&obj[n]);@@ -714,10 +703,10 @@ static int flags_to_index(const struct intel_execution_engine2 *e)static void xchg_u32 (void *array,unsigned i,unsigned j) { -uint32_t *u32 = array; -uint32_t tmp = u32[i]; - u32[i] = u32[j]; - u32[j] = tmp; +uint32_t *ui32 = array; +uint32_t tmp = ui32[i]; + ui32[i] = ui32[j]; + ui32[j] = tmp; } static void concurrent_child(int i915, const intel_ctx_t *ctx,@@ -790,7 +779,7 @@ static uint32_t create_concurrent_batch(int i915, unsigned int count)uint32_t *map, *cs;uint32_t cmd; - cmd =MI_STORE_DWORD_IMM ; + cmd =MI_STORE_DWORD_IMM_GEN4 ;if (gen <6 ) cmd |=1 <<22 ;if (gen <4 )tests/i915/gem_exec_schedule.c +17
-26@@ -55,15 +55,6 @@#define MAX_CONTEXTS 1024#define MAX_ELSP_QLEN 16 -#define MI_SEMAPHORE_WAIT (0x1c << 23) -#define MI_SEMAPHORE_POLL (1 << 15) -#define MI_SEMAPHORE_SAD_GT_SDD (0 << 12) -#define MI_SEMAPHORE_SAD_GTE_SDD (1 << 12) -#define MI_SEMAPHORE_SAD_LT_SDD (2 << 12) -#define MI_SEMAPHORE_SAD_LTE_SDD (3 << 12) -#define MI_SEMAPHORE_SAD_EQ_SDD (4 << 12) -#define MI_SEMAPHORE_SAD_NEQ_SDD (5 << 12) -IGT_TEST_DESCRIPTION ("Check that we can control the order of execution" );static unsigned int offset_in_page (void *addr)@@ -148,7 +139,7 @@ static uint32_t __store_dword(int fd, uint64_t ahnd, const intel_ctx_t *ctx, obj[2 ].relocation_count = !ahnd ?1 :0 ; i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = reloc.presumed_offset + reloc.delta; batch[++i] = (reloc.presumed_offset + reloc.delta) >>32 ;@@ -521,7 +512,7 @@ static uint32_t timeslicing_batches(int i915, uint32_t *offset)for (int step =0 ; step <8 ; step++) {if (pair) { cs[i++] = -MI_SEMAPHORE_WAIT | +MI_SEMAPHORE_WAIT_CMD |MI_SEMAPHORE_POLL |MI_SEMAPHORE_SAD_EQ_SDD | (4 -2 );@@ -530,14 +521,14 @@ static uint32_t timeslicing_batches(int i915, uint32_t *offset) cs[i++] =0 ; } - cs[i++] =MI_STORE_DWORD_IMM ; + cs[i++] =MI_STORE_DWORD_IMM_GEN4 ; cs[i++] = *offset; cs[i++] =0 ; cs[i++] = x++;if (!pair) { cs[i++] = -MI_SEMAPHORE_WAIT | +MI_SEMAPHORE_WAIT_CMD |MI_SEMAPHORE_POLL |MI_SEMAPHORE_SAD_EQ_SDD | (4 -2 );@@ -629,7 +620,7 @@ static uint32_t timesliceN_batches(int i915, uint32_t offset, int count)for (int step =0 ; step <8 ; step++) { cs[i++] = -MI_SEMAPHORE_WAIT | +MI_SEMAPHORE_WAIT_CMD |MI_SEMAPHORE_POLL |MI_SEMAPHORE_SAD_EQ_SDD | (4 -2 );@@ -637,7 +628,7 @@ static uint32_t timesliceN_batches(int i915, uint32_t offset, int count) cs[i++] = offset; cs[i++] =0 ; - cs[i++] =MI_STORE_DWORD_IMM ; + cs[i++] =MI_STORE_DWORD_IMM_GEN4 ; cs[i++] = offset; cs[i++] =0 ; cs[i++] = x +1 ;@@ -797,7 +788,7 @@ static void cancel_spinner(int i915, map =gem_mmap__device_coherent (i915, obj.handle,0 ,4096 ,PROT_WRITE ); cs = map; - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ; *cs++ = spin->obj[IGT_SPIN_BATCH ].offset +offset_in_page (spin->condition); *cs++ = spin->obj[IGT_SPIN_BATCH ].offset >>32 ;@@ -1108,13 +1099,13 @@ static void semaphore_resolve(int i915, const intel_ctx_cfg_t *cfg, cs = map =gem_mmap__cpu (i915, handle,0 ,4096 ,PROT_WRITE );/* Set semaphore initially to 1 for polling and signaling */ - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ; *cs++ =SEMAPHORE_ADDR ; *cs++ =0 ; *cs++ =1 ;/* Wait until another batch writes to our semaphore */ - *cs++ =MI_SEMAPHORE_WAIT | + *cs++ =MI_SEMAPHORE_WAIT_CMD |MI_SEMAPHORE_POLL |MI_SEMAPHORE_SAD_EQ_SDD | (4 -2 );@@ -1123,7 +1114,7 @@ static void semaphore_resolve(int i915, const intel_ctx_cfg_t *cfg, *cs++ =0 ;/* Then cancel the spinner */ - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ; *cs++ = spin->obj[IGT_SPIN_BATCH ].offset +offset_in_page (spin->condition); *cs++ =0 ;@@ -1161,7 +1152,7 @@ static void semaphore_resolve(int i915, const intel_ctx_cfg_t *cfg,/* Now the semaphore is spinning, cancel it */ cancel =gem_create (i915,4096 ); cs = map =gem_mmap__cpu (i915, cancel,0 ,4096 ,PROT_WRITE ); - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ; *cs++ =SEMAPHORE_ADDR ; *cs++ =0 ; *cs++ =0 ;@@ -1203,7 +1194,7 @@ static void semaphore_noskip(int i915, const intel_ctx_cfg_t *cfg,const intel_ctx_t *ctx0, *ctx1;uint64_t ahnd; -igt_require (gen >=6 );/* MI_STORE_DWORD_IMM convenience */ +igt_require (gen >=6 );/* MI_STORE_DWORD_IMM_GEN4 convenience */ ctx0 =intel_ctx_create (i915, cfg); ctx1 =intel_ctx_create (i915, cfg);@@ -1233,7 +1224,7 @@ static void semaphore_noskip(int i915, const intel_ctx_cfg_t *cfg, cs = map =gem_mmap__cpu (i915, handle,0 ,4096 ,PROT_WRITE );/* Cancel the following spinner */ - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ;if (gen >=8 ) { *cs++ = spin->obj[IGT_SPIN_BATCH ].offset +offset_in_page (spin->condition);@@ -1359,14 +1350,14 @@ noreorder(int i915, const intel_ctx_cfg_t *cfg, addr = spin->obj[IGT_SPIN_BATCH ].offset +offset_in_page (spin->condition);if (gen >=8 ) { - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ; *cs++ = addr; addr >>=32 ; }else if (gen >=4 ) { - *cs++ =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + *cs++ =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 ); *cs++ =0 ; }else { - *cs++ = (MI_STORE_DWORD_IMM |1 <<22 ) -1 ; + *cs++ = (MI_STORE_DWORD_IMM_GEN4 |1 <<22 ) -1 ; } *cs++ = addr; *cs++ =MI_BATCH_BUFFER_END ;@@ -2294,7 +2285,7 @@ static void reorder_wide(int fd, const intel_ctx_cfg_t *cfg, unsigned ring) addr = reloc.presumed_offset + reloc.delta; i = execbuf.batch_start_offset /sizeof (uint32_t ); - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = addr; batch[++i] = addr >>32 ;tests/i915/gem_exec_store.c +3
-3@@ -94,7 +94,7 @@ static void store_dword(int fd, const intel_ctx_t *ctx, } i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = obj[0 ].offset; batch[++i] = obj[0 ].offset >>32 ;@@ -180,7 +180,7 @@ static void store_cachelines(int fd, const intel_ctx_t *ctx, reloc[n].write_domain =I915_GEM_DOMAIN_INSTRUCTION ; dst_offset =CANONICAL (reloc[n].presumed_offset + reloc[n].delta); - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = dst_offset; batch[++i] = dst_offset >>32 ;@@ -283,7 +283,7 @@ static void store_all(int fd, const intel_ctx_t *ctx) offset =sizeof (uint32_t ); i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[address = ++i] =0 ; batch[++i] =0 ;tests/i915/gem_exec_suspend.c +1
-1@@ -159,7 +159,7 @@ static void run_test(int fd, const intel_ctx_t *ctx, } b =0 ; - buf[b] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + buf[b] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { buf[++b] = offset; buf[++b] = offset >>32 ;tests/i915/gem_exec_whisper.c +1
-1@@ -312,7 +312,7 @@ static void whisper(int fd, const intel_ctx_t *ctx, } i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = store.offset + loc; batch[++i] = (store.offset + loc) >>32 ;tests/i915/gem_pipe_control_store_loop.c +5
-6@@ -48,7 +48,6 @@ IGT_TEST_DESCRIPTION("Test (TLB-)Coherency of pipe_control QW writes.");static struct buf_ops *bops; -#define GFX_OP_PIPE_CONTROL ((0x3<<29)|(0x3<<27)|(0x2<<24)|2)#define PIPE_CONTROL_WRITE_IMMEDIATE (1<<14)#define PIPE_CONTROL_WRITE_TIMESTAMP (3<<14)#define PIPE_CONTROL_DEPTH_STALL (1<<13)@@ -96,7 +95,7 @@ store_pipe_control_loop(bool preuse_buffer, int timeout)* support code will do that for us. */ if (ibb->gen >=8 ) {intel_bb_add_intel_buf (ibb, target_buf, true); -intel_bb_out (ibb,GFX_OP_PIPE_CONTROL +1 ); +intel_bb_out (ibb,GFX_OP_PIPE_CONTROL (5 ));intel_bb_out (ibb,PIPE_CONTROL_WRITE_IMMEDIATE ); intel_bb_emit_reloc_fenced(ibb, target_buf->handle, I915_GEM_DOMAIN_INSTRUCTION,@@ -108,13 +107,13 @@ store_pipe_control_loop(bool preuse_buffer, int timeout)/* work-around hw issue, see intel_emit_post_sync_nonzero_flush * in mesa sources. */ intel_bb_add_intel_buf (ibb, target_buf, true); -intel_bb_out (ibb,GFX_OP_PIPE_CONTROL ); +intel_bb_out (ibb,GFX_OP_PIPE_CONTROL (4 ));intel_bb_out (ibb,PIPE_CONTROL_CS_STALL |PIPE_CONTROL_STALL_AT_SCOREBOARD );intel_bb_out (ibb,0 );/* address */ intel_bb_out (ibb,0 );/* write data */ -intel_bb_out (ibb,GFX_OP_PIPE_CONTROL ); +intel_bb_out (ibb,GFX_OP_PIPE_CONTROL (4 ));intel_bb_out (ibb,PIPE_CONTROL_WRITE_IMMEDIATE ); intel_bb_emit_reloc(ibb, target_buf->handle, I915_GEM_DOMAIN_INSTRUCTION,@@ -124,10 +123,10 @@ store_pipe_control_loop(bool preuse_buffer, int timeout)intel_bb_out (ibb, val);/* write data */ }else if (ibb->gen >=4 ) {intel_bb_add_intel_buf (ibb, target_buf, true); -intel_bb_out (ibb,GFX_OP_PIPE_CONTROL | +intel_bb_out (ibb,GFX_OP_PIPE_CONTROL (4 ) |PIPE_CONTROL_WC_FLUSH |PIPE_CONTROL_TC_FLUSH | -PIPE_CONTROL_WRITE_IMMEDIATE |2 ); +PIPE_CONTROL_WRITE_IMMEDIATE ); intel_bb_emit_reloc(ibb, target_buf->handle, I915_GEM_DOMAIN_INSTRUCTION, I915_GEM_DOMAIN_INSTRUCTION,tests/i915/gem_pxp.c +2
-5@@ -748,10 +748,7 @@ static void test_pxp_pwrcycle_teardown_keychange(int i915, struct powermgt_dataigt_assert_eq (matched_after_keychange,0 ); } -#define GFX_OP_PIPE_CONTROL ((3 << 29) | (3 << 27) | (2 << 24)) -#define PIPE_CONTROL_CS_STALL (1 << 20)#define PIPE_CONTROL_RENDER_TARGET_FLUSH (1 << 12) -#define PIPE_CONTROL_FLUSH_ENABLE (1 << 7)#define PIPE_CONTROL_DATA_CACHE_INVALIDATE (1 << 5)#define PIPE_CONTROL_PROTECTEDPATH_DISABLE (1 << 27)#define PIPE_CONTROL_PROTECTEDPATH_ENABLE (1 << 22)@@ -765,7 +762,7 @@ static void emit_pipectrl(struct intel_bb *ibb, struct intel_buf *fenceb, bool buint32_t pipe_ctl_flags =0 ;uint32_t ps_op_id; -intel_bb_out (ibb,GFX_OP_PIPE_CONTROL ); +intel_bb_out (ibb,GFX_OP_PIPE_CONTROL (4 ));intel_bb_out (ibb, pipe_ctl_flags);if (before)@@ -776,7 +773,7 @@ static void emit_pipectrl(struct intel_bb *ibb, struct intel_buf *fenceb, bool b pipe_ctl_flags = (PIPE_CONTROL_FLUSH_ENABLE |PIPE_CONTROL_CS_STALL |PIPE_CONTROL_POST_SYNC_OP ); -intel_bb_out (ibb,GFX_OP_PIPE_CONTROL |4 ); +intel_bb_out (ibb,GFX_OP_PIPE_CONTROL (6 ));intel_bb_out (ibb, pipe_ctl_flags);intel_bb_emit_reloc (ibb, fenceb->handle,0 ,I915_GEM_DOMAIN_COMMAND , (before?0 :8 ), fenceb->addr.offset);tests/i915/gem_ringfill.c +1
-1@@ -158,7 +158,7 @@ static void setup_execbuf(int fd, const intel_ctx_t *ctx, reloc[i].write_domain =I915_GEM_DOMAIN_INSTRUCTION ; offset = obj[0 ].offset + reloc[i].delta; - *b++ =MI_STORE_DWORD_IMM ; + *b++ =MI_STORE_DWORD_IMM_GEN4 ;if (gen >=8 ) { *b++ = offset; *b++ = offset >>32 ;tests/i915/gem_softpin.c +2
-14@@ -41,18 +41,6 @@ IGT_TEST_DESCRIPTION("Tests softpin feature with normal usage, invalid inputs"#define LIMIT_32b ((1ull << 32) - (1ull << 12)) -/* gen8_canonical_addr -* Used to convert any address into canonical form, i.e. [63:48] == [47]. -* Based on kernel's sign_extend64 implementation. -* @address - a virtual address -*/ -#define GEN8_HIGH_ADDRESS_BIT 47 -static uint64_t gen8_canonical_addr (uint64_t address) -{ -__u8 shift =63 -GEN8_HIGH_ADDRESS_BIT ; -return (__s64)(address << shift) >> shift; -} -#define INTERRUPTIBLE 0x1static void test_invalid (int fd)@@ -653,7 +641,7 @@ static void test_noreloc(int fd, enum sleep sleep, unsigned flags)gem_set_domain (fd, object[i].handle,I915_GEM_DOMAIN_CPU ,I915_GEM_DOMAIN_CPU );for (i =0 ; i <ARRAY_SIZE (object) -1 ; i++) { - *b++ =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + *b++ =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { *b++ = object[i].offset; *b++ = object[i].offset >>32 ;@@ -922,7 +910,7 @@ static void submit(int fd, unsigned int gen, BATCH_ALIGNMENT); address = obj.offset +BATCH_SIZE - eb->batch_start_offset -8 ; n =0 ; - batch[n] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[n] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[n] |=1 <<21 ; batch[n]++;tests/i915/gem_sync.c +8
-8@@ -588,7 +588,7 @@ store_ring(int fd, const intel_ctx_t *ctx, unsigned ring, reloc[i].write_domain =I915_GEM_DOMAIN_INSTRUCTION ; offset = object[0 ].offset + reloc[i].delta; - *b++ =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + *b++ =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { *b++ = offset; *b++ = offset >>32 ;@@ -698,7 +698,7 @@ switch_ring(int fd, const intel_ctx_t *ctx, unsigned ring, c->reloc[r].write_domain =I915_GEM_DOMAIN_INSTRUCTION ; offset = c->object[0 ].offset + c->reloc[r].delta; - *b++ =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + *b++ =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { *b++ = offset; *b++ = offset >>32 ;@@ -772,10 +772,10 @@ switch_ring(int fd, const intel_ctx_t *ctx, unsigned ring,static void xchg (void *array,unsigned i,unsigned j) { -uint32_t *u32 = array; -uint32_t tmp = u32[i]; - u32[i] = u32[j]; - u32[j] = tmp; +uint32_t *ui32 = array; +uint32_t tmp = ui32[i]; + ui32[i] = ui32[j]; + ui32[j] = tmp; }struct waiter {@@ -859,7 +859,7 @@ __store_many(int fd, const intel_ctx_t *ctx, unsigned ring, reloc[i].write_domain =I915_GEM_DOMAIN_INSTRUCTION ; offset = object[0 ].offset + reloc[i].delta; - *b++ =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + *b++ =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { *b++ = offset; *b++ = offset >>32 ;@@ -1080,7 +1080,7 @@ store_all(int fd, const intel_ctx_t *ctx, int num_children, int timeout) reloc[i].write_domain =I915_GEM_DOMAIN_INSTRUCTION ; offset = object[0 ].offset + reloc[i].delta; - *b++ =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + *b++ =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { *b++ = offset; *b++ = offset >>32 ;tests/i915/gem_userptr_blits.c +3
-3@@ -338,7 +338,7 @@ static void store_dword(int fd, uint32_t target, obj[1 ].relocation_count =1 ; i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = offset; batch[++i] =0 ;@@ -1318,7 +1318,7 @@ static void store_dword_rand(int i915, const intel_ctx_t *ctx, offset = reloc[n].presumed_offset + reloc[n].delta; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = offset; batch[++i] = offset >>32 ;@@ -1379,7 +1379,7 @@ static void test_readonly(int i915)/* * We have only a 31bit delta which we use for generating -* the target address for MI_STORE_DWORD_IMM, so our maximum +* the target address for MI_STORE_DWORD_IMM_GEN4, so our maximum * usable object size is only 2GiB. For now. */ igt_nsec_elapsed (memset (&tv,0 ,sizeof (tv)));tests/i915/gem_vm_create.c +1
-1@@ -268,7 +268,7 @@ write_to_address(int fd, uint32_t ctx, uint64_t addr, uint32_t value)int i; i =0 ; - cs[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + cs[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { cs[++i] = addr; cs[++i] = addr >>32 ;tests/i915/gem_watchdog.c +3
-3@@ -332,7 +332,7 @@ static void delay(int i915, cs = map =gem_mmap__device_coherent (i915, handle,0 ,4096 ,PROT_WRITE ); - *cs++ =MI_LOAD_REGISTER_IMM ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ); *cs++ =CS_GPR (START_TS ) +4 ; *cs++ =0 ; *cs++ =MI_LOAD_REGISTER_REG ;@@ -345,7 +345,7 @@ static void delay(int i915, *cs++ =0x5 <<23 ;/* MI_ARB_CHECK */ - *cs++ =MI_LOAD_REGISTER_IMM ; + *cs++ =MI_LOAD_REGISTER_IMM (1 ); *cs++ =CS_GPR (NOW_TS ) +4 ; *cs++ =0 ; *cs++ =MI_LOAD_REGISTER_REG ;@@ -367,7 +367,7 @@ static void delay(int i915,/* Delay between SRM and COND_BBE to post the writes */ for (int n =0 ; n <8 ; n++) { - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ;if (use_64b) { *cs++ = addr +4064 ; *cs++ = addr >>32 ;tests/i915/gem_workarounds.c +1
-1@@ -121,7 +121,7 @@ static int workaround_fail_count(int i915, const intel_ctx_t *ctx) out = base =gem_mmap__cpu (i915, obj[1 ].handle,0 , batch_sz,PROT_WRITE );for (int i =0 ; i < num_wa_regs; i++) { - *out++ =MI_STORE_REGISTER_MEM | (1 + (gen >=8 )); + *out++ =MI_STORE_REGISTER_MEM_CMD | (1 + (gen >=8 )); *out++ = wa_regs[i].addr; reloc[i].target_handle = obj[0 ].handle; reloc[i].offset = (out - base) *sizeof (*out);tests/i915/gen7_exec_parse.c +15
-19@@ -48,10 +48,6 @@#define INSTR_CLIENT_SHIFT 29#define INSTR_INVALID_CLIENT 0x7 -#define MI_ARB_ON_OFF (0x8 << 23) -#define MI_DISPLAY_FLIP ((0x14 << 23) | 1) - -#define GFX_OP_PIPE_CONTROL ((0x3<<29)|(0x3<<27)|(0x2<<24)|2)#define PIPE_CONTROL_QW_WRITE (1<<14)#define PIPE_CONTROL_LRI_POST_OP (1<<23)@@ -298,7 +294,7 @@ static void test_lri(int fd, uint32_t handle, struct test_lri *test) { uint32_t lri[] = { - MI_LOAD_REGISTER_IMM, + MI_LOAD_REGISTER_IMM(1), test->reg, test->test_val, MI_BATCH_BUFFER_END,@@ -372,13 +368,13 @@ static void test_allocations(int fd)static void hsw_load_register_reg (void ) {uint32_t init_gpr0[16 ] = { -MI_LOAD_REGISTER_IMM , +MI_LOAD_REGISTER_IMM (1 ),HSW_CS_GPR0 ,0xabcdabc0 ,/* leave [1:0] zero */ MI_BATCH_BUFFER_END , };uint32_t store_gpr0[16 ] = { -MI_STORE_REGISTER_MEM | (3 -2 ), +MI_STORE_REGISTER_MEM_CMD | (3 -2 ),HSW_CS_GPR0 ,0 ,/* reloc*/ MI_BATCH_BUFFER_END ,@@ -475,7 +471,7 @@ igt_main igt_subtest("basic-allowed") {uint32_t pc[] = { -GFX_OP_PIPE_CONTROL , +GFX_OP_PIPE_CONTROL (4 ),PIPE_CONTROL_QW_WRITE ,0 ,/* To be patched */ 0x12000000 ,@@ -490,7 +486,7 @@ igt_main igt_subtest("basic-offset") {uint32_t pc[] = { -GFX_OP_PIPE_CONTROL , +GFX_OP_PIPE_CONTROL (4 ),PIPE_CONTROL_QW_WRITE ,0 ,/* To be patched */ 0x12000000 ,@@ -597,7 +593,7 @@ igt_main igt_subtest("bitmasks") {uint32_t pc[] = { -GFX_OP_PIPE_CONTROL , +GFX_OP_PIPE_CONTROL (4 ), (PIPE_CONTROL_QW_WRITE |PIPE_CONTROL_LRI_POST_OP ),0 ,/* To be patched */ @@ -631,13 +627,13 @@ igt_main igt_subtest("cmd-crossing-page") {uint32_t lri_ok[] = { -MI_LOAD_REGISTER_IMM , +MI_LOAD_REGISTER_IMM (1 ),SO_WRITE_OFFSET_0 ,/* allowed register address */ 0xdcbaabc0 ,/* [1:0] MBZ */ MI_BATCH_BUFFER_END , };uint32_t store_reg[] = { -MI_STORE_REGISTER_MEM | (3 -2 ), +MI_STORE_REGISTER_MEM_CMD | (3 -2 ),SO_WRITE_OFFSET_0 ,0 ,/* reloc */ MI_BATCH_BUFFER_END ,@@ -655,29 +651,29 @@ igt_main igt_subtest("oacontrol-tracking") {uint32_t lri_ok[] = { -MI_LOAD_REGISTER_IMM , +MI_LOAD_REGISTER_IMM (1 ),OACONTROL ,0x31337000 , -MI_LOAD_REGISTER_IMM , +MI_LOAD_REGISTER_IMM (1 ),OACONTROL ,0x0 ,MI_BATCH_BUFFER_END ,0 };uint32_t lri_bad[] = { -MI_LOAD_REGISTER_IMM , +MI_LOAD_REGISTER_IMM (1 ),OACONTROL ,0x31337000 ,MI_BATCH_BUFFER_END , };uint32_t lri_extra_bad[] = { -MI_LOAD_REGISTER_IMM , +MI_LOAD_REGISTER_IMM (1 ),OACONTROL ,0x31337000 , -MI_LOAD_REGISTER_IMM , +MI_LOAD_REGISTER_IMM (1 ),OACONTROL ,0x0 , -MI_LOAD_REGISTER_IMM , +MI_LOAD_REGISTER_IMM (1 ),OACONTROL ,0x31337000 ,MI_BATCH_BUFFER_END ,@@ -701,7 +697,7 @@ igt_main igt_subtest("chained-batch") {uint32_t pc[] = { -GFX_OP_PIPE_CONTROL , +GFX_OP_PIPE_CONTROL (4 ),PIPE_CONTROL_QW_WRITE ,0 ,/* To be patched */ 0x12000000 ,tests/i915/gen9_exec_parse.c +14
-33@@ -38,14 +38,6 @@#define INSTR_CLIENT_SHIFT 29#define INSTR_INVALID_CLIENT 0x7 -#define MI_ARB_ON_OFF (0x8 << 23) -#define MI_USER_INTERRUPT (0x02 << 23) -#define MI_FLUSH_DW (0x26 << 23) -#define MI_REPORT_HEAD (0x07 << 23) -#define MI_SUSPEND_FLUSH (0x0b << 23) -#define MI_LOAD_SCAN_LINES_EXCL (0x13 << 23) -#define MI_UPDATE_GTT (0x23 << 23) -#define BCS_SWCTRL 0x22200#define BCS_GPR_BASE 0x22600#define BCS_GPR (n) (0x22600 + (n) * 8)@@ -324,7 +316,7 @@ static const struct cmd allowed_cmds[] = {CMD_N (MI_NOOP ),CMD_N (MI_USER_INTERRUPT ),CMD_N (MI_WAIT_FOR_EVENT ), -CMD (MI_FLUSH_DW ,5 ), +CMD (MI_FLUSH_DW_CMD ,5 ),CMD_N (MI_ARB_CHECK ),CMD_N (MI_REPORT_HEAD ), CMD_N(MI_FLUSH),@@ -453,11 +445,11 @@ static void test_bb_start(const int i915, const uint32_t handle, int test)MI_NOOP ,MI_NOOP ,MI_NOOP , -MI_STORE_DWORD_IMM , +MI_STORE_DWORD_IMM_GEN4 ,0 ,0 ,1 , -MI_STORE_DWORD_IMM , +MI_STORE_DWORD_IMM_GEN4 ,4 ,0 , 2,@@ -680,13 +672,13 @@ static void test_bb_chained(const int i915, const uint32_t handle)static void test_cmd_crossing_page (const int i915,const uint32_t handle) {const uint32_t lri_ok[] = { -MI_LOAD_REGISTER_IMM , +MI_LOAD_REGISTER_IMM (1 ),BCS_GPR (0 ),0xbaadf00d ,MI_BATCH_BUFFER_END , };const uint32_t store_reg[] = { -MI_STORE_REGISTER_MEM |2 , +MI_STORE_REGISTER_MEM_CMD |2 ,BCS_GPR (0 ),0 ,/* reloc */ 0 ,/* reloc */ @@ -711,21 +703,21 @@ static void test_invalid_length(const int i915, const uint32_t handle)const uint32_t noops[8192 ] = {0 , };const uint32_t lri_ok[] = { -MI_LOAD_REGISTER_IMM , +MI_LOAD_REGISTER_IMM (1 ),BCS_GPR (0 ), ok_val,MI_BATCH_BUFFER_END , };const uint32_t lri_bad[] = { -MI_LOAD_REGISTER_IMM , +MI_LOAD_REGISTER_IMM (1 ),BCS_GPR (0 ), bad_val,MI_BATCH_BUFFER_END , };const uint32_t store_reg[] = { -MI_STORE_REGISTER_MEM |2 , +MI_STORE_REGISTER_MEM_CMD |2 ,BCS_GPR (0 ),0 ,/* reloc */ 0 ,/* reloc */ @@ -824,21 +816,21 @@ static void test_register(const int i915, const uint32_t handle, const struct reg *r) {const uint32_t lri_zero[] = { -MI_LOAD_REGISTER_IMM , +MI_LOAD_REGISTER_IMM (1 ), r->addr, r->masked_write ?0xffff0000 :0 ,MI_BATCH_BUFFER_END , };const uint32_t lri_mask[] = { -MI_LOAD_REGISTER_IMM , +MI_LOAD_REGISTER_IMM (1 ), r->addr, r->masked_write ? (r->mask <<16 ) | r->mask : r->mask,MI_BATCH_BUFFER_END , };const uint32_t store_reg[] = { -MI_STORE_REGISTER_MEM |2 , +MI_STORE_REGISTER_MEM_CMD |2 , r->addr,0 ,/* reloc */ 0 ,/* reloc */ @@ -877,7 +869,7 @@ static long int read_reg(const int i915, const uint32_t handle, const uint32_t addr) {const uint32_t store_reg[] = { -MI_STORE_REGISTER_MEM |2 , +MI_STORE_REGISTER_MEM_CMD |2 , addr,0 ,/* reloc */ 0 ,/* reloc */ @@ -911,7 +903,7 @@ static int write_reg(const int i915, const uint32_t handle, const uint32_t addr, const uint32_t val) { const uint32_t lri[] = { - MI_LOAD_REGISTER_IMM, + MI_LOAD_REGISTER_IMM(1), addr, val, MI_BATCH_BUFFER_END,@@ -1088,17 +1080,6 @@ static inline uint32_t fill_and_copy_shadow(uint32_t *batch, uint32_t len,return i *sizeof (uint32_t ); } -static inline uint64_t sign_extend (uint64_t x,int index) -{ -int shift =63 - index; -return (int64_t )(x << shift) >> shift; -} - -static uint64_t gen8_canonical_address (uint64_t address) -{ -return sign_extend (address,47 ); -} -static void test_shadow_peek (int fd) {uint64_t size =PAGE_SIZE ;@@ -1130,7 +1111,7 @@ static void test_shadow_peek(int fd) exec[1 ].handle =gem_create (fd, size);/* batch */ exec[1 ].flags =EXEC_OBJECT_PINNED |EXEC_OBJECT_SUPPORTS_48B_ADDRESS ; - exec[1 ].offset =gen8_canonical_address (exec[0 ].pad_to_size); + exec[1 ].offset =gen8_canonical_addr (exec[0 ].pad_to_size); vaddr =gem_mmap__wc (fd, exec[1 ].handle,0 , size,PROT_WRITE );tests/i915/i915_module_load.c +1
-1@@ -80,7 +80,7 @@ static void store_all(int i915)int i; i =0 ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] =0 ; batch[++i] =0 ;tests/i915/perf.c +2
-15@@ -58,30 +58,17 @@ IGT_TEST_DESCRIPTION("Test the i915 perf metrics streaming interface");#define OAREPORT_REASON_GO (1<<4)#define OAREPORT_REASON_CLK_RATIO (1<<5) -#define GFX_OP_PIPE_CONTROL ((3 << 29) | (3 << 27) | (2 << 24)) -#define PIPE_CONTROL_CS_STALL (1 << 20)#define PIPE_CONTROL_GLOBAL_SNAPSHOT_COUNT_RESET (1 << 19) -#define PIPE_CONTROL_TLB_INVALIDATE (1 << 18)#define PIPE_CONTROL_SYNC_GFDT (1 << 17) -#define PIPE_CONTROL_MEDIA_STATE_CLEAR (1 << 16)#define PIPE_CONTROL_NO_WRITE (0 << 14)#define PIPE_CONTROL_WRITE_IMMEDIATE (1 << 14)#define PIPE_CONTROL_WRITE_DEPTH_COUNT (2 << 14) -#define PIPE_CONTROL_WRITE_TIMESTAMP (3 << 14) -#define PIPE_CONTROL_DEPTH_STALL (1 << 13)#define PIPE_CONTROL_RENDER_TARGET_FLUSH (1 << 12)#define PIPE_CONTROL_INSTRUCTION_INVALIDATE (1 << 11) -#define PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE (1 << 10)/* GM45+ only */ #define PIPE_CONTROL_ISP_DIS (1 << 9)#define PIPE_CONTROL_INTERRUPT_ENABLE (1 << 8) -#define PIPE_CONTROL_FLUSH_ENABLE (1 << 7)/* Gen7+ only */ /* GT */ #define PIPE_CONTROL_DATA_CACHE_INVALIDATE (1 << 5) -#define PIPE_CONTROL_VF_CACHE_INVALIDATE (1 << 4) -#define PIPE_CONTROL_CONST_CACHE_INVALIDATE (1 << 3) -#define PIPE_CONTROL_STATE_CACHE_INVALIDATE (1 << 2) -#define PIPE_CONTROL_STALL_AT_SCOREBOARD (1 << 1) -#define PIPE_CONTROL_DEPTH_CACHE_FLUSH (1 << 0)#define PIPE_CONTROL_PPGTT_WRITE (0 << 2)#define PIPE_CONTROL_GLOBAL_GTT_WRITE (1 << 2)@@ -3242,9 +3229,9 @@ emit_stall_timestamp_and_rpc(struct intel_bb *ibb,intel_bb_add_intel_buf (ibb, dst, true);if (intel_gen (devid) >=8 ) -intel_bb_out (ibb,GFX_OP_PIPE_CONTROL | (6 -2 )); +intel_bb_out (ibb,GFX_OP_PIPE_CONTROL (6 ));else -intel_bb_out (ibb,GFX_OP_PIPE_CONTROL | (5 -2 )); +intel_bb_out (ibb,GFX_OP_PIPE_CONTROL (5 ));intel_bb_out (ibb, pipe_ctl_flags); intel_bb_emit_reloc(ibb, dst->handle,tests/i915/perf_pmu.c +6
-12@@ -681,12 +681,6 @@ no_sema(int gem_fd, const intel_ctx_t *ctx,assert_within_epsilon (val[0 ][1 ],0.0f , tolerance); } -#define MI_INSTR (opcode, flags) (((opcode) << 23) | (flags)) -#define MI_SEMAPHORE_WAIT MI_INSTR(0x1c, 2)/* GEN8+ */ -#define MI_SEMAPHORE_POLL (1<<15) -#define MI_SEMAPHORE_SAD_GTE_SDD (1<<12) -#define MI_SEMAPHORE_SAD_EQ_SDD (4 << 12) - static void sema_wait(int gem_fd, const intel_ctx_t *ctx, const struct intel_execution_engine2 *e,@@ -719,7 +713,7 @@ sema_wait(int gem_fd, const intel_ctx_t *ctx, obj_ptr =gem_mmap__device_coherent (gem_fd, obj_handle,0 ,4096 ,PROT_WRITE ); - batch[0 ] =MI_STORE_DWORD_IMM ; + batch[0 ] =MI_STORE_DWORD_IMM_GEN4 ; batch[1 ] = obj_offset +sizeof (*obj_ptr); batch[2 ] = (obj_offset +sizeof (*obj_ptr)) >>32 ; batch[3 ] =1 ;@@ -807,7 +801,7 @@ create_sema(int gem_fd, uint64_t ahnd, {uint32_t cs[] = {/* Reset our semaphore wait */ -MI_STORE_DWORD_IMM , +MI_STORE_DWORD_IMM_GEN4 ,0 ,0 ,1 ,@@ -1108,17 +1102,17 @@ event_wait(int gem_fd, const intel_ctx_t *ctx, obj.handle =gem_create (gem_fd,4096 ); b = batch; - *b++ =MI_LOAD_REGISTER_IMM ; + *b++ =MI_LOAD_REGISTER_IMM (1 ); *b++ =FORCEWAKE_MT ; *b++ =2 <<16 |2 ; - *b++ =MI_LOAD_REGISTER_IMM ; + *b++ =MI_LOAD_REGISTER_IMM (1 ); *b++ =DERRMR ; *b++ = ~0u ; *b++ =MI_WAIT_FOR_EVENT ; - *b++ =MI_LOAD_REGISTER_IMM ; + *b++ =MI_LOAD_REGISTER_IMM (1 ); *b++ =DERRMR ; *b++ = ~0u ; - *b++ =MI_LOAD_REGISTER_IMM ; + *b++ =MI_LOAD_REGISTER_IMM (1 ); *b++ =FORCEWAKE_MT ; *b++ =2 <<16 ; *b++ =MI_BATCH_BUFFER_END ;tests/i915/sysfs_timeslice_duration.c +4
-13@@ -46,15 +46,6 @@#define ATTR "timeslice_duration_ms"#define RESET_TIMEOUT 50/* milliseconds, at least one jiffie for kworker */ -#define MI_SEMAPHORE_WAIT (0x1c << 23) -#define MI_SEMAPHORE_POLL (1 << 15) -#define MI_SEMAPHORE_SAD_GT_SDD (0 << 12) -#define MI_SEMAPHORE_SAD_GTE_SDD (1 << 12) -#define MI_SEMAPHORE_SAD_LT_SDD (2 << 12) -#define MI_SEMAPHORE_SAD_LTE_SDD (3 << 12) -#define MI_SEMAPHORE_SAD_EQ_SDD (4 << 12) -#define MI_SEMAPHORE_SAD_NEQ_SDD (5 << 12) -static bool __enable_hangcheck (int dir,bool state) {return igt_sysfs_set (dir,"enable_hangcheck" , state ?"1" :"0" );@@ -214,7 +205,7 @@ static uint64_t __test_duration(int i915, int engine, unsigned int timeout) cs = map;for (i =0 ; i <10 ; i++) { - *cs++ =MI_SEMAPHORE_WAIT | + *cs++ =MI_SEMAPHORE_WAIT_CMD |MI_SEMAPHORE_POLL |MI_SEMAPHORE_SAD_NEQ_SDD | (4 -2 + (gen >=12 ));@@ -229,7 +220,7 @@ static uint64_t __test_duration(int i915, int engine, unsigned int timeout) *cs++ = obj[1 ].offset +sizeof (uint32_t ) * i; *cs++ =0 ; - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ; *cs++ = obj[0 ].offset +4096 -sizeof (uint32_t ) * i -sizeof (uint32_t ); *cs++ =0 ;@@ -240,12 +231,12 @@ static uint64_t __test_duration(int i915, int engine, unsigned int timeout) cs +=16 - ((cs - map) &15 ); start = (cs - map) *sizeof (*cs);for (i =0 ; i <10 ; i++) { - *cs++ =MI_STORE_DWORD_IMM ; + *cs++ =MI_STORE_DWORD_IMM_GEN4 ; *cs++ = obj[0 ].offset +sizeof (uint32_t ) * i; *cs++ =0 ; *cs++ =1 ; - *cs++ =MI_SEMAPHORE_WAIT | + *cs++ =MI_SEMAPHORE_WAIT_CMD |MI_SEMAPHORE_POLL |MI_SEMAPHORE_SAD_NEQ_SDD | (4 -2 + (gen >=12 ));tests/prime_vgem.c +1
-1@@ -624,7 +624,7 @@ static void work(int i915, uint64_t ahnd, uint64_t scratch_offset, int dmabuf, store[count].delta =sizeof (uint32_t ) * count; store[count].read_domains =I915_GEM_DOMAIN_INSTRUCTION ; store[count].write_domain =I915_GEM_DOMAIN_INSTRUCTION ; - batch[i] =MI_STORE_DWORD_IMM | (gen <6 ?1 <<22 :0 ); + batch[i] =MI_STORE_DWORD_IMM_GEN4 | (gen <6 ?1 <<22 :0 );if (gen >=8 ) { batch[++i] = scratch_offset + store[count].delta; batch[++i] = (scratch_offset + store[count].delta) >>32 ;tools/intel_audio_dump.c +1
-0@@ -48,6 +48,7 @@ static int disp_reg_base = 0; /* base address of display registers */#define BITSTO (n) (n >= sizeof(long) * 8 ? ~0 : (1UL << (n)) - 1)#define BITMASK (high, low) (BITSTO(high+1) & ~BITSTO(low))#define REG_BITS (reg, high, low) (((reg) & (BITMASK(high, low))) >> (low)) +#undef REG_BIT#define REG_BIT (reg, n) REG_BITS(reg, n, n)#define min_t (type, x, y) ({ \tools/intel_reg.c +1
-1@@ -322,7 +322,7 @@ static int register_srm(struct config *config, struct reg *reg, batch[i++] =MI_NOOP ; batch[i++] =MI_NOOP ; - batch[i++] =MI_LOAD_REGISTER_IMM ; + batch[i++] =MI_LOAD_REGISTER_IMM (1 ); batch[i++] = reg->addr; batch[i++] = *val_in; batch[i++] =MI_NOOP ;Signature · 1 line
2.34.1
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for Start using intel_gpu_commands.h header (rev2)
In reply to Zbigniew Kempczyński== Series Details ==
== Series Details ==
Series: Start using intel_gpu_commands.h header (rev2)
URL : https://patchwork.freedesktop.org/series/114619/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_12821 -> IGTPW_8565
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/index.html
Participating hosts (36 -> 35)
------------------------------
Missing (1): fi-snb-2520m
Known issues
------------
Here are the changes found in IGTPW_8565 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_selftest@live@execlists:
- fi-bsw-n3050: [PASS][1] -> [ABORT][2] ([i915#7911])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/fi-bsw-n3050/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/fi-bsw-n3050/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@guc:
- bat-rpls-2: [PASS][3] -> [DMESG-WARN][4] ([i915#7852])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/bat-rpls-2/igt@i915_selftest@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/bat-rpls-2/igt@i915_selftest@[email protected]
* igt@i915_suspend@basic-s2idle-without-i915:
- fi-apl-guc: [PASS][5] -> [DMESG-WARN][6] ([i915#180])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/fi-apl-guc/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/fi-apl-guc/igt@[email protected]
* igt@i915_suspend@basic-s3-without-i915:
- bat-rpls-1: [PASS][7] -> [ABORT][8] ([i915#6687])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/bat-rpls-1/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/bat-rpls-1/igt@[email protected]
#### Warnings ####
* igt@i915_selftest@live@slpc:
- bat-rpls-2: [DMESG-FAIL][9] ([i915#6367] / [i915#7913] / [i915#7996]) -> [DMESG-FAIL][10] ([i915#6997] / [i915#7913])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/bat-rpls-2/igt@i915_selftest@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/bat-rpls-2/igt@i915_selftest@[email protected]
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#6367]: https://gitlab.freedesktop.org/drm/intel/issues/6367
[i915#6687]: https://gitlab.freedesktop.org/drm/intel/issues/6687
[i915#6997]: https://gitlab.freedesktop.org/drm/intel/issues/6997
[i915#7852]: https://gitlab.freedesktop.org/drm/intel/issues/7852
[i915#7911]: https://gitlab.freedesktop.org/drm/intel/issues/7911
[i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913
[i915#7996]: https://gitlab.freedesktop.org/drm/intel/issues/7996
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7182 -> IGTPW_8565
CI-20190529: 20190529
CI_DRM_12821: 24f94240c4bca70cadfd00528ffd56c3049e5f58 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_8565: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/index.html
IGT_7182: b25ca07c7a75bfda3358c3450810bc023dd7cee9 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/index.html
Patchwork
CI[igt-dev] ✓ Fi.CI.IGT: success for Start using intel_gpu_commands.h header (rev2)
In reply to Zbigniew Kempczyński== Series Details ==
== Series Details ==
Series: Start using intel_gpu_commands.h header (rev2)
URL : https://patchwork.freedesktop.org/series/114619/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_12821_full -> IGTPW_8565_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/index.html
Participating hosts (9 -> 8)
------------------------------
Missing (1): shard-tglu0
Known issues
------------
Here are the changes found in IGTPW_8565_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@api_intel_bb@crc32:
- shard-tglu-10: NOTRUN -> [SKIP][1] ([i915#6230])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@feature_discovery@display-3x:
- shard-tglu-10: NOTRUN -> [SKIP][2] ([i915#1839])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@gem_ccs@block-copy-compressed:
- shard-tglu-10: NOTRUN -> [SKIP][3] ([i915#3555] / [i915#5325])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@gem_close_race@multigpu-basic-process:
- shard-tglu-10: NOTRUN -> [SKIP][4] ([i915#7697]) +1 similar issue
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@gem_ctx_sseu@invalid-sseu:
- shard-tglu-10: NOTRUN -> [SKIP][5] ([i915#280])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@gem_eio@hibernate:
- shard-tglu-10: NOTRUN -> [ABORT][6] ([i915#7975])
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@gem_eio@in-flight-contexts-10ms:
- shard-glk: [PASS][7] -> [TIMEOUT][8] ([i915#3063])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-glk3/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-glk5/igt@[email protected]
* igt@gem_exec_capture@capture-invisible@smem0:
- shard-tglu-10: NOTRUN -> [SKIP][9] ([i915#6334])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@gem_exec_capture@[email protected]
* igt@gem_exec_fair@basic-none-solo@rcs0:
- shard-apl: [PASS][10] -> [FAIL][11] ([i915#2842]) +1 similar issue
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-apl2/igt@gem_exec_fair@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-apl7/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-tglu-10: NOTRUN -> [FAIL][12] ([i915#2842])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@gem_exec_fair@[email protected]
* igt@gem_exec_params@secure-non-master:
- shard-tglu-10: NOTRUN -> [SKIP][13] ([fdo#112283])
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@gem_lmem_evict@dontneed-evict-race:
- shard-tglu-10: NOTRUN -> [SKIP][14] ([i915#7582])
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@gem_lmem_swapping@heavy-verify-multi:
- shard-apl: NOTRUN -> [SKIP][15] ([fdo#109271] / [i915#4613])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-apl4/igt@[email protected]
* igt@gem_lmem_swapping@random:
- shard-tglu-10: NOTRUN -> [SKIP][16] ([i915#4613]) +5 similar issues
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@gem_pxp@create-regular-buffer:
- shard-tglu-10: NOTRUN -> [SKIP][17] ([i915#4270]) +3 similar issues
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@gem_softpin@evict-snoop-interruptible:
- shard-tglu-10: NOTRUN -> [SKIP][18] ([fdo#109312])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@gem_userptr_blits@access-control:
- shard-tglu-10: NOTRUN -> [SKIP][19] ([i915#3297]) +2 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@gen3_render_tiledy_blits:
- shard-tglu-10: NOTRUN -> [SKIP][20] ([fdo#109289]) +3 similar issues
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@gen3_render_tiledy_blits.html
* igt@gen9_exec_parse@basic-rejected:
- shard-tglu-10: NOTRUN -> [SKIP][21] ([i915#2527] / [i915#2856]) +5 similar issues
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@i915_pm_backlight@fade-with-dpms:
- shard-tglu-10: NOTRUN -> [SKIP][22] ([i915#7561])
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@i915_pm_dc@dc5-psr:
- shard-tglu-10: NOTRUN -> [SKIP][23] ([i915#658])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-hdmi-a:
- shard-tglu-10: NOTRUN -> [FAIL][24] ([i915#3825])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@i915_pm_lpsp@[email protected]
* igt@i915_query@hwconfig_table:
- shard-tglu-10: NOTRUN -> [SKIP][25] ([i915#6245])
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@i915_query@hwconfig_table.html
* igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-180-hflip-async-flip:
- shard-tglu-10: NOTRUN -> [SKIP][26] ([i915#5286]) +7 similar issues
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@kms_big_fb@4-tiled-max-hw-stride-64bpp-rotate-180-hflip-async-flip.html
* igt@kms_big_fb@linear-16bpp-rotate-90:
- shard-tglu-10: NOTRUN -> [SKIP][27] ([fdo#111614]) +2 similar issues
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip:
- shard-tglu-10: NOTRUN -> [SKIP][28] ([fdo#111615]) +6 similar issues
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-0-hflip-async-flip.html
* igt@kms_big_joiner@basic:
- shard-tglu-10: NOTRUN -> [SKIP][29] ([i915#2705])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs:
- shard-tglu-10: NOTRUN -> [SKIP][30] ([i915#3689] / [i915#3886]) +9 similar issues
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@kms_ccs@pipe-a-crc-sprite-planes-basic-y_tiled_gen12_mc_ccs.html
* igt@kms_ccs@pipe-c-bad-rotation-90-4_tiled_dg2_mc_ccs:
- shard-tglu-10: NOTRUN -> [SKIP][31] ([i915#6095]) +4 similar issues
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@kms_ccs@pipe-c-bad-rotation-90-4_tiled_dg2_mc_ccs.html
* igt@kms_ccs@pipe-c-ccs-on-another-bo-yf_tiled_ccs:
- shard-tglu-10: NOTRUN -> [SKIP][32] ([fdo#111615] / [i915#3689]) +8 similar issues
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@kms_ccs@pipe-c-ccs-on-another-bo-yf_tiled_ccs.html
* igt@kms_ccs@pipe-c-crc-primary-rotation-180-4_tiled_dg2_rc_ccs:
- shard-tglu-10: NOTRUN -> [SKIP][33] ([i915#3689] / [i915#6095]) +6 similar issues
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@kms_ccs@pipe-c-crc-primary-rotation-180-4_tiled_dg2_rc_ccs.html
* igt@kms_ccs@pipe-d-crc-primary-rotation-180-4_tiled_dg2_mc_ccs:
- shard-tglu-10: NOTRUN -> [SKIP][34] ([i915#3689]) +13 similar issues
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@kms_ccs@pipe-d-crc-primary-rotation-180-4_tiled_dg2_mc_ccs.html
* igt@kms_cdclk@plane-scaling:
- shard-tglu-10: NOTRUN -> [SKIP][35] ([i915#3742])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@kms_chamelium_color@ctm-blue-to-red:
- shard-tglu-10: NOTRUN -> [SKIP][36] ([fdo#111827]) +4 similar issues
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@kms_chamelium_hpd@vga-hpd:
- shard-tglu-10: NOTRUN -> [SKIP][37] ([i915#7828]) +9 similar issues
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@kms_content_protection@atomic:
- shard-tglu-10: NOTRUN -> [SKIP][38] ([i915#6944] / [i915#7116] / [i915#7118]) +1 similar issue
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@kms_cursor_crc@cursor-offscreen-512x170:
- shard-tglu-10: NOTRUN -> [SKIP][39] ([fdo#109279] / [i915#3359])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@kms_cursor_crc@cursor-sliding-512x512:
- shard-tglu-10: NOTRUN -> [SKIP][40] ([i915#3359])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@kms_cursor_legacy@cursorb-vs-flipa-atomic-transitions-varying-size:
- shard-tglu-10: NOTRUN -> [SKIP][41] ([fdo#109274]) +5 similar issues
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@kms_cursor_legacy@cursorb-vs-flipa-atomic-transitions-varying-size.html
* igt@kms_dither@fb-8bpc-vs-panel-6bpc@pipe-a-hdmi-a-1:
- shard-tglu-10: NOTRUN -> [SKIP][42] ([i915#3804])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@kms_dither@[email protected]
* igt@kms_dp_tiled_display@basic-test-pattern:
- shard-tglu-10: NOTRUN -> [SKIP][43] ([i915#426])
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@kms_dsc@dsc-with-bpc:
- shard-tglu-10: NOTRUN -> [SKIP][44] ([i915#3840])
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@kms_fbcon_fbt@psr-suspend:
- shard-tglu-10: NOTRUN -> [SKIP][45] ([i915#3469])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@kms_flip@2x-flip-vs-expired-vblank@bc-hdmi-a1-hdmi-a2:
- shard-glk: [PASS][46] -> [FAIL][47] ([i915#79])
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-glk5/igt@kms_flip@[email protected]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-glk1/igt@kms_flip@[email protected]
* igt@kms_flip@2x-flip-vs-modeset:
- shard-tglu-10: NOTRUN -> [SKIP][48] ([fdo#109274] / [i915#3637]) +8 similar issues
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-16bpp-4tile-upscaling@pipe-a-valid-mode:
- shard-tglu-10: NOTRUN -> [SKIP][49] ([i915#2587] / [i915#2672]) +4 similar issues
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@kms_flip_scaled_crc@[email protected]
* igt@kms_force_connector_basic@force-load-detect:
- shard-tglu-10: NOTRUN -> [SKIP][50] ([fdo#109285])
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-onoff:
- shard-tglu-10: NOTRUN -> [SKIP][51] ([fdo#109280]) +58 similar issues
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-mmap-wc:
- shard-apl: NOTRUN -> [SKIP][52] ([fdo#109271]) +22 similar issues
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-apl6/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-pri-indfb-draw-mmap-wc.html
* igt@kms_frontbuffer_tracking@fbcpsr-tiling-linear:
- shard-tglu-10: NOTRUN -> [SKIP][53] ([fdo#110189]) +46 similar issues
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@kms_hdr@bpc-switch-suspend@pipe-a-dp-1:
- shard-apl: [PASS][54] -> [ABORT][55] ([i915#180])
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-apl7/igt@kms_hdr@[email protected]
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-apl6/igt@kms_hdr@[email protected]
* igt@kms_plane_alpha_blend@alpha-transparent-fb@pipe-c-dp-1:
- shard-apl: NOTRUN -> [FAIL][56] ([i915#4573]) +1 similar issue
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-apl3/igt@kms_plane_alpha_blend@[email protected]
* igt@kms_plane_scaling@plane-upscale-with-rotation-20x20@pipe-c-hdmi-a-1:
- shard-tglu-10: NOTRUN -> [SKIP][57] ([i915#5176]) +11 similar issues
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@kms_plane_scaling@[email protected]
* igt@kms_prime@basic-crc-hybrid:
- shard-tglu-10: NOTRUN -> [SKIP][58] ([i915#6524])
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@kms_psr2_sf@overlay-plane-update-continuous-sf:
- shard-tglu-10: NOTRUN -> [SKIP][59] ([fdo#111068] / [i915#658]) +1 similar issue
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][60] ([fdo#109271] / [i915#658])
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-apl4/igt@[email protected]
* igt@kms_psr2_su@frontbuffer-xrgb8888:
- shard-tglu-10: NOTRUN -> [SKIP][61] ([fdo#109642] / [fdo#111068] / [i915#658])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@kms_rotation_crc@primary-yf-tiled-reflect-x-180:
- shard-tglu-10: NOTRUN -> [SKIP][62] ([fdo#111615] / [i915#5289])
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@kms_scaling_modes@scaling-mode-full-aspect:
- shard-tglu-10: NOTRUN -> [SKIP][63] ([i915#3555]) +11 similar issues
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@kms_writeback@writeback-fb-id:
- shard-tglu-10: NOTRUN -> [SKIP][64] ([i915#2437])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
- shard-apl: NOTRUN -> [SKIP][65] ([fdo#109271] / [i915#2437])
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-apl6/igt@[email protected]
* igt@prime_udl:
- shard-tglu-10: NOTRUN -> [SKIP][66] ([fdo#109291])
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@prime_udl.html
* igt@prime_vgem@fence-write-hang:
- shard-tglu-10: NOTRUN -> [SKIP][67] ([fdo#109295]) +1 similar issue
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@[email protected]
* igt@v3d/v3d_mmap@mmap-bo:
- shard-tglu-10: NOTRUN -> [SKIP][68] ([fdo#109315] / [i915#2575]) +4 similar issues
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@v3d/[email protected]
* igt@vc4/vc4_create_bo@create-bo-0:
- shard-tglu-10: NOTRUN -> [SKIP][69] ([i915#2575]) +13 similar issues
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-tglu-10/igt@vc4/[email protected]
#### Possible fixes ####
* igt@drm_fdinfo@most-busy-check-all@rcs0:
- {shard-rkl}: [FAIL][70] ([i915#7742]) -> [PASS][71]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-rkl-4/igt@drm_fdinfo@[email protected]
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-rkl-3/igt@drm_fdinfo@[email protected]
* igt@fbdev@eof:
- {shard-rkl}: [SKIP][72] ([i915#2582]) -> [PASS][73] +1 similar issue
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-rkl-5/igt@[email protected]
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-rkl-6/igt@[email protected]
* igt@feature_discovery@psr1:
- {shard-rkl}: [SKIP][74] ([i915#658]) -> [PASS][75]
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-rkl-1/igt@[email protected]
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-rkl-6/igt@[email protected]
* igt@gem_ctx_exec@basic-nohangcheck:
- {shard-rkl}: [FAIL][76] ([i915#6268]) -> [PASS][77]
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-rkl-3/igt@[email protected]
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-rkl-3/igt@[email protected]
* igt@gem_ctx_persistence@engines-hang@bcs0:
- {shard-rkl}: [SKIP][78] ([i915#6252]) -> [PASS][79]
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-rkl-5/igt@gem_ctx_persistence@[email protected]
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-rkl-6/igt@gem_ctx_persistence@[email protected]
* igt@gem_eio@in-flight-suspend:
- {shard-rkl}: [FAIL][80] ([fdo#103375]) -> [PASS][81]
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-rkl-4/igt@[email protected]
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-rkl-2/igt@[email protected]
* igt@gem_exec_fair@basic-flow@rcs0:
- {shard-rkl}: [FAIL][82] ([i915#2842]) -> [PASS][83] +1 similar issue
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-rkl-3/igt@gem_exec_fair@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-rkl-3/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-none@rcs0:
- shard-glk: [FAIL][84] ([i915#2842]) -> [PASS][85] +1 similar issue
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-glk6/igt@gem_exec_fair@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-glk5/igt@gem_exec_fair@[email protected]
* igt@gem_exec_gttfill@engines@bcs0:
- shard-apl: [INCOMPLETE][86] -> [PASS][87]
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-apl7/igt@gem_exec_gttfill@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-apl3/igt@gem_exec_gttfill@[email protected]
* igt@gem_exec_reloc@basic-gtt:
- {shard-rkl}: [SKIP][88] ([i915#3281]) -> [PASS][89] +6 similar issues
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-rkl-2/igt@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-rkl-5/igt@[email protected]
* igt@gem_pread@bench:
- {shard-rkl}: [SKIP][90] ([i915#3282]) -> [PASS][91] +7 similar issues
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-rkl-1/igt@[email protected]
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-rkl-5/igt@[email protected]
* igt@gen9_exec_parse@bb-chained:
- {shard-rkl}: [SKIP][92] ([i915#2527]) -> [PASS][93] +4 similar issues
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-rkl-2/igt@[email protected]
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-rkl-5/igt@[email protected]
* igt@i915_pm_rpm@modeset-lpsp:
- {shard-rkl}: [SKIP][94] ([i915#1397]) -> [PASS][95]
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-rkl-2/igt@[email protected]
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-rkl-6/igt@[email protected]
* igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-180-async-flip:
- {shard-rkl}: [SKIP][96] ([i915#1845] / [i915#4098]) -> [PASS][97] +18 similar issues
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-rkl-5/igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-180-async-flip.html
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-rkl-6/igt@kms_big_fb@x-tiled-max-hw-stride-32bpp-rotate-180-async-flip.html
* igt@kms_cursor_legacy@cursora-vs-flipa-varying-size:
- shard-apl: [DMESG-WARN][98] ([i915#6020]) -> [PASS][99]
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-apl2/igt@[email protected]
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-apl2/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size:
- shard-glk: [FAIL][100] ([i915#2346]) -> [PASS][101]
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-glk4/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-glk4/igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions-varying-size.html
* igt@kms_fbcon_fbt@fbc:
- {shard-rkl}: [SKIP][102] ([i915#4098]) -> [PASS][103]
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-rkl-3/igt@[email protected]
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-rkl-6/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-pri-indfb-multidraw:
- {shard-rkl}: [SKIP][104] ([i915#1849] / [i915#4098]) -> [PASS][105] +13 similar issues
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-rkl-5/igt@[email protected]
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-rkl-6/igt@[email protected]
* igt@kms_plane@plane-panning-bottom-right-suspend@pipe-a-planes:
- {shard-rkl}: [SKIP][106] ([i915#1849]) -> [PASS][107] +1 similar issue
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-rkl-1/igt@kms_plane@[email protected]
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-rkl-6/igt@kms_plane@[email protected]
* igt@kms_psr@sprite_render:
- {shard-rkl}: [SKIP][108] ([i915#1072]) -> [PASS][109]
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-rkl-1/igt@kms_psr@sprite_render.html
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-rkl-6/igt@kms_psr@sprite_render.html
* igt@kms_vblank@pipe-c-accuracy-idle:
- shard-glk: [FAIL][110] ([i915#43]) -> [PASS][111]
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_12821/shard-glk4/igt@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/shard-glk3/igt@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[IGT#2]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/2
[fdo#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
[fdo#109279]: https://bugs.freedesktop.org/show_bug.cgi?id=109279
[fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109283]: https://bugs.freedesktop.org/show_bug.cgi?id=109283
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109291]: https://bugs.freedesktop.org/show_bug.cgi?id=109291
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[fdo#109302]: https://bugs.freedesktop.org/show_bug.cgi?id=109302
[fdo#109303]: https://bugs.freedesktop.org/show_bug.cgi?id=109303
[fdo#109312]: https://bugs.freedesktop.org/show_bug.cgi?id=109312
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#109506]: https://bugs.freedesktop.org/show_bug.cgi?id=109506
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
[fdo#110542]: https://bugs.freedesktop.org/show_bug.cgi?id=110542
[fdo#110723]: https://bugs.freedesktop.org/show_bug.cgi?id=110723
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[fdo#111614]: https://bugs.freedesktop.org/show_bug.cgi?id=111614
[fdo#111615]: https://bugs.freedesktop.org/show_bug.cgi?id=111615
[fdo#111644]: https://bugs.freedesktop.org/show_bug.cgi?id=111644
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[fdo#112054]: https://bugs.freedesktop.org/show_bug.cgi?id=112054
[fdo#112283]: https://bugs.freedesktop.org/show_bug.cgi?id=112283
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#132]: https://gitlab.freedesktop.org/drm/intel/issues/132
[i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397
[i915#1722]: https://gitlab.freedesktop.org/drm/intel/issues/1722
[i915#1769]: https://gitlab.freedesktop.org/drm/intel/issues/1769
[i915#180]: https://gitlab.freedesktop.org/drm/intel/issues/180
[i915#1825]: https://gitlab.freedesktop.org/drm/intel/issues/1825
[i915#1839]: https://gitlab.freedesktop.org/drm/intel/issues/1839
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#1902]: https://gitlab.freedesktop.org/drm/intel/issues/1902
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2232]: https://gitlab.freedesktop.org/drm/intel/issues/2232
[i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346
[i915#2437]: https://gitlab.freedesktop.org/drm/intel/issues/2437
[i915#2527]: https://gitlab.freedesktop.org/drm/intel/issues/2527
[i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#2587]: https://gitlab.freedesktop.org/drm/intel/issues/2587
[i915#2658]: https://gitlab.freedesktop.org/drm/intel/issues/2658
[i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672
[i915#2681]: https://gitlab.freedesktop.org/drm/intel/issues/2681
[i915#2705]: https://gitlab.freedesktop.org/drm/intel/issues/2705
[i915#280]: https://gitlab.freedesktop.org/drm/intel/issues/280
[i915#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842
[i915#2856]: https://gitlab.freedesktop.org/drm/intel/issues/2856
[i915#2920]: https://gitlab.freedesktop.org/drm/intel/issues/2920
[i915#3063]: https://gitlab.freedesktop.org/drm/intel/issues/3063
[i915#3116]: https://gitlab.freedesktop.org/drm/intel/issues/3116
[i915#315]: https://gitlab.freedesktop.org/drm/intel/issues/315
[i915#3281]: https://gitlab.freedesktop.org/drm/intel/issues/3281
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297
[i915#3299]: https://gitlab.freedesktop.org/drm/intel/issues/3299
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3323]: https://gitlab.freedesktop.org/drm/intel/issues/3323
[i915#3359]: https://gitlab.freedesktop.org/drm/intel/issues/3359
[i915#3458]: https://gitlab.freedesktop.org/drm/intel/issues/3458
[i915#3469]: https://gitlab.freedesktop.org/drm/intel/issues/3469
[i915#3528]: https://gitlab.freedesktop.org/drm/intel/issues/3528
[i915#3539]: https://gitlab.freedesktop.org/drm/intel/issues/3539
[i915#3546]: https://gitlab.freedesktop.org/drm/intel/issues/3546
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3591]: https://gitlab.freedesktop.org/drm/intel/issues/3591
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3638]: https://gitlab.freedesktop.org/drm/intel/issues/3638
[i915#3639]: https://gitlab.freedesktop.org/drm/intel/issues/3639
[i915#3689]: https://gitlab.freedesktop.org/drm/intel/issues/3689
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#3734]: https://gitlab.freedesktop.org/drm/intel/issues/3734
[i915#3742]: https://gitlab.freedesktop.org/drm/intel/issues/3742
[i915#3804]: https://gitlab.freedesktop.org/drm/intel/issues/3804
[i915#3825]: https://gitlab.freedesktop.org/drm/intel/issues/3825
[i915#3840]: https://gitlab.freedesktop.org/drm/intel/issues/3840
[i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886
[i915#3938]: https://gitlab.freedesktop.org/drm/intel/issues/3938
[i915#3955]: https://gitlab.freedesktop.org/drm/intel/issues/3955
[i915#3989]: https://gitlab.freedesktop.org/drm/intel/issues/3989
[i915#404]: https://gitlab.freedesktop.org/drm/intel/issues/404
[i915#4070]: https://gitlab.freedesktop.org/drm/intel/issues/4070
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4078]: https://gitlab.freedesktop.org/drm/intel/issues/4078
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#426]: https://gitlab.freedesktop.org/drm/intel/issues/426
[i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
[i915#43]: https://gitlab.freedesktop.org/drm/intel/issues/43
[i915#4349]: https://gitlab.freedesktop.org/drm/intel/issues/4349
[i915#4538]: https://gitlab.freedesktop.org/drm/intel/issues/4538
[i915#454]: https://gitlab.freedesktop.org/drm/intel/issues/454
[i915#4565]: https://gitlab.freedesktop.org/drm/intel/issues/4565
[i915#4573]: https://gitlab.freedesktop.org/drm/intel/issues/4573
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4771]: https://gitlab.freedesktop.org/drm/intel/issues/4771
[i915#4812]: https://gitlab.freedesktop.org/drm/intel/issues/4812
[i915#4833]: https://gitlab.freedesktop.org/drm/intel/issues/4833
[i915#4852]: https://gitlab.freedesktop.org/drm/intel/issues/4852
[i915#4854]: https://gitlab.freedesktop.org/drm/intel/issues/4854
[i915#4859]: https://gitlab.freedesktop.org/drm/intel/issues/4859
[i915#4860]: https://gitlab.freedesktop.org/drm/intel/issues/4860
[i915#4880]: https://gitlab.freedesktop.org/drm/intel/issues/4880
[i915#4885]: https://gitlab.freedesktop.org/drm/intel/issues/4885
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#5176]: https://gitlab.freedesktop.org/drm/intel/issues/5176
[i915#5235]: https://gitlab.freedesktop.org/drm/intel/issues/5235
[i915#5286]: https://gitlab.freedesktop.org/drm/intel/issues/5286
[i915#5288]: https://gitlab.freedesktop.org/drm/intel/issues/5288
[i915#5289]: https://gitlab.freedesktop.org/drm/intel/issues/5289
[i915#5325]: https://gitlab.freedesktop.org/drm/intel/issues/5325
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
[i915#5431]: https://gitlab.freedesktop.org/drm/intel/issues/5431
[i915#5439]: https://gitlab.freedesktop.org/drm/intel/issues/5439
[i915#5563]: https://gitlab.freedesktop.org/drm/intel/issues/5563
[i915#5723]: https://gitlab.freedesktop.org/drm/intel/issues/5723
[i915#5784]: https://gitlab.freedesktop.org/drm/intel/issues/5784
[i915#6020]: https://gitlab.freedesktop.org/drm/intel/issues/6020
[i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095
[i915#6117]: https://gitlab.freedesktop.org/drm/intel/issues/6117
[i915#6230]: https://gitlab.freedesktop.org/drm/intel/issues/6230
[i915#6245]: https://gitlab.freedesktop.org/drm/intel/issues/6245
[i915#6248]: https://gitlab.freedesktop.org/drm/intel/issues/6248
[i915#6252]: https://gitlab.freedesktop.org/drm/intel/issues/6252
[i915#6268]: https://gitlab.freedesktop.org/drm/intel/issues/6268
[i915#6301]: https://gitlab.freedesktop.org/drm/intel/issues/6301
[i915#6334]: https://gitlab.freedesktop.org/drm/intel/issues/6334
[i915#6335]: https://gitlab.freedesktop.org/drm/intel/issues/6335
[i915#6355]: https://gitlab.freedesktop.org/drm/intel/issues/6355
[i915#6493]: https://gitlab.freedesktop.org/drm/intel/issues/6493
[i915#6497]: https://gitlab.freedesktop.org/drm/intel/issues/6497
[i915#6524]: https://gitlab.freedesktop.org/drm/intel/issues/6524
[i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
[i915#6590]: https://gitlab.freedesktop.org/drm/intel/issues/6590
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#6768]: https://gitlab.freedesktop.org/drm/intel/issues/6768
[i915#6944]: https://gitlab.freedesktop.org/drm/intel/issues/6944
[i915#6946]: https://gitlab.freedesktop.org/drm/intel/issues/6946
[i915#6953]: https://gitlab.freedesktop.org/drm/intel/issues/6953
[i915#7116]: https://gitlab.freedesktop.org/drm/intel/issues/7116
[i915#7118]: https://gitlab.freedesktop.org/drm/intel/issues/7118
[i915#7561]: https://gitlab.freedesktop.org/drm/intel/issues/7561
[i915#7582]: https://gitlab.freedesktop.org/drm/intel/issues/7582
[i915#7697]: https://gitlab.freedesktop.org/drm/intel/issues/7697
[i915#7701]: https://gitlab.freedesktop.org/drm/intel/issues/7701
[i915#7707]: https://gitlab.freedesktop.org/drm/intel/issues/7707
[i915#7711]: https://gitlab.freedesktop.org/drm/intel/issues/7711
[i915#7742]: https://gitlab.freedesktop.org/drm/intel/issues/7742
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
[i915#79]: https://gitlab.freedesktop.org/drm/intel/issues/79
[i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913
[i915#7949]: https://gitlab.freedesktop.org/drm/intel/issues/7949
[i915#7957]: https://gitlab.freedesktop.org/drm/intel/issues/7957
[i915#7975]: https://gitlab.freedesktop.org/drm/intel/issues/7975
[i915#7981]: https://gitlab.freedesktop.org/drm/intel/issues/7981
[i915#8151]: https://gitlab.freedesktop.org/drm/intel/issues/8151
[i915#8152]: https://gitlab.freedesktop.org/drm/intel/issues/8152
[i915#8228]: https://gitlab.freedesktop.org/drm/intel/issues/8228
[i915#8273]: https://gitlab.freedesktop.org/drm/intel/issues/8273
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7182 -> IGTPW_8565
* Piglit: piglit_4509 -> None
CI-20190529: 20190529
CI_DRM_12821: 24f94240c4bca70cadfd00528ffd56c3049e5f58 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_8565: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/index.html
IGT_7182: b25ca07c7a75bfda3358c3450810bc023dd7cee9 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8565/index.html