Skip to contentSkip to conversation

amdgpu: Fix spelling mistakes

PATCH In review Eric Engestrom 4 participants 13 messages Apr 3, 2016 – Apr 7, 2016

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

PATCH 1/7 amdgpu: Fix spelling mistakes

---
 amdgpu/amdgpu.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
amdgpu/amdgpu.h +2 -2
index 0851306..5d5a2c6 100644
@@ -685,7 +685,7 @@ int amdgpu_create_bo_from_user_mem(amdgpu_device_handle dev,
 int amdgpu_bo_free(amdgpu_bo_handle buf_handle);
 
 /**
- * Request CPU access to GPU accessable memory
+ * Request CPU access to GPU accessible memory
  *
  * \param   buf_handle - \c [in] Buffer handle
  * \param   cpu        - \c [out] CPU address to be used for access
@@ -851,7 +851,7 @@ int amdgpu_cs_query_reset_state(amdgpu_context_handle context,
  * order.
  *
  * The caller can specify the user fence buffer/location with the fence_info in the
- * cs_request.The sequence number is returned via the 'seq_no' paramter
+ * cs_request.The sequence number is returned via the 'seq_no' parameter
  * in ibs_request structure.
  *
  *
Signature · 6 lines
2.8.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

PATCH 2/7 exynos: Fix spelling mistake

---
 exynos/exynos_drm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
exynos/exynos_drm.c +1 -1
index e689781..b961e52 100644
@@ -347,7 +347,7 @@ exynos_prime_fd_to_handle(struct exynos_device *dev, int fd, uint32_t *handle)
  *
  * @dev: a exynos device object.
  * @connect: indicate whether connectoin or disconnection request.
- * @ext: indicate whether edid data includes extentions data or not.
+ * @ext: indicate whether edid data includes extensions data or not.
  * @edid: a pointer to edid data from Wireless Display device.
  *
  * this interface is used to request Virtual Display driver connection or
Signature · 6 lines
2.8.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw

PATCH 3/7 freedreno: Fix spelling mistakes

In reply to Eric Engestrom
---
 freedreno/kgsl/kgsl_drm.h | 2 +-
 freedreno/kgsl/msm_kgsl.h | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
freedreno/kgsl/kgsl_drm.h +1 -1
index f1c7f4e..281978e 100644
@@ -81,7 +81,7 @@ struct drm_kgsl_gem_create_fd)
 /* Memory types - these define the source and caching policies
    of the GEM memory chunk */
 
-/* Legacy definitions left for compatability */
+/* Legacy definitions left for compatibility */
 
 #define DRM_KGSL_GEM_TYPE_EBI          0
 #define DRM_KGSL_GEM_TYPE_SMI          1
freedreno/kgsl/msm_kgsl.h +2 -2
index e67190f..5b36eeb 100644
@@ -31,7 +31,7 @@
 #define KGSL_FLAGS_SOFT_RESET  0x00000100
 #define KGSL_FLAGS_PER_CONTEXT_TIMESTAMPS 0x00000200
 
-/* Clock flags to show which clocks should be controled by a given platform */
+/* Clock flags to show which clocks should be controlled by a given platform */
 #define KGSL_CLK_SRC	0x00000001
 #define KGSL_CLK_CORE	0x00000002
 #define KGSL_CLK_IFACE	0x00000004
@@ -295,7 +295,7 @@ struct kgsl_cmdstream_freememontimestamp {
 
 /* Previous versions of this header had incorrectly defined
    IOCTL_KGSL_CMDSTREAM_FREEMEMONTIMESTAMP as a read-only ioctl instead
-   of a write only ioctl.  To ensure binary compatability, the following
+   of a write only ioctl.  To ensure binary compatibility, the following
    #define will be used to intercept the incorrect ioctl
 */
 
Signature · 6 lines
2.8.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#3 lore raw

Re: [PATCH libdrm 3/7] freedreno: Fix spelling mistakes

Hi Eric,

Quoted 4 lines · Eric Engestrom
---
 freedreno/kgsl/kgsl_drm.h | 2 +-
 freedreno/kgsl/msm_kgsl.h | 4 ++--

Not 100% sure how Rob deals with these. Although I'm suspecting that they come from a kernel (similar to the ones in PATCH 5/7).

Rob, is any of the above true - are they from a upstream/downstream kernel somewhere ? If so should we update them here, or in the 'master' project ?

Thanks
Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

Re: [PATCH libdrm 3/7] freedreno: Fix spelling mistakes

Quoted 8 lines · Emil Velikov

Hi Eric,

Quoted 4 lines · Eric Engestrom
---
 freedreno/kgsl/kgsl_drm.h | 2 +-
 freedreno/kgsl/msm_kgsl.h | 4 ++--
Quoted 7 lines

Not 100% sure how Rob deals with these. Although I'm suspecting that they come from a kernel (similar to the ones in PATCH 5/7).

Rob, is any of the above true - are they from a upstream/downstream kernel somewhere ? If so should we update them here, or in the 'master' project ?

Completely forgot:

I'll pull the lot (without 5/7 and optionally this one) as we hear from Rob.

Thank for the patches Eric. Some of these are a bit hard to spot ;-)

-Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

Re: [PATCH libdrm 3/7] freedreno: Fix spelling mistakes

In reply to Emil Velikov
Quoted 8 lines · Emil Velikov

Hi Eric,

Quoted 4 lines · Eric Engestrom
---
 freedreno/kgsl/kgsl_drm.h | 2 +-
 freedreno/kgsl/msm_kgsl.h | 4 ++--
Quoted 6 lines

Not 100% sure how Rob deals with these. Although I'm suspecting that they come from a kernel (similar to the ones in PATCH 5/7).

Rob, is any of the above true - are they from a upstream/downstream kernel somewhere ? If so should we update them here, or in the 'master' project ?

these come from kernel.. but from non-upstream vendor fork, and probably aren't even up to date w/ more recent vendor kernel branches. So I guess, meh? let's just fix it downstream and not worry about it?

BR,
-R

Quoted 2 lines

Thanks
Emil

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw

Re: [PATCH libdrm 3/7] freedreno: Fix spelling mistakes

Quoted 12 lines · Rob Clark
Quoted 11 lines · Emil Velikov

Hi Eric,

Quoted 4 lines · Eric Engestrom
---
 freedreno/kgsl/kgsl_drm.h | 2 +-
 freedreno/kgsl/msm_kgsl.h | 4 ++--

Not 100% sure how Rob deals with these. Although I'm suspecting that they come from a kernel (similar to the ones in PATCH 5/7).

Quoted 8 lines
Quoted 3 lines

Rob, is any of the above true - are they from a upstream/downstream kernel somewhere ? If so should we update them here, or in the 'master' project ?

these come from kernel.. but from non-upstream vendor fork, and probably aren't even up to date w/ more recent vendor kernel branches. So I guess, meh? let's just fix it downstream and not worry about it?

So it's even messier than expected.

Eric, everything but 5/7 is in master now. I'll respin the latter against the kernel and send it over with a few related changes.

Thanks gents,
Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw

PATCH 4/7 intel: Fix spelling mistakes

In reply to Eric Engestrom
---
 intel/intel_bufmgr_fake.c         | 2 +-
 intel/intel_bufmgr_gem.c          | 2 +-
 intel/intel_decode.c              | 2 +-
 intel/tests/gen5-3d.batch-ref.txt | 2 +-
 intel/tests/gen6-3d.batch-ref.txt | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
intel/intel_bufmgr_fake.c +1 -1
index 7f4c7b9..24b3732 100644
@@ -312,7 +312,7 @@ _fence_wait_internal(drm_intel_bufmgr_fake *bufmgr_fake, int seq)
 	 *
 	 * Assume that in userland we treat sequence numbers as ints, which
 	 * makes some of the comparisons convenient, since the sequence
-	 * numbers are all postive signed integers.
+	 * numbers are all positive signed integers.
 	 *
 	 * From this we get several cases we need to handle.  Here's a timeline.
 	 * 0x2   0x7                                    0x7ffffff8   0x7ffffffd
intel/intel_bufmgr_gem.c +1 -1
index dc28200..0a4012b 100644
@@ -3379,7 +3379,7 @@ drm_intel_bufmgr_gem_init(int fd, int batch_size)
 	    bufmgr_gem->gtt_size > 256*1024*1024) {
 		/* The unmappable part of gtt on gen 3 (i.e. above 256MB) can't
 		 * be used for tiled blits. To simplify the accounting, just
-		 * substract the unmappable part (fixed to 256MB on all known
+		 * subtract the unmappable part (fixed to 256MB on all known
 		 * gen3 devices) if the kernel advertises it. */
 		bufmgr_gem->gtt_size -= 256*1024*1024;
 	}
