drm/amdgpu: fix typos
Subsystems (2)
PATCH 1/3 drm/amdgpu: fix typos
Found some typos while exploring amdgpu code.
Signed-off-by Alexandre Demers <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 2 +- drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c | 6 +++--- drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c | 3 ++- drivers/gpu/drm/amd/amdgpu/vce_v2_0.c | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c +1 -1
@@ -269,7 +269,7 @@ void amdgpu_gmc_sysvm_location(struct amdgpu_device *adev, struct amdgpu_gmc *mc* @mc: memory controller structure holding memory information * @gart_placement: GART placement policy with respect to VRAM * -* Function will place try to place GART before or after VRAM. +* Function will try to place GART before or after VRAM. * If GART size is bigger than space left then we ajust GART size. * Thus function will never fails. */
drivers/gpu/drm/amd/amdgpu/uvd_v3_1.c +3 -3
@@ -98,7 +98,7 @@ static void uvd_v3_1_ring_emit_ib(struct amdgpu_ring *ring, }/** -* uvd_v3_1_ring_emit_fence - emit an fence & trap command +* uvd_v3_1_ring_emit_fence - emit a fence & trap command * * @ring: amdgpu_ring pointer * @addr: address
@@ -242,7 +242,7 @@ static void uvd_v3_1_mc_resume(struct amdgpu_device *adev)uint64_t addr;uint32_t size; -/* programm the VCPU memory controller bits 0-27 */ +/* program the VCPU memory controller bits 0-27 */ addr = (adev->uvd.inst->gpu_addr +AMDGPU_UVD_FIRMWARE_OFFSET ) >>3 ; size =AMDGPU_UVD_FIRMWARE_SIZE (adev) >>3 ;WREG32 (mmUVD_VCPU_CACHE_OFFSET0, addr);
@@ -416,7 +416,7 @@ static int uvd_v3_1_start(struct amdgpu_device *adev)/* Set the write pointer delay */ WREG32 (mmUVD_RBC_RB_WPTR_CNTL,0 ); -/* programm the 4GB memory segment for rptr and ring buffer */ +/* Program the 4GB memory segment for rptr and ring buffer */ WREG32 (mmUVD_LMI_EXT40_ADDR,upper_32_bits (ring->gpu_addr) | (0x7 <<16 ) | (0x1 <<31 ));
drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c +2 -1
@@ -302,7 +302,7 @@ static int uvd_v4_2_start(struct amdgpu_device *adev)/* enable VCPU clock */ WREG32 (mmUVD_VCPU_CNTL,1 <<9 ); -/* disable interupt */ +/* disable interrupt */ WREG32_P (mmUVD_MASTINT_EN,0 , ~(1 <<1 ));#ifdef __BIG_ENDIAN
@@ -312,6 +312,7 @@ static int uvd_v4_2_start(struct amdgpu_device *adev)#endif WREG32 (mmUVD_LMI_SWAP_CNTL, lmi_swap_cntl);WREG32 (mmUVD_MP_SWAP_CNTL, mp_swap_cntl); +/* initialize UVD memory controller */ WREG32 (mmUVD_LMI_CTRL,0x203108 );
drivers/gpu/drm/amd/amdgpu/vce_v2_0.c +1 -1
@@ -280,7 +280,7 @@ static int vce_v2_0_stop(struct amdgpu_device *adev)if (vce_v2_0_lmi_clean (adev)) { -DRM_INFO ("vce is not idle \n" ); +DRM_INFO ("VCE is not idle \n" );return 0 ; }
Signature · 1 line
2.48.1
PATCH 2/3 drm/radeon: fix typos
Found some typos while exploring radeon code.
Signed-off-by Alexandre Demers <[email protected]>
--- drivers/gpu/drm/radeon/radeon_device.c | 6 +++--- drivers/gpu/drm/radeon/radeon_fence.c | 2 +- drivers/gpu/drm/radeon/si.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-)
drivers/gpu/drm/radeon/radeon_device.c +3 -3
@@ -530,7 +530,7 @@ int radeon_wb_init(struct radeon_device *rdev)* @mc: memory controller structure holding memory informations * @base: base address at which to put VRAM * -* Function will place try to place VRAM at base address provided +* Function will try to place VRAM at base address provided * as parameter (which is so far either PCI aperture address or * for IGP TOM base address). *
@@ -557,7 +557,7 @@ int radeon_wb_init(struct radeon_device *rdev)* * Note 3: when limiting vram it's safe to overwritte real_vram_size because * we are not in case where real_vram_size is inferior to mc_vram_size (ie -* note afected by bogus hw of Novell bug 204882 + along with lots of ubuntu +* note affected by bogus hw of Novell bug 204882 + along with lots of ubuntu * ones) * * Note 4: IGP TOM addr should be the same as the aperture addr, we don't
@@ -594,7 +594,7 @@ void radeon_vram_location(struct radeon_device *rdev, struct radeon_mc *mc, u64* @rdev: radeon device structure holding all necessary informations * @mc: memory controller structure holding memory informations * -* Function will place try to place GTT before or after VRAM. +* Function will try to place GTT before or after VRAM. * * If GTT size is bigger than space left then we ajust GTT size. * Thus function will never fails.
drivers/gpu/drm/radeon/radeon_fence.c +1 -1
@@ -840,7 +840,7 @@ int radeon_fence_driver_start_ring(struct radeon_device *rdev, int ring) }radeon_fence_write (rdev,atomic64_read (&rdev->fence_drv[ring].last_seq), ring); rdev->fence_drv[ring].initialized = true; -dev_info (rdev->dev,"fence driver on ring %d use gpu addr 0x%016llx\n" , +dev_info (rdev->dev,"fence driver on ring %d uses gpu addr 0x%016llx\n" , ring, rdev->fence_drv[ring].gpu_addr);return 0 ; }
drivers/gpu/drm/radeon/si.c +1 -1
@@ -6198,7 +6198,7 @@ static inline u32 si_get_ih_wptr(struct radeon_device *rdev)if (wptr &RB_OVERFLOW ) { wptr &= ~RB_OVERFLOW ; -/* When a ring buffer overflow happen start parsing interrupt +/* When a ring buffer overflow happens, start parsing interrupt * from the last not overwritten vector (wptr + 16). Hopefully * this should allow us to catchup. */
Signature · 1 line
2.48.1
PATCH 3/3 drm/amdgpu: fix typos in SI
In reply to Alexandre DemersFix typos
Signed-off-by Alexandre Demers <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/si.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/si.c +3 -3
@@ -919,7 +919,7 @@ static const u32 hainan_mgcg_cgcg_init[] =/* XXX: update when we support VCE */ #if 0 -/* tahiti, pitcarin, verde */ +/* tahiti, pitcairn, verde */ static const struct amdgpu_video_codec_info tahiti_video_codecs_encode_array[] = { {
@@ -950,7 +950,7 @@ static const struct amdgpu_video_codecs hainan_video_codecs_encode = .codec_array = NULL, }; -/* tahiti, pitcarin, verde, oland */ +/* tahiti, pitcairn, verde, oland */ static const struct amdgpu_video_codec_info tahiti_video_codecs_decode_array[] = { {
@@ -1898,7 +1898,7 @@ static int si_vce_send_vcepll_ctlreq(struct amdgpu_device *adev)WREG32_SMC_P (CG_VCEPLL_FUNC_CNTL ,0 , ~UPLL_CTLREQ_MASK );if (i ==SI_MAX_CTLACKS_ASSERTION_WAIT ) { -DRM_ERROR ("Timeout setting UVD clocks!\n" ); +DRM_ERROR ("Timeout setting VCE clocks!\n" );return -ETIMEDOUT ; }
Signature · 1 line
2.48.1
Re: [PATCH 3/3] drm/amdgpu: fix typos in SI
Applied this series with some minor changes.
Thanks!
Alex
Quoted 42 lines · Alexandre Demers
Fix typos
Signed-off-by Alexandre Demers <[email protected]>--- drivers/gpu/drm/amd/amdgpu/si.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/gpu/drm/amd/amdgpu/si.c +3
-4@@ -919,7 +919,7 @@ static const u32 hainan_mgcg_cgcg_init[] =/* XXX: update when we support VCE */ #if 0 -/* tahiti, pitcarin, verde */ +/* tahiti, pitcairn, verde */ static const struct amdgpu_video_codec_info tahiti_video_codecs_encode_array[] = { {@@ -950,7 +950,7 @@ static const struct amdgpu_video_codecs hainan_video_codecs_encode = .codec_array = NULL, }; -/* tahiti, pitcarin, verde, oland */ +/* tahiti, pitcairn, verde, oland */ static const struct amdgpu_video_codec_info tahiti_video_codecs_decode_array[] = { {@@ -1898,7 +1898,7 @@ static int si_vce_send_vcepll_ctlreq(struct amdgpu_device *adev)WREG32_SMC_P (CG_VCEPLL_FUNC_CNTL ,0 , ~UPLL_CTLREQ_MASK );if (i ==SI_MAX_CTLACKS_ASSERTION_WAIT ) { -DRM_ERROR ("Timeout setting UVD clocks!\n" ); +DRM_ERROR ("Timeout setting VCE clocks!\n" );return -ETIMEDOUT ; } --2.48.1