diff options
author | Christian König <christian.koenig@amd.com> | 2016-05-03 09:54:54 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-05-11 12:31:20 -0400 |
commit | edf600dac65eecb6c8bcf21fa986db30ee21a2ac (patch) | |
tree | ed9c19dc1e661351c438eaf8d3ff1ae4ce93f72f | |
parent | b1c8a81fdd346274e3c38909740eec7182ef8f8a (diff) |
drm/amd: cleanup remaining spaces and tabs v2
This is the result of running the following commands:
find drivers/gpu/drm/amd/ -name "*.h" -exec sed -i 's/[ \t]\+$//' {} \;
find drivers/gpu/drm/amd/ -name "*.c" -exec sed -i 's/[ \t]\+$//' {} \;
find drivers/gpu/drm/amd/ -name "*.h" -exec sed -i 's/ \+\t/\t/' {} \;
find drivers/gpu/drm/amd/ -name "*.c" -exec sed -i 's/ \+\t/\t/' {} \;
v2: drop changes to DAL and internal headers
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
23 files changed, 56 insertions, 56 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index 0ab5fcc72273..abe62ecaaef4 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h | |||
@@ -369,7 +369,7 @@ struct amdgpu_fence_driver { | |||
369 | 369 | ||
370 | struct amdgpu_user_fence { | 370 | struct amdgpu_user_fence { |
371 | /* write-back bo */ | 371 | /* write-back bo */ |
372 | struct amdgpu_bo *bo; | 372 | struct amdgpu_bo *bo; |
373 | /* write-back address offset to bo start */ | 373 | /* write-back address offset to bo start */ |
374 | uint32_t offset; | 374 | uint32_t offset; |
375 | }; | 375 | }; |
@@ -777,7 +777,7 @@ struct amdgpu_ring { | |||
777 | struct amdgpu_device *adev; | 777 | struct amdgpu_device *adev; |
778 | const struct amdgpu_ring_funcs *funcs; | 778 | const struct amdgpu_ring_funcs *funcs; |
779 | struct amdgpu_fence_driver fence_drv; | 779 | struct amdgpu_fence_driver fence_drv; |
780 | struct amd_gpu_scheduler sched; | 780 | struct amd_gpu_scheduler sched; |
781 | 781 | ||
782 | spinlock_t fence_lock; | 782 | spinlock_t fence_lock; |
783 | struct amdgpu_bo *ring_obj; | 783 | struct amdgpu_bo *ring_obj; |
@@ -1247,7 +1247,7 @@ struct amdgpu_cs_parser { | |||
1247 | struct amdgpu_job { | 1247 | struct amdgpu_job { |
1248 | struct amd_sched_job base; | 1248 | struct amd_sched_job base; |
1249 | struct amdgpu_device *adev; | 1249 | struct amdgpu_device *adev; |
1250 | struct amdgpu_vm *vm; | 1250 | struct amdgpu_vm *vm; |
1251 | struct amdgpu_ring *ring; | 1251 | struct amdgpu_ring *ring; |
1252 | struct amdgpu_sync sync; | 1252 | struct amdgpu_sync sync; |
1253 | struct amdgpu_ib *ibs; | 1253 | struct amdgpu_ib *ibs; |
@@ -1701,7 +1701,7 @@ struct amdgpu_sdma { | |||
1701 | struct amdgpu_sdma_instance instance[AMDGPU_MAX_SDMA_INSTANCES]; | 1701 | struct amdgpu_sdma_instance instance[AMDGPU_MAX_SDMA_INSTANCES]; |
1702 | struct amdgpu_irq_src trap_irq; | 1702 | struct amdgpu_irq_src trap_irq; |
1703 | struct amdgpu_irq_src illegal_inst_irq; | 1703 | struct amdgpu_irq_src illegal_inst_irq; |
1704 | int num_instances; | 1704 | int num_instances; |
1705 | }; | 1705 | }; |
1706 | 1706 | ||
1707 | /* | 1707 | /* |
@@ -1955,11 +1955,11 @@ struct amdgpu_device { | |||
1955 | bool shutdown; | 1955 | bool shutdown; |
1956 | bool need_dma32; | 1956 | bool need_dma32; |
1957 | bool accel_working; | 1957 | bool accel_working; |
1958 | struct work_struct reset_work; | 1958 | struct work_struct reset_work; |
1959 | struct notifier_block acpi_nb; | 1959 | struct notifier_block acpi_nb; |
1960 | struct amdgpu_i2c_chan *i2c_bus[AMDGPU_MAX_I2C_BUS]; | 1960 | struct amdgpu_i2c_chan *i2c_bus[AMDGPU_MAX_I2C_BUS]; |
1961 | struct amdgpu_debugfs debugfs[AMDGPU_DEBUGFS_MAX_COMPONENTS]; | 1961 | struct amdgpu_debugfs debugfs[AMDGPU_DEBUGFS_MAX_COMPONENTS]; |
1962 | unsigned debugfs_count; | 1962 | unsigned debugfs_count; |
1963 | #if defined(CONFIG_DEBUG_FS) | 1963 | #if defined(CONFIG_DEBUG_FS) |
1964 | struct dentry *debugfs_regs[AMDGPU_DEBUGFS_MAX_COMPONENTS]; | 1964 | struct dentry *debugfs_regs[AMDGPU_DEBUGFS_MAX_COMPONENTS]; |
1965 | #endif | 1965 | #endif |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c index eacd810fc09b..35d0856738ae 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_bo_list.c | |||
@@ -263,7 +263,7 @@ int amdgpu_bo_list_ioctl(struct drm_device *dev, void *data, | |||
263 | for (i = 0; i < args->in.bo_number; ++i) { | 263 | for (i = 0; i < args->in.bo_number; ++i) { |
264 | if (copy_from_user(&info[i], uptr, bytes)) | 264 | if (copy_from_user(&info[i], uptr, bytes)) |
265 | goto error_free; | 265 | goto error_free; |
266 | 266 | ||
267 | uptr += args->in.bo_info_size; | 267 | uptr += args->in.bo_info_size; |
268 | } | 268 | } |
269 | } | 269 | } |
@@ -271,7 +271,7 @@ int amdgpu_bo_list_ioctl(struct drm_device *dev, void *data, | |||
271 | switch (args->in.operation) { | 271 | switch (args->in.operation) { |
272 | case AMDGPU_BO_LIST_OP_CREATE: | 272 | case AMDGPU_BO_LIST_OP_CREATE: |
273 | r = amdgpu_bo_list_create(fpriv, &list, &handle); | 273 | r = amdgpu_bo_list_create(fpriv, &list, &handle); |
274 | if (r) | 274 | if (r) |
275 | goto error_free; | 275 | goto error_free; |
276 | 276 | ||
277 | r = amdgpu_bo_list_set(adev, filp, list, info, | 277 | r = amdgpu_bo_list_set(adev, filp, list, info, |
@@ -281,7 +281,7 @@ int amdgpu_bo_list_ioctl(struct drm_device *dev, void *data, | |||
281 | goto error_free; | 281 | goto error_free; |
282 | 282 | ||
283 | break; | 283 | break; |
284 | 284 | ||
285 | case AMDGPU_BO_LIST_OP_DESTROY: | 285 | case AMDGPU_BO_LIST_OP_DESTROY: |
286 | amdgpu_bo_list_destroy(fpriv, handle); | 286 | amdgpu_bo_list_destroy(fpriv, handle); |
287 | handle = 0; | 287 | handle = 0; |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 778330529ff5..0d44e6a41eda 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |||
@@ -348,7 +348,7 @@ static int amdgpu_doorbell_init(struct amdgpu_device *adev) | |||
348 | adev->doorbell.base = pci_resource_start(adev->pdev, 2); | 348 | adev->doorbell.base = pci_resource_start(adev->pdev, 2); |
349 | adev->doorbell.size = pci_resource_len(adev->pdev, 2); | 349 | adev->doorbell.size = pci_resource_len(adev->pdev, 2); |
350 | 350 | ||
351 | adev->doorbell.num_doorbells = min_t(u32, adev->doorbell.size / sizeof(u32), | 351 | adev->doorbell.num_doorbells = min_t(u32, adev->doorbell.size / sizeof(u32), |
352 | AMDGPU_DOORBELL_MAX_ASSIGNMENT+1); | 352 | AMDGPU_DOORBELL_MAX_ASSIGNMENT+1); |
353 | if (adev->doorbell.num_doorbells == 0) | 353 | if (adev->doorbell.num_doorbells == 0) |
354 | return -EINVAL; | 354 | return -EINVAL; |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h index c3f4e85594ff..503d54098128 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gds.h | |||
@@ -43,7 +43,7 @@ struct amdgpu_ring; | |||
43 | struct amdgpu_bo; | 43 | struct amdgpu_bo; |
44 | 44 | ||
45 | struct amdgpu_gds_asic_info { | 45 | struct amdgpu_gds_asic_info { |
46 | uint32_t total_size; | 46 | uint32_t total_size; |
47 | uint32_t gfx_partition_size; | 47 | uint32_t gfx_partition_size; |
48 | uint32_t cs_partition_size; | 48 | uint32_t cs_partition_size; |
49 | }; | 49 | }; |
@@ -52,8 +52,8 @@ struct amdgpu_gds { | |||
52 | struct amdgpu_gds_asic_info mem; | 52 | struct amdgpu_gds_asic_info mem; |
53 | struct amdgpu_gds_asic_info gws; | 53 | struct amdgpu_gds_asic_info gws; |
54 | struct amdgpu_gds_asic_info oa; | 54 | struct amdgpu_gds_asic_info oa; |
55 | /* At present, GDS, GWS and OA resources for gfx (graphics) | 55 | /* At present, GDS, GWS and OA resources for gfx (graphics) |
56 | * is always pre-allocated and available for graphics operation. | 56 | * is always pre-allocated and available for graphics operation. |
57 | * Such resource is shared between all gfx clients. | 57 | * Such resource is shared between all gfx clients. |
58 | * TODO: move this operation to user space | 58 | * TODO: move this operation to user space |
59 | * */ | 59 | * */ |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h index 81bd964d3dfc..8a253aa0b551 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h | |||
@@ -530,7 +530,7 @@ struct amdgpu_framebuffer { | |||
530 | ((em) == ATOM_ENCODER_MODE_DP_MST)) | 530 | ((em) == ATOM_ENCODER_MODE_DP_MST)) |
531 | 531 | ||
532 | /* Driver internal use only flags of amdgpu_get_crtc_scanoutpos() */ | 532 | /* Driver internal use only flags of amdgpu_get_crtc_scanoutpos() */ |
533 | #define USE_REAL_VBLANKSTART (1 << 30) | 533 | #define USE_REAL_VBLANKSTART (1 << 30) |
534 | #define GET_DISTANCE_TO_VBLANKSTART (1 << 31) | 534 | #define GET_DISTANCE_TO_VBLANKSTART (1 << 31) |
535 | 535 | ||
536 | void amdgpu_link_encoder_connector(struct drm_device *dev); | 536 | void amdgpu_link_encoder_connector(struct drm_device *dev); |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c index 3f953759002f..0081cf56c87b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | |||
@@ -45,9 +45,9 @@ | |||
45 | /* Firmware Names */ | 45 | /* Firmware Names */ |
46 | #ifdef CONFIG_DRM_AMDGPU_CIK | 46 | #ifdef CONFIG_DRM_AMDGPU_CIK |
47 | #define FIRMWARE_BONAIRE "radeon/bonaire_uvd.bin" | 47 | #define FIRMWARE_BONAIRE "radeon/bonaire_uvd.bin" |
48 | #define FIRMWARE_KABINI "radeon/kabini_uvd.bin" | 48 | #define FIRMWARE_KABINI "radeon/kabini_uvd.bin" |
49 | #define FIRMWARE_KAVERI "radeon/kaveri_uvd.bin" | 49 | #define FIRMWARE_KAVERI "radeon/kaveri_uvd.bin" |
50 | #define FIRMWARE_HAWAII "radeon/hawaii_uvd.bin" | 50 | #define FIRMWARE_HAWAII "radeon/hawaii_uvd.bin" |
51 | #define FIRMWARE_MULLINS "radeon/mullins_uvd.bin" | 51 | #define FIRMWARE_MULLINS "radeon/mullins_uvd.bin" |
52 | #endif | 52 | #endif |
53 | #define FIRMWARE_TONGA "amdgpu/tonga_uvd.bin" | 53 | #define FIRMWARE_TONGA "amdgpu/tonga_uvd.bin" |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c index 79ba2aae0d7a..7b7b0f64530a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c | |||
@@ -41,9 +41,9 @@ | |||
41 | /* Firmware Names */ | 41 | /* Firmware Names */ |
42 | #ifdef CONFIG_DRM_AMDGPU_CIK | 42 | #ifdef CONFIG_DRM_AMDGPU_CIK |
43 | #define FIRMWARE_BONAIRE "radeon/bonaire_vce.bin" | 43 | #define FIRMWARE_BONAIRE "radeon/bonaire_vce.bin" |
44 | #define FIRMWARE_KABINI "radeon/kabini_vce.bin" | 44 | #define FIRMWARE_KABINI "radeon/kabini_vce.bin" |
45 | #define FIRMWARE_KAVERI "radeon/kaveri_vce.bin" | 45 | #define FIRMWARE_KAVERI "radeon/kaveri_vce.bin" |
46 | #define FIRMWARE_HAWAII "radeon/hawaii_vce.bin" | 46 | #define FIRMWARE_HAWAII "radeon/hawaii_vce.bin" |
47 | #define FIRMWARE_MULLINS "radeon/mullins_vce.bin" | 47 | #define FIRMWARE_MULLINS "radeon/mullins_vce.bin" |
48 | #endif | 48 | #endif |
49 | #define FIRMWARE_TONGA "amdgpu/tonga_vce.bin" | 49 | #define FIRMWARE_TONGA "amdgpu/tonga_vce.bin" |
diff --git a/drivers/gpu/drm/amd/amdgpu/atom.h b/drivers/gpu/drm/amd/amdgpu/atom.h index fece8f45dc7a..49daf6d723e5 100644 --- a/drivers/gpu/drm/amd/amdgpu/atom.h +++ b/drivers/gpu/drm/amd/amdgpu/atom.h | |||
@@ -92,7 +92,7 @@ | |||
92 | #define ATOM_WS_AND_MASK 0x45 | 92 | #define ATOM_WS_AND_MASK 0x45 |
93 | #define ATOM_WS_FB_WINDOW 0x46 | 93 | #define ATOM_WS_FB_WINDOW 0x46 |
94 | #define ATOM_WS_ATTRIBUTES 0x47 | 94 | #define ATOM_WS_ATTRIBUTES 0x47 |
95 | #define ATOM_WS_REGPTR 0x48 | 95 | #define ATOM_WS_REGPTR 0x48 |
96 | 96 | ||
97 | #define ATOM_IIO_NOP 0 | 97 | #define ATOM_IIO_NOP 0 |
98 | #define ATOM_IIO_START 1 | 98 | #define ATOM_IIO_START 1 |
diff --git a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c index 90f83b21b38c..2f247975fdd6 100644 --- a/drivers/gpu/drm/amd/amdgpu/ci_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/ci_dpm.c | |||
@@ -6363,7 +6363,7 @@ static int ci_dpm_set_interrupt_state(struct amdgpu_device *adev, | |||
6363 | } | 6363 | } |
6364 | 6364 | ||
6365 | static int ci_dpm_process_interrupt(struct amdgpu_device *adev, | 6365 | static int ci_dpm_process_interrupt(struct amdgpu_device *adev, |
6366 | struct amdgpu_irq_src *source, | 6366 | struct amdgpu_irq_src *source, |
6367 | struct amdgpu_iv_entry *entry) | 6367 | struct amdgpu_iv_entry *entry) |
6368 | { | 6368 | { |
6369 | bool queue_thermal = false; | 6369 | bool queue_thermal = false; |
diff --git a/drivers/gpu/drm/amd/amdgpu/cik_ih.c b/drivers/gpu/drm/amd/amdgpu/cik_ih.c index f2f14fe26784..7e750a459499 100644 --- a/drivers/gpu/drm/amd/amdgpu/cik_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/cik_ih.c | |||
@@ -243,7 +243,7 @@ static void cik_ih_decode_iv(struct amdgpu_device *adev, | |||
243 | /* wptr/rptr are in bytes! */ | 243 | /* wptr/rptr are in bytes! */ |
244 | u32 ring_index = adev->irq.ih.rptr >> 2; | 244 | u32 ring_index = adev->irq.ih.rptr >> 2; |
245 | uint32_t dw[4]; | 245 | uint32_t dw[4]; |
246 | 246 | ||
247 | dw[0] = le32_to_cpu(adev->irq.ih.ring[ring_index + 0]); | 247 | dw[0] = le32_to_cpu(adev->irq.ih.ring[ring_index + 0]); |
248 | dw[1] = le32_to_cpu(adev->irq.ih.ring[ring_index + 1]); | 248 | dw[1] = le32_to_cpu(adev->irq.ih.ring[ring_index + 1]); |
249 | dw[2] = le32_to_cpu(adev->irq.ih.ring[ring_index + 2]); | 249 | dw[2] = le32_to_cpu(adev->irq.ih.ring[ring_index + 2]); |
diff --git a/drivers/gpu/drm/amd/amdgpu/cikd.h b/drivers/gpu/drm/amd/amdgpu/cikd.h index 60d4493206dd..c4f6f00d62bc 100644 --- a/drivers/gpu/drm/amd/amdgpu/cikd.h +++ b/drivers/gpu/drm/amd/amdgpu/cikd.h | |||
@@ -190,8 +190,8 @@ | |||
190 | # define MACRO_TILE_ASPECT(x) ((x) << 4) | 190 | # define MACRO_TILE_ASPECT(x) ((x) << 4) |
191 | # define NUM_BANKS(x) ((x) << 6) | 191 | # define NUM_BANKS(x) ((x) << 6) |
192 | 192 | ||
193 | #define MSG_ENTER_RLC_SAFE_MODE 1 | 193 | #define MSG_ENTER_RLC_SAFE_MODE 1 |
194 | #define MSG_EXIT_RLC_SAFE_MODE 0 | 194 | #define MSG_EXIT_RLC_SAFE_MODE 0 |
195 | 195 | ||
196 | /* | 196 | /* |
197 | * PM4 | 197 | * PM4 |
diff --git a/drivers/gpu/drm/amd/amdgpu/cz_ih.c b/drivers/gpu/drm/amd/amdgpu/cz_ih.c index 23bd9122b15d..874b92899797 100644 --- a/drivers/gpu/drm/amd/amdgpu/cz_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/cz_ih.c | |||
@@ -222,7 +222,7 @@ static void cz_ih_decode_iv(struct amdgpu_device *adev, | |||
222 | /* wptr/rptr are in bytes! */ | 222 | /* wptr/rptr are in bytes! */ |
223 | u32 ring_index = adev->irq.ih.rptr >> 2; | 223 | u32 ring_index = adev->irq.ih.rptr >> 2; |
224 | uint32_t dw[4]; | 224 | uint32_t dw[4]; |
225 | 225 | ||
226 | dw[0] = le32_to_cpu(adev->irq.ih.ring[ring_index + 0]); | 226 | dw[0] = le32_to_cpu(adev->irq.ih.ring[ring_index + 0]); |
227 | dw[1] = le32_to_cpu(adev->irq.ih.ring[ring_index + 1]); | 227 | dw[1] = le32_to_cpu(adev->irq.ih.ring[ring_index + 1]); |
228 | dw[2] = le32_to_cpu(adev->irq.ih.ring[ring_index + 2]); | 228 | dw[2] = le32_to_cpu(adev->irq.ih.ring[ring_index + 2]); |
diff --git a/drivers/gpu/drm/amd/amdgpu/cz_smumgr.h b/drivers/gpu/drm/amd/amdgpu/cz_smumgr.h index 924d355b4e2c..026342fcf0f3 100644 --- a/drivers/gpu/drm/amd/amdgpu/cz_smumgr.h +++ b/drivers/gpu/drm/amd/amdgpu/cz_smumgr.h | |||
@@ -77,7 +77,7 @@ struct cz_smu_private_data { | |||
77 | uint8_t driver_buffer_length; | 77 | uint8_t driver_buffer_length; |
78 | uint8_t scratch_buffer_length; | 78 | uint8_t scratch_buffer_length; |
79 | uint16_t toc_entry_used_count; | 79 | uint16_t toc_entry_used_count; |
80 | uint16_t toc_entry_initialize_index; | 80 | uint16_t toc_entry_initialize_index; |
81 | uint16_t toc_entry_power_profiling_index; | 81 | uint16_t toc_entry_power_profiling_index; |
82 | uint16_t toc_entry_aram; | 82 | uint16_t toc_entry_aram; |
83 | uint16_t toc_entry_ih_register_restore_task_index; | 83 | uint16_t toc_entry_ih_register_restore_task_index; |
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c index a82945f3a5d2..4ea4b4eb0bc5 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | |||
@@ -603,7 +603,7 @@ static const u32 stoney_golden_settings_a11[] = | |||
603 | mmPA_SC_LINE_STIPPLE_STATE, 0x0000ff0f, 0x00000000, | 603 | mmPA_SC_LINE_STIPPLE_STATE, 0x0000ff0f, 0x00000000, |
604 | mmRLC_CGCG_CGLS_CTRL, 0x00000003, 0x0001003c, | 604 | mmRLC_CGCG_CGLS_CTRL, 0x00000003, 0x0001003c, |
605 | mmTA_CNTL_AUX, 0x000f000f, 0x000b0000, | 605 | mmTA_CNTL_AUX, 0x000f000f, 0x000b0000, |
606 | mmTCC_CTRL, 0x00100000, 0xf31fff7f, | 606 | mmTCC_CTRL, 0x00100000, 0xf31fff7f, |
607 | mmTCC_EXE_DISABLE, 0x00000002, 0x00000002, | 607 | mmTCC_EXE_DISABLE, 0x00000002, 0x00000002, |
608 | mmTCP_ADDR_CONFIG, 0x0000000f, 0x000000f1, | 608 | mmTCP_ADDR_CONFIG, 0x0000000f, 0x000000f1, |
609 | mmTCP_CHAN_STEER_LO, 0xffffffff, 0x10101010, | 609 | mmTCP_CHAN_STEER_LO, 0xffffffff, 0x10101010, |
diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c index e1d6ae7e1629..55b35daa1ac9 100644 --- a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | |||
@@ -40,9 +40,9 @@ | |||
40 | 40 | ||
41 | #define GRBM_GFX_INDEX__VCE_INSTANCE__SHIFT 0x04 | 41 | #define GRBM_GFX_INDEX__VCE_INSTANCE__SHIFT 0x04 |
42 | #define GRBM_GFX_INDEX__VCE_INSTANCE_MASK 0x10 | 42 | #define GRBM_GFX_INDEX__VCE_INSTANCE_MASK 0x10 |
43 | #define mmVCE_LMI_VCPU_CACHE_40BIT_BAR0 0x8616 | 43 | #define mmVCE_LMI_VCPU_CACHE_40BIT_BAR0 0x8616 |
44 | #define mmVCE_LMI_VCPU_CACHE_40BIT_BAR1 0x8617 | 44 | #define mmVCE_LMI_VCPU_CACHE_40BIT_BAR1 0x8617 |
45 | #define mmVCE_LMI_VCPU_CACHE_40BIT_BAR2 0x8618 | 45 | #define mmVCE_LMI_VCPU_CACHE_40BIT_BAR2 0x8618 |
46 | 46 | ||
47 | #define VCE_V3_0_FW_SIZE (384 * 1024) | 47 | #define VCE_V3_0_FW_SIZE (384 * 1024) |
48 | #define VCE_V3_0_STACK_SIZE (64 * 1024) | 48 | #define VCE_V3_0_STACK_SIZE (64 * 1024) |
diff --git a/drivers/gpu/drm/amd/amdgpu/vid.h b/drivers/gpu/drm/amd/amdgpu/vid.h index ace49976f7be..3bf7172ede43 100644 --- a/drivers/gpu/drm/amd/amdgpu/vid.h +++ b/drivers/gpu/drm/amd/amdgpu/vid.h | |||
@@ -365,7 +365,7 @@ | |||
365 | #define VCE_CMD_IB 0x00000002 | 365 | #define VCE_CMD_IB 0x00000002 |
366 | #define VCE_CMD_FENCE 0x00000003 | 366 | #define VCE_CMD_FENCE 0x00000003 |
367 | #define VCE_CMD_TRAP 0x00000004 | 367 | #define VCE_CMD_TRAP 0x00000004 |
368 | #define VCE_CMD_IB_AUTO 0x00000005 | 368 | #define VCE_CMD_IB_AUTO 0x00000005 |
369 | #define VCE_CMD_SEMAPHORE 0x00000006 | 369 | #define VCE_CMD_SEMAPHORE 0x00000006 |
370 | 370 | ||
371 | #endif | 371 | #endif |
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/fiji_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/fiji_hwmgr.c index 55e877c4b862..d05a5e0ab87f 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/fiji_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/fiji_hwmgr.c | |||
@@ -465,14 +465,14 @@ static int fiji_set_private_data_based_on_pptable(struct pp_hwmgr *hwmgr) | |||
465 | table_info->vdd_dep_on_mclk; | 465 | table_info->vdd_dep_on_mclk; |
466 | 466 | ||
467 | PP_ASSERT_WITH_CODE(allowed_sclk_vdd_table != NULL, | 467 | PP_ASSERT_WITH_CODE(allowed_sclk_vdd_table != NULL, |
468 | "VDD dependency on SCLK table is missing. \ | 468 | "VDD dependency on SCLK table is missing. \ |
469 | This table is mandatory", return -EINVAL); | 469 | This table is mandatory", return -EINVAL); |
470 | PP_ASSERT_WITH_CODE(allowed_sclk_vdd_table->count >= 1, | 470 | PP_ASSERT_WITH_CODE(allowed_sclk_vdd_table->count >= 1, |
471 | "VDD dependency on SCLK table has to have is missing. \ | 471 | "VDD dependency on SCLK table has to have is missing. \ |
472 | This table is mandatory", return -EINVAL); | 472 | This table is mandatory", return -EINVAL); |
473 | 473 | ||
474 | PP_ASSERT_WITH_CODE(allowed_mclk_vdd_table != NULL, | 474 | PP_ASSERT_WITH_CODE(allowed_mclk_vdd_table != NULL, |
475 | "VDD dependency on MCLK table is missing. \ | 475 | "VDD dependency on MCLK table is missing. \ |
476 | This table is mandatory", return -EINVAL); | 476 | This table is mandatory", return -EINVAL); |
477 | PP_ASSERT_WITH_CODE(allowed_mclk_vdd_table->count >= 1, | 477 | PP_ASSERT_WITH_CODE(allowed_mclk_vdd_table->count >= 1, |
478 | "VDD dependency on MCLK table has to have is missing. \ | 478 | "VDD dependency on MCLK table has to have is missing. \ |
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c index 010199fb7126..dbdcc68b17b2 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/polaris10_hwmgr.c | |||
@@ -2900,14 +2900,14 @@ static int polaris10_set_private_data_based_on_pptable(struct pp_hwmgr *hwmgr) | |||
2900 | table_info->vdd_dep_on_mclk; | 2900 | table_info->vdd_dep_on_mclk; |
2901 | 2901 | ||
2902 | PP_ASSERT_WITH_CODE(allowed_sclk_vdd_table != NULL, | 2902 | PP_ASSERT_WITH_CODE(allowed_sclk_vdd_table != NULL, |
2903 | "VDD dependency on SCLK table is missing. \ | 2903 | "VDD dependency on SCLK table is missing. \ |
2904 | This table is mandatory", return -EINVAL); | 2904 | This table is mandatory", return -EINVAL); |
2905 | PP_ASSERT_WITH_CODE(allowed_sclk_vdd_table->count >= 1, | 2905 | PP_ASSERT_WITH_CODE(allowed_sclk_vdd_table->count >= 1, |
2906 | "VDD dependency on SCLK table has to have is missing. \ | 2906 | "VDD dependency on SCLK table has to have is missing. \ |
2907 | This table is mandatory", return -EINVAL); | 2907 | This table is mandatory", return -EINVAL); |
2908 | 2908 | ||
2909 | PP_ASSERT_WITH_CODE(allowed_mclk_vdd_table != NULL, | 2909 | PP_ASSERT_WITH_CODE(allowed_mclk_vdd_table != NULL, |
2910 | "VDD dependency on MCLK table is missing. \ | 2910 | "VDD dependency on MCLK table is missing. \ |
2911 | This table is mandatory", return -EINVAL); | 2911 | This table is mandatory", return -EINVAL); |
2912 | PP_ASSERT_WITH_CODE(allowed_mclk_vdd_table->count >= 1, | 2912 | PP_ASSERT_WITH_CODE(allowed_mclk_vdd_table->count >= 1, |
2913 | "VDD dependency on MCLK table has to have is missing. \ | 2913 | "VDD dependency on MCLK table has to have is missing. \ |
@@ -4628,7 +4628,7 @@ int polaris10_upload_mc_firmware(struct pp_hwmgr *hwmgr) | |||
4628 | data->need_long_memory_training = true; | 4628 | data->need_long_memory_training = true; |
4629 | 4629 | ||
4630 | /* | 4630 | /* |
4631 | * PPMCME_FirmwareDescriptorEntry *pfd = NULL; | 4631 | * PPMCME_FirmwareDescriptorEntry *pfd = NULL; |
4632 | pfd = &tonga_mcmeFirmware; | 4632 | pfd = &tonga_mcmeFirmware; |
4633 | if (0 == PHM_READ_FIELD(hwmgr->device, MC_SEQ_SUP_CNTL, RUN)) | 4633 | if (0 == PHM_READ_FIELD(hwmgr->device, MC_SEQ_SUP_CNTL, RUN)) |
4634 | polaris10_load_mc_microcode(hwmgr, pfd->dpmThreshold, | 4634 | polaris10_load_mc_microcode(hwmgr, pfd->dpmThreshold, |
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c b/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c index 8ba3ad5e7111..da9f5f1b6dc2 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/ppatomctrl.c | |||
@@ -1041,10 +1041,10 @@ int atomctrl_calculate_voltage_evv_on_sclk( | |||
1041 | } | 1041 | } |
1042 | 1042 | ||
1043 | /** atomctrl_get_voltage_evv_on_sclk gets voltage via call to ATOM COMMAND table. | 1043 | /** atomctrl_get_voltage_evv_on_sclk gets voltage via call to ATOM COMMAND table. |
1044 | * @param hwmgr input: pointer to hwManager | 1044 | * @param hwmgr input: pointer to hwManager |
1045 | * @param voltage_type input: type of EVV voltage VDDC or VDDGFX | 1045 | * @param voltage_type input: type of EVV voltage VDDC or VDDGFX |
1046 | * @param sclk input: in 10Khz unit. DPM state SCLK frequency | 1046 | * @param sclk input: in 10Khz unit. DPM state SCLK frequency |
1047 | * which is define in PPTable SCLK/VDDC dependence | 1047 | * which is define in PPTable SCLK/VDDC dependence |
1048 | * table associated with this virtual_voltage_Id | 1048 | * table associated with this virtual_voltage_Id |
1049 | * @param virtual_voltage_Id input: voltage id which match per voltage DPM state: 0xff01, 0xff02.. 0xff08 | 1049 | * @param virtual_voltage_Id input: voltage id which match per voltage DPM state: 0xff01, 0xff02.. 0xff08 |
1050 | * @param voltage output: real voltage level in unit of mv | 1050 | * @param voltage output: real voltage level in unit of mv |
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c index 670b6288933f..d79af48ca9a5 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.c | |||
@@ -2683,7 +2683,7 @@ static int tonga_populate_all_memory_levels(struct pp_hwmgr *hwmgr) | |||
2683 | struct TONGA_DLL_SPEED_SETTING { | 2683 | struct TONGA_DLL_SPEED_SETTING { |
2684 | uint16_t Min; /* Minimum Data Rate*/ | 2684 | uint16_t Min; /* Minimum Data Rate*/ |
2685 | uint16_t Max; /* Maximum Data Rate*/ | 2685 | uint16_t Max; /* Maximum Data Rate*/ |
2686 | uint32_t dll_speed; /* The desired DLL_SPEED setting*/ | 2686 | uint32_t dll_speed; /* The desired DLL_SPEED setting*/ |
2687 | }; | 2687 | }; |
2688 | 2688 | ||
2689 | static int tonga_populate_clock_stretcher_data_table(struct pp_hwmgr *hwmgr) | 2689 | static int tonga_populate_clock_stretcher_data_table(struct pp_hwmgr *hwmgr) |
@@ -3316,14 +3316,14 @@ static int tonga_set_private_var_based_on_pptale(struct pp_hwmgr *hwmgr) | |||
3316 | pptable_info->vdd_dep_on_mclk; | 3316 | pptable_info->vdd_dep_on_mclk; |
3317 | 3317 | ||
3318 | PP_ASSERT_WITH_CODE(allowed_sclk_vdd_table != NULL, | 3318 | PP_ASSERT_WITH_CODE(allowed_sclk_vdd_table != NULL, |
3319 | "VDD dependency on SCLK table is missing. \ | 3319 | "VDD dependency on SCLK table is missing. \ |
3320 | This table is mandatory", return -1); | 3320 | This table is mandatory", return -1); |
3321 | PP_ASSERT_WITH_CODE(allowed_sclk_vdd_table->count >= 1, | 3321 | PP_ASSERT_WITH_CODE(allowed_sclk_vdd_table->count >= 1, |
3322 | "VDD dependency on SCLK table has to have is missing. \ | 3322 | "VDD dependency on SCLK table has to have is missing. \ |
3323 | This table is mandatory", return -1); | 3323 | This table is mandatory", return -1); |
3324 | 3324 | ||
3325 | PP_ASSERT_WITH_CODE(allowed_mclk_vdd_table != NULL, | 3325 | PP_ASSERT_WITH_CODE(allowed_mclk_vdd_table != NULL, |
3326 | "VDD dependency on MCLK table is missing. \ | 3326 | "VDD dependency on MCLK table is missing. \ |
3327 | This table is mandatory", return -1); | 3327 | This table is mandatory", return -1); |
3328 | PP_ASSERT_WITH_CODE(allowed_mclk_vdd_table->count >= 1, | 3328 | PP_ASSERT_WITH_CODE(allowed_mclk_vdd_table->count >= 1, |
3329 | "VDD dependency on MCLK table has to have is missing. \ | 3329 | "VDD dependency on MCLK table has to have is missing. \ |
diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.h b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.h index c6a6b4006dc1..573cd39fe78d 100644 --- a/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.h +++ b/drivers/gpu/drm/amd/powerplay/hwmgr/tonga_hwmgr.h | |||
@@ -74,7 +74,7 @@ struct tonga_power_state { | |||
74 | }; | 74 | }; |
75 | 75 | ||
76 | struct _phw_tonga_dpm_level { | 76 | struct _phw_tonga_dpm_level { |
77 | bool enabled; | 77 | bool enabled; |
78 | uint32_t value; | 78 | uint32_t value; |
79 | uint32_t param1; | 79 | uint32_t param1; |
80 | }; | 80 | }; |
@@ -237,20 +237,20 @@ struct tonga_hwmgr { | |||
237 | irq_handler_func_t ctf_callback; | 237 | irq_handler_func_t ctf_callback; |
238 | void *ctf_context; | 238 | void *ctf_context; |
239 | 239 | ||
240 | phw_tonga_clock_registers clock_registers; | 240 | phw_tonga_clock_registers clock_registers; |
241 | phw_tonga_voltage_smio_registers voltage_smio_registers; | 241 | phw_tonga_voltage_smio_registers voltage_smio_registers; |
242 | 242 | ||
243 | bool is_memory_GDDR5; | 243 | bool is_memory_GDDR5; |
244 | uint16_t acpi_vddc; | 244 | uint16_t acpi_vddc; |
245 | bool pspp_notify_required; /* Flag to indicate if PSPP notification to SBIOS is required */ | 245 | bool pspp_notify_required; /* Flag to indicate if PSPP notification to SBIOS is required */ |
246 | uint16_t force_pcie_gen; /* The forced PCI-E speed if not 0xffff */ | 246 | uint16_t force_pcie_gen; /* The forced PCI-E speed if not 0xffff */ |
247 | uint16_t acpi_pcie_gen; /* The PCI-E speed at ACPI time */ | 247 | uint16_t acpi_pcie_gen; /* The PCI-E speed at ACPI time */ |
248 | uint32_t pcie_gen_cap; /* The PCI-E speed capabilities bitmap from CAIL */ | 248 | uint32_t pcie_gen_cap; /* The PCI-E speed capabilities bitmap from CAIL */ |
249 | uint32_t pcie_lane_cap; /* The PCI-E lane capabilities bitmap from CAIL */ | 249 | uint32_t pcie_lane_cap; /* The PCI-E lane capabilities bitmap from CAIL */ |
250 | uint32_t pcie_spc_cap; /* Symbol Per Clock Capabilities from registry */ | 250 | uint32_t pcie_spc_cap; /* Symbol Per Clock Capabilities from registry */ |
251 | phw_tonga_leakage_voltage vddc_leakage; /* The Leakage VDDC supported (based on leakage ID).*/ | 251 | phw_tonga_leakage_voltage vddc_leakage; /* The Leakage VDDC supported (based on leakage ID).*/ |
252 | phw_tonga_leakage_voltage vddcgfx_leakage; /* The Leakage VDDC supported (based on leakage ID). */ | 252 | phw_tonga_leakage_voltage vddcgfx_leakage; /* The Leakage VDDC supported (based on leakage ID). */ |
253 | phw_tonga_leakage_voltage vddci_leakage; /* The Leakage VDDCI supported (based on leakage ID). */ | 253 | phw_tonga_leakage_voltage vddci_leakage; /* The Leakage VDDCI supported (based on leakage ID). */ |
254 | 254 | ||
255 | uint32_t mvdd_control; | 255 | uint32_t mvdd_control; |
256 | uint32_t vddc_mask_low; | 256 | uint32_t vddc_mask_low; |
@@ -263,8 +263,8 @@ struct tonga_hwmgr { | |||
263 | uint32_t mclk_stutter_mode_threshold; | 263 | uint32_t mclk_stutter_mode_threshold; |
264 | uint32_t mclk_edc_enable_threshold; | 264 | uint32_t mclk_edc_enable_threshold; |
265 | uint32_t mclk_edc_wr_enable_threshold; | 265 | uint32_t mclk_edc_wr_enable_threshold; |
266 | bool is_uvd_enabled; | 266 | bool is_uvd_enabled; |
267 | bool is_xdma_enabled; | 267 | bool is_xdma_enabled; |
268 | phw_tonga_vbios_boot_state vbios_boot_state; | 268 | phw_tonga_vbios_boot_state vbios_boot_state; |
269 | 269 | ||
270 | bool battery_state; | 270 | bool battery_state; |
diff --git a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h index c96e5b1baae0..fd4ce7aaeee9 100644 --- a/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h +++ b/drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | |||
@@ -500,7 +500,7 @@ struct phm_dynamic_state_info { | |||
500 | struct phm_ppm_table *ppm_parameter_table; | 500 | struct phm_ppm_table *ppm_parameter_table; |
501 | struct phm_cac_tdp_table *cac_dtp_table; | 501 | struct phm_cac_tdp_table *cac_dtp_table; |
502 | struct phm_clock_voltage_dependency_table *vdd_gfx_dependency_on_sclk; | 502 | struct phm_clock_voltage_dependency_table *vdd_gfx_dependency_on_sclk; |
503 | struct phm_vq_budgeting_table *vq_budgeting_table; | 503 | struct phm_vq_budgeting_table *vq_budgeting_table; |
504 | }; | 504 | }; |
505 | 505 | ||
506 | struct pp_fan_info { | 506 | struct pp_fan_info { |
diff --git a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h index 169f70fe949c..070095a9433c 100644 --- a/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h +++ b/drivers/gpu/drm/amd/scheduler/gpu_scheduler.h | |||
@@ -74,7 +74,7 @@ struct amd_sched_fence { | |||
74 | struct amd_gpu_scheduler *sched; | 74 | struct amd_gpu_scheduler *sched; |
75 | spinlock_t lock; | 75 | spinlock_t lock; |
76 | void *owner; | 76 | void *owner; |
77 | struct amd_sched_job *s_job; | 77 | struct amd_sched_job *s_job; |
78 | }; | 78 | }; |
79 | 79 | ||
80 | struct amd_sched_job { | 80 | struct amd_sched_job { |