diff options
author | Sean Paul <seanpaul@chromium.org> | 2017-05-18 09:24:30 -0400 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2017-05-18 09:24:30 -0400 |
commit | 6b7781b42dc9bc9bcd1523b6c24b876cdda0bef3 (patch) | |
tree | ee55c67e4ea30b9eb44f301ba0bde2e631a26162 /drivers/gpu/drm/amd/amdgpu/amdgpu.h | |
parent | 52d9d38c183bf0e09601d875ea31bb53c05dd8cf (diff) | |
parent | e98c58e55f68f8785aebfab1f8c9a03d8de0afe1 (diff) |
Merge remote-tracking branch 'airlied/drm-next' into drm-misc-next
Picking up drm-next @ 4.12-rc1 in order to apply Michal Hocko's vmalloc patch set
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 01156987f1d2..77ff68f9932b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -110,6 +110,7 @@ extern int amdgpu_pos_buf_per_se; | |||
110 | extern int amdgpu_cntl_sb_buf_per_se; | 110 | extern int amdgpu_cntl_sb_buf_per_se; |
111 | extern int amdgpu_param_buf_per_se; | 111 | extern int amdgpu_param_buf_per_se; |
112 | 112 | ||
113 | #define AMDGPU_DEFAULT_GTT_SIZE_MB 3072ULL /* 3GB by default */ | ||
113 | #define AMDGPU_WAIT_IDLE_TIMEOUT_IN_MS 3000 | 114 | #define AMDGPU_WAIT_IDLE_TIMEOUT_IN_MS 3000 |
114 | #define AMDGPU_MAX_USEC_TIMEOUT 100000 /* 100 ms */ | 115 | #define AMDGPU_MAX_USEC_TIMEOUT 100000 /* 100 ms */ |
115 | #define AMDGPU_FENCE_JIFFIES_TIMEOUT (HZ / 2) | 116 | #define AMDGPU_FENCE_JIFFIES_TIMEOUT (HZ / 2) |
@@ -966,6 +967,8 @@ struct amdgpu_gfx_config { | |||
966 | unsigned mc_arb_ramcfg; | 967 | unsigned mc_arb_ramcfg; |
967 | unsigned gb_addr_config; | 968 | unsigned gb_addr_config; |
968 | unsigned num_rbs; | 969 | unsigned num_rbs; |
970 | unsigned gs_vgt_table_depth; | ||
971 | unsigned gs_prim_buffer_depth; | ||
969 | 972 | ||
970 | uint32_t tile_mode_array[32]; | 973 | uint32_t tile_mode_array[32]; |
971 | uint32_t macrotile_mode_array[16]; | 974 | uint32_t macrotile_mode_array[16]; |
@@ -980,6 +983,7 @@ struct amdgpu_gfx_config { | |||
980 | struct amdgpu_cu_info { | 983 | struct amdgpu_cu_info { |
981 | uint32_t number; /* total active CU number */ | 984 | uint32_t number; /* total active CU number */ |
982 | uint32_t ao_cu_mask; | 985 | uint32_t ao_cu_mask; |
986 | uint32_t wave_front_size; | ||
983 | uint32_t bitmap[4][4]; | 987 | uint32_t bitmap[4][4]; |
984 | }; | 988 | }; |
985 | 989 | ||
@@ -1000,10 +1004,10 @@ struct amdgpu_ngg_buf { | |||
1000 | }; | 1004 | }; |
1001 | 1005 | ||
1002 | enum { | 1006 | enum { |
1003 | PRIM = 0, | 1007 | NGG_PRIM = 0, |
1004 | POS, | 1008 | NGG_POS, |
1005 | CNTL, | 1009 | NGG_CNTL, |
1006 | PARAM, | 1010 | NGG_PARAM, |
1007 | NGG_BUF_MAX | 1011 | NGG_BUF_MAX |
1008 | }; | 1012 | }; |
1009 | 1013 | ||
@@ -1125,6 +1129,7 @@ struct amdgpu_job { | |||
1125 | void *owner; | 1129 | void *owner; |
1126 | uint64_t fence_ctx; /* the fence_context this job uses */ | 1130 | uint64_t fence_ctx; /* the fence_context this job uses */ |
1127 | bool vm_needs_flush; | 1131 | bool vm_needs_flush; |
1132 | bool need_pipeline_sync; | ||
1128 | unsigned vm_id; | 1133 | unsigned vm_id; |
1129 | uint64_t vm_pd_addr; | 1134 | uint64_t vm_pd_addr; |
1130 | uint32_t gds_base, gds_size; | 1135 | uint32_t gds_base, gds_size; |
@@ -1704,9 +1709,6 @@ void amdgpu_mm_wdoorbell64(struct amdgpu_device *adev, u32 index, u64 v); | |||
1704 | #define WREG32_FIELD_OFFSET(reg, offset, field, val) \ | 1709 | #define WREG32_FIELD_OFFSET(reg, offset, field, val) \ |
1705 | WREG32(mm##reg + offset, (RREG32(mm##reg + offset) & ~REG_FIELD_MASK(reg, field)) | (val) << REG_FIELD_SHIFT(reg, field)) | 1710 | WREG32(mm##reg + offset, (RREG32(mm##reg + offset) & ~REG_FIELD_MASK(reg, field)) | (val) << REG_FIELD_SHIFT(reg, field)) |
1706 | 1711 | ||
1707 | #define WREG32_FIELD15(ip, idx, reg, field, val) \ | ||
1708 | WREG32(SOC15_REG_OFFSET(ip, idx, mm##reg), (RREG32(SOC15_REG_OFFSET(ip, idx, mm##reg)) & ~REG_FIELD_MASK(reg, field)) | (val) << REG_FIELD_SHIFT(reg, field)) | ||
1709 | |||
1710 | /* | 1712 | /* |
1711 | * BIOS helpers. | 1713 | * BIOS helpers. |
1712 | */ | 1714 | */ |