]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/display: fix typos in i915/display files
authorNitin Gote <nitin.r.gote@intel.com>
Mon, 20 Jan 2025 08:15:16 +0000 (13:45 +0530)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 23 Jan 2025 10:48:23 +0000 (05:48 -0500)
Fix all typos in files under drm/i915/display reported by codespell tool.

v2:
  - Include british and american spelling, as those are
    not typos.
  - Fix commenting style. <Jani>

v3: Fix "In case" wrongly capitalized and
    also fix comment style. <Krzysztof Niemiec>

Signed-off-by: Nitin Gote <nitin.r.gote@intel.com>
Reviewed-by: Krzysztof Niemiec <krzysztof.niemiec@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250120081517.3237326-8-nitin.r.gote@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
47 files changed:
drivers/gpu/drm/i915/display/dvo_ns2501.c
drivers/gpu/drm/i915/display/i9xx_wm.c
drivers/gpu/drm/i915/display/icl_dsi.c
drivers/gpu/drm/i915/display/intel_audio.c
drivers/gpu/drm/i915/display/intel_cdclk.c
drivers/gpu/drm/i915/display/intel_color.c
drivers/gpu/drm/i915/display/intel_crt.c
drivers/gpu/drm/i915/display/intel_crtc.c
drivers/gpu/drm/i915/display/intel_cursor.c
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_display.c
drivers/gpu/drm/i915/display/intel_display_debugfs.c
drivers/gpu/drm/i915/display/intel_display_power.c
drivers/gpu/drm/i915/display/intel_display_power_well.h
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_dp.c
drivers/gpu/drm/i915/display/intel_dp_link_training.c
drivers/gpu/drm/i915/display/intel_dp_mst.c
drivers/gpu/drm/i915/display/intel_dp_test.c
drivers/gpu/drm/i915/display/intel_dp_tunnel.c
drivers/gpu/drm/i915/display/intel_dpio_phy.c
drivers/gpu/drm/i915/display/intel_dpll_mgr.c
drivers/gpu/drm/i915/display/intel_dpll_mgr.h
drivers/gpu/drm/i915/display/intel_dsb.c
drivers/gpu/drm/i915/display/intel_dsi_vbt.c
drivers/gpu/drm/i915/display/intel_dvo_dev.h
drivers/gpu/drm/i915/display/intel_fdi.c
drivers/gpu/drm/i915/display/intel_fifo_underrun.c
drivers/gpu/drm/i915/display/intel_frontbuffer.c
drivers/gpu/drm/i915/display/intel_hdcp.c
drivers/gpu/drm/i915/display/intel_hotplug.c
drivers/gpu/drm/i915/display/intel_hotplug_irq.c
drivers/gpu/drm/i915/display/intel_link_bw.c
drivers/gpu/drm/i915/display/intel_overlay.c
drivers/gpu/drm/i915/display/intel_pmdemand.c
drivers/gpu/drm/i915/display/intel_pps.c
drivers/gpu/drm/i915/display/intel_psr.c
drivers/gpu/drm/i915/display/intel_sdvo.c
drivers/gpu/drm/i915/display/intel_sdvo_regs.h
drivers/gpu/drm/i915/display/intel_snps_phy.c
drivers/gpu/drm/i915/display/intel_vblank.c
drivers/gpu/drm/i915/display/intel_vdsc.c
drivers/gpu/drm/i915/display/skl_scaler.c
drivers/gpu/drm/i915/display/skl_universal_plane.c
drivers/gpu/drm/i915/display/skl_watermark.c
drivers/gpu/drm/i915/display/vlv_dsi.c
drivers/gpu/drm/i915/display/vlv_dsi_pll.c

index 686393dfbbf531abf8f92c0aa12867fe04c67c54..04005cdd0461a78e28a4f19c7866fa51cf553848 100644 (file)
@@ -517,7 +517,7 @@ static enum drm_connector_status ns2501_detect(struct intel_dvo_device *dvo)
         * Even if not, the detection bit of the 2501 is unreliable as
         * it only works for some display types.
         * It is even more unreliable as the PLL must be active for
-        * allowing reading from the chiop.
+        * allowing reading from the chip.
         */
        return connector_status_connected;
 }
index db78c1e6b0a37ce1cbd6a821c9ce70504b4658f7..497850a6ac811e06406742e46afee53233ca15bc 100644 (file)
@@ -446,7 +446,7 @@ static const struct intel_watermark_params i845_wm_info = {
  * @latency: Memory wakeup latency in 0.1us units
  *
  * Compute the watermark using the method 1 or "small buffer"
- * formula. The caller may additonally add extra cachelines
+ * formula. The caller may additionally add extra cachelines
  * to account for TLB misses and clock crossings.
  *
  * This method is concerned with the short term drain rate
@@ -493,7 +493,7 @@ static unsigned int intel_wm_method1(unsigned int pixel_rate,
  * @latency: Memory wakeup latency in 0.1us units
  *
  * Compute the watermark using the method 2 or "large buffer"
- * formula. The caller may additonally add extra cachelines
+ * formula. The caller may additionally add extra cachelines
  * to account for TLB misses and clock crossings.
  *
  * This method is concerned with the long term drain rate
@@ -1562,7 +1562,7 @@ static int vlv_compute_fifo(struct intel_crtc_state *crtc_state)
        /*
         * When enabling sprite0 after sprite1 has already been enabled
         * we tend to get an underrun unless sprite0 already has some
-        * FIFO space allcoated. Hence we always allocate at least one
+        * FIFO space allocated. Hence we always allocate at least one
         * cacheline for sprite0 whenever sprite1 is enabled.
         *
         * All other plane enable sequences appear immune to this problem.
index c977b74f82f0bdbdca1e907a79d60ca1edb7e55b..3bedaf1454b19cee20ad24fb284621d4f07a6561 100644 (file)
@@ -243,7 +243,7 @@ static void dsi_program_swing_and_deemphasis(struct intel_encoder *encoder)
        for_each_dsi_phy(phy, intel_dsi->phys) {
                /*
                 * Program voltage swing and pre-emphasis level values as per
-                * table in BSPEC under DDI buffer programing
+                * table in BSPEC under DDI buffer programming.
                 */
                mask = SCALING_MODE_SEL_MASK | RTERM_SELECT_MASK;
                val = SCALING_MODE_SEL(0x2) | TAP2_DISABLE | TAP3_DISABLE |
@@ -961,7 +961,7 @@ gen11_dsi_set_transcoder_timings(struct intel_encoder *encoder,
        for_each_dsi_port(port, intel_dsi->ports) {
                dsi_trans = dsi_port_to_transcoder(port);
                /*
-                * FIXME: Programing this by assuming progressive mode, since
+                * FIXME: Programming this by assuming progressive mode, since
                 * non-interlaced info from VBT is not saved inside
                 * struct drm_display_mode.
                 * For interlace mode: program required pixel minus 2
index 4b1f46815ad5fb59d5a50938b9d6fffc358134a9..113d763e6ef3bf5d2c783305baf220a3578b06a0 100644 (file)
@@ -567,7 +567,7 @@ static void hsw_audio_codec_enable(struct intel_encoder *encoder,
                     AUDIO_ELD_VALID(cpu_transcoder), 0);
 
        /*
-        * The audio componenent is used to convey the ELD
+        * The audio component is used to convey the ELD
         * instead using of the hardware ELD buffer.
         */
 
@@ -665,7 +665,7 @@ static void ibx_audio_codec_enable(struct intel_encoder *encoder,
                     IBX_ELD_VALID(port), 0);
 
        /*
-        * The audio componenent is used to convey the ELD
+        * The audio component is used to convey the ELD
         * instead using of the hardware ELD buffer.
         */
 
index bee90b06995abff54e0298f2ec70a47d677bebc6..b520231833b79d545d3cabaa643e90ddc56fa11d 100644 (file)
@@ -2250,7 +2250,7 @@ static void bxt_sanitize_cdclk(struct intel_display *display)
 
        /*
         * Let's ignore the pipe field, since BIOS could have configured the
-        * dividers both synching to an active pipe, or asynchronously
+        * dividers both syncing to an active pipe, or asynchronously
         * (PIPE_NONE).
         */
        cdctl &= ~bxt_cdclk_cd2x_pipe(display, INVALID_PIPE);
index 2f51eccdb27aa436eebde984d65684d752d269d7..8400a97f7e43472e5022b2126fd542cc19fabbd5 100644 (file)
@@ -998,7 +998,7 @@ static void skl_color_commit_noarm(struct intel_dsb *dsb,
         * output all black (until CSC_MODE is rearmed and properly latched).
         * Once PSR exit (and proper register latching) has occurred the
         * danger is over. Thus when PSR is enabled the CSC coeff/offset
-        * register programming will be peformed from skl_color_commit_arm()
+        * register programming will be performed from skl_color_commit_arm()
         * which is called after PSR exit.
         */
        if (!crtc_state->has_psr)
index 4634d3fd9f2019506d16777f2186cb36963e31c4..bc724dc5b4eaf9212b8de9a4c8ae5474c28c55d2 100644 (file)
@@ -745,8 +745,10 @@ intel_crt_load_detect(struct intel_crt *crt, enum pipe pipe)
                               transconf | TRANSCONF_FORCE_BORDER);
                intel_de_posting_read(display,
                                      TRANSCONF(display, cpu_transcoder));
-               /* Wait for next Vblank to substitue
-                * border color for Color info */
+               /*
+                * Wait for next Vblank to substitute
+                * border color for Color info.
+                */
                intel_crtc_wait_for_next_vblank(intel_crtc_for_pipe(display, pipe));
                st00 = intel_de_read8(display, _VGA_MSR_WRITE);
                status = ((st00 & (1 << 4)) != 0) ?
index 3e8b52eaac277106b178e33d58560420ddc4266c..e69b28779ac551bde56c9c3d394e784275a9b69e 100644 (file)
@@ -96,7 +96,7 @@ u32 intel_crtc_max_vblank_count(const struct intel_crtc_state *crtc_state)
        struct drm_i915_private *dev_priv = to_i915(crtc_state->uapi.crtc->dev);
 
        /*
-        * From Gen 11, In case of dsi cmd mode, frame counter wouldnt
+        * From Gen 11, in case of dsi cmd mode, frame counter wouldn't
         * have updated at the beginning of TE, if we want to use
         * the hw counter, then we would find it updated in only
         * the next TE, hence switching to sw counter.
index ae7243ad6e0ca29ad6f9f3e0ee942cbc3ee287d7..48c3d212f690c454d89f770019aece73b76dde4d 100644 (file)
@@ -680,7 +680,7 @@ static void i9xx_cursor_update_arm(struct intel_dsb *dsb,
         * CURPOS.
         *
         * On other platforms CURPOS always requires the
-        * CURBASE write to arm the update. Additonally
+        * CURBASE write to arm the update. Additionally
         * a write to any of the cursor register will cancel
         * an already armed cursor update. Thus leaving out
         * the CURBASE write after CURPOS could lead to a
index 3693b36b9336a45f36d2066111fb84703ef27f3b..05df8f98649124a80adb0111252cf45bbabef5f9 100644 (file)
@@ -2984,7 +2984,7 @@ static void intel_ddi_pre_enable_hdmi(struct intel_atomic_state *state,
  * - crtc_state will be the state of the first stream to be activated on this
  *   port, and it may not be the same stream that will be deactivated last, but
  *   each stream should have a state that is identical when it comes to the DP
- *   link parameteres
+ *   link parameters.
  */
 static void intel_ddi_pre_enable(struct intel_atomic_state *state,
                                 struct intel_encoder *encoder,
@@ -3284,7 +3284,7 @@ static void intel_ddi_post_disable(struct intel_atomic_state *state,
         *   be deactivated on this port, and it may not be the same
         *   stream that was activated last, but each stream
         *   should have a state that is identical when it comes to
-        *   the DP link parameteres
+        *   the DP link parameters
         */
 
        if (intel_crtc_has_type(old_crtc_state, INTEL_OUTPUT_HDMI))
index 10550bc0778e30f6c449a76e171fe9f61e995a03..7d68d652c1bc91acc68281c4761f688f3779bd79 100644 (file)
@@ -1013,7 +1013,7 @@ static void intel_async_flip_vtd_wa(struct drm_i915_private *i915,
 {
        if (DISPLAY_VER(i915) == 9) {
                /*
-                * "Plane N strech max must be programmed to 11b (x1)
+                * "Plane N stretch max must be programmed to 11b (x1)
                 *  when Async flips are enabled on that plane."
                 */
                intel_de_rmw(i915, CHICKEN_PIPESL_1(pipe),
@@ -3592,7 +3592,7 @@ static void ilk_get_pfit_config(struct intel_crtc_state *crtc_state)
                      REG_FIELD_GET(PF_WIN_YSIZE_MASK, size));
 
        /*
-        * We currently do not free assignements of panel fitters on
+        * We currently do not free assignments of panel fitters on
         * ivb/hsw (since we don't use the higher upscaling modes which
         * differentiates them) so just WARN about this case for now.
         */
@@ -4292,7 +4292,7 @@ int intel_dotclock_calculate(int link_freq,
        /*
         * The calculation for the data clock -> pixel clock is:
         * pixel_clock = ((m/n)*(link_clock * nr_lanes))/bpp
-        * But we want to avoid losing precison if possible, so:
+        * But we want to avoid losing precision if possible, so:
         * pixel_clock = ((m * link_clock * nr_lanes)/(n*bpp))
         *
         * and for link freq (10kbs units) -> pixel clock it is:
@@ -6433,7 +6433,7 @@ static void kill_joiner_secondaries(struct intel_atomic_state *state,
  * the intel_crtc_enable_flip_done() function.
  *
  * As soon as the surface address register is written, flip done interrupt is
- * generated and the requested events are sent to the usersapce in the interrupt
+ * generated and the requested events are sent to the userspace in the interrupt
  * handler itself. The timestamp and sequence sent during the flip done event
  * correspond to the last vblank and have no relation to the actual time when
  * the flip done event was sent.
index f1d76484025add6b6e5c616a8622bd626eaae5b0..926f09c350840e4cfa385e214dc019f8dd2751a3 100644 (file)
@@ -940,7 +940,7 @@ static int i915_lpsp_capability_show(struct seq_file *m, void *data)
                /*
                 * Actually TGL can drive LPSP on port till DDI_C
                 * but there is no physical connected DDI_C on TGL sku's,
-                * even driver is not initilizing DDI_C port for gen12.
+                * even driver is not initializing DDI_C port for gen12.
                 */
                lpsp_capable = encoder->port <= PORT_B;
        else if (DISPLAY_VER(i915) == 11)
index 8e86fcbcc189b68bc2c7d1a574c3e5aea1069b56..14ae60749f02ceef45d36da38243d601b4a84e04 100644 (file)
@@ -842,7 +842,7 @@ void intel_display_power_put(struct drm_i915_private *dev_priv,
  * block right away if this is the last reference.
  *
  * This function is only for the power domain code's internal use to suppress wakeref
- * tracking when the correspondig debug kconfig option is disabled, should not
+ * tracking when the corresponding debug kconfig option is disabled, should not
  * be used otherwise.
  */
 void intel_display_power_put_unchecked(struct drm_i915_private *dev_priv,
@@ -1733,7 +1733,7 @@ static void icl_display_core_uninit(struct intel_display *display)
        gen9_disable_dc_states(display);
        intel_dmc_disable_program(display);
 
-       /* 1. Disable all display engine functions -> aready done */
+       /* 1. Disable all display engine functions -> already done */
 
        /* 2. Disable DBUF */
        gen9_dbuf_disable(display);
index 338379dae44c294cfe8b21f5f92ae872172f2b06..ec8e508d0593dfa966dfeb7a677e00123c970b7d 100644 (file)
@@ -60,7 +60,7 @@ struct i915_power_well_instance {
        /* unique identifier for this power well */
        enum i915_power_well_id id;
        /*
-        * Arbitraty data associated with this power well. Platform and power
+        * Arbitrary data associated with this power well. Platform and power
         * well specific.
         */
        union {
@@ -77,7 +77,7 @@ struct i915_power_well_instance {
                struct {
                        /*
                         * request/status flag index in the power well
-                        * constrol/status registers.
+                        * control/status registers.
                         */
                        u8 idx;
                } hsw;
index 083eb86f090404131e065a66c10c8c25b236a244..96429201b8a01b660ee0849cb76eda45eaa80a33 100644 (file)
@@ -732,7 +732,7 @@ struct intel_crtc_scaler_state {
         *
         * intel_atomic_setup_scalers will setup available scalers to users
         * requesting scalers. It will gracefully fail if request exceeds
-        * avilability.
+        * availability.
         */
 #define SKL_CRTC_INDEX 31
        unsigned scaler_users;
@@ -1113,7 +1113,7 @@ struct intel_crtc_state {
        u16 su_y_granularity;
 
        /*
-        * Frequence the dpll for the port should run at. Differs from the
+        * Frequency the dpll for the port should run at. Differs from the
         * adjusted dotclock e.g. for DP or 10/12bpc hdmi mode. This is also
         * already multiplied by pixel_multiplier.
         */
index 9ec23860b593d37e1ac622ac9fbadd07d51ea523..c239008658a815b977d56d7ec9f2194cd67f617f 100644 (file)
@@ -1075,7 +1075,7 @@ static bool source_can_output(struct intel_dp *intel_dp,
                /*
                 * No YCbCr output support on gmch platforms.
                 * Also, ILK doesn't seem capable of DP YCbCr output.
-                * The displayed image is severly corrupted. SNB+ is fine.
+                * The displayed image is severely corrupted. SNB+ is fine.
                 */
                return !HAS_GMCH(display) && !display->platform.ironlake;
 
index 8b1977cfec503c70f07af716ee2c00e7605c6adf..9cb22baafeebb899af315acceb56be51d8702ed8 100644 (file)
@@ -783,7 +783,7 @@ intel_dp_prepare_link_train(struct intel_dp *intel_dp,
        /*
         * WaEdpLinkRateDataReload
         *
-        * Parade PS8461E MUX (used on varius TGL+ laptops) needs
+        * Parade PS8461E MUX (used on various TGL+ laptops) needs
         * to snoop the link rates reported by the sink when we
         * use LINK_RATE_SET in order to operate in jitter cleaning
         * mode (as opposed to redriver mode). Unfortunately it
@@ -1629,7 +1629,7 @@ void intel_dp_start_link_train(struct intel_atomic_state *state,
        /*
         * Ignore the link failure in CI
         *
-        * In fixed enviroments like CI, sometimes unexpected long HPDs are
+        * In fixed environments like CI, sometimes unexpected long HPDs are
         * generated by the displays. If ignore_long_hpd flag is set, such long
         * HPDs are ignored. And probably as a consequence of these ignored
         * long HPDs, subsequent link trainings are failed resulting into CI
index fbfc756368b879d2a0f3ec4768706fc9a0884082..7c1de9aeeacc51814b4bbbe41692dad68d1e1603 100644 (file)
@@ -837,7 +837,7 @@ static int intel_dp_mst_check_bw(struct intel_atomic_state *state,
  * @state must be recomputed with the updated @limits.
  *
  * Returns:
- *   - 0 if the confugration is valid
+ *   - 0 if the configuration is valid
  *   - %-EAGAIN, if the configuration is invalid and @limits got updated
  *     with fallback values with which the configuration of all CRTCs in
  *     @state must be recomputed
@@ -2052,7 +2052,7 @@ bool intel_dp_mst_crtc_needs_modeset(struct intel_atomic_state *state,
  * @intel_dp: DP port object
  *
  * Prepare an MST link for topology probing, programming the target
- * link parameters to DPCD. This step is a requirement of the enumaration
+ * link parameters to DPCD. This step is a requirement of the enumeration
  * of path resources during probing.
  */
 void intel_dp_mst_prepare_probe(struct intel_dp *intel_dp)
index 380b359b042083b5d952ddbfaa3c5a808e5d0d55..614b90d6938f1bddaa4f4048aad11e1b8250fd01 100644 (file)
@@ -257,7 +257,7 @@ static void intel_dp_phy_pattern_update(struct intel_dp *intel_dp,
                /*
                 * FIXME: Ideally pattern should come from DPCD 0x250. As
                 * current firmware of DPR-100 could not set it, so hardcoding
-                * now for complaince test.
+                * now for compliance test.
                 */
                drm_dbg_kms(display->drm,
                            "Set 80Bit Custom Phy Test Pattern 0x3e0f83e0 0x0f83e0f8 0x0000f83e\n");
@@ -275,7 +275,7 @@ static void intel_dp_phy_pattern_update(struct intel_dp *intel_dp,
                /*
                 * FIXME: Ideally pattern should come from DPCD 0x24A. As
                 * current firmware of DPR-100 could not set it, so hardcoding
-                * now for complaince test.
+                * now for compliance test.
                 */
                drm_dbg_kms(display->drm,
                            "Set HBR2 compliance Phy Test Pattern\n");
index 589872babdd71a4954d2254be2ef3a38013578d2..280f302967e3713b885d3794cf3d0e995c416e6f 100644 (file)
@@ -647,7 +647,7 @@ void intel_dp_tunnel_atomic_clear_stream_bw(struct intel_atomic_state *state,
  * @state must be recomputed with the updated @limits.
  *
  * Returns:
- *   - 0 if the confugration is valid
+ *   - 0 if the configuration is valid
  *   - %-EAGAIN, if the configuration is invalid and @limits got updated
  *     with fallback values with which the configuration of all CRTCs in
  *     @state must be recomputed
index 52a36a2281e602d908b2cf0df108682dba1c9aad..5f88702818d3129a76c8197bb45f3b74309ad029 100644 (file)
@@ -40,7 +40,7 @@
  * VLV, CHV and BXT have slightly peculiar display PHYs for driving DP/HDMI
  * ports. DPIO is the name given to such a display PHY. These PHYs
  * don't follow the standard programming model using direct MMIO
- * registers, and instead their registers must be accessed trough IOSF
+ * registers, and instead their registers must be accessed through IOSF
  * sideband. VLV has one such PHY for driving ports B and C, and CHV
  * adds another PHY for driving port D. Each PHY responds to specific
  * IOSF-SB port.
index d86cc9ffd4acd0a83747cd0df94b30daeaa7e708..b8fa04d3cd5c51163563af48c37c566243b700e1 100644 (file)
@@ -4372,7 +4372,7 @@ void intel_shared_dpll_init(struct drm_i915_private *i915)
  * calling intel_shared_dpll_swap_state().
  *
  * Returns:
- * 0 on success, negative error code on falure.
+ * 0 on success, negative error code on failure.
  */
 int intel_compute_shared_dplls(struct intel_atomic_state *state,
                               struct intel_crtc *crtc,
index 6af325b8e27ddaab1a931c5bab5914513c3557b4..3eee768743045d76c917c388f9f39bae0fd21709 100644 (file)
@@ -318,7 +318,7 @@ struct dpll_info {
        const struct intel_shared_dpll_funcs *funcs;
 
        /**
-        * @id: unique indentifier for this DPLL
+        * @id: unique identifier for this DPLL
         */
        enum intel_dpll_id id;
 
index 89d3496bcbdbdfca377cd872eee0fdf67e0316ab..2f2812c23972550c81cd5adebc77ac0a57e8ef75 100644 (file)
@@ -821,7 +821,7 @@ void intel_dsb_irq_handler(struct intel_display *display,
 
                if (crtc->dsb_event) {
                        /*
-                        * Update vblank counter/timestmap in case it
+                        * Update vblank counter/timestamp in case it
                         * hasn't been done yet for this frame.
                         */
                        drm_crtc_accurate_vblank_count(&crtc->base);
index b2b78f39cfd310a9cfbd3d5ce982fe763a064ce3..7b2ffd14ae6ee7632724ef0924ae68c7c4e883e0 100644 (file)
@@ -582,7 +582,7 @@ static const fn_mipi_elem_exec exec_elem[] = {
 
 /*
  * MIPI Sequence from VBT #53 parsing logic
- * We have already separated each seqence during bios parsing
+ * We have already separated each sequence during bios parsing
  * Following is generic execution function for any sequence
  */
 
index 4bf476656b8cd2eb6c401fbc2101006c0927df24..3be1a16cac20a4f3455d3fd9c9f1a7e01baf239b 100644 (file)
@@ -57,7 +57,7 @@ struct intel_dvo_dev_ops {
         * Turn on/off output.
         *
         * Because none of our dvo drivers support an intermediate power levels,
-        * we don't expose this in the interfac.
+        * we don't expose this in the interface.
         */
        void (*dpms)(struct intel_dvo_device *dvo, bool enable);
 
index 37cdfa9c692a02937d9902ea2f105fcad1105a7f..3e8d6d8af78022709c359453bfa20c61f9b0888d 100644 (file)
@@ -390,7 +390,7 @@ static int intel_fdi_atomic_check_bw(struct intel_atomic_state *state,
  * @state must be recomputed with the updated @limits.
  *
  * Returns:
- *   - 0 if the confugration is valid
+ *   - 0 if the configuration is valid
  *   - %-EAGAIN, if the configuration is invalid and @limits got updated
  *     with fallback values with which the configuration of all CRTCs
  *     in @state must be recomputed
index cda1daf4cdea4425f3f095adcdcbc5ce99ed3e4d..18fcdbe1248ace1de5995086a2be9f7747597bba 100644 (file)
@@ -290,7 +290,7 @@ static bool __intel_set_cpu_fifo_underrun_reporting(struct drm_device *dev,
 }
 
 /**
- * intel_set_cpu_fifo_underrun_reporting - set cpu fifo underrrun reporting state
+ * intel_set_cpu_fifo_underrun_reporting - set cpu fifo underrun reporting state
  * @dev_priv: i915 device instance
  * @pipe: (CPU) pipe to set state for
  * @enable: whether underruns should be reported or not
index 6ed5f726ee60081c17a261679acc4d44fbe690b7..26128c610cb4a2e938c525686e8f5963782fad7c 100644 (file)
@@ -227,7 +227,7 @@ static void intel_frontbuffer_flush_work(struct work_struct *work)
  * @front: GEM object to flush
  *
  * This function is targeted for our dirty callback for queueing flush when
- * dma fence is signales
+ * dma fence is signals
  */
 void intel_frontbuffer_queue_flush(struct intel_frontbuffer *front)
 {
index 1bab7c34a79427fe81186311dff66054ad023743..7cc0399b2a5d917cc92f6fc146a31e17efc3578c 100644 (file)
@@ -353,7 +353,7 @@ static bool hdcp_key_loadable(struct intel_display *display)
 
        /*
         * Another req for hdcp key loadability is enabled state of pll for
-        * cdclk. Without active crtc we wont land here. So we are assuming that
+        * cdclk. Without active crtc we won't land here. So we are assuming that
         * cdclk is already on.
         */
 
@@ -1550,9 +1550,9 @@ static int hdcp2_authentication_key_exchange(struct intel_connector *connector)
         * with a 50ms delay if not hdcp2 capable for DP/DPMST encoders
         * (dock decides to stop advertising hdcp2 capability for some reason).
         * The reason being that during suspend resume dock usually keeps the
-        * HDCP2 registers inaccesible causing AUX error. This wouldn't be a
+        * HDCP2 registers inaccessible causing AUX error. This wouldn't be a
         * big problem if the userspace just kept retrying with some delay while
-        * it continues to play low value content but most userpace applications
+        * it continues to play low value content but most userspace applications
         * end up throwing an error when it receives one from KMD. This makes
         * sure we give the dock and the sink devices to complete its power cycle
         * and then try HDCP authentication. The values of 10 and delay of 50ms
@@ -2573,7 +2573,7 @@ void intel_hdcp_update_pipe(struct intel_atomic_state *state,
 
        /*
         * During the HDCP encryption session if Type change is requested,
-        * disable the HDCP and reenable it with new TYPE value.
+        * disable the HDCP and re-enable it with new TYPE value.
         */
        if (conn_state->content_protection ==
            DRM_MODE_CONTENT_PROTECTION_UNDESIRED ||
index 3adc791d3776e595767c9fafc5aff885a0a362f4..c0d48f651dabd6ed8db6dbb8b1da975409a8e26d 100644 (file)
@@ -806,7 +806,7 @@ static void i915_hpd_poll_init_work(struct work_struct *work)
  * of the powerwells.
  *
  * Since this function can get called in contexts where we're already holding
- * dev->mode_config.mutex, we do the actual hotplug enabling in a seperate
+ * dev->mode_config.mutex, we do the actual hotplug enabling in a separate
  * worker.
  *
  * Also see: intel_hpd_init() and intel_hpd_poll_disable().
@@ -823,7 +823,7 @@ void intel_hpd_poll_enable(struct drm_i915_private *dev_priv)
 
        /*
         * We might already be holding dev->mode_config.mutex, so do this in a
-        * seperate worker
+        * separate worker
         * As well, there's no issue if we race here since we always reschedule
         * this worker anyway
         */
@@ -844,7 +844,7 @@ void intel_hpd_poll_enable(struct drm_i915_private *dev_priv)
  * of the powerwells.
  *
  * Since this function can get called in contexts where we're already holding
- * dev->mode_config.mutex, we do the actual hotplug enabling in a seperate
+ * dev->mode_config.mutex, we do the actual hotplug enabling in a separate
  * worker.
  *
  * Also used during driver init to initialize connector->polled
index 476ac88087e0e0bcaa396d382c7286bf38537e24..2137ac7b882a28b75ed1736f43d1e1f3ec2f9641 100644 (file)
@@ -197,7 +197,7 @@ void i915_hotplug_interrupt_update_locked(struct drm_i915_private *dev_priv,
  * @bits: bits to enable
  * NOTE: the HPD enable bits are modified both inside and outside
  * of an interrupt context. To avoid that read-modify-write cycles
- * interfer, these bits are protected by a spinlock. Since this
+ * interfere, these bits are protected by a spinlock. Since this
  * function is usually not called from a context where the lock is
  * held already, this function acquires the lock itself. A non-locking
  * version is also available.
index 29705c1591190cf549e4473da55ad4346e557871..f4d60e77aa18af993739e12d8846c2eeef640baf 100644 (file)
@@ -221,7 +221,7 @@ assert_link_limit_change_valid(struct intel_display *display,
  * limits in @new_limits if there is a BW limitation.
  *
  * Returns:
- *   - 0 if the confugration is valid
+ *   - 0 if the configuration is valid
  *   - %-EAGAIN, if the configuration is invalid and @new_limits got updated
  *     with fallback values with which the configuration of all CRTCs
  *     in @state must be recomputed
index ca30fff6187696876c0d99ff6c050b57cdefc4f6..bbb0db33740e9018e8c3cab5ced0b50ee63e6550 100644 (file)
@@ -46,7 +46,8 @@
 /* Limits for overlay size. According to intel doc, the real limits are:
  * Y width: 4095, UV width (planar): 2047, Y height: 2047,
  * UV width (planar): * 1023. But the xorg thinks 2048 for height and width. Use
- * the mininum of both.  */
+ * the minimum of both.
+ */
 #define IMAGE_MAX_WIDTH                2048
 #define IMAGE_MAX_HEIGHT       2046 /* 2 * 1023 */
 /* on 830 and 845 these large limits result in the card hanging */
@@ -408,10 +409,12 @@ static int intel_overlay_off(struct intel_overlay *overlay)
 
        drm_WARN_ON(display->drm, !overlay->active);
 
-       /* According to intel docs the overlay hw may hang (when switching
+       /*
+        * According to intel docs the overlay hw may hang (when switching
         * off) without loading the filter coeffs. It is however unclear whether
         * this applies to the disabling of the overlay or to the switching off
-        * of the hw. Do it in both cases */
+        * of the hw. Do it in both cases.
+        */
        flip_addr |= OFC_UPDATE;
 
        rq = alloc_request(overlay, intel_overlay_off_tail);
@@ -442,16 +445,19 @@ static int intel_overlay_off(struct intel_overlay *overlay)
        return i915_active_wait(&overlay->last_flip);
 }
 
-/* recover from an interruption due to a signal
- * We have to be careful not to repeat work forever an make forward progess. */
+/*
+ * Recover from an interruption due to a signal.
+ * We have to be careful not to repeat work forever an make forward progress.
+ */
 static int intel_overlay_recover_from_interrupt(struct intel_overlay *overlay)
 {
        return i915_active_wait(&overlay->last_flip);
 }
 
-/* Wait for pending overlay flip and release old frame.
+/*
+ * Wait for pending overlay flip and release old frame.
  * Needs to be called before the overlay register are changed
- * via intel_overlay_(un)map_regs
+ * via intel_overlay_(un)map_regs.
  */
 static int intel_overlay_release_old_vid(struct intel_overlay *overlay)
 {
index 975520322136e2e6133d222ff6e440a5cfbb61b4..63301a01906cc75b17c9bf2f41b274c356aa2706 100644 (file)
@@ -609,7 +609,7 @@ intel_pmdemand_program_params(struct intel_display *display,
                goto unlock;
 
        drm_dbg_kms(display->drm,
-                   "initate pmdemand request values: (0x%x 0x%x)\n",
+                   "initiate pmdemand request values: (0x%x 0x%x)\n",
                    mod_reg1, mod_reg2);
 
        intel_de_rmw(display, XELPDP_INITIATE_PMDEMAND_REQUEST(1), 0,
index eb35f0249f2bdf4b7005835d91bd8d587a93e384..c0f65749a3f6aa0a34518a63e37afce2cb636a84 100644 (file)
@@ -1501,8 +1501,9 @@ static void pps_init_delays_vbt(struct intel_dp *intel_dp,
        if (!pps_delays_valid(vbt))
                return;
 
-       /* On Toshiba Satellite P50-C-18C system the VBT T12 delay
-        * of 500ms appears to be too short. Ocassionally the panel
+       /*
+        * On Toshiba Satellite P50-C-18C system the VBT T12 delay
+        * of 500ms appears to be too short. Occasionally the panel
         * just fails to power back on. Increasing the delay to 800ms
         * seems sufficient to avoid this problem.
         */
index aa6ff057b54c8bed04379dc5a32d6a97a4f125d6..2bdb6c9c228353efe54d39c71ce0765594de37d8 100644 (file)
  *
  *  Unfortunately CHICKEN_TRANS itself seems to be double buffered
  *  and thus won't latch until the first vblank. So with DC states
- *  enabled the register effctively uses the reset value during DC5
+ *  enabled the register effectively uses the reset value during DC5
  *  exit+PSR exit sequence, and thus the bit does nothing until
  *  latched by the vblank that it was trying to prevent from being
  *  generated in the first place. So we should probably call this
  * CHICKEN_PIPESL_1[15]/HSW_UNMASK_VBL_TO_REGS_IN_SRD (hsw):
  *
  *  On BDW without this bit is no vblanks whatsoever are
- *  generated after PSR exit. On HSW this has no apparant effect.
+ *  generated after PSR exit. On HSW this has no apparent effect.
  *  WaPsrDPRSUnmaskVBlankInSRD says to set this.
  *
  * The rest of the bits are more self-explanatory and/or
  *  has_psr + has_panel_replay:                                Panel Replay
  *  has_psr + has_panel_replay + has_sel_update:       Panel Replay Selective Update
  *
- * Description of some intel_psr varibles. enabled, panel_replay_enabled,
+ * Description of some intel_psr variables. enabled, panel_replay_enabled,
  * sel_update_enabled
  *
  *  enabled (alone):                                           PSR1
@@ -1050,7 +1050,7 @@ static void hsw_activate_psr2(struct intel_dp *intel_dp)
                };
                /*
                 * Still using the default IO_BUFFER_WAKE and FAST_WAKE, see
-                * comments bellow for more information
+                * comments below for more information
                 */
                int tmp;
 
index 498b35ec4e0f4ef3152bdee9148495c3ae43726e..c78da5a2b5594984fc7aea2aa949eaeed07a991e 100644 (file)
@@ -1741,8 +1741,8 @@ static void intel_sdvo_get_config(struct intel_encoder *encoder,
         * pixel multiplier readout is tricky: Only on i915g/gm it is stored in
         * the sdvo port register, on all other platforms it is part of the dpll
         * state. Since the general pipe state readout happens before the
-        * encoder->get_config we so already have a valid pixel multplier on all
-        * other platfroms.
+        * encoder->get_config we so already have a valid pixel multiplier on all
+        * other platforms.
         */
        if (IS_I915G(dev_priv) || IS_I915GM(dev_priv)) {
                pipe_config->pixel_multiplier =
index 54f099abefeb06fbf75c33fd72eca78aff443e5d..56c4551abefd4a410f6acb26dba9356f1c622cf2 100644 (file)
@@ -244,7 +244,7 @@ struct intel_sdvo_set_target_input_args {
  * Takes a struct intel_sdvo_output_flags of which outputs are targeted by
  * future output commands.
  *
- * Affected commands inclue SET_OUTPUT_TIMINGS_PART[12],
+ * Affected commands include SET_OUTPUT_TIMINGS_PART[12],
  * GET_OUTPUT_TIMINGS_PART[12], and GET_OUTPUT_PIXEL_CLOCK_RANGE.
  */
 #define SDVO_CMD_SET_TARGET_OUTPUT                     0x11
index ec3c0ea2f4cbc03df6e81b76008fcce1279d7c6b..353221d3e29fc7d66df86aed7ffbe7c85fc15d59 100644 (file)
@@ -522,7 +522,7 @@ static const struct intel_mpllb_state dg2_hdmi_148_5 = {
                REG_FIELD_PREP(SNPS_PHY_MPLLB_SSC_UP_SPREAD, 1),
 };
 
-/* values in the below table are calculted using the algo */
+/* values in the below table are calculated using the algo */
 static const struct intel_mpllb_state dg2_hdmi_25200 = {
        .clock = 25200,
        .ref_control =
index fb80e0bef08a11c9cceb9033c78ac9a03b582f27..4efd4f7d497abbd2562b4f6efa148c165737a464 100644 (file)
@@ -369,7 +369,7 @@ static bool i915_get_crtc_scanoutpos(struct drm_crtc *_crtc,
 
                /*
                 * Already exiting vblank? If so, shift our position
-                * so it looks like we're already apporaching the full
+                * so it looks like we're already approaching the full
                 * vblank end. This should make the generated timestamp
                 * more or less match when the active portion will start.
                 */
index 1e8f71fb309456dcfbda88f863237c9dc858f33e..932435a7f88d65c27902b0586d3b222310096659 100644 (file)
@@ -106,7 +106,7 @@ calculate_rc_params(struct drm_dsc_config *vdsc_cfg)
         * According to DSC 1.2 spec in Section 4.1 if native_420 is set:
         * -second_line_bpg_offset is 12 in general and equal to 2*(slice_height-1) if slice
         * height < 8.
-        * -second_line_offset_adj is 512 as shown by emperical values to yield best chroma
+        * -second_line_offset_adj is 512 as shown by empirical values to yield best chroma
         * preservation in second line.
         * -nsl_bpg_offset is calculated as second_line_offset/slice_height -1 then rounded
         * up to 16 fractional bits, we left shift second line offset by 11 to preserve 11
index a11e09a15e238cdc2dbf9e374566236491ae667e..515196e03b9372ff8e5072f51b29e2c466a87907 100644 (file)
@@ -585,31 +585,31 @@ static u16 glk_nearest_filter_coef(int t)
  *  The letter represents the filter tap (D is the center tap) and the number
  *  represents the coefficient set for a phase (0-16).
  *
- *         +------------+------------------------+------------------------+
- *         |Index value | Data value coeffient 1 | Data value coeffient 2 |
- *         +------------+------------------------+------------------------+
- *         |   00h      |          B0            |          A0            |
- *         +------------+------------------------+------------------------+
- *         |   01h      |          D0            |          C0            |
- *         +------------+------------------------+------------------------+
- *         |   02h      |          F0            |          E0            |
- *         +------------+------------------------+------------------------+
- *         |   03h      |          A1            |          G0            |
- *         +------------+------------------------+------------------------+
- *         |   04h      |          C1            |          B1            |
- *         +------------+------------------------+------------------------+
- *         |   ...      |          ...           |          ...           |
- *         +------------+------------------------+------------------------+
- *         |   38h      |          B16           |          A16           |
- *         +------------+------------------------+------------------------+
- *         |   39h      |          D16           |          C16           |
- *         +------------+------------------------+------------------------+
- *         |   3Ah      |          F16           |          C16           |
- *         +------------+------------------------+------------------------+
- *         |   3Bh      |        Reserved        |          G16           |
- *         +------------+------------------------+------------------------+
+ *         +------------+--------------------------+--------------------------+
+ *         |Index value | Data value coefficient 1 | Data value coefficient 2 |
+ *         +------------+--------------------------+--------------------------+
+ *         |   00h      |          B0              |          A0              |
+ *         +------------+--------------------------+--------------------------+
+ *         |   01h      |          D0              |          C0              |
+ *         +------------+--------------------------+--------------------------+
+ *         |   02h      |          F0              |          E0              |
+ *         +------------+--------------------------+--------------------------+
+ *         |   03h      |          A1              |          G0              |
+ *         +------------+--------------------------+--------------------------+
+ *         |   04h      |          C1              |          B1              |
+ *         +------------+--------------------------+--------------------------+
+ *         |   ...      |          ...             |          ...             |
+ *         +------------+--------------------------+--------------------------+
+ *         |   38h      |          B16             |          A16             |
+ *         +------------+--------------------------+--------------------------+
+ *         |   39h      |          D16             |          C16             |
+ *         +------------+--------------------------+--------------------------+
+ *         |   3Ah      |          F16             |          C16             |
+ *         +------------+--------------------------+--------------------------+
+ *         |   3Bh      |        Reserved          |          G16             |
+ *         +------------+--------------------------+--------------------------+
  *
- *  To enable nearest-neighbor scaling:  program scaler coefficents with
+ *  To enable nearest-neighbor scaling:  program scaler coefficients with
  *  the center tap (Dxx) values set to 1 and all other values set to 0 as per
  *  SCALER_COEFFICIENT_FORMAT
  *
index 450dd8c64e0c4354ebe90dc92819179ad77aeb0e..301ad3a22c4c6999d76676034613ae95800f0462 100644 (file)
@@ -1099,7 +1099,7 @@ static u32 skl_plane_ctl_rotate(unsigned int rotate)
                break;
        /*
         * DRM_MODE_ROTATE_ is counter clockwise to stay compatible with Xrandr
-        * while i915 HW rotation is clockwise, thats why this swapping.
+        * while i915 HW rotation is clockwise, that's why this swapping.
         */
        case DRM_MODE_ROTATE_90:
                return PLANE_CTL_ROTATE_270;
@@ -2997,7 +2997,7 @@ skl_get_initial_plane_config(struct intel_crtc *crtc,
 
        /*
         * DRM_MODE_ROTATE_ is counter clockwise to stay compatible with Xrandr
-        * while i915 HW rotation is clockwise, thats why this swapping.
+        * while i915 HW rotation is clockwise, that's why this swapping.
         */
        switch (val & PLANE_CTL_ROTATE_MASK) {
        case PLANE_CTL_ROTATE_0:
index f4458d1185b3ad3b491adc759f1a9796cc7757d4..2bc6251e93d6b0313bcdd18260d43b60dbc5e261 100644 (file)
@@ -584,7 +584,7 @@ u32 skl_ddb_dbuf_slice_mask(struct drm_i915_private *i915,
 
        /*
         * Per plane DDB entry can in a really worst case be on multiple slices
-        * but single entry is anyway contigious.
+        * but single entry is anyway contiguous.
         */
        while (start_slice <= end_slice) {
                slice_mask |= BIT(start_slice);
@@ -3204,7 +3204,7 @@ adjust_wm_latency(struct drm_i915_private *i915,
         * WaWmMemoryReadLatency
         *
         * punit doesn't take into account the read latency so we need
-        * to add proper adjustement to each valid level we retrieve
+        * to add proper adjustment to each valid level we retrieve
         * from the punit when level 0 response data is 0us.
         */
        if (wm[0] == 0) {
index d49e9b3c762790f68dda07d6700cef9610bc81f5..0333c4d9b7030a0d8241204e2a36d915c237a972 100644 (file)
@@ -59,7 +59,7 @@ static u16 txbyteclkhs(u16 pixels, int bpp, int lane_count,
                                         8 * 100), lane_count);
 }
 
-/* return pixels equvalent to txbyteclkhs */
+/* return pixels equivalent to txbyteclkhs */
 static u16 pixels_from_txbyteclkhs(u16 clk_hs, int bpp, int lane_count,
                        u16 burst_mode_ratio)
 {
index 59a50647f2c3cd3639171512794fc50303578e5e..ac69eaece0fdab62242d605f5195a15c2d3ba17c 100644 (file)
@@ -459,7 +459,7 @@ static void bxt_dsi_program_clocks(struct drm_device *dev, enum port port,
 
        /*
         * rx divider value needs to be updated in the
-        * two differnt bit fields in the register hence splitting the
+        * two different bit fields in the register hence splitting the
         * rx divider value accordingly
         */
        rx_div_lower = rx_div & RX_DIVIDER_BIT_1_2;