Lines 1576-1582
static void evergreen_gpu_init(struct radeon_device *rdev)
Link Here
|
1576 |
u32 sq_stack_resource_mgmt_3; |
1576 |
u32 sq_stack_resource_mgmt_3; |
1577 |
u32 vgt_cache_invalidation; |
1577 |
u32 vgt_cache_invalidation; |
1578 |
u32 hdp_host_path_cntl, tmp; |
1578 |
u32 hdp_host_path_cntl, tmp; |
1579 |
u32 disabled_rb_mask; |
1579 |
u32 disabled_rb_mask, shader_pipe_config, rb_backend_disable; |
1580 |
int i, j, num_shader_engines, ps_thread_count; |
1580 |
int i, j, num_shader_engines, ps_thread_count; |
1581 |
|
1581 |
|
1582 |
switch (rdev->family) { |
1582 |
switch (rdev->family) { |
Lines 1891-1899
static void evergreen_gpu_init(struct radeon_device *rdev)
Link Here
|
1891 |
tmp |= rb_disable_bitmap; |
1891 |
tmp |= rb_disable_bitmap; |
1892 |
} |
1892 |
} |
1893 |
} |
1893 |
} |
|
|
1894 |
WREG32(GRBM_GFX_INDEX, INSTANCE_BROADCAST_WRITES | SE_BROADCAST_WRITES); |
1895 |
WREG32(RLC_GFX_INDEX, INSTANCE_BROADCAST_WRITES | SE_BROADCAST_WRITES); |
1894 |
/* enabled rb are just the one not disabled :) */ |
1896 |
/* enabled rb are just the one not disabled :) */ |
1895 |
disabled_rb_mask = tmp; |
1897 |
disabled_rb_mask = tmp; |
1896 |
|
1898 |
|
|
|
1899 |
rb_backend_disable = BACKEND_DISABLE((EVERGREEN_MAX_BACKENDS_MASK << rdev->config.evergreen.max_backends) & |
1900 |
EVERGREEN_MAX_BACKENDS_MASK); |
1901 |
shader_pipe_config = RREG32(CC_GC_SHADER_PIPE_CONFIG) & ~2; |
1902 |
shader_pipe_config |= INACTIVE_QD_PIPES((EVERGREEN_MAX_PIPES_MASK << rdev->config.evergreen.max_pipes) & |
1903 |
EVERGREEN_MAX_PIPES_MASK); |
1904 |
shader_pipe_config |= INACTIVE_SIMDS((EVERGREEN_MAX_SIMDS_MASK << rdev->config.evergreen.max_simds) & |
1905 |
EVERGREEN_MAX_SIMDS_MASK); |
1906 |
for (i = 0; i < rdev->config.evergreen.num_ses; i++) { |
1907 |
WREG32(GRBM_GFX_INDEX, INSTANCE_BROADCAST_WRITES | SE_INDEX(i)); |
1908 |
WREG32(RLC_GFX_INDEX, INSTANCE_BROADCAST_WRITES | SE_INDEX(i)); |
1909 |
|
1910 |
WREG32(GC_USER_RB_BACKEND_DISABLE, rb_backend_disable); |
1911 |
WREG32(GC_USER_SHADER_PIPE_CONFIG, shader_pipe_config); |
1912 |
} |
1897 |
WREG32(GRBM_GFX_INDEX, INSTANCE_BROADCAST_WRITES | SE_BROADCAST_WRITES); |
1913 |
WREG32(GRBM_GFX_INDEX, INSTANCE_BROADCAST_WRITES | SE_BROADCAST_WRITES); |
1898 |
WREG32(RLC_GFX_INDEX, INSTANCE_BROADCAST_WRITES | SE_BROADCAST_WRITES); |
1914 |
WREG32(RLC_GFX_INDEX, INSTANCE_BROADCAST_WRITES | SE_BROADCAST_WRITES); |
1899 |
|
1915 |
|