Skip to contentSkip to conversation

drm/amd: Fix spelling typo in comments

PATCH Applied [email protected] 2 participants 2 messages May 26, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd: Fix spelling typo in comments

From: pengfuyuan <[email protected]>

Fix spelling typo in comments.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu.h                       | 2 +-
 drivers/gpu/drm/amd/amdgpu/mes_api_def.h                  | 2 +-
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c         | 2 +-
 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c               | 4 ++--
 drivers/gpu/drm/amd/display/modules/vmid/vmid.c           | 2 +-
 drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/arcturus_ppsmc.h | 2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +1 -1
index 7606e3b6361e..35c303c865be 100644
@@ -271,7 +271,7 @@ extern int amdgpu_vcnfw_log;
 #define CIK_CURSOR_WIDTH 128
 #define CIK_CURSOR_HEIGHT 128
 
-/* smasrt shift bias level limits */
+/* smart shift bias level limits */
 #define AMDGPU_SMARTSHIFT_MAX_BIAS (100)
 #define AMDGPU_SMARTSHIFT_MIN_BIAS (-100)
 
drivers/gpu/drm/amd/amdgpu/mes_api_def.h +1 -1
index 3f4fca5fd1da..c31abf554878 100644
@@ -33,7 +33,7 @@
  */
 enum { API_FRAME_SIZE_IN_DWORDS = 64 };
 
-/* To avoid command in scheduler context to be overwritten whenenver mutilple
+/* To avoid command in scheduler context to be overwritten whenever multiple
  * interrupts come in, this creates another queue.
  */
 enum { API_NUMBER_OF_COMMAND_MAX = 32 };
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -1
index 62139ff35476..8855a75dc75e 100644
@@ -6705,7 +6705,7 @@ static void dm_disable_vblank(struct drm_crtc *crtc)
 	dm_set_vblank(crtc, false);
 }
 
-/* Implemented only the options currently availible for the driver */
+/* Implemented only the options currently available for the driver */
 static const struct drm_crtc_funcs amdgpu_dm_crtc_funcs = {
 	.reset = dm_crtc_reset_state,
 	.destroy = amdgpu_dm_crtc_destroy,
drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c +2 -2
index 4385d19bc489..733f99a6e8e6 100644
@@ -619,7 +619,7 @@ static int get_max_dsc_slices(union dsc_enc_slice_caps slice_caps)
 }
 
 
-// Increment sice number in available sice numbers stops if possible, or just increment if not
+// Increment slice number in available slice numbers stops if possible, or just increment if not
 static int inc_num_slices(union dsc_enc_slice_caps slice_caps, int num_slices)
 {
 	// Get next bigger num slices available in common caps
@@ -650,7 +650,7 @@ static int inc_num_slices(union dsc_enc_slice_caps slice_caps, int num_slices)
 }
 
 
-// Decrement sice number in available sice numbers stops if possible, or just decrement if not. Stop at zero.
+// Decrement slice number in available slice numbers stops if possible, or just decrement if not. Stop at zero.
 static int dec_num_slices(union dsc_enc_slice_caps slice_caps, int num_slices)
 {
 	// Get next bigger num slices available in common caps
drivers/gpu/drm/amd/display/modules/vmid/vmid.c +1 -1
index 61ee4be35d27..2c40212d86da 100644
@@ -66,7 +66,7 @@ static void evict_vmids(struct core_vmid *core_vmid)
 	}
 }
 