intel/intel_decode.c +1 -1
index 287c342..803d202 100644
@@ -3598,7 +3598,7 @@ decode_3d_965(struct drm_intel_decode *ctx)
 		instr_out(ctx, 0, "3DSTATE_DEPTH_BUFFER\n");
 		if (IS_GEN5(devid) || IS_GEN6(devid))
 			instr_out(ctx, 1,
-				  "%s, %s, pitch = %d bytes, %stiled, HiZ %d, Seperate Stencil %d\n",
+				  "%s, %s, pitch = %d bytes, %stiled, HiZ %d, Separate Stencil %d\n",
 				  get_965_surfacetype(data[1] >> 29),
 				  get_965_depthformat((data[1] >> 18) & 0x7),
 				  (data[1] & 0x0001ffff) + 1,
intel/tests/gen5-3d.batch-ref.txt +1 -1
index a0271ab..51dd85f 100644
@@ -24,7 +24,7 @@
 0x1230005c:      0x00000000:    dword 3
 0x12300060:      0x00000000:    dword 4
 0x12300064:      0x79050004: 3DSTATE_DEPTH_BUFFER
-0x12300068:      0x2c0805ff:    2D, z24s8, pitch = 1536 bytes, tiled, HiZ 0, Seperate Stencil 0
+0x12300068:      0x2c0805ff:    2D, z24s8, pitch = 1536 bytes, tiled, HiZ 0, Separate Stencil 0
 0x1230006c:      0x00000000:    depth offset
 0x12300070:      0x09584ac0:    300x300
 0x12300074:      0x00000000:    volume depth
intel/tests/gen6-3d.batch-ref.txt +1 -1
index 9035663..04cbddc 100644
@@ -140,7 +140,7 @@
 0x1230022c:      0x00000000:    
 0x12300230:      0x00000000:    
 0x12300234:      0x79050005: 3DSTATE_DEPTH_BUFFER
-0x12300238:      0x2c6c05ff:    2D, unknown, pitch = 1536 bytes, tiled, HiZ 1, Seperate Stencil 1
+0x12300238:      0x2c6c05ff:    2D, unknown, pitch = 1536 bytes, tiled, HiZ 1, Separate Stencil 1
 0x1230023c:      0x00000000:    depth offset
 0x12300240:      0x09584ac0:    300x300
 0x12300244:      0x00000000:    volume depth
Signature · 6 lines
2.8.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#8 lore raw

PATCH 5/7 include: Fix spelling mistakes

In reply to Eric Engestrom
---
 include/drm/drm_mode.h   | 2 +-
 include/drm/i915_drm.h   | 2 +-
 include/drm/mga_drm.h    | 2 +-
 include/drm/savage_drm.h | 2 +-
 include/drm/vmwgfx_drm.h | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
include/drm/drm_mode.h +1 -1
index 115f36e..06dd825 100644
@@ -406,7 +406,7 @@ struct drm_mode_mode_cmd {
 #define DRM_MODE_CURSOR_MOVE	(1<<1)
 
 /*
- * depending on the value in flags diffrent members are used.
+ * depending on the value in flags different members are used.
  *
  * CURSOR_BO uses
  *    crtc
include/drm/i915_drm.h +1 -1
index 0e51d42..17a90fa 100644
@@ -958,7 +958,7 @@ struct drm_i915_gem_madvise {
 	__u32 handle;
 
 	/* Advice: either the buffer will be needed again in the near future,
-	 *         or wont be and could be discarded under memory pressure.
+	 *         or won't be and could be discarded under memory pressure.
 	 */
 	__u32 madv;
 
include/drm/mga_drm.h +1 -1
index b630e8f..b7cce73 100644
@@ -107,7 +107,7 @@
  */
 #define MGA_NR_SAREA_CLIPRECTS	8
 
-/* 2 heaps (1 for card, 1 for agp), each divided into upto 128
+/* 2 heaps (1 for card, 1 for agp), each divided into up to 128
  * regions, subject to a minimum region size of (1<<16) == 64k.
  *
  * Clients may subdivide regions internally, but when sharing between
include/drm/savage_drm.h +1 -1
index f7a75ef..e5e27b7 100644
@@ -29,7 +29,7 @@
 #ifndef __SAVAGE_SAREA_DEFINES__
 #define __SAVAGE_SAREA_DEFINES__
 
-/* 2 heaps (1 for card, 1 for agp), each divided into upto 128
+/* 2 heaps (1 for card, 1 for agp), each divided into up to 128
  * regions, subject to a minimum region size of (1<<16) == 64k.
  *
  * Clients may subdivide regions internally, but when sharing between
include/drm/vmwgfx_drm.h +1 -1
index 5b68b4d..16e7dd1 100644
@@ -1025,7 +1025,7 @@ union drm_vmw_gb_surface_reference_arg {
  * for read-only.
  * @drm_vmw_synccpu_write: Sync for write. Block all command submissions
  * referencing this buffer.
- * @drm_vmw_synccpu_dontblock: Dont wait for GPU idle, but rather return
+ * @drm_vmw_synccpu_dontblock: Don't wait for GPU idle, but rather return
  * -EBUSY should the buffer be busy.
  * @drm_vmw_synccpu_allow_cs: Allow command submission that touches the buffer
  * while the buffer is synced for CPU. This is similar to the GEM bo idle
Signature · 6 lines
2.8.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#9 lore raw

Re: [PATCH libdrm 5/7] include: Fix spelling mistakes

Hi Eric,

Quoted 9 lines · Eric Engestrom
---
 include/drm/drm_mode.h   | 2 +-
 include/drm/i915_drm.h   | 2 +-
 include/drm/mga_drm.h    | 2 +-
 include/drm/savage_drm.h | 2 +-
 include/drm/vmwgfx_drm.h | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

Can you please re-spin this patch against the kernel UAPI headers ?

These files are meant to be imported from there, so things will end up badly next time we do.

Thanks
Emil
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

PATCH 6/7 tests: Fix spelling mistakes

In reply to Eric Engestrom
---
 tests/amdgpu/basic_tests.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
tests/amdgpu/basic_tests.c +3 -3
index 4ef6014..599c090 100644
@@ -803,7 +803,7 @@ static void amdgpu_command_submission_write_linear_helper(unsigned ip_type)
 
 		resources[0] = bo;
 
-		/* fullfill PM4: test DMA write-linear */
+		/* fulfill PM4: test DMA write-linear */
 		i = j = 0;
 		if (ip_type == AMDGPU_HW_IP_DMA) {
 			pm4[i++] = SDMA_PACKET(SDMA_OPCODE_WRITE,
@@ -902,7 +902,7 @@ static void amdgpu_command_submission_const_fill_helper(unsigned ip_type)
 
 		resources[0] = bo;
 
-		/* fullfill PM4: test DMA const fill */
+		/* fulfill PM4: test DMA const fill */
 		i = j = 0;
 		if (ip_type == AMDGPU_HW_IP_DMA) {
 			pm4[i++] = SDMA_PACKET(SDMA_OPCODE_CONSTANT_FILL, 0,
@@ -1020,7 +1020,7 @@ static void amdgpu_command_submission_copy_linear_helper(unsigned ip_type)
 			resources[0] = bo1;
 			resources[1] = bo2;
 
-			/* fullfill PM4: test DMA copy linear */
+			/* fulfill PM4: test DMA copy linear */
 			i = j = 0;
 			if (ip_type == AMDGPU_HW_IP_DMA) {
 				pm4[i++] = SDMA_PACKET(SDMA_OPCODE_COPY, SDMA_COPY_SUB_OPCODE_LINEAR, 0);
Signature · 6 lines
2.8.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#11 lore raw

PATCH 7/7 xf86drm: Fix spelling mistakes

In reply to Eric Engestrom
---
 xf86drm.c     | 2 +-
 xf86drmMode.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
xf86drm.c +1 -1
index 5f587d9..45aa5fc 100644
@@ -2942,7 +2942,7 @@ static int drmGetMaxNodeName(void)
            MAX3(sizeof(DRM_PRIMARY_MINOR_NAME),
                 sizeof(DRM_CONTROL_MINOR_NAME),
                 sizeof(DRM_RENDER_MINOR_NAME)) +
-           3 /* lenght of the node number */;
+           3 /* length of the node number */;
 }
 
 static int drmParsePciDeviceInfo(const char *d_name,
xf86drmMode.c +1 -1
index 7710061..f7b5948 100644
@@ -34,7 +34,7 @@
  */
 
 /*
- * TODO the types we are after are defined in diffrent headers on diffrent
+ * TODO the types we are after are defined in different headers on different
  * platforms find which headers to include to get uint32_t
  */
 
Signature · 6 lines
2.8.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#12 lore raw
In reply to Eric Engestrom

Am 03.04.2016 um 20:48 schrieb Eric Engestrom:

Quoted 1 line

For this one Reviewed-by: Christian König <[email protected]>

Quoted 18 lines
---
  amdgpu/amdgpu.h | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
amdgpu/amdgpu.h +1 -1
index 0851306..5d5a2c6 100644
@@ -685,7 +685,7 @@ int amdgpu_create_bo_from_user_mem(amdgpu_device_handle dev,
  int amdgpu_bo_free(amdgpu_bo_handle buf_handle);
 
  /**
- * Request CPU access to GPU accessable memory
+ * Request CPU access to GPU accessible memory
   *
   * \param   buf_handle - \c [in] Buffer handle
   * \param   cpu        - \c [out] CPU address to be used for access

amdgpu/amdgpu.h int amdgpu_cs_query_reset_state(amdgpu_context_handle context, · line 857

Quoted 8 lines
amdgpu/amdgpu.h +1 -1
@@ -851,7 +851,7 @@ int amdgpu_cs_query_reset_state(amdgpu_context_handle context,
   * order.
   *
   * The caller can specify the user fence buffer/location with the fence_info in the
- * cs_request.The sequence number is returned via the 'seq_no' paramter
+ * cs_request.The sequence number is returned via the 'seq_no' parameter
   * in ibs_request structure.
   *
   *

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel