drm: fix spelling mistakes in comments and documentation
Subsystems (5)
PATCH 1/2 drm: fix spelling mistakes in comments and documentation
Fix multiple spelling mistakes across the DRM subsystem:
- 'occured' -> 'occurred' in:
- drm_debugfs_crc.h
- amdgpu_ctx.c
- amdgpu_ids.c (x2)
- amdgpu_job.h
- radeon_fence.c (x2)
- 'fucntions' -> 'functions' in Documentation/gpu/todo.rst
- 'doesn't exists' -> 'doesn't exist' in amdgpu_gmc.h
Signed-off-by Gustavo Kenji Mendonça Kaneko <[email protected]>
--- Documentation/gpu/todo.rst | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h | 2 +- drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/amdgpu_job.h | 2 +- drivers/gpu/drm/radeon/radeon_fence.c | 4 ++-- include/drm/drm_debugfs_crc.h | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-)
Documentation/gpu/todo.rst +1 -1
@@ -55,7 +55,7 @@ There are still drivers that use drm_simple_display_pipe. The task here is to convert them to use regular atomic helpers. Search for a driver that calls drm_simple_display_pipe_init() and inline all helpers from drm_simple_kms_helper.c into the driver, such that no simple-KMS interfaces are required. Please also -rename all inlined fucntions according to driver conventions. +rename all inlined functions according to driver conventions. Contact: Thomas Zimmermann, respective driver maintainer
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c +1 -1
@@ -564,7 +564,7 @@ static int amdgpu_ctx_query(struct amdgpu_device *adev, out->state.flags =0x0 ; out->state.hangs =0x0 ; -/* determine if a GPU reset has occured since the last call */ +/* determine if a GPU reset has occurred since the last call */ reset_counter =atomic_read (&adev->gpu_reset_counter);/* TODO: this should ideally return NO, GUILTY, or INNOCENT. */ if (ctx->reset_counter_query == reset_counter)
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.h +1 -1
@@ -39,7 +39,7 @@ 0xff00000000000000ULL : 0xffff800000000000ULL)/* -* Hardware is programmed as if the hole doesn't exists with start and end +* Hardware is programmed as if the hole doesn't exist with start and end * address values. * * This mask is used to remove the upper 16bits of the VA and so come up with
drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c +2 -2
@@ -161,12 +161,12 @@ void amdgpu_pasid_free_delayed(struct dma_resv *resv,*/ /** -* amdgpu_vmid_had_gpu_reset - check if reset occured since last use +* amdgpu_vmid_had_gpu_reset - check if reset occurred since last use * * @adev: amdgpu_device pointer * @id: VMID structure * -* Check if GPU reset occured since last use of the VMID. +* Check if GPU reset occurred since last use of the VMID. */ bool amdgpu_vmid_had_gpu_reset (struct amdgpu_device *adev,struct amdgpu_vmid *id)
drivers/gpu/drm/amd/amdgpu/amdgpu_job.h +1 -1
@@ -31,7 +31,7 @@#define AMDGPU_PREAMBLE_IB_PRESENT (1 << 0)/* bit set means preamble IB is first presented in belonging context */ #define AMDGPU_PREAMBLE_IB_PRESENT_FIRST (1 << 1) -/* bit set means context switch occured */ +/* bit set means context switch occurred */ #define AMDGPU_HAVE_CTX_SWITCH (1 << 2)/* bit set means IB is preempted */ #define AMDGPU_IB_PREEMPTED (1 << 3)
drivers/gpu/drm/radeon/radeon_fence.c +2 -2
@@ -191,7 +191,7 @@ static int radeon_fence_check_signaled(wait_queue_entry_t *wait,* @ring: ring index the fence is associated with * * Checks the current fence value and calculates the last -* signalled fence value. Returns true if activity occured +* signalled fence value. Returns true if activity occurred * on the ring, and the fence_queue should be waken up. */ static bool radeon_fence_activity (struct radeon_device *rdev,int ring)
@@ -262,7 +262,7 @@ static bool radeon_fence_activity(struct radeon_device *rdev, int ring)* @work: delayed work item * * Checks for fence activity and if there is none probe -* the hardware if a lockup occured. +* the hardware if a lockup occurred. */ static void radeon_fence_check_lockup (struct work_struct *work) {
include/drm/drm_debugfs_crc.h +1 -1
@@ -49,7 +49,7 @@ struct drm_crtc_crc_entry {* @lock: protects the fields in this struct * @source: name of the currently configured source of CRCs * @opened: whether userspace has opened the data file for reading -* @overflow: whether an overflow occured. +* @overflow: whether an overflow occurred. * @entries: array of entries, with size of %DRM_CRC_ENTRIES_NR * @head: head of circular queue * @tail: tail of circular queue
Signature · 1 line
2.54.0
PATCH 2/2 drm/amd/display: rename timeout_occured to timeout_occurred
Fix spelling mistake in struct dmub_timeout_info field name. Rename 'timeout_occured' to 'timeout_occurred' and update all references in dc_dmub_srv.c accordingly.
Signed-off-by Gustavo Kenji Mendonça Kaneko <[email protected]>
--- drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c | 4 ++-- drivers/gpu/drm/amd/display/dmub/dmub_srv.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c +2 -2
@@ -285,8 +285,8 @@ bool dc_dmub_srv_wait_for_idle(struct dc_dmub_srv *dc_dmub_srv,if (status !=DMUB_STATUS_OK ) {DC_LOG_DEBUG ("No reply for DMUB command: status=%d\n" , status); -if (!dmub->debug.timeout_info.timeout_occured) { - dmub->debug.timeout_info.timeout_occured = true; +if (!dmub->debug.timeout_info.timeout_occurred) { + dmub->debug.timeout_info.timeout_occurred = true;if (cmd_list) dmub->debug.timeout_info.timeout_cmd = *cmd_list; dmub->debug.timeout_info.timestamp =dm_get_timestamp (dc_dmub_srv->ctx);
drivers/gpu/drm/amd/display/dmub/dmub_srv.h +2 -2
@@ -355,11 +355,11 @@ struct dmub_srv_hw_params {/** * struct dmub_srv_debug - Debug info for dmub_srv -* @timeout_occured: Indicates a timeout occured on any message from driver to dmub +* @timeout_occurred: Indicates a timeout occurred on any message from driver to dmub * @timeout_cmd: first cmd sent from driver that timed out - subsequent timeouts are not stored */ struct dmub_timeout_info { -bool timeout_occured; +bool timeout_occurred;union dmub_rb_cmd timeout_cmd;unsigned long long timestamp; };
Signature · 1 line
2.54.0