|
@@ -277,7 +277,6 @@ static const u32 GFX_RLC_SRM_INDEX_CNTL_DATA_OFFSETS[] =
|
|
|
#define VEGA10_GB_ADDR_CONFIG_GOLDEN 0x2a114042
|
|
|
#define VEGA12_GB_ADDR_CONFIG_GOLDEN 0x24104041
|
|
|
#define RAVEN_GB_ADDR_CONFIG_GOLDEN 0x24000042
|
|
|
-#define PICASSO_GB_ADDR_CONFIG_GOLDEN 0x24000042
|
|
|
#define RAVEN2_GB_ADDR_CONFIG_GOLDEN 0x26013041
|
|
|
|
|
|
static void gfx_v9_0_set_ring_funcs(struct amdgpu_device *adev);
|
|
@@ -329,14 +328,6 @@ static void gfx_v9_0_init_golden_registers(struct amdgpu_device *adev)
|
|
|
golden_settings_gc_9_1_rv1,
|
|
|
ARRAY_SIZE(golden_settings_gc_9_1_rv1));
|
|
|
break;
|
|
|
- case CHIP_PICASSO:
|
|
|
- soc15_program_register_sequence(adev,
|
|
|
- golden_settings_gc_9_1,
|
|
|
- ARRAY_SIZE(golden_settings_gc_9_1));
|
|
|
- soc15_program_register_sequence(adev,
|
|
|
- golden_settings_gc_9_1_rv1,
|
|
|
- ARRAY_SIZE(golden_settings_gc_9_1_rv1));
|
|
|
- break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
@@ -617,12 +608,11 @@ static int gfx_v9_0_init_microcode(struct amdgpu_device *adev)
|
|
|
case CHIP_RAVEN:
|
|
|
if (adev->rev_id >= 8)
|
|
|
chip_name = "raven2";
|
|
|
+ else if (adev->pdev->device == 0x15d8)
|
|
|
+ chip_name = "picasso";
|
|
|
else
|
|
|
chip_name = "raven";
|
|
|
break;
|
|
|
- case CHIP_PICASSO:
|
|
|
- chip_name = "picasso";
|
|
|
- break;
|
|
|
default:
|
|
|
BUG();
|
|
|
}
|
|
@@ -1076,7 +1066,7 @@ static int gfx_v9_0_rlc_init(struct amdgpu_device *adev)
|
|
|
amdgpu_bo_unreserve(adev->gfx.rlc.clear_state_obj);
|
|
|
}
|
|
|
|
|
|
- if (adev->asic_type == CHIP_RAVEN || adev->asic_type == CHIP_PICASSO) {
|
|
|
+ if (adev->asic_type == CHIP_RAVEN) {
|
|
|
/* TODO: double check the cp_table_size for RV */
|
|
|
adev->gfx.rlc.cp_table_size = ALIGN(96 * 5 * 4, 2048) + (64 * 1024); /* JT + GDS */
|
|
|
r = amdgpu_bo_create_reserved(adev, adev->gfx.rlc.cp_table_size,
|
|
@@ -1328,14 +1318,6 @@ static int gfx_v9_0_gpu_early_init(struct amdgpu_device *adev)
|
|
|
else
|
|
|
gb_addr_config = RAVEN_GB_ADDR_CONFIG_GOLDEN;
|
|
|
break;
|
|
|
- case CHIP_PICASSO:
|
|
|
- adev->gfx.config.max_hw_contexts = 8;
|
|
|
- adev->gfx.config.sc_prim_fifo_size_frontend = 0x20;
|
|
|
- adev->gfx.config.sc_prim_fifo_size_backend = 0x100;
|
|
|
- adev->gfx.config.sc_hiz_tile_fifo_size = 0x30;
|
|
|
- adev->gfx.config.sc_earlyz_tile_fifo_size = 0x4C0;
|
|
|
- gb_addr_config = PICASSO_GB_ADDR_CONFIG_GOLDEN;
|
|
|
- break;
|
|
|
default:
|
|
|
BUG();
|
|
|
break;
|
|
@@ -1614,7 +1596,6 @@ static int gfx_v9_0_sw_init(void *handle)
|
|
|
case CHIP_VEGA12:
|
|
|
case CHIP_VEGA20:
|
|
|
case CHIP_RAVEN:
|
|
|
- case CHIP_PICASSO:
|
|
|
adev->gfx.mec.num_mec = 2;
|
|
|
break;
|
|
|
default:
|
|
@@ -1776,7 +1757,7 @@ static int gfx_v9_0_sw_fini(void *handle)
|
|
|
amdgpu_bo_free_kernel(&adev->gfx.rlc.clear_state_obj,
|
|
|
&adev->gfx.rlc.clear_state_gpu_addr,
|
|
|
(void **)&adev->gfx.rlc.cs_ptr);
|
|
|
- if ((adev->asic_type == CHIP_RAVEN) || (adev->asic_type == CHIP_PICASSO)) {
|
|
|
+ if (adev->asic_type == CHIP_RAVEN) {
|
|
|
amdgpu_bo_free_kernel(&adev->gfx.rlc.cp_table_obj,
|
|
|
&adev->gfx.rlc.cp_table_gpu_addr,
|
|
|
(void **)&adev->gfx.rlc.cp_table_ptr);
|
|
@@ -2442,7 +2423,7 @@ static int gfx_v9_0_rlc_resume(struct amdgpu_device *adev)
|
|
|
return r;
|
|
|
}
|
|
|
|
|
|
- if (adev->asic_type == CHIP_RAVEN || adev->asic_type == CHIP_PICASSO) {
|
|
|
+ if (adev->asic_type == CHIP_RAVEN) {
|
|
|
if (amdgpu_lbpw != 0)
|
|
|
gfx_v9_0_enable_lbpw(adev, true);
|
|
|
else
|
|
@@ -3846,7 +3827,6 @@ static int gfx_v9_0_set_powergating_state(void *handle,
|
|
|
|
|
|
switch (adev->asic_type) {
|
|
|
case CHIP_RAVEN:
|
|
|
- case CHIP_PICASSO:
|
|
|
if (!enable) {
|
|
|
amdgpu_gfx_off_ctrl(adev, false);
|
|
|
cancel_delayed_work_sync(&adev->gfx.gfx_off_delay_work);
|
|
@@ -3901,7 +3881,6 @@ static int gfx_v9_0_set_clockgating_state(void *handle,
|
|
|
case CHIP_VEGA12:
|
|
|
case CHIP_VEGA20:
|
|
|
case CHIP_RAVEN:
|
|
|
- case CHIP_PICASSO:
|
|
|
gfx_v9_0_update_gfx_clock_gating(adev,
|
|
|
state == AMD_CG_STATE_GATE ? true : false);
|
|
|
break;
|
|
@@ -4911,7 +4890,6 @@ static void gfx_v9_0_set_rlc_funcs(struct amdgpu_device *adev)
|
|
|
case CHIP_VEGA12:
|
|
|
case CHIP_VEGA20:
|
|
|
case CHIP_RAVEN:
|
|
|
- case CHIP_PICASSO:
|
|
|
adev->gfx.rlc.funcs = &gfx_v9_0_rlc_funcs;
|
|
|
break;
|
|
|
default:
|