-// Return value of -1 indicates vmid table unitialized or ptb dne in the table
+// Return value of -1 indicates vmid table uninitialized or ptb dne in the table
 static int get_existing_vmid_for_ptb(struct core_vmid *core_vmid, uint64_t ptb)
 {
 	int i;
drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/arcturus_ppsmc.h +1 -1
index 45f5d29bc705..15b313baa0ee 100644
@@ -120,7 +120,7 @@
 #define PPSMC_MSG_ReadSerialNumTop32		 0x40
 #define PPSMC_MSG_ReadSerialNumBottom32		 0x41
 
-/* paramater for MSG_LightSBR
+/* parameter for MSG_LightSBR
  * 1 -- Enable light secondary bus reset, only do nbio respond without further handling,
  *      leave driver to handle the real reset
  * 0 -- Disable LightSBR, default behavior, SMU will pass the reset to PSP
Signature · 5 lines
2.25.1


No virus found
		Checked by Hillstone Network AntiVirus
Applied
#1 lore raw

Applied. Thanks!

Alex

Quoted 109 lines · On Thu, May 26, 2022 at 5:29 AM <[email protected]> wrote:

From: pengfuyuan <[email protected]>

Fix spelling typo in comments.

---
 drivers/gpu/drm/amd/amdgpu/amdgpu.h                       | 2 +-
 drivers/gpu/drm/amd/amdgpu/mes_api_def.h                  | 2 +-
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c         | 2 +-
 drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c               | 4 ++--
 drivers/gpu/drm/amd/display/modules/vmid/vmid.c           | 2 +-
 drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/arcturus_ppsmc.h | 2 +-
 6 files changed, 7 insertions(+), 7 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu.h +1 -1
index 7606e3b6361e..35c303c865be 100644
@@ -271,7 +271,7 @@ extern int amdgpu_vcnfw_log;
 #define CIK_CURSOR_WIDTH 128
 #define CIK_CURSOR_HEIGHT 128
 
-/* smasrt shift bias level limits */
+/* smart shift bias level limits */
 #define AMDGPU_SMARTSHIFT_MAX_BIAS (100)
 #define AMDGPU_SMARTSHIFT_MIN_BIAS (-100)
 
drivers/gpu/drm/amd/amdgpu/mes_api_def.h +1 -1
index 3f4fca5fd1da..c31abf554878 100644
@@ -33,7 +33,7 @@
  */
 enum { API_FRAME_SIZE_IN_DWORDS = 64 };
 
-/* To avoid command in scheduler context to be overwritten whenenver mutilple
+/* To avoid command in scheduler context to be overwritten whenever multiple
  * interrupts come in, this creates another queue.
  */
 enum { API_NUMBER_OF_COMMAND_MAX = 32 };
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +1 -1
index 62139ff35476..8855a75dc75e 100644
@@ -6705,7 +6705,7 @@ static void dm_disable_vblank(struct drm_crtc *crtc)
        dm_set_vblank(crtc, false);
 }
 
-/* Implemented only the options currently availible for the driver */
+/* Implemented only the options currently available for the driver */
 static const struct drm_crtc_funcs amdgpu_dm_crtc_funcs = {
        .reset = dm_crtc_reset_state,
        .destroy = amdgpu_dm_crtc_destroy,
drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c +2 -2
index 4385d19bc489..733f99a6e8e6 100644
@@ -619,7 +619,7 @@ static int get_max_dsc_slices(union dsc_enc_slice_caps slice_caps)
 }
 
 
-// Increment sice number in available sice numbers stops if possible, or just increment if not
+// Increment slice number in available slice numbers stops if possible, or just increment if not
 static int inc_num_slices(union dsc_enc_slice_caps slice_caps, int num_slices)
 {
        // Get next bigger num slices available in common caps
@@ -650,7 +650,7 @@ static int inc_num_slices(union dsc_enc_slice_caps slice_caps, int num_slices)
 }
 
 
-// Decrement sice number in available sice numbers stops if possible, or just decrement if not. Stop at zero.
+// Decrement slice number in available slice numbers stops if possible, or just decrement if not. Stop at zero.
 static int dec_num_slices(union dsc_enc_slice_caps slice_caps, int num_slices)
 {
        // Get next bigger num slices available in common caps
drivers/gpu/drm/amd/display/modules/vmid/vmid.c +1 -1
index 61ee4be35d27..2c40212d86da 100644
@@ -66,7 +66,7 @@ static void evict_vmids(struct core_vmid *core_vmid)
        }
 }
 
-// Return value of -1 indicates vmid table unitialized or ptb dne in the table
+// Return value of -1 indicates vmid table uninitialized or ptb dne in the table
 static int get_existing_vmid_for_ptb(struct core_vmid *core_vmid, uint64_t ptb)
 {
        int i;
drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/arcturus_ppsmc.h +1 -2
index 45f5d29bc705..15b313baa0ee 100644
@@ -120,7 +120,7 @@
 #define PPSMC_MSG_ReadSerialNumTop32            0x40
 #define PPSMC_MSG_ReadSerialNumBottom32                 0x41
 
-/* paramater for MSG_LightSBR
+/* parameter for MSG_LightSBR
  * 1 -- Enable light secondary bus reset, only do nbio respond without further handling,
  *      leave driver to handle the real reset
  * 0 -- Disable LightSBR, default behavior, SMU will pass the reset to PSP
--

2.25.1

No virus found
Checked by Hillstone Network AntiVirus