drm: Fix typo in comments
Subsystems (3)
PATCH v2 1/1 drm: Fix typo in comments
fix typo for drm
v1->v2:
respin with the change "iff ==> implies that"
--- drivers/gpu/drm/drm_aperture.c | 2 +- drivers/gpu/drm/drm_atomic.c | 2 +- drivers/gpu/drm/drm_atomic_helper.c | 10 +++++----- drivers/gpu/drm/drm_atomic_uapi.c | 6 +++--- drivers/gpu/drm/drm_auth.c | 2 +- drivers/gpu/drm/drm_bridge.c | 2 +- drivers/gpu/drm/drm_bufs.c | 2 +- drivers/gpu/drm/drm_cache.c | 2 +- drivers/gpu/drm/drm_damage_helper.c | 2 +- drivers/gpu/drm/drm_dp_helper.c | 8 ++++---- drivers/gpu/drm/drm_drv.c | 4 ++-- drivers/gpu/drm/drm_dsc.c | 2 +- drivers/gpu/drm/drm_edid.c | 4 ++-- drivers/gpu/drm/drm_fb_helper.c | 2 +- drivers/gpu/drm/drm_file.c | 6 +++--- drivers/gpu/drm/drm_format_helper.c | 2 +- drivers/gpu/drm/drm_framebuffer.c | 2 +- drivers/gpu/drm/drm_gem.c | 4 ++-- drivers/gpu/drm/drm_gem_atomic_helper.c | 4 ++-- drivers/gpu/drm/drm_gem_shmem_helper.c | 2 +- drivers/gpu/drm/drm_gem_vram_helper.c | 2 +- drivers/gpu/drm/drm_hdcp.c | 2 +- drivers/gpu/drm/drm_ioctl.c | 4 ++-- drivers/gpu/drm/drm_irq.c | 2 +- drivers/gpu/drm/drm_mm.c | 2 +- drivers/gpu/drm/drm_mode_object.c | 2 +- drivers/gpu/drm/drm_modes.c | 4 ++-- drivers/gpu/drm/drm_plane.c | 2 +- drivers/gpu/drm/drm_plane_helper.c | 2 +- drivers/gpu/drm/drm_prime.c | 2 +- drivers/gpu/drm/drm_probe_helper.c | 2 +- drivers/gpu/drm/drm_property.c | 2 +- drivers/gpu/drm/drm_scdc_helper.c | 2 +- drivers/gpu/drm/drm_syncobj.c | 2 +- drivers/gpu/drm/drm_vblank.c | 12 ++++++------ drivers/gpu/drm/drm_vma_manager.c | 2 +- 36 files changed, 58 insertions(+), 58 deletions(-)
drivers/gpu/drm/drm_aperture.c +1 -1
@@ -78,7 +78,7 @@* * Drivers that are susceptible to being removed by other drivers, such as * generic EFI or VESA drivers, have to register themselves as owners of their -* given framebuffer memory. Ownership of the framebuffer memory is achived +* given framebuffer memory. Ownership of the framebuffer memory is achieved * by calling devm_aperture_acquire_from_firmware(). On success, the driver * is the owner of the framebuffer range. The function fails if the * framebuffer is already by another driver. See below for an example.
drivers/gpu/drm/drm_atomic.c +1 -1
@@ -723,7 +723,7 @@ static void drm_atomic_plane_print_state(struct drm_printer *p,* clocks, scaler units, bandwidth and fifo limits shared among a group of * planes or CRTCs, and so on) it makes sense to model these as independent * objects. Drivers then need to do similar state tracking and commit ordering for -* such private (since not exposed to userpace) objects as the atomic core and +* such private (since not exposed to userspace) objects as the atomic core and * helpers already provide for connectors, planes and CRTCs. * * To make this easier on drivers the atomic core provides some support to track
drivers/gpu/drm/drm_atomic_helper.c +5 -5
@@ -634,7 +634,7 @@ drm_atomic_helper_check_modeset(struct drm_device *dev,* connectors and a NULL mode. * * The other way around is true as well. enable != 0 -* iff connectors are attached and a mode is set. +* implies that connectors are attached and a mode is set. */ new_crtc_state->mode_changed = true; new_crtc_state->connectors_changed = true;
@@ -1686,7 +1686,7 @@ static void commit_work(struct work_struct *work) }/** -* drm_atomic_helper_async_check - check if state can be commited asynchronously +* drm_atomic_helper_async_check - check if state can be committed asynchronously * @dev: DRM device * @state: the driver state object *
@@ -1695,7 +1695,7 @@ static void commit_work(struct work_struct *work)* but just do in-place changes on the current state. * * It will return 0 if the commit can happen in an asynchronous fashion or error -* if not. Note that error just mean it can't be commited asynchronously, if it +* if not. Note that error just mean it can't be committed asynchronously, if it * fails the commit should be treated like a normal synchronous commit. */ int drm_atomic_helper_async_check(struct drm_device *dev,
@@ -2583,7 +2583,7 @@ EXPORT_SYMBOL(drm_atomic_helper_commit_planes);* * This function can only be savely used when planes are not allowed to move * between different CRTCs because this function doesn't handle inter-CRTC -* depencies. Callers need to ensure that either no such depencies exist, +* dependencies. Callers need to ensure that either no such dependencies exist, * resolve them through ordering of commit calls or through some other means. */ void
@@ -2720,7 +2720,7 @@ EXPORT_SYMBOL(drm_atomic_helper_cleanup_planes);/** * drm_atomic_helper_swap_state - store atomic state into current sw state * @state: atomic state -* @stall: stall for preceeding commits +* @stall: stall for preceding commits * * This function stores the atomic state into the current state pointers in all * driver objects. It should be called after all failing steps have been done
drivers/gpu/drm/drm_atomic_uapi.c +3 -3
@@ -48,7 +48,7 @@* in all its forms: The monster ATOMIC IOCTL itself, code for GET_PROPERTY and * SET_PROPERTY IOCTLs. Plus interface functions for compatibility helpers and * drivers which have special needs to construct their own atomic updates, e.g. -* for load detect or similiar. +* for load detect or similar. */ /**
@@ -753,7 +753,7 @@ static int drm_atomic_connector_set_property(struct drm_connector *connector,* restore the state it wants on VT switch. So if the userspace * tries to change the link_status from GOOD to BAD, driver * silently rejects it and returns a 0. This prevents userspace -* from accidently breaking the display when it restores the +* from accidentally breaking the display when it restores the * state. */ if (state->link_status !=DRM_LINK_STATUS_GOOD )
@@ -1064,7 +1064,7 @@ int drm_atomic_set_property(struct drm_atomic_state *state,* DOC: explicit fencing properties * * Explicit fencing allows userspace to control the buffer synchronization -* between devices. A Fence or a group of fences are transfered to/from +* between devices. A Fence or a group of fences are transferred to/from * userspace using Sync File fds and there are two DRM properties for that. * IN_FENCE_FD on each DRM Plane to send fences to the kernel and * OUT_FENCE_PTR on each DRM CRTC to receive fences from the kernel.
drivers/gpu/drm/drm_auth.c +1 -1
@@ -52,7 +52,7 @@* * In addition only one &drm_master can be the current master for a &drm_device. * It can be switched through the DROP_MASTER and SET_MASTER IOCTL, or -* implicitly through closing/openeing the primary device node. See also +* implicitly through closing/opening the primary device node. See also * drm_is_current_master(). * * Clients can authenticate against the current master (if it matches their own)
drivers/gpu/drm/drm_bridge.c +1 -1
@@ -972,7 +972,7 @@ drm_atomic_bridge_propagate_bus_flags(struct drm_bridge *bridge, bridge_state->output_bus_cfg.flags = output_flags;/* -* Propage the output flags to the input end of the bridge. Again, it's +* Propagate the output flags to the input end of the bridge. Again, it's * not necessarily what all bridges want, but that's what most of them * do, and by doing that by default we avoid forcing drivers to * duplicate the "dummy propagation" logic.
drivers/gpu/drm/drm_bufs.c +1 -1
@@ -1502,7 +1502,7 @@ int drm_legacy_freebufs(struct drm_device *dev, void *data,* * Maps the AGP, SG or PCI buffer region with vm_mmap(), and copies information * about each buffer into user space. For PCI buffers, it calls vm_mmap() with -* offset equal to 0, which drm_mmap() interpretes as PCI buffers and calls +* offset equal to 0, which drm_mmap() interprets as PCI buffers and calls * drm_mmap_dma(). */ int __drm_legacy_mapbufs(struct drm_device *dev, void *data, int *p,
drivers/gpu/drm/drm_cache.c +1 -1
@@ -170,7 +170,7 @@ drm_clflush_virt_range(void *addr, unsigned long length)for (; addr < end; addr += size)clflushopt (addr);clflushopt (end -1 );/* force serialisation */ -mb ();/*Ensure that evry data cache line entry is flushed*/ +mb ();/*Ensure that every data cache line entry is flushed*/ return ; }
drivers/gpu/drm/drm_damage_helper.c +1 -1
@@ -170,7 +170,7 @@ int drm_atomic_helper_dirtyfb(struct drm_framebuffer *fb,int ret =0 ;/* -* When called from ioctl, we are interruptable, but not when called +* When called from ioctl, we are interruptible, but not when called * internally (ie. defio worker) */ drm_modeset_acquire_init(&ctx,
drivers/gpu/drm/drm_dp_helper.c +4 -4
@@ -772,7 +772,7 @@ int drm_dp_downstream_max_tmds_clock(const u8 dpcd[DP_RECEIVER_CAP_SIZE],* It's left up to the driver to check the * DP dual mode adapter's max TMDS clock. * -* Unfortunatley it looks like branch devices +* Unfortunately it looks like branch devices * may not fordward that the DP dual mode i2c * access so we just usually get i2c nak :( */
@@ -1365,7 +1365,7 @@ static int drm_dp_i2c_msg_duration(const struct drm_dp_aux_msg *msg, }/* -* Deterine how many retries should be attempted to successfully transfer +* Determine how many retries should be attempted to successfully transfer * the specified message, based on the estimated durations of the * i2c and AUX transfers. */
@@ -1418,7 +1418,7 @@ static int drm_dp_i2c_do_msg(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg)/* * While timeouts can be errors, they're usually normal * behavior (for instance, when a driver tries to -* communicate with a non-existant DisplayPort device). +* communicate with a non-existent DisplayPort device). * Avoid spamming the kernel log with timeout errors. */ if (ret == -ETIMEDOUT )
@@ -3327,7 +3327,7 @@ drm_edp_backlight_probe_max(struct drm_dp_aux *aux, struct drm_edp_backlight_inf fxp =DIV_ROUND_CLOSEST (1000 *DP_EDP_BACKLIGHT_FREQ_BASE_KHZ , driver_pwm_freq_hz);/* Use highest possible value of Pn for more granularity of brightness adjustment while -* satifying the conditions below. +* satisfying the conditions below. * - Pn is in the range of Pn_min and Pn_max * - F is in the range of 1 and 255 * - FxP is within 25% of desired value.
drivers/gpu/drm/drm_drv.c +2 -2
@@ -249,7 +249,7 @@ void drm_minor_release(struct drm_minor *minor)* Finally when everything is up and running and ready for userspace the device * instance can be published using drm_dev_register(). * -* There is also deprecated support for initalizing device instances using +* There is also deprecated support for initializing device instances using * bus-specific helpers and the &drm_driver.load callback. But due to * backwards-compatibility needs the device instance have to be published too * early, which requires unpretty global locking to make safe and is therefore
@@ -379,7 +379,7 @@ void drm_minor_release(struct drm_minor *minor)* shortcoming however, drm_dev_unplug() marks the drm_device as unplugged before * drm_atomic_helper_shutdown() is called. This means that if the disable code * paths are protected, they will not run on regular driver module unload, -* possibily leaving the hardware enabled. +* possibly leaving the hardware enabled. */ /**
drivers/gpu/drm/drm_dsc.c +1 -1
@@ -98,7 +98,7 @@ void drm_dsc_pps_payload_pack(struct drm_dsc_picture_parameter_set *pps_payload, {int i; -/* Protect against someone accidently changing struct size */ +/* Protect against someone accidentally changing struct size */ BUILD_BUG_ON (sizeof (*pps_payload) !=DP_SDP_PPS_HEADER_PAYLOAD_BYTES_MINUS_1 +1 );
drivers/gpu/drm/drm_edid.c +2 -2
@@ -1919,7 +1919,7 @@ EXPORT_SYMBOL(drm_add_override_edid_modes);* level, drivers must make all reasonable efforts to expose it as an I2C * adapter and use drm_get_edid() instead of abusing this function. * -* The EDID may be overridden using debugfs override_edid or firmare EDID +* The EDID may be overridden using debugfs override_edid or firmware EDID * (drm_load_edid_firmware() and drm.edid_firmware parameter), in this priority * order. Having either of them bypasses actual EDID reads. *
@@ -5906,7 +5906,7 @@ drm_hdmi_vendor_infoframe_from_display_mode(struct hdmi_vendor_infoframe *frame,* (ie.vic==0 and s3d_struct==0) we will still send it if we * know that the sink can handle it. This is based on a * suggestion in HDMI 2.0 Appendix F. Apparently some sinks -* have trouble realizing that they shuld switch from 3D to 2D +* have trouble realizing that they should switch from 3D to 2D * mode if the source simply stops sending the infoframe when * it wants to switch from 3D to 2D. */
drivers/gpu/drm/drm_fb_helper.c +1 -1
@@ -565,7 +565,7 @@ struct fb_info *drm_fb_helper_alloc_fbi(struct drm_fb_helper *fb_helper) goto err_release;/* -* TODO: We really should be smarter here and alloc an apperture +* TODO: We really should be smarter here and alloc an aperture * for each IORESOURCE_MEM resource helper->dev->dev has and also * init the ranges of the appertures based on the resources. * Note some drivers currently count on there being only 1 empty
drivers/gpu/drm/drm_file.c +3 -3
@@ -405,7 +405,7 @@ static int drm_open_helper(struct file *filp, struct drm_minor *minor)* * RETURNS: * -* 0 on success or negative errno value on falure. +* 0 on success or negative errno value on failure. */ int drm_open (struct inode *inode,struct file *filp) {
@@ -548,7 +548,7 @@ EXPORT_SYMBOL(drm_release_noglobal);* @offset: offset to read * * This function must be used by drivers as their &file_operations.read -* method iff they use DRM events for asynchronous signalling to userspace. +* method if they use DRM events for asynchronous signalling to userspace. * Since events are used by the KMS API for vblank and page flip completion this * means all modern display drivers must use it. *
@@ -641,7 +641,7 @@ EXPORT_SYMBOL(drm_read);* @wait: poll waiter table * * This function must be used by drivers as their &file_operations.read method -* iff they use DRM events for asynchronous signalling to userspace. Since +* if they use DRM events for asynchronous signalling to userspace. Since * events are used by the KMS API for vblank and page flip completion this means * all modern display drivers must use it. *
drivers/gpu/drm/drm_format_helper.c +1 -1
@@ -412,7 +412,7 @@ EXPORT_SYMBOL(drm_fb_blit_rect_dstclip);* of the display and the framebuffer mismatch, the copy function will * attempt to convert between them. * -* See drm_fb_blit_rect_dstclip() for more inforamtion. +* See drm_fb_blit_rect_dstclip() for more information. * * Returns: * 0 on success, or a negative error code otherwise.
drivers/gpu/drm/drm_framebuffer.c +1 -1
@@ -1090,7 +1090,7 @@ void drm_framebuffer_remove(struct drm_framebuffer *fb)/* * drm ABI mandates that we remove any deleted framebuffers from active -* useage. But since most sane clients only remove framebuffers they no +* usage. But since most sane clients only remove framebuffers they no * longer need, try to optimize this away. * * Since we're holding a reference ourselves, observing a refcount of 1
drivers/gpu/drm/drm_gem.c +2 -2
@@ -901,7 +901,7 @@ drm_gem_open_ioctl(struct drm_device *dev, void *data, }/** -* drm_gem_open - initalizes GEM file-private structures at devnode open time +* drm_gem_open - initializes GEM file-private structures at devnode open time * @dev: drm_device which is being opened by userspace * @file_private: drm file-private structure to set up *
@@ -936,7 +936,7 @@ drm_gem_release(struct drm_device *dev, struct drm_file *file_private)* drm_gem_object_release - release GEM buffer object resources * @obj: GEM buffer object * -* This releases any structures and resources used by @obj and is the invers of +* This releases any structures and resources used by @obj and is the inverse of * drm_gem_object_init(). */ void
drivers/gpu/drm/drm_gem_atomic_helper.c +2 -2
@@ -52,7 +52,7 @@* * The helpers for shadow-buffered planes establish and release mappings, * and provide struct drm_shadow_plane_state, which stores the plane's mapping -* for commit-tail functons. +* for commit-tail functions. * * Shadow-buffered planes can easily be enabled by using the provided macros * %DRM_GEM_SHADOW_PLANE_FUNCS and %DRM_GEM_SHADOW_PLANE_HELPER_FUNCS.
@@ -374,7 +374,7 @@ EXPORT_SYMBOL(drm_gem_prepare_shadow_fb);* This function implements struct &drm_plane_helper_funcs.cleanup_fb. * This function unmaps all buffer objects of the plane's framebuffer. * -* See drm_gem_prepare_shadow_fb() for more inforamtion. +* See drm_gem_prepare_shadow_fb() for more information. */ void drm_gem_cleanup_shadow_fb (struct drm_plane *plane,struct drm_plane_state *plane_state) {
drivers/gpu/drm/drm_gem_shmem_helper.c +1 -1
@@ -368,7 +368,7 @@ static void drm_gem_shmem_vunmap_locked(struct drm_gem_shmem_object *shmem, }/* -* drm_gem_shmem_vunmap - Unmap a virtual mapping fo a shmem GEM object +* drm_gem_shmem_vunmap - Unmap a virtual mapping for a shmem GEM object * @shmem: shmem GEM object * @map: Kernel virtual address where the SHMEM GEM object was mapped *
drivers/gpu/drm/drm_gem_vram_helper.c +1 -1
@@ -96,7 +96,7 @@ static const struct drm_gem_object_funcs drm_gem_vram_object_funcs;* memory region. Call drm_gem_vram_offset() to retrieve this value. Typically * it's used to program the hardware's scanout engine for framebuffers, set * the cursor overlay's image for a mouse cursor, or use it as input to the -* hardware's draing engine. +* hardware's drawing engine. * * To access a buffer object's memory from the DRM driver, call * drm_gem_vram_vmap(). It maps the buffer into kernel address
drivers/gpu/drm/drm_hdcp.c +1 -1
@@ -280,7 +280,7 @@ static int drm_hdcp_request_srm(struct drm_device *drm_dev,* https://www.digital-cp.com/sites/default/files/specifications/HDCP%20on%20HDMI%20Specification%20Rev2_2_Final1.pdf * * Returns: -* Count of the revoked KSVs or -ve error number incase of the failure. +* Count of the revoked KSVs or -ve error number in case of the failure. */ int drm_hdcp_check_ksvs_revoked (struct drm_device *drm_dev,u8 *ksvs,u32 ksv_count)
drivers/gpu/drm/drm_ioctl.c +2 -2
@@ -426,7 +426,7 @@ static int drm_setversion(struct drm_device *dev, void *data, struct drm_file *f }/** -* drm_noop - DRM no-op ioctl implemntation +* drm_noop - DRM no-op ioctl implementation * @dev: DRM device for the ioctl * @data: data pointer for the ioctl * @file_priv: DRM file for the ioctl call
@@ -446,7 +446,7 @@ int drm_noop(struct drm_device *dev, void *data,EXPORT_SYMBOL (drm_noop);/** -* drm_invalid_op - DRM invalid ioctl implemntation +* drm_invalid_op - DRM invalid ioctl implementation * @dev: DRM device for the ioctl * @data: data pointer for the ioctl * @file_priv: DRM file for the ioctl call
drivers/gpu/drm/drm_irq.c +1 -1
@@ -72,7 +72,7 @@* The DRM core provides very simple support helpers to enable IRQ handling on a * device through the drm_irq_install() and drm_irq_uninstall() functions. This * only supports devices with a single interrupt on the main device stored in -* &drm_device.dev and set as the device paramter in drm_dev_alloc(). +* &drm_device.dev and set as the device parameter in drm_dev_alloc(). * * These IRQ helpers are strictly optional. Since these helpers don't automatically * clean up the requested interrupt like e.g. devm_request_irq() they're not really
drivers/gpu/drm/drm_mm.c +1 -1
@@ -700,7 +700,7 @@ EXPORT_SYMBOL(drm_mm_replace_node);* interfaces. First a scan operation needs to be initialized with * drm_mm_scan_init() or drm_mm_scan_init_with_range(). The driver adds * objects to the roster, probably by walking an LRU list, but this can be -* freely implemented. Eviction candiates are added using +* freely implemented. Eviction candidates are added using * drm_mm_scan_add_block() until a suitable hole is found or there are no * further evictable objects. Eviction roster metadata is tracked in &struct * drm_mm_scan.
drivers/gpu/drm/drm_mode_object.c +1 -1
@@ -91,7 +91,7 @@ void drm_mode_object_register(struct drm_device *dev, }/** -* drm_mode_object_unregister - free a modeset identifer +* drm_mode_object_unregister - free a modeset identifier * @dev: DRM device * @object: object to free *
drivers/gpu/drm/drm_modes.c +2 -2
@@ -1542,7 +1542,7 @@ static int drm_mode_parse_cmdline_int(const char *delim, unsigned int *int_ret)/* * delim must point to the '=', otherwise it is a syntax error and -* if delim points to the terminating zero, then delim + 1 wil point +* if delim points to the terminating zero, then delim + 1 will point * past the end of the string. */ if (*delim !='=' )
@@ -1972,7 +1972,7 @@ int drm_mode_convert_umode(struct drm_device *dev, out->flags = in->flags;/* * Old xf86-video-vmware (possibly others too) used to -* leave 'type' unititialized. Just ignore any bits we +* leave 'type' uninitialized. Just ignore any bits we * don't like. It's a just hint after all, and more * useful for the kernel->userspace direction anyway. */
drivers/gpu/drm/drm_plane.c +1 -1
@@ -38,7 +38,7 @@/** * DOC: overview * -* A plane represents an image source that can be blended with or overlayed on +* A plane represents an image source that can be blended with or overlaid on * top of a CRTC during the scanout process. Planes take their input data from a * &drm_framebuffer object. The plane itself specifies the cropping and scaling * of that image, and where it is placed on the visible area of a display
drivers/gpu/drm/drm_plane_helper.c +1 -1
@@ -210,7 +210,7 @@ static int drm_primary_helper_update(struct drm_plane *plane, struct drm_crtc *c* We call set_config() directly here rather than using * drm_mode_set_config_internal. We're reprogramming the same * connectors that were already in use, so we shouldn't need the extra -* cross-CRTC fb refcounting to accomodate stealing connectors. +* cross-CRTC fb refcounting to accommodate stealing connectors. * drm_mode_setplane() already handles the basic refcounting for the * framebuffers involved in this operation. */
drivers/gpu/drm/drm_prime.c +1 -1
@@ -73,7 +73,7 @@* Thus the chain of references always flows in one direction, avoiding loops: * importing GEM object -> dma-buf -> exported GEM bo. A further complication * are the lookup caches for import and export. These are required to guarantee -* that any given object will always have only one uniqe userspace handle. This +* that any given object will always have only one unique userspace handle. This * is required to allow userspace to detect duplicated imports, since some GEM * drivers do fail command submissions if a given buffer object is listed more * than once. These import and export caches in &drm_prime_file_private only
drivers/gpu/drm/drm_probe_helper.c +1 -1
@@ -757,7 +757,7 @@ EXPORT_SYMBOL(drm_kms_helper_poll_disable);* drm_kms_helper_poll_init - initialize and enable output polling * @dev: drm_device * -* This function intializes and then also enables output polling support for +* This function initializes and then also enables output polling support for * @dev. Drivers which do not have reliable hotplug support in hardware can use * this helper infrastructure to regularly poll such connectors for changes in * their connection state.
drivers/gpu/drm/drm_property.c +1 -1
@@ -434,7 +434,7 @@ EXPORT_SYMBOL(drm_property_add_enum);/** * drm_property_destroy - destroy a drm property * @dev: drm device -* @property: property to destry +* @property: property to destroy * * This function frees a property including any attached resources like * enumeration values.
drivers/gpu/drm/drm_scdc_helper.c +1 -1
@@ -241,7 +241,7 @@ bool drm_scdc_set_high_tmds_clock_ratio(struct i2c_adapter *adapter, bool set)/* * The spec says that a source should wait minimum 1ms and maximum * 100ms after writing the TMDS config for clock ratio. Lets allow a -* wait of upto 2ms here. +* wait of up to 2ms here. */ usleep_range (1000 ,2000 );return true;
drivers/gpu/drm/drm_syncobj.c +1 -1
@@ -725,7 +725,7 @@ static int drm_syncobj_export_sync_file(struct drm_file *file_private,return ret; }/** -* drm_syncobj_open - initalizes syncobj file-private structures at devnode open time +* drm_syncobj_open - initializes syncobj file-private structures at devnode open time * @file_private: drm file-private structure to set up * * Called at device open time, sets up the structure for handling refcounting
drivers/gpu/drm/drm_vblank.c +6 -6
@@ -191,7 +191,7 @@ static u32 drm_max_vblank_count(struct drm_device *dev, unsigned int pipe)/* * "No hw counter" fallback implementation of .get_vblank_counter() hook, -* if there is no useable hardware frame counter available. +* if there is no usable hardware frame counter available. */ static u32 drm_vblank_no_hw_counter (struct drm_device *dev,unsigned int pipe) {
@@ -905,7 +905,7 @@ drm_get_last_vbltimestamp(struct drm_device *dev, unsigned int pipe,* and drm_crtc_vblank_count() or drm_crtc_vblank_count_and_time() * provide a barrier: Any writes done before calling * drm_crtc_handle_vblank() will be visible to callers of the later -* functions, iff the vblank count is the same or a later one. +* functions, if the vblank count is the same or a later one. * * See also &drm_vblank_crtc.count. *
@@ -968,7 +968,7 @@ static u64 drm_vblank_count_and_time(struct drm_device *dev, unsigned int pipe,* and drm_crtc_vblank_count() or drm_crtc_vblank_count_and_time() * provide a barrier: Any writes done before calling * drm_crtc_handle_vblank() will be visible to callers of the later -* functions, iff the vblank count is the same or a later one. +* functions, if the vblank count is the same or a later one. * * See also &drm_vblank_crtc.count. */
@@ -1997,7 +1997,7 @@ EXPORT_SYMBOL(drm_handle_vblank);* and drm_crtc_vblank_count() or drm_crtc_vblank_count_and_time() * provide a barrier: Any writes done before calling * drm_crtc_handle_vblank() will be visible to callers of the later -* functions, iff the vblank count is the same or a later one. +* functions, if the vblank count is the same or a later one. * * See also &drm_vblank_crtc.count. *
@@ -2014,7 +2014,7 @@ EXPORT_SYMBOL(drm_crtc_handle_vblank);* Get crtc VBLANK count. * * \param dev DRM device -* \param data user arguement, pointing to a drm_crtc_get_sequence structure. +* \param data user argument, pointing to a drm_crtc_get_sequence structure. * \param file_priv drm file private for the user's open file descriptor */
@@ -2070,7 +2070,7 @@ int drm_crtc_get_sequence_ioctl(struct drm_device *dev, void *data,* Queue a event for VBLANK sequence * * \param dev DRM device -* \param data user arguement, pointing to a drm_crtc_queue_sequence structure. +* \param data user argument, pointing to a drm_crtc_queue_sequence structure. * \param file_priv drm file private for the user's open file descriptor */
drivers/gpu/drm/drm_vma_manager.c +1 -1
@@ -361,7 +361,7 @@ EXPORT_SYMBOL(drm_vma_node_revoke);* This is locked against concurrent access internally. * * RETURNS: -* true iff @filp is on the list +* true if @filp is on the list */ bool drm_vma_node_is_allowed (struct drm_vma_offset_node *node,struct drm_file *tag)
Signature · 1 line
2.25.1
Daniel Vetter
AppliedQuoted 6 lines · Cai Huoqing
fix typo for drm
v1->v2:
respin with the change "iff ==> implies that"Reviewed-by Daniel Vetter <[email protected]>
I did not give you a Reviewed-by: tag, please dont forge them. At least in the linux kernel an r-b tag is a fairly formal statement:
The more informal Acked-by is generally ok to add if you get something like "looks good to me", but better to ask for confirmation too in that case.
I've removed it before pushing.
Quoted 1 line
Signed-off-by Cai Huoqing <[email protected]>
Pushed to drm-misc-next, thanks for your patch.
-Daniel
Quoted 708 lines
--- drivers/gpu/drm/drm_aperture.c | 2 +- drivers/gpu/drm/drm_atomic.c | 2 +- drivers/gpu/drm/drm_atomic_helper.c | 10 +++++----- drivers/gpu/drm/drm_atomic_uapi.c | 6 +++--- drivers/gpu/drm/drm_auth.c | 2 +- drivers/gpu/drm/drm_bridge.c | 2 +- drivers/gpu/drm/drm_bufs.c | 2 +- drivers/gpu/drm/drm_cache.c | 2 +- drivers/gpu/drm/drm_damage_helper.c | 2 +- drivers/gpu/drm/drm_dp_helper.c | 8 ++++---- drivers/gpu/drm/drm_drv.c | 4 ++-- drivers/gpu/drm/drm_dsc.c | 2 +- drivers/gpu/drm/drm_edid.c | 4 ++-- drivers/gpu/drm/drm_fb_helper.c | 2 +- drivers/gpu/drm/drm_file.c | 6 +++--- drivers/gpu/drm/drm_format_helper.c | 2 +- drivers/gpu/drm/drm_framebuffer.c | 2 +- drivers/gpu/drm/drm_gem.c | 4 ++-- drivers/gpu/drm/drm_gem_atomic_helper.c | 4 ++-- drivers/gpu/drm/drm_gem_shmem_helper.c | 2 +- drivers/gpu/drm/drm_gem_vram_helper.c | 2 +- drivers/gpu/drm/drm_hdcp.c | 2 +- drivers/gpu/drm/drm_ioctl.c | 4 ++-- drivers/gpu/drm/drm_irq.c | 2 +- drivers/gpu/drm/drm_mm.c | 2 +- drivers/gpu/drm/drm_mode_object.c | 2 +- drivers/gpu/drm/drm_modes.c | 4 ++-- drivers/gpu/drm/drm_plane.c | 2 +- drivers/gpu/drm/drm_plane_helper.c | 2 +- drivers/gpu/drm/drm_prime.c | 2 +- drivers/gpu/drm/drm_probe_helper.c | 2 +- drivers/gpu/drm/drm_property.c | 2 +- drivers/gpu/drm/drm_scdc_helper.c | 2 +- drivers/gpu/drm/drm_syncobj.c | 2 +- drivers/gpu/drm/drm_vblank.c | 12 ++++++------ drivers/gpu/drm/drm_vma_manager.c | 2 +- 36 files changed, 58 insertions(+), 58 deletions(-)drivers/gpu/drm/drm_aperture.c +1
-1@@ -78,7 +78,7 @@* * Drivers that are susceptible to being removed by other drivers, such as * generic EFI or VESA drivers, have to register themselves as owners of their -* given framebuffer memory. Ownership of the framebuffer memory is achived +* given framebuffer memory. Ownership of the framebuffer memory is achieved * by calling devm_aperture_acquire_from_firmware(). On success, the driver * is the owner of the framebuffer range. The function fails if the * framebuffer is already by another driver. See below for an example. drivers/gpu/drm/drm_atomic.c +1
-1@@ -723,7 +723,7 @@ static void drm_atomic_plane_print_state(struct drm_printer *p,* clocks, scaler units, bandwidth and fifo limits shared among a group of * planes or CRTCs, and so on) it makes sense to model these as independent * objects. Drivers then need to do similar state tracking and commit ordering for -* such private (since not exposed to userpace) objects as the atomic core and +* such private (since not exposed to userspace) objects as the atomic core and * helpers already provide for connectors, planes and CRTCs. * * To make this easier on drivers the atomic core provides some support to track drivers/gpu/drm/drm_atomic_helper.c +5
-5@@ -634,7 +634,7 @@ drm_atomic_helper_check_modeset(struct drm_device *dev,* connectors and a NULL mode. * * The other way around is true as well. enable != 0 -* iff connectors are attached and a mode is set. +* implies that connectors are attached and a mode is set. */ new_crtc_state->mode_changed = true; new_crtc_state->connectors_changed = true;@@ -1686,7 +1686,7 @@ static void commit_work(struct work_struct *work) }/** -* drm_atomic_helper_async_check - check if state can be commited asynchronously +* drm_atomic_helper_async_check - check if state can be committed asynchronously * @dev: DRM device * @state: the driver state object * @@ -1695,7 +1695,7 @@ static void commit_work(struct work_struct *work)* but just do in-place changes on the current state. * * It will return 0 if the commit can happen in an asynchronous fashion or error -* if not. Note that error just mean it can't be commited asynchronously, if it +* if not. Note that error just mean it can't be committed asynchronously, if it * fails the commit should be treated like a normal synchronous commit. */ int drm_atomic_helper_async_check(struct drm_device *dev,@@ -2583,7 +2583,7 @@ EXPORT_SYMBOL(drm_atomic_helper_commit_planes);* * This function can only be savely used when planes are not allowed to move * between different CRTCs because this function doesn't handle inter-CRTC -* depencies. Callers need to ensure that either no such depencies exist, +* dependencies. Callers need to ensure that either no such dependencies exist, * resolve them through ordering of commit calls or through some other means. */ void @@ -2720,7 +2720,7 @@ EXPORT_SYMBOL(drm_atomic_helper_cleanup_planes);/** * drm_atomic_helper_swap_state - store atomic state into current sw state * @state: atomic state -* @stall: stall for preceeding commits +* @stall: stall for preceding commits * * This function stores the atomic state into the current state pointers in all * driver objects. It should be called after all failing steps have been done drivers/gpu/drm/drm_atomic_uapi.c +3
-3@@ -48,7 +48,7 @@* in all its forms: The monster ATOMIC IOCTL itself, code for GET_PROPERTY and * SET_PROPERTY IOCTLs. Plus interface functions for compatibility helpers and * drivers which have special needs to construct their own atomic updates, e.g. -* for load detect or similiar. +* for load detect or similar. */ /** @@ -753,7 +753,7 @@ static int drm_atomic_connector_set_property(struct drm_connector *connector,* restore the state it wants on VT switch. So if the userspace * tries to change the link_status from GOOD to BAD, driver * silently rejects it and returns a 0. This prevents userspace -* from accidently breaking the display when it restores the +* from accidentally breaking the display when it restores the * state. */ if (state->link_status !=DRM_LINK_STATUS_GOOD )@@ -1064,7 +1064,7 @@ int drm_atomic_set_property(struct drm_atomic_state *state,* DOC: explicit fencing properties * * Explicit fencing allows userspace to control the buffer synchronization -* between devices. A Fence or a group of fences are transfered to/from +* between devices. A Fence or a group of fences are transferred to/from * userspace using Sync File fds and there are two DRM properties for that. * IN_FENCE_FD on each DRM Plane to send fences to the kernel and * OUT_FENCE_PTR on each DRM CRTC to receive fences from the kernel. drivers/gpu/drm/drm_auth.c +1
-1@@ -52,7 +52,7 @@* * In addition only one &drm_master can be the current master for a &drm_device. * It can be switched through the DROP_MASTER and SET_MASTER IOCTL, or -* implicitly through closing/openeing the primary device node. See also +* implicitly through closing/opening the primary device node. See also * drm_is_current_master(). * * Clients can authenticate against the current master (if it matches their own) drivers/gpu/drm/drm_bridge.c +1
-1@@ -972,7 +972,7 @@ drm_atomic_bridge_propagate_bus_flags(struct drm_bridge *bridge, bridge_state->output_bus_cfg.flags = output_flags;/* -* Propage the output flags to the input end of the bridge. Again, it's +* Propagate the output flags to the input end of the bridge. Again, it's * not necessarily what all bridges want, but that's what most of them * do, and by doing that by default we avoid forcing drivers to * duplicate the "dummy propagation" logic. drivers/gpu/drm/drm_bufs.c +1
-1@@ -1502,7 +1502,7 @@ int drm_legacy_freebufs(struct drm_device *dev, void *data,* * Maps the AGP, SG or PCI buffer region with vm_mmap(), and copies information * about each buffer into user space. For PCI buffers, it calls vm_mmap() with -* offset equal to 0, which drm_mmap() interpretes as PCI buffers and calls +* offset equal to 0, which drm_mmap() interprets as PCI buffers and calls * drm_mmap_dma(). */ int __drm_legacy_mapbufs(struct drm_device *dev, void *data, int *p,drivers/gpu/drm/drm_cache.c +1
-1@@ -170,7 +170,7 @@ drm_clflush_virt_range(void *addr, unsigned long length)for (; addr < end; addr += size)clflushopt (addr);clflushopt (end -1 );/* force serialisation */ -mb ();/*Ensure that evry data cache line entry is flushed*/ +mb ();/*Ensure that every data cache line entry is flushed*/ return ; }drivers/gpu/drm/drm_damage_helper.c +1
-1@@ -170,7 +170,7 @@ int drm_atomic_helper_dirtyfb(struct drm_framebuffer *fb,int ret =0 ;/* -* When called from ioctl, we are interruptable, but not when called +* When called from ioctl, we are interruptible, but not when called * internally (ie. defio worker) */ drm_modeset_acquire_init(&ctx,drivers/gpu/drm/drm_dp_helper.c +4
-4@@ -772,7 +772,7 @@ int drm_dp_downstream_max_tmds_clock(const u8 dpcd[DP_RECEIVER_CAP_SIZE],* It's left up to the driver to check the * DP dual mode adapter's max TMDS clock. * -* Unfortunatley it looks like branch devices +* Unfortunately it looks like branch devices * may not fordward that the DP dual mode i2c * access so we just usually get i2c nak :( */ @@ -1365,7 +1365,7 @@ static int drm_dp_i2c_msg_duration(const struct drm_dp_aux_msg *msg, }/* -* Deterine how many retries should be attempted to successfully transfer +* Determine how many retries should be attempted to successfully transfer * the specified message, based on the estimated durations of the * i2c and AUX transfers. */ @@ -1418,7 +1418,7 @@ static int drm_dp_i2c_do_msg(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg)/* * While timeouts can be errors, they're usually normal * behavior (for instance, when a driver tries to -* communicate with a non-existant DisplayPort device). +* communicate with a non-existent DisplayPort device). * Avoid spamming the kernel log with timeout errors. */ if (ret == -ETIMEDOUT )@@ -3327,7 +3327,7 @@ drm_edp_backlight_probe_max(struct drm_dp_aux *aux, struct drm_edp_backlight_inf fxp =DIV_ROUND_CLOSEST (1000 *DP_EDP_BACKLIGHT_FREQ_BASE_KHZ , driver_pwm_freq_hz);/* Use highest possible value of Pn for more granularity of brightness adjustment while -* satifying the conditions below. +* satisfying the conditions below. * - Pn is in the range of Pn_min and Pn_max * - F is in the range of 1 and 255 * - FxP is within 25% of desired value. drivers/gpu/drm/drm_drv.c +2
-2@@ -249,7 +249,7 @@ void drm_minor_release(struct drm_minor *minor)* Finally when everything is up and running and ready for userspace the device * instance can be published using drm_dev_register(). * -* There is also deprecated support for initalizing device instances using +* There is also deprecated support for initializing device instances using * bus-specific helpers and the &drm_driver.load callback. But due to * backwards-compatibility needs the device instance have to be published too * early, which requires unpretty global locking to make safe and is therefore @@ -379,7 +379,7 @@ void drm_minor_release(struct drm_minor *minor)* shortcoming however, drm_dev_unplug() marks the drm_device as unplugged before * drm_atomic_helper_shutdown() is called. This means that if the disable code * paths are protected, they will not run on regular driver module unload, -* possibily leaving the hardware enabled. +* possibly leaving the hardware enabled. */ /** drivers/gpu/drm/drm_dsc.c +1
-1@@ -98,7 +98,7 @@ void drm_dsc_pps_payload_pack(struct drm_dsc_picture_parameter_set *pps_payload, {int i; -/* Protect against someone accidently changing struct size */ +/* Protect against someone accidentally changing struct size */ BUILD_BUG_ON (sizeof (*pps_payload) !=DP_SDP_PPS_HEADER_PAYLOAD_BYTES_MINUS_1 +1 );drivers/gpu/drm/drm_edid.c +2
-2@@ -1919,7 +1919,7 @@ EXPORT_SYMBOL(drm_add_override_edid_modes);* level, drivers must make all reasonable efforts to expose it as an I2C * adapter and use drm_get_edid() instead of abusing this function. * -* The EDID may be overridden using debugfs override_edid or firmare EDID +* The EDID may be overridden using debugfs override_edid or firmware EDID * (drm_load_edid_firmware() and drm.edid_firmware parameter), in this priority * order. Having either of them bypasses actual EDID reads. * @@ -5906,7 +5906,7 @@ drm_hdmi_vendor_infoframe_from_display_mode(struct hdmi_vendor_infoframe *frame,* (ie.vic==0 and s3d_struct==0) we will still send it if we * know that the sink can handle it. This is based on a * suggestion in HDMI 2.0 Appendix F. Apparently some sinks -* have trouble realizing that they shuld switch from 3D to 2D +* have trouble realizing that they should switch from 3D to 2D * mode if the source simply stops sending the infoframe when * it wants to switch from 3D to 2D. */ drivers/gpu/drm/drm_fb_helper.c +1
-1@@ -565,7 +565,7 @@ struct fb_info *drm_fb_helper_alloc_fbi(struct drm_fb_helper *fb_helper) goto err_release;/* -* TODO: We really should be smarter here and alloc an apperture +* TODO: We really should be smarter here and alloc an aperture * for each IORESOURCE_MEM resource helper->dev->dev has and also * init the ranges of the appertures based on the resources. * Note some drivers currently count on there being only 1 empty drivers/gpu/drm/drm_file.c +3
-3@@ -405,7 +405,7 @@ static int drm_open_helper(struct file *filp, struct drm_minor *minor)* * RETURNS: * -* 0 on success or negative errno value on falure. +* 0 on success or negative errno value on failure. */ int drm_open (struct inode *inode,struct file *filp) {@@ -548,7 +548,7 @@ EXPORT_SYMBOL(drm_release_noglobal);* @offset: offset to read * * This function must be used by drivers as their &file_operations.read -* method iff they use DRM events for asynchronous signalling to userspace. +* method if they use DRM events for asynchronous signalling to userspace. * Since events are used by the KMS API for vblank and page flip completion this * means all modern display drivers must use it. * @@ -641,7 +641,7 @@ EXPORT_SYMBOL(drm_read);* @wait: poll waiter table * * This function must be used by drivers as their &file_operations.read method -* iff they use DRM events for asynchronous signalling to userspace. Since +* if they use DRM events for asynchronous signalling to userspace. Since * events are used by the KMS API for vblank and page flip completion this means * all modern display drivers must use it. * drivers/gpu/drm/drm_format_helper.c +1
-1@@ -412,7 +412,7 @@ EXPORT_SYMBOL(drm_fb_blit_rect_dstclip);* of the display and the framebuffer mismatch, the copy function will * attempt to convert between them. * -* See drm_fb_blit_rect_dstclip() for more inforamtion. +* See drm_fb_blit_rect_dstclip() for more information. * * Returns: * 0 on success, or a negative error code otherwise. drivers/gpu/drm/drm_framebuffer.c +1
-1@@ -1090,7 +1090,7 @@ void drm_framebuffer_remove(struct drm_framebuffer *fb)/* * drm ABI mandates that we remove any deleted framebuffers from active -* useage. But since most sane clients only remove framebuffers they no +* usage. But since most sane clients only remove framebuffers they no * longer need, try to optimize this away. * * Since we're holding a reference ourselves, observing a refcount of 1 drivers/gpu/drm/drm_gem.c +2
-2@@ -901,7 +901,7 @@ drm_gem_open_ioctl(struct drm_device *dev, void *data, }/** -* drm_gem_open - initalizes GEM file-private structures at devnode open time +* drm_gem_open - initializes GEM file-private structures at devnode open time * @dev: drm_device which is being opened by userspace * @file_private: drm file-private structure to set up * @@ -936,7 +936,7 @@ drm_gem_release(struct drm_device *dev, struct drm_file *file_private)* drm_gem_object_release - release GEM buffer object resources * @obj: GEM buffer object * -* This releases any structures and resources used by @obj and is the invers of +* This releases any structures and resources used by @obj and is the inverse of * drm_gem_object_init(). */ void drivers/gpu/drm/drm_gem_atomic_helper.c +2
-2@@ -52,7 +52,7 @@* * The helpers for shadow-buffered planes establish and release mappings, * and provide struct drm_shadow_plane_state, which stores the plane's mapping -* for commit-tail functons. +* for commit-tail functions. * * Shadow-buffered planes can easily be enabled by using the provided macros * %DRM_GEM_SHADOW_PLANE_FUNCS and %DRM_GEM_SHADOW_PLANE_HELPER_FUNCS. @@ -374,7 +374,7 @@ EXPORT_SYMBOL(drm_gem_prepare_shadow_fb);* This function implements struct &drm_plane_helper_funcs.cleanup_fb. * This function unmaps all buffer objects of the plane's framebuffer. * -* See drm_gem_prepare_shadow_fb() for more inforamtion. +* See drm_gem_prepare_shadow_fb() for more information. */ void drm_gem_cleanup_shadow_fb (struct drm_plane *plane,struct drm_plane_state *plane_state) {drivers/gpu/drm/drm_gem_shmem_helper.c +1
-1@@ -368,7 +368,7 @@ static void drm_gem_shmem_vunmap_locked(struct drm_gem_shmem_object *shmem, }/* -* drm_gem_shmem_vunmap - Unmap a virtual mapping fo a shmem GEM object +* drm_gem_shmem_vunmap - Unmap a virtual mapping for a shmem GEM object * @shmem: shmem GEM object * @map: Kernel virtual address where the SHMEM GEM object was mapped * drivers/gpu/drm/drm_gem_vram_helper.c +1
-1@@ -96,7 +96,7 @@ static const struct drm_gem_object_funcs drm_gem_vram_object_funcs;* memory region. Call drm_gem_vram_offset() to retrieve this value. Typically * it's used to program the hardware's scanout engine for framebuffers, set * the cursor overlay's image for a mouse cursor, or use it as input to the -* hardware's draing engine. +* hardware's drawing engine. * * To access a buffer object's memory from the DRM driver, call * drm_gem_vram_vmap(). It maps the buffer into kernel address drivers/gpu/drm/drm_hdcp.c +1
-1@@ -280,7 +280,7 @@ static int drm_hdcp_request_srm(struct drm_device *drm_dev,* https://www.digital-cp.com/sites/default/files/specifications/HDCP%20on%20HDMI%20Specification%20Rev2_2_Final1.pdf * * Returns: -* Count of the revoked KSVs or -ve error number incase of the failure. +* Count of the revoked KSVs or -ve error number in case of the failure. */ int drm_hdcp_check_ksvs_revoked (struct drm_device *drm_dev,u8 *ksvs,u32 ksv_count)drivers/gpu/drm/drm_ioctl.c +2
-2@@ -426,7 +426,7 @@ static int drm_setversion(struct drm_device *dev, void *data, struct drm_file *f }/** -* drm_noop - DRM no-op ioctl implemntation +* drm_noop - DRM no-op ioctl implementation * @dev: DRM device for the ioctl * @data: data pointer for the ioctl * @file_priv: DRM file for the ioctl call @@ -446,7 +446,7 @@ int drm_noop(struct drm_device *dev, void *data,EXPORT_SYMBOL (drm_noop);/** -* drm_invalid_op - DRM invalid ioctl implemntation +* drm_invalid_op - DRM invalid ioctl implementation * @dev: DRM device for the ioctl * @data: data pointer for the ioctl * @file_priv: DRM file for the ioctl call drivers/gpu/drm/drm_irq.c +1
-1@@ -72,7 +72,7 @@* The DRM core provides very simple support helpers to enable IRQ handling on a * device through the drm_irq_install() and drm_irq_uninstall() functions. This * only supports devices with a single interrupt on the main device stored in -* &drm_device.dev and set as the device paramter in drm_dev_alloc(). +* &drm_device.dev and set as the device parameter in drm_dev_alloc(). * * These IRQ helpers are strictly optional. Since these helpers don't automatically * clean up the requested interrupt like e.g. devm_request_irq() they're not really drivers/gpu/drm/drm_mm.c +1
-1@@ -700,7 +700,7 @@ EXPORT_SYMBOL(drm_mm_replace_node);* interfaces. First a scan operation needs to be initialized with * drm_mm_scan_init() or drm_mm_scan_init_with_range(). The driver adds * objects to the roster, probably by walking an LRU list, but this can be -* freely implemented. Eviction candiates are added using +* freely implemented. Eviction candidates are added using * drm_mm_scan_add_block() until a suitable hole is found or there are no * further evictable objects. Eviction roster metadata is tracked in &struct * drm_mm_scan. drivers/gpu/drm/drm_mode_object.c +1
-1@@ -91,7 +91,7 @@ void drm_mode_object_register(struct drm_device *dev, }/** -* drm_mode_object_unregister - free a modeset identifer +* drm_mode_object_unregister - free a modeset identifier * @dev: DRM device * @object: object to free * drivers/gpu/drm/drm_modes.c +2
-2@@ -1542,7 +1542,7 @@ static int drm_mode_parse_cmdline_int(const char *delim, unsigned int *int_ret)/* * delim must point to the '=', otherwise it is a syntax error and -* if delim points to the terminating zero, then delim + 1 wil point +* if delim points to the terminating zero, then delim + 1 will point * past the end of the string. */ if (*delim !='=' )@@ -1972,7 +1972,7 @@ int drm_mode_convert_umode(struct drm_device *dev, out->flags = in->flags;/* * Old xf86-video-vmware (possibly others too) used to -* leave 'type' unititialized. Just ignore any bits we +* leave 'type' uninitialized. Just ignore any bits we * don't like. It's a just hint after all, and more * useful for the kernel->userspace direction anyway. */ drivers/gpu/drm/drm_plane.c +1
-1@@ -38,7 +38,7 @@/** * DOC: overview * -* A plane represents an image source that can be blended with or overlayed on +* A plane represents an image source that can be blended with or overlaid on * top of a CRTC during the scanout process. Planes take their input data from a * &drm_framebuffer object. The plane itself specifies the cropping and scaling * of that image, and where it is placed on the visible area of a display drivers/gpu/drm/drm_plane_helper.c +1
-1@@ -210,7 +210,7 @@ static int drm_primary_helper_update(struct drm_plane *plane, struct drm_crtc *c* We call set_config() directly here rather than using * drm_mode_set_config_internal. We're reprogramming the same * connectors that were already in use, so we shouldn't need the extra -* cross-CRTC fb refcounting to accomodate stealing connectors. +* cross-CRTC fb refcounting to accommodate stealing connectors. * drm_mode_setplane() already handles the basic refcounting for the * framebuffers involved in this operation. */ drivers/gpu/drm/drm_prime.c +1
-1@@ -73,7 +73,7 @@* Thus the chain of references always flows in one direction, avoiding loops: * importing GEM object -> dma-buf -> exported GEM bo. A further complication * are the lookup caches for import and export. These are required to guarantee -* that any given object will always have only one uniqe userspace handle. This +* that any given object will always have only one unique userspace handle. This * is required to allow userspace to detect duplicated imports, since some GEM * drivers do fail command submissions if a given buffer object is listed more * than once. These import and export caches in &drm_prime_file_private only drivers/gpu/drm/drm_probe_helper.c +1
-1@@ -757,7 +757,7 @@ EXPORT_SYMBOL(drm_kms_helper_poll_disable);* drm_kms_helper_poll_init - initialize and enable output polling * @dev: drm_device * -* This function intializes and then also enables output polling support for +* This function initializes and then also enables output polling support for * @dev. Drivers which do not have reliable hotplug support in hardware can use * this helper infrastructure to regularly poll such connectors for changes in * their connection state. drivers/gpu/drm/drm_property.c +1
-1@@ -434,7 +434,7 @@ EXPORT_SYMBOL(drm_property_add_enum);/** * drm_property_destroy - destroy a drm property * @dev: drm device -* @property: property to destry +* @property: property to destroy * * This function frees a property including any attached resources like * enumeration values. drivers/gpu/drm/drm_scdc_helper.c +1
-1@@ -241,7 +241,7 @@ bool drm_scdc_set_high_tmds_clock_ratio(struct i2c_adapter *adapter, bool set)/* * The spec says that a source should wait minimum 1ms and maximum * 100ms after writing the TMDS config for clock ratio. Lets allow a -* wait of upto 2ms here. +* wait of up to 2ms here. */ usleep_range (1000 ,2000 );return true;drivers/gpu/drm/drm_syncobj.c +1
-1@@ -725,7 +725,7 @@ static int drm_syncobj_export_sync_file(struct drm_file *file_private,return ret; }/** -* drm_syncobj_open - initalizes syncobj file-private structures at devnode open time +* drm_syncobj_open - initializes syncobj file-private structures at devnode open time * @file_private: drm file-private structure to set up * * Called at device open time, sets up the structure for handling refcounting drivers/gpu/drm/drm_vblank.c +6
-6@@ -191,7 +191,7 @@ static u32 drm_max_vblank_count(struct drm_device *dev, unsigned int pipe)/* * "No hw counter" fallback implementation of .get_vblank_counter() hook, -* if there is no useable hardware frame counter available. +* if there is no usable hardware frame counter available. */ static u32 drm_vblank_no_hw_counter (struct drm_device *dev,unsigned int pipe) {@@ -905,7 +905,7 @@ drm_get_last_vbltimestamp(struct drm_device *dev, unsigned int pipe,* and drm_crtc_vblank_count() or drm_crtc_vblank_count_and_time() * provide a barrier: Any writes done before calling * drm_crtc_handle_vblank() will be visible to callers of the later -* functions, iff the vblank count is the same or a later one. +* functions, if the vblank count is the same or a later one. * * See also &drm_vblank_crtc.count. * @@ -968,7 +968,7 @@ static u64 drm_vblank_count_and_time(struct drm_device *dev, unsigned int pipe,* and drm_crtc_vblank_count() or drm_crtc_vblank_count_and_time() * provide a barrier: Any writes done before calling * drm_crtc_handle_vblank() will be visible to callers of the later -* functions, iff the vblank count is the same or a later one. +* functions, if the vblank count is the same or a later one. * * See also &drm_vblank_crtc.count. */ @@ -1997,7 +1997,7 @@ EXPORT_SYMBOL(drm_handle_vblank);* and drm_crtc_vblank_count() or drm_crtc_vblank_count_and_time() * provide a barrier: Any writes done before calling * drm_crtc_handle_vblank() will be visible to callers of the later -* functions, iff the vblank count is the same or a later one. +* functions, if the vblank count is the same or a later one. * * See also &drm_vblank_crtc.count. * @@ -2014,7 +2014,7 @@ EXPORT_SYMBOL(drm_crtc_handle_vblank);* Get crtc VBLANK count. * * \param dev DRM device -* \param data user arguement, pointing to a drm_crtc_get_sequence structure. +* \param data user argument, pointing to a drm_crtc_get_sequence structure. * \param file_priv drm file private for the user's open file descriptor */ @@ -2070,7 +2070,7 @@ int drm_crtc_get_sequence_ioctl(struct drm_device *dev, void *data,* Queue a event for VBLANK sequence * * \param dev DRM device -* \param data user arguement, pointing to a drm_crtc_queue_sequence structure. +* \param data user argument, pointing to a drm_crtc_queue_sequence structure. * \param file_priv drm file private for the user's open file descriptor */ drivers/gpu/drm/drm_vma_manager.c +1
-1@@ -361,7 +361,7 @@ EXPORT_SYMBOL(drm_vma_node_revoke);* This is locked against concurrent access internally. * * RETURNS: -* true iff @filp is on the list +* true if @filp is on the list */ bool drm_vma_node_is_allowed (struct drm_vma_offset_node *node,struct drm_file *tag)Signature · 1 line
2.25.1
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch
Hello,
Quoted 20 lines
-----Original Message-----
From: Daniel Vetter <[email protected]>
Sent: 2021年8月2日 16:20
To: Cai,Huoqing <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; dri- [email protected]
Subject: Re: [PATCH v2] drm: Fix typo in commentsQuoted 6 lines · Cai Huoqing
fix typo for drm
v1->v2:
respin with the change "iff ==> implies that"Reviewed-by Daniel Vetter <[email protected]>I did not give you a Reviewed-by: tag, please dont forge them. At least in the linux kernel an r-b tag is a fairly formal statement:
Quoted 6 lines
https://dri.freedesktop.org/docs/drm/process/submitting-
patches.html?highlight=statement%20oversight#reviewer-s-statement-of- oversightThe more informal Acked-by is generally ok to add if you get something like "looks good to me", but better to ask for confirmation too in that case.
I'm very sorry, this is my mistake
I will remove it.
Quoted 2 lines
I've removed it before pushing.
It's ok
Quoted 845 lines
Quoted 2 lines
Signed-off-by Cai Huoqing <[email protected]>Pushed to drm-misc-next, thanks for your patch.
-Danieldrivers/gpu/drm/drm_atomic.c static void drm_atomic_plane_print_state(struct
Quoted 61 lines
--- drivers/gpu/drm/drm_aperture.c | 2 +- drivers/gpu/drm/drm_atomic.c | 2 +- drivers/gpu/drm/drm_atomic_helper.c | 10 +++++----- drivers/gpu/drm/drm_atomic_uapi.c | 6 +++--- drivers/gpu/drm/drm_auth.c | 2 +- drivers/gpu/drm/drm_bridge.c | 2 +- drivers/gpu/drm/drm_bufs.c | 2 +- drivers/gpu/drm/drm_cache.c | 2 +- drivers/gpu/drm/drm_damage_helper.c | 2 +- drivers/gpu/drm/drm_dp_helper.c | 8 ++++---- drivers/gpu/drm/drm_drv.c | 4 ++-- drivers/gpu/drm/drm_dsc.c | 2 +- drivers/gpu/drm/drm_edid.c | 4 ++-- drivers/gpu/drm/drm_fb_helper.c | 2 +- drivers/gpu/drm/drm_file.c | 6 +++--- drivers/gpu/drm/drm_format_helper.c | 2 +- drivers/gpu/drm/drm_framebuffer.c | 2 +- drivers/gpu/drm/drm_gem.c | 4 ++-- drivers/gpu/drm/drm_gem_atomic_helper.c | 4 ++-- drivers/gpu/drm/drm_gem_shmem_helper.c | 2 +- drivers/gpu/drm/drm_gem_vram_helper.c | 2 +- drivers/gpu/drm/drm_hdcp.c | 2 +- drivers/gpu/drm/drm_ioctl.c | 4 ++-- drivers/gpu/drm/drm_irq.c | 2 +- drivers/gpu/drm/drm_mm.c | 2 +- drivers/gpu/drm/drm_mode_object.c | 2 +- drivers/gpu/drm/drm_modes.c | 4 ++-- drivers/gpu/drm/drm_plane.c | 2 +- drivers/gpu/drm/drm_plane_helper.c | 2 +- drivers/gpu/drm/drm_prime.c | 2 +- drivers/gpu/drm/drm_probe_helper.c | 2 +- drivers/gpu/drm/drm_property.c | 2 +- drivers/gpu/drm/drm_scdc_helper.c | 2 +- drivers/gpu/drm/drm_syncobj.c | 2 +- drivers/gpu/drm/drm_vblank.c | 12 ++++++------ drivers/gpu/drm/drm_vma_manager.c | 2 +- 36 files changed, 58 insertions(+), 58 deletions(-)(quoted diff) +0
-0
b/drivers/gpu/drm/drm_aperture.cindex9ac39cf11694..74bd4a76b253100644drivers/gpu/drm/drm_aperture.c +0
-0@@ -78,7 +78,7 @@* * Drivers that are susceptible to being removed by other drivers, such as * generic EFI or VESA drivers, have to register themselves as owners of their
- * given framebuffer memory. Ownership of the framebuffer memory is achived
+ * given framebuffer memory. Ownership of the framebuffer memory is
+ achieved
* by callingdevm_aperture_acquire_from_firmware(). On success, the driver
* is the owner of the framebuffer range. The function fails if the
* framebuffer is already by another driver. See below for an example.(quoted diff) +0
-0
b/drivers/gpu/drm/drm_atomic.cindexd820423fac32..b127e30082ba100644drivers/gpu/drm/drm_atomic.c +0
-0@@ -723,7 +723,7 @@ static void drm_atomic_plane_print_state(struct
drm_printer*p,drivers/gpu/drm/drm_atomic_helper.c drm_atomic_helper_check_modeset(struct
Quoted 17 lines
drivers/gpu/drm/drm_atomic.c +0
-0* clocks, scaler units, bandwidth and fifo limits shared among a group of * planes or CRTCs, and so on) it makes sense to model these as independent * objects. Drivers then need to do similar state tracking and commit ordering for
- * such private (since not exposed to userpace) objects as the atomic core and
+ * such private (since not exposed to userspace) objects as the
+ atomic core and
* helpers already provide for connectors, planes and CRTCs. *
* To make this easier on drivers the atomic core provides some
support to track diff --gita/drivers/gpu/drm/drm_atomic_helper.cb/drivers/gpu/drm/drm_atomic_helper.c
indexf7bf1ea62d58..7ee480b6efde100644drivers/gpu/drm/drm_atomic_helper.c +0
-0@@ -634,7 +634,7 @@ drm_atomic_helper_check_modeset(struct
drm_device*dev,drivers/gpu/drm/drm_atomic_helper.c drm_atomic_helper_check_modeset(struct drm_device *dev,
Quoted 5 lines
drivers/gpu/drm/drm_atomic_helper.c +1
-1* connectors and a NULL mode. * * The other way around is true as well. enable != 0 -* iff connectors are attached and a mode is set. +* implies that connectors are attached and a mode is set.
drivers/gpu/drm/drm_atomic_helper.c drm_atomic_helper_check_modeset(struct drm_device *dev,
Quoted 3 lines
drivers/gpu/drm/drm_atomic_helper.c +0
-0*/ new_crtc_state->mode_changed = true; new_crtc_state->connectors_changed = true; @@ -1686,7 +1686,7 @@
drivers/gpu/drm/drm_atomic_helper.c
Quoted 35 lines
static void
commit_work(struct work_struct *work)}/**
- *drm_atomic_helper_async_check- check if state can be commited asynchronously
+ *drm_atomic_helper_async_check- check if state can be committed
+ asynchronously
* @dev: DRM device
* @state: the driver state object
*drivers/gpu/drm/drm_atomic_helper.c +0
-0@@ -1695,7 +1695,7 @@ static void commit_work(struct work_struct *work)* but just do in-place changes on the current state. * * It will return 0 if the commit can happen in an asynchronous fashion or error
- * if not. Note that error just mean it can't be commited asynchronously, if it
+ * if not. Note that error just mean it can't be committed
+ asynchronously, if it
* fails the commit should be treated like a normal synchronous commit. */
int drm_atomic_helper_async_check(structdrm_device*dev, @@ -2583,7
+2583,7 @@EXPORT_SYMBOL(drm_atomic_helper_commit_planes);
*
* This function can only be savely used when planes are not allowed to move
* between different CRTCs because this function doesn't handle
inter-CRTC
- * depencies. Callers need to ensure that either no such depencies exist,
+ * dependencies. Callers need to ensure that either no such
+ dependencies exist,
* resolve them through ordering of commit calls or through some other means. */
voiddrivers/gpu/drm/drm_atomic_helper.c +0
-0@@ -2720,7 +2720,7 @@
EXPORT_SYMBOL(drm_atomic_helper_cleanup_planes);Quoted 14 lines
drivers/gpu/drm/drm_atomic_helper.c +1
-1/** * drm_atomic_helper_swap_state - store atomic state into current sw state * @state: atomic state -* @stall: stall for preceeding commits +* @stall: stall for preceding commits * * This function stores the atomic state into the current state pointers in all * driver objects. It should be called after all failing steps have been done diff --git
a/drivers/gpu/drm/drm_atomic_uapi.cb/drivers/gpu/drm/drm_atomic_uapi.c
index7e48d40600ff..909f31833181100644drivers/gpu/drm/drm_atomic_uapi.c line 48
Quoted 1 line
drivers/gpu/drm/drm_atomic_uapi.c +0
-0@@ -48,7 +48,7 @@* in all its forms: The monster ATOMIC IOCTL itself, code for GET_PROPERTY and
drivers/gpu/drm/drm_atomic_uapi.c static int drm_atomic_connector_set_property(struct
Quoted 8 lines
drivers/gpu/drm/drm_atomic_uapi.c +1
-1* SET_PROPERTY IOCTLs. Plus interface functions for compatibility helpers and * drivers which have special needs to construct their own atomic updates, e.g. -* for load detect or similiar. +* for load detect or similar. */ /** @@ -753,7 +753,7 @@ static int drm_atomic_connector_set_property(struct
drm_connector*connector,drivers/gpu/drm/drm_atomic_uapi.c static int drm_atomic_connector_set_property(struct drm_connector *connector,
Quoted 8 lines
drivers/gpu/drm/drm_atomic_uapi.c +1
-1* restore the state it wants on VT switch. So if the userspace * tries to change the link_status from GOOD to BAD, driver * silently rejects it and returns a 0. This prevents userspace -* from accidently breaking the display when it restores the +* from accidentally breaking the display when it restores the * state. */ if (state->link_status != DRM_LINK_STATUS_GOOD) @@ -1064,7 +1064,7
Quoted 17 lines
@@ int drm_atomic_set_property(struct
drm_atomic_state*state,
* DOC: explicit fencing properties
*
* Explicit fencing allows userspace to control the buffer
synchronization
- * between devices. A Fence or a group of fences are transfered to/from
+ * between devices. A Fence or a group of fences are transferred
+ to/from
* userspace using Sync File fds and there are two DRM properties for that.
*IN_FENCE_FDon each DRM Plane to send fences to the kernel and
*OUT_FENCE_PTRon each DRM CRTC to receive fences from the kernel.drivers/gpu/drm/drm_auth.c +0
-0drivers/gpu/drm/drm_auth.c line 53
Quoted 2 lines
drivers/gpu/drm/drm_auth.c +0
-0@@ -52,7 +52,7 @@* * In addition only one &drm_master can be the current master for a
&drm_device.drivers/gpu/drm/drm_bridge.c drm_atomic_bridge_propagate_bus_flags(struct
Quoted 14 lines
drivers/gpu/drm/drm_auth.c +0
-0* It can be switched through the DROP_MASTER and SET_MASTER IOCTL, or
- * implicitly through closing/openeing the primary device node. See also
+ * implicitly through closing/opening the primary device node. See
+ also
*drm_is_current_master().
*
* Clients can authenticate against the current master (if it matches
their own) diff --gita/drivers/gpu/drm/drm_bridge.cb/drivers/gpu/drm/drm_bridge.cindex044acd07c153..d4d447a8725a100644drivers/gpu/drm/drm_bridge.c +0
-0@@ -972,7 +972,7 @@ drm_atomic_bridge_propagate_bus_flags(struct
drm_bridge*bridge,drivers/gpu/drm/drm_bufs.c int drm_legacy_freebufs(struct drm_device *dev,
Quoted 14 lines
drivers/gpu/drm/drm_bridge.c +2
-1bridge_state->output_bus_cfg.flags = output_flags;/* -* Propage the output flags to the input end of the bridge. Again, it's +* Propagate the output flags to the input end of the bridge. Again, +it's * not necessarily what all bridges want, but that's what most of them * do, and by doing that by default we avoid forcing drivers to * duplicate the "dummy propagation" logic. drivers/gpu/drm/drm_bufs.c +0
-0@@ -1502,7 +1502,7 @@ int drm_legacy_freebufs(struct drm_device *dev,void *data,
drivers/gpu/drm/drm_bufs.c int drm_legacy_freebufs(struct drm_device *dev, · line 1503
Quoted 2 lines
drivers/gpu/drm/drm_bufs.c +0
-0* * Maps the AGP, SG or PCI buffer region with vm_mmap(), and copies information
drivers/gpu/drm/drm_cache.c drm_clflush_virt_range(void *addr, unsigned long
Quoted 14 lines
drivers/gpu/drm/drm_bufs.c +0
-0* about each buffer into user space. For PCI buffers, it calls
vm_mmap()with
- * offset equal to 0, whichdrm_mmap()interpretes as PCI buffers and calls
+ * offset equal to 0, whichdrm_mmap()interprets as PCI buffers and
+ calls
*drm_mmap_dma().
*/
int __drm_legacy_mapbufs(structdrm_device*dev, void *data, int *p,drivers/gpu/drm/drm_cache.c +0
-0@@ -170,7 +170,7 @@ drm_clflush_virt_range(void *addr, unsigned longlength)
drivers/gpu/drm/drm_damage_helper.c int drm_atomic_helper_dirtyfb(struct
Quoted 14 lines
drivers/gpu/drm/drm_cache.c +1
-1for (; addr < end; addr += size)clflushopt (addr);clflushopt (end -1 );/* force serialisation */ -mb ();/*Ensure that evry data cache line entry is flushed*/ +mb ();/*Ensure that every data cache line entry is flushed*/ return ; }drivers/gpu/drm/drm_damage_helper.c +0
-0@@ -170,7 +170,7 @@ int drm_atomic_helper_dirtyfb(struct
drm_framebuffer*fb,drivers/gpu/drm/drm_dp_helper.c int drm_dp_downstream_max_tmds_clock(const u8
Quoted 14 lines
drivers/gpu/drm/drm_damage_helper.c +1
-1int ret =0 ;/* -* When called from ioctl, we are interruptable, but not when called +* When called from ioctl, we are interruptible, but not when called * internally (ie. defio worker) */ drm_modeset_acquire_init(&ctx,(quoted diff) +0
-0
b/drivers/gpu/drm/drm_dp_helper.cindexb5f75ca05774..ed3ed6d3da25100644drivers/gpu/drm/drm_dp_helper.c +0
-0@@ -772,7 +772,7 @@ int drm_dp_downstream_max_tmds_clock(const u8dpcd[DP_RECEIVER_CAP_SIZE],
drivers/gpu/drm/drm_dp_helper.c static int drm_dp_i2c_do_msg(struct drm_dp_aux
Quoted 20 lines
drivers/gpu/drm/drm_dp_helper.c +1
-2* It's left up to the driver to check the * DP dual mode adapter's max TMDS clock. * -* Unfortunatley it looks like branch devices +* Unfortunately it looks like branch devices * may not fordward that the DP dual mode i2c * access so we just usually get i2c nak :( */ @@ -1365,7 +1365,7 @@ static int drm_dp_i2c_msg_duration(const struct drm_dp_aux_msg *msg, }/* -* Deterine how many retries should be attempted to successfully transfer
+ * Determine how many retries should be attempted to successfully
+ transfer
* the specified message, based on the estimated durations of the
* i2c and AUX transfers.
*/drivers/gpu/drm/drm_dp_helper.c +0
-0@@ -1418,7 +1418,7 @@ static int drm_dp_i2c_do_msg(struct drm_dp_aux*aux, struct
drm_dp_aux_msg*msg)drivers/gpu/drm/drm_dp_helper.c drm_edp_backlight_probe_max(struct drm_dp_aux
Quoted 9 lines
drivers/gpu/drm/drm_dp_helper.c +1
-1/* * While timeouts can be errors, they're usually normal * behavior (for instance, when a driver tries to -* communicate with a non-existant DisplayPort device). +* communicate with a non-existent DisplayPort device). * Avoid spamming the kernel log with timeout errors. */ if (ret == -ETIMEDOUT )@@ -3327,7 +3327,7 @@ drm_edp_backlight_probe_max(struct drm_dp_aux*aux, struct
drm_edp_backlight_infdrivers/gpu/drm/drm_dp_helper.c drm_edp_backlight_probe_max(struct drm_dp_aux · line 3327
Quoted 1 line
drivers/gpu/drm/drm_dp_helper.c +0
-0fxp = DIV_ROUND_CLOSEST(1000 *
DP_EDP_BACKLIGHT_FREQ_BASE_KHZ,drivers/gpu/drm/drm_dp_helper.c drm_edp_backlight_probe_max(struct drm_dp_aux · line 3330
Quoted 3 lines
drivers/gpu/drm/drm_dp_helper.c +0
-0driver_pwm_freq_hz);/* Use highest possible value of Pn for more granularity of brightness adjustment while
Quoted 14 lines
drivers/gpu/drm/drm_dp_helper.c +1
-1-* satifying the conditions below. +* satisfying the conditions below. * - Pn is in the range of Pn_min and Pn_max * - F is in the range of 1 and 255 drivers/gpu/drm/drm_dp_helper.c +0
-0* - FxP is within 25% of desired value. drivers/gpu/drm/drm_drv.c +0
-1@@ -249,7 +249,7 @@ void drm_minor_release(struct drm_minor *minor)* Finally when everything is up and running and ready for userspace the device * instance can be published using drm_dev_register(). * -* There is also deprecated support for initalizing device instances Quoted 7 lines
using
+ * There is also deprecated support for initializing device instances
+ using
* bus-specific helpers and the &drm_driver.load callback. But due to
* backwards-compatibility needs the device instance have to be published too
* early, which requires unpretty global locking to make safe and is
therefore @@ -379,7 +379,7 @@ void drm_minor_release(structdrm_minor*minor)
Quoted 1 line
* shortcoming however,
drm_dev_unplug()marks thedrm_deviceasunplugged before
Quoted 30 lines
*
drm_atomic_helper_shutdown()is called. This means that if the disable code
* paths are protected, they will not run on regular driver module
unload,
- * possibily leaving the hardware enabled.
+ * possibly leaving the hardware enabled.
*//**
drivers/gpu/drm/drm_dsc.c +1
-1@@ -98,7 +98,7 @@ void drm_dsc_pps_payload_pack(struct drm_dsc_picture_parameter_set *pps_payload, { int i; -/* Protect against someone accidently changing struct size */ +/* Protect against someone accidentally changing struct size */ BUILD_BUG_ON (sizeof (*pps_payload) !=DP_SDP_PPS_HEADER_PAYLOAD_BYTES_MINUS_1 +1 );drivers/gpu/drm/drm_edid.c +0
-1@@ -1919,7 +1919,7 @@ EXPORT_SYMBOL(drm_add_override_edid_modes);* level, drivers must make all reasonable efforts to expose it as an I2C * adapter and use drm_get_edid() instead of abusing this function. * -* The EDID may be overridden using debugfs override_edid or firmare Quoted 4 lines
EDID
+ * The EDID may be overridden using debugfsoverride_edidor firmware
+ EDID
* (drm_load_edid_firmware()and drm.edid_firmware parameter), in thispriority
drivers/gpu/drm/drm_edid.c
Quoted 3 lines
* order. Having either of them bypasses actual EDID reads. *
drivers/gpu/drm/drm_edid.c +0
-0@@ -5906,7 +5906,7 @@drm_hdmi_vendor_infoframe_from_display_mode(struct
hdmi_vendor_infoframe*frame,drivers/gpu/drm/drm_fb_helper.c struct fb_info *drm_fb_helper_alloc_fbi(struct
Quoted 14 lines
drivers/gpu/drm/drm_edid.c +1
-1* (ie.vic==0 and s3d_struct==0) we will still send it if we * know that the sink can handle it. This is based on a * suggestion in HDMI 2.0 Appendix F. Apparently some sinks -* have trouble realizing that they shuld switch from 3D to 2D +* have trouble realizing that they should switch from 3D to 2D * mode if the source simply stops sending the infoframe when * it wants to switch from 3D to 2D. */ (quoted diff) +0
-0
b/drivers/gpu/drm/drm_fb_helper.cindexd77a24507d30..3ab078321045100644drivers/gpu/drm/drm_fb_helper.c +0
-0@@ -565,7 +565,7 @@ struct fb_info *drm_fb_helper_alloc_fbi(struct
drm_fb_helper*fb_helper)drivers/gpu/drm/drm_file.c static int drm_open_helper(struct file *filp, struct
Quoted 13 lines
drivers/gpu/drm/drm_fb_helper.c +1
-1goto err_release;/* -* TODO: We really should be smarter here and alloc an apperture +* TODO: We really should be smarter here and alloc an aperture * for each IORESOURCE_MEM resource helper->dev->dev has and also * init the ranges of the appertures based on the resources. * Note some drivers currently count on there being only 1 empty drivers/gpu/drm/drm_file.c +0
-0@@ -405,7 +405,7 @@ static int drm_open_helper(struct file *filp, struct
drm_minor*minor)Quoted 21 lines
drivers/gpu/drm/drm_file.c +2
-1* * RETURNS: * -* 0 on success or negative errno value on falure. +* 0 on success or negative errno value on failure. */ int drm_open(struct inode *inode, struct file *filp) { @@ -548,7 +548,7 @@ EXPORT_SYMBOL(drm_release_noglobal); * @offset: offset to read * * This function must be used by drivers as their&file_operations.read
- * method iff they use DRM events for asynchronous signalling to userspace.
+ * method if they use DRM events for asynchronous signalling to userspace.
* Since events are used by the KMS API for vblank and page flip completion this
* means all modern display drivers must use it.
*drivers/gpu/drm/drm_file.c +0
-0@@ -641,7 +641,7 @@ EXPORT_SYMBOL(drm_read);* @wait: poll waiter table * * This function must be used by drivers as their Quoted 6 lines
&file_operations.read method
- * iff they use DRM events for asynchronous signalling to userspace. Since
+ * if they use DRM events for asynchronous signalling to userspace.
+ Since
* events are used by the KMS API for vblank and page flip completion thismeans
Quoted 22 lines
* all modern display drivers must use it.
*drivers/gpu/drm/drm_format_helper.c +1
-1@@ -412,7 +412,7 @@ EXPORT_SYMBOL(drm_fb_blit_rect_dstclip);* of the display and the framebuffer mismatch, the copy function will * attempt to convert between them. * -* See drm_fb_blit_rect_dstclip() for more inforamtion. +* See drm_fb_blit_rect_dstclip() for more information. * * Returns: * 0 on success, or a negative error code otherwise. drivers/gpu/drm/drm_framebuffer.c +0
-0drivers/gpu/drm/drm_framebuffer.c void drm_framebuffer_remove(struct · line 1093
Quoted 4 lines
drivers/gpu/drm/drm_framebuffer.c +0
-0@@ -1090,7 +1090,7 @@ void drm_framebuffer_remove(struct drm_framebuffer *fb)/* * drm ABI mandates that we remove any deleted framebuffers from active
drivers/gpu/drm/drm_gem.c drm_gem_release(struct drm_device *dev, struct
Quoted 22 lines
drivers/gpu/drm/drm_framebuffer.c +2
-1-* useage. But since most sane clients only remove framebuffers they no + * usage. But since most sane clients only remove framebuffers they +no * longer need, try to optimize this away. * * Since we're holding a reference ourselves, observing a refcountof 1 diff --git
a/drivers/gpu/drm/drm_gem.cb/drivers/gpu/drm/drm_gem.cindex68deb1de8235..6c102ba2d9ac100644drivers/gpu/drm/drm_gem.c +0
-1@@ -901,7 +901,7 @@ drm_gem_open_ioctl(struct drm_device *dev, void *data, }/** -* drm_gem_open - initalizes GEM file-private structures at devnode open time
+ *drm_gem_open- initializes GEM file-private structures at devnode
+ open time
* @dev:drm_devicewhich is being opened by userspace
* @file_private: drm file-private structure to set up
*drivers/gpu/drm/drm_gem.c +0
-0@@ -936,7 +936,7 @@ drm_gem_release(struct drm_device *dev, struct
drm_file*file_private)Quoted 19 lines
drivers/gpu/drm/drm_gem.c +0
-1* drm_gem_object_release - release GEM buffer object resources * @obj: GEM buffer object * -* This releases any structures and resources used by @obj and is the invers of
+ * This releases any structures and resources used by @obj and is the
+ inverse of
*drm_gem_object_init().
*/
voiddrivers/gpu/drm/drm_gem_atomic_helper.c +0
-0@@ -52,7 +52,7 @@* * The helpers for shadow-buffered planes establish and release mappings, * and provide struct drm_shadow_plane_state, which stores the Quoted 6 lines
plane's mapping
- * for commit-tail functons.
+ * for commit-tail functions.
*
* Shadow-buffered planes can easily be enabled by using the provided macros
* %DRM_GEM_SHADOW_PLANE_FUNCSand %DRM_GEM_SHADOW_PLANE_HELPER_FUNCS.
drivers/gpu/drm/drm_gem_vram_helper.c static const struct drm_gem_object_funcs
Quoted 31 lines
drivers/gpu/drm/drm_gem_atomic_helper.c +1
-1@@ -374,7 +374,7 @@ EXPORT_SYMBOL(drm_gem_prepare_shadow_fb);* This function implements struct &drm_plane_helper_funcs.cleanup_fb. * This function unmaps all buffer objects of the plane's framebuffer. * -* See drm_gem_prepare_shadow_fb() for more inforamtion. +* See drm_gem_prepare_shadow_fb() for more information. */ void drm_gem_cleanup_shadow_fb(struct drm_plane *plane, struct
drm_plane_state*plane_state) { diff --gita/drivers/gpu/drm/drm_gem_shmem_helper.cb/drivers/gpu/drm/drm_gem_shmem_helper.c
indexd5e6d4568f99..a61946374c82100644drivers/gpu/drm/drm_gem_shmem_helper.c +0
-1@@ -368,7 +368,7 @@ static void drm_gem_shmem_vunmap_locked(struct drm_gem_shmem_object *shmem, }/* -* drm_gem_shmem_vunmap - Unmap a virtual mapping fo a shmem GEM object
+ *drm_gem_shmem_vunmap- Unmap a virtual mapping for a shmem GEM
+ object
* @shmem: shmem GEM object
* @map: Kernel virtual address where the SHMEM GEM object was mapped *drivers/gpu/drm/drm_gem_vram_helper.c +0
-0@@ -96,7 +96,7 @@ static const struct drm_gem_object_funcs
drm_gem_vram_object_funcs;drivers/gpu/drm/drm_hdcp.c static int drm_hdcp_request_srm(struct drm_device
Quoted 14 lines
drivers/gpu/drm/drm_gem_vram_helper.c +0
-0* memory region. Call drm_gem_vram_offset() to retrieve this value. Typically * it's used to program the hardware's scanout engine for framebuffers, set * the cursor overlay's image for a mouse cursor, or use it as input to the
- * hardware's draing engine.
+ * hardware's drawing engine.
*
* To access a buffer object's memory from the DRM driver, call
*drm_gem_vram_vmap(). It maps the buffer into kernel address diff
--gita/drivers/gpu/drm/drm_hdcp.cb/drivers/gpu/drm/drm_hdcp.cindex910108ccaae1..ca9b8f697202100644drivers/gpu/drm/drm_hdcp.c +0
-0@@ -280,7 +280,7 @@ static int drm_hdcp_request_srm(struct drm_device
*drm_dev,drivers/gpu/drm/drm_hdcp.c static int drm_hdcp_request_srm(struct drm_device · line 280
Quoted 1 line
drivers/gpu/drm/drm_hdcp.c +0
-0* https://www.digital- cp.com/sites/default/files/specifications/HDCP%20on%20HDMI%20Specification %20Rev2_2_Final1.pdf
Quoted 33 lines
drivers/gpu/drm/drm_hdcp.c +1
-1* * Returns: -* Count of the revoked KSVs or -ve error number incase of the failure. +* Count of the revoked KSVs or -ve error number in case of the failure. */ int drm_hdcp_check_ksvs_revoked (struct drm_device *drm_dev,u8 *ksvs,u32 ksv_count)drivers/gpu/drm/drm_ioctl.c +1
-1@@ -426,7 +426,7 @@ static int drm_setversion(struct drm_device *dev, void *data, struct drm_file *f }/** -* drm_noop - DRM no-op ioctl implemntation +* drm_noop - DRM no-op ioctl implementation * @dev: DRM device for the ioctl * @data: data pointer for the ioctl * @file_priv: DRM file for the ioctl call @@ -446,7 +446,7 @@ int drm_noop(struct
drm_device*dev, void *data,EXPORT_SYMBOL(drm_noop);/**
- *drm_invalid_op- DRM invalid ioctl implemntation
+ *drm_invalid_op- DRM invalid ioctl implementation
* @dev: DRM device for the ioctl
* @data: data pointer for the ioctl
* @file_priv: DRM file for the ioctl call diff --gita/drivers/gpu/drm/drm_irq.cb/drivers/gpu/drm/drm_irq.cindex201eae4bba6c..4a853011549a100644drivers/gpu/drm/drm_irq.c line 72
Quoted 1 line
drivers/gpu/drm/drm_irq.c +0
-0@@ -72,7 +72,7 @@* The DRM core provides very simple support helpers to enable IRQ handling on a
Quoted 7 lines
drivers/gpu/drm/drm_irq.c +0
-0* device through the drm_irq_install() and drm_irq_uninstall() functions. This * only supports devices with a single interrupt on the main device stored in
- * &drm_device.dev and set as the device paramter indrm_dev_alloc().
+ * &drm_device.dev and set as the device parameter indrm_dev_alloc(). *
* These IRQ helpers are strictly optional. Since these helpers don'tautomatically
drivers/gpu/drm/drm_modes.c int drm_mode_convert_umode(struct drm_device
Quoted 45 lines
* clean up the requested interrupt like e.g.
devm_request_irq()
they're not really diff --gita/drivers/gpu/drm/drm_mm.cb/drivers/gpu/drm/drm_mm.cindexa4a04d246135..93d48a6f04ab100644drivers/gpu/drm/drm_mm.c +0
-0@@ -700,7 +700,7 @@ EXPORT_SYMBOL(drm_mm_replace_node);* interfaces. First a scan operation needs to be initialized with * drm_mm_scan_init() or drm_mm_scan_init_with_range(). The driver adds * objects to the roster, probably by walking an LRU list, but this can be
- * freely implemented. Eviction candiates are added using
+ * freely implemented. Eviction candidates are added using
*drm_mm_scan_add_block()until a suitable hole is found or there are no
* further evictable objects. Eviction roster metadata is tracked in &struct
*drm_mm_scan.drivers/gpu/drm/drm_mode_object.c +1
-1@@ -91,7 +91,7 @@ void drm_mode_object_register(struct drm_device *dev, }/** -* drm_mode_object_unregister - free a modeset identifer +* drm_mode_object_unregister - free a modeset identifier * @dev: DRM device * @object: object to free * drivers/gpu/drm/drm_modes.c +2
-1@@ -1542,7 +1542,7 @@ static int drm_mode_parse_cmdline_int(const char *delim, unsigned int *int_ret)/* * delim must point to the '=', otherwise it is a syntax error and -* if delim points to the terminating zero, then delim + 1 wil point +* if delim points to the terminating zero, then delim + 1 will +point * past the end of the string. */ if (*delim !='=' )@@ -1972,7 +1972,7 @@ int drm_mode_convert_umode(struct drm_device*dev,
Quoted 17 lines
drivers/gpu/drm/drm_modes.c +1
-1out->flags = in->flags;/* * Old xf86-video-vmware (possibly others too) used to -* leave 'type' unititialized. Just ignore any bits we +* leave 'type' uninitialized. Just ignore any bits we * don't like. It's a just hint after all, and more * useful for the kernel->userspace direction anyway. */ drivers/gpu/drm/drm_plane.c +0
-1@@ -38,7 +38,7 @@/** * DOC: overview * -* A plane represents an image source that can be blended with or Quoted 4 lines
overlayed on
+ * A plane represents an image source that can be blended with or
+ overlaid on
* top of a CRTC during the scanout process. Planes take their input data froma
drivers/gpu/drm/drm_plane_helper.c static int drm_primary_helper_update(struct
Quoted 8 lines
*
&drm_framebufferobject. The plane itself specifies the cropping and scaling
* of that image, and where it is placed on the visible area of a
display diff --gita/drivers/gpu/drm/drm_plane_helper.cb/drivers/gpu/drm/drm_plane_helper.c
index3aae7ea522f2..5b2d0ca03705100644drivers/gpu/drm/drm_plane_helper.c +0
-0@@ -210,7 +210,7 @@ static int drm_primary_helper_update(struct
drm_plane*plane, structdrm_crtc*cQuoted 13 lines
drivers/gpu/drm/drm_plane_helper.c +1
-1* We call set_config() directly here rather than using * drm_mode_set_config_internal. We're reprogramming the same * connectors that were already in use, so we shouldn't need the extra -* cross-CRTC fb refcounting to accomodate stealing connectors. +* cross-CRTC fb refcounting to accommodate stealing connectors. * drm_mode_setplane() already handles the basic refcounting for the * framebuffers involved in this operation. */ drivers/gpu/drm/drm_prime.c +0
-0drivers/gpu/drm/drm_prime.c line 74
Quoted 2 lines
drivers/gpu/drm/drm_prime.c +0
-0@@ -73,7 +73,7 @@* Thus the chain of references always flows in one direction, avoiding loops: * importing GEM object -> dma-buf -> exported GEM bo. A further complication
Quoted 20 lines
drivers/gpu/drm/drm_prime.c +0
-0* are the lookup caches for import and export. These are required to guarantee
- * that any given object will always have only one uniqe userspace handle. This
+ * that any given object will always have only one unique userspace
+ handle. This
* is required to allow userspace to detect duplicated imports, since some GEM
* drivers do fail command submissions if a given buffer object is listed more
* than once. These import and export caches in&drm_prime_file_privateonly diff --gita/drivers/gpu/drm/drm_probe_helper.cb/drivers/gpu/drm/drm_probe_helper.c
indexe7e1ee2aa352..5606bca3caa8100644drivers/gpu/drm/drm_probe_helper.c +0
-1@@ -757,7 +757,7 @@ EXPORT_SYMBOL(drm_kms_helper_poll_disable);* drm_kms_helper_poll_init - initialize and enable output polling * @dev: drm_device * -* This function intializes and then also enables output polling Quoted 4 lines
support for
+ * This function initializes and then also enables output polling
+ support for
* @dev. Drivers which do not have reliable hotplug support in hardware canuse
drivers/gpu/drm/drm_scdc_helper.c bool drm_scdc_set_high_tmds_clock_ratio(struct
Quoted 22 lines
* this helper infrastructure to regularly poll such connectors for changes in
* their connection state.(quoted diff) +0
-0
b/drivers/gpu/drm/drm_property.cindex27c824a6eb60..6c353c9dc772100644drivers/gpu/drm/drm_property.c +1
-1@@ -434,7 +434,7 @@ EXPORT_SYMBOL(drm_property_add_enum);/** * drm_property_destroy - destroy a drm property * @dev: drm device -* @property: property to destry +* @property: property to destroy * * This function frees a property including any attached resources like * enumeration values. drivers/gpu/drm/drm_scdc_helper.c +0
-0@@ -241,7 +241,7 @@ bool drm_scdc_set_high_tmds_clock_ratio(struct
i2c_adapter*adapter, bool set)drivers/gpu/drm/drm_syncobj.c static int drm_syncobj_export_sync_file(struct
Quoted 14 lines
drivers/gpu/drm/drm_scdc_helper.c +1
-1/* * The spec says that a source should wait minimum 1ms and maximum * 100ms after writing the TMDS config for clock ratio. Lets allow a -* wait of upto 2ms here. +* wait of up to 2ms here. */ usleep_range (1000 ,2000 );return true;(quoted diff) +0
-0
b/drivers/gpu/drm/drm_syncobj.cindex1c5b9ef6da37..c9a9d74f338c100644drivers/gpu/drm/drm_syncobj.c +0
-0@@ -725,7 +725,7 @@ static int drm_syncobj_export_sync_file(struct
drm_file*file_private,drivers/gpu/drm/drm_vblank.c static u64 drm_vblank_count_and_time(struct
Quoted 35 lines
drivers/gpu/drm/drm_syncobj.c +0
-1return ret; }/** -* drm_syncobj_open - initalizes syncobj file-private structures at devnode open time
+ *drm_syncobj_open- initializes syncobj file-private structures at
+ devnode open time
* @file_private: drm file-private structure to set up
*
* Called at device open time, sets up the structure for handling
refcounting diff --gita/drivers/gpu/drm/drm_vblank.cb/drivers/gpu/drm/drm_vblank.cindexbba6781cc48f..977b6509bb4b100644drivers/gpu/drm/drm_vblank.c +1
-1@@ -191,7 +191,7 @@ static u32 drm_max_vblank_count(struct drm_device *dev, unsigned int pipe)/* * "No hw counter" fallback implementation of .get_vblank_counter() hook, -* if there is no useable hardware frame counter available. +* if there is no usable hardware frame counter available. */ static u32 drm_vblank_no_hw_counter(struct
drm_device*dev, unsigned
int pipe) { @@ -905,7 +905,7 @@ drm_get_last_vbltimestamp(structdrm_device*dev, unsigned int pipe,
* anddrm_crtc_vblank_count()ordrm_crtc_vblank_count_and_time()
* provide a barrier: Any writes done before calling
*drm_crtc_handle_vblank()will be visible to callers of the later
- * functions, iff the vblank count is the same or a later one.
+ * functions, if the vblank count is the same or a later one. *
* See also &drm_vblank_crtc.count.
*drivers/gpu/drm/drm_vblank.c +0
-0@@ -968,7 +968,7 @@ static u64 drm_vblank_count_and_time(struct
drm_device*dev, unsigned int pipe,Quoted 18 lines
drivers/gpu/drm/drm_vblank.c +2
-2* and drm_crtc_vblank_count() or drm_crtc_vblank_count_and_time() * provide a barrier: Any writes done before calling * drm_crtc_handle_vblank() will be visible to callers of the later -* functions, iff the vblank count is the same or a later one. +* functions, if the vblank count is the same or a later one. * * See also &drm_vblank_crtc.count. */ @@ -1997,7 +1997,7 @@ EXPORT_SYMBOL(drm_handle_vblank);* and drm_crtc_vblank_count() or drm_crtc_vblank_count_and_time() * provide a barrier: Any writes done before calling * drm_crtc_handle_vblank() will be visible to callers of the later -* functions, iff the vblank count is the same or a later one. +* functions, if the vblank count is the same or a later one. * * See also &drm_vblank_crtc.count. * drivers/gpu/drm/drm_vblank.c EXPORT_SYMBOL(drm_crtc_handle_vblank); · line 2017
Quoted 4 lines
drivers/gpu/drm/drm_vblank.c +0
-1@@ -2014,7 +2014,7 @@ EXPORT_SYMBOL(drm_crtc_handle_vblank);* Get crtc VBLANK count. * * \param dev DRM device -* \param data user arguement, pointing to a drm_crtc_get_sequence structure.
drivers/gpu/drm/drm_vblank.c EXPORT_SYMBOL(drm_crtc_handle_vblank); · line 2017
Quoted 1 line
drivers/gpu/drm/drm_vblank.c +1
-0+* \param data user argument, pointing to a drm_crtc_get_sequence structure.
drivers/gpu/drm/drm_vblank.c int drm_crtc_get_sequence_ioctl(struct drm_device
Quoted 4 lines
drivers/gpu/drm/drm_vblank.c +0
-0* \param file_priv drm file private for the user's open file descriptor */ @@ -2070,7 +2070,7 @@ int drm_crtc_get_sequence_ioctl(struct drm_device*dev, void *data,
drivers/gpu/drm/drm_vblank.c int drm_crtc_get_sequence_ioctl(struct drm_device *dev, void *data,
Quoted 4 lines
drivers/gpu/drm/drm_vblank.c +0
-1* Queue a event for VBLANK sequence * * \param dev DRM device -* \param data user arguement, pointing to a drm_crtc_queue_sequence structure.
drivers/gpu/drm/drm_vblank.c int drm_crtc_get_sequence_ioctl(struct drm_device · line 2073
Quoted 1 line
drivers/gpu/drm/drm_vblank.c +1
-0+* \param data user argument, pointing to a drm_crtc_queue_sequence structure.
Quoted 18 lines
drivers/gpu/drm/drm_vblank.c +0
-0* \param file_priv drm file private for the user's open file descriptor */ drivers/gpu/drm/drm_vma_manager.c +1
-2@@ -361,7 +361,7 @@ EXPORT_SYMBOL(drm_vma_node_revoke);* This is locked against concurrent access internally. * * RETURNS: -* true iff @filp is on the list +* true if @filp is on the list */ bool drm_vma_node_is_allowed (struct drm_vma_offset_node *node,struct drm_file *tag) --Quoted 2 lines
2.25.1
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch