Unverified Commit 381ab12d authored by Nitin Gote's avatar Nitin Gote Committed by Rodrigo Vivi
Browse files

drm/i915: fix typos in drm/i915 files



Fix all typos in files under drm/i915 reported by codespell tool.

v2: Fix commenting style. <Andi>

v3: "in case" should be capitalized and fix
    comment style. <Krzysztof Niemiec>

Signed-off-by: default avatarNitin Gote <nitin.r.gote@intel.com>
Reviewed-by: default avatarKrzysztof Niemiec <krzysztof.niemiec@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250120081517.3237326-9-nitin.r.gote@intel.com


Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent c55af006
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1130,7 +1130,7 @@ static int i915_drm_suspend_late(struct drm_device *dev, bool hibernation)
	 * leave the device in D0 on those platforms and hope the BIOS will
	 * power down the device properly. The issue was seen on multiple old
	 * GENs with different BIOS vendors, so having an explicit blacklist
	 * is inpractical; apply the workaround on everything pre GEN6. The
	 * is impractical; apply the workaround on everything pre GEN6. The
	 * platforms where the issue was seen:
	 * Lenovo Thinkpad X301, X61s, X60, T60, X41
	 * Fujitsu FSC S7110
+3 −3
Original line number Diff line number Diff line
@@ -1146,11 +1146,11 @@ int i915_gem_init(struct drm_i915_private *dev_priv)
	int ret;

	/*
	 * In the proccess of replacing cache_level with pat_index a tricky
	 * In the process of replacing cache_level with pat_index a tricky
	 * dependency is created on the definition of the enum i915_cache_level.
	 * in case this enum is changed, PTE encode would be broken.
	 * In case this enum is changed, PTE encode would be broken.
	 * Add a WARNING here. And remove when we completely quit using this
	 * enum
	 * enum.
	 */
	BUILD_BUG_ON(I915_CACHE_NONE != 0 ||
		     I915_CACHE_LLC != 1 ||
+1 −1
Original line number Diff line number Diff line
@@ -1233,7 +1233,7 @@ int intel_irq_install(struct drm_i915_private *dev_priv)
}

/**
 * intel_irq_uninstall - finilizes all irq handling
 * intel_irq_uninstall - finalizes all irq handling
 * @dev_priv: i915 device instance
 *
 * This stops interrupt and hotplug handling and unregisters and frees all
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ static int i915_check_nomodeset(void)
	bool use_kms = true;

	/*
	 * Enable KMS by default, unless explicitly overriden by
	 * Enable KMS by default, unless explicitly overridden by
	 * either the i915.modeset parameter or by the
	 * nomodeset boot option.
	 */
+12 −7
Original line number Diff line number Diff line
@@ -548,7 +548,8 @@ static bool oa_buffer_check_unlocked(struct i915_perf_stream *stream)
	bool pollin;
	u32 partial_report_size;

	/* We have to consider the (unlikely) possibility that read() errors
	/*
	 * We have to consider the (unlikely) possibility that read() errors
	 * could result in an OA buffer reset which might reset the head and
	 * tail state.
	 */
@@ -557,7 +558,8 @@ static bool oa_buffer_check_unlocked(struct i915_perf_stream *stream)
	hw_tail = stream->perf->ops.oa_hw_tail_read(stream);
	hw_tail -= gtt_offset;

	/* The tail pointer increases in 64 byte increments, not in report_size
	/*
	 * The tail pointer increases in 64 byte increments, not in report_size
	 * steps. Also the report size may not be a power of 2. Compute
	 * potentially partially landed report in the OA buffer
	 */
@@ -569,8 +571,9 @@ static bool oa_buffer_check_unlocked(struct i915_perf_stream *stream)

	tail = hw_tail;

	/* Walk the stream backward until we find a report with report
	 * id and timestmap not at 0. Since the circular buffer pointers
	/*
	 * Walk the stream backward until we find a report with report
	 * id and timestamp not at 0. Since the circular buffer pointers
	 * progress by increments of 64 bytes and that reports can be up
	 * to 256 bytes long, we can't tell whether a report has fully
	 * landed in memory before the report id and timestamp of the
@@ -3849,7 +3852,7 @@ i915_perf_open_ioctl_locked(struct i915_perf *perf,
	}

	/*
	 * Asking for SSEU configuration is a priviliged operation.
	 * Asking for SSEU configuration is a privileged operation.
	 */
	if (props->has_sseu)
		privileged_op = true;
@@ -4478,14 +4481,16 @@ static bool gen12_is_valid_mux_addr(struct i915_perf *perf, u32 addr)

static u32 mask_reg_value(u32 reg, u32 val)
{
	/* HALF_SLICE_CHICKEN2 is programmed with a the
	/*
	 * HALF_SLICE_CHICKEN2 is programmed with a the
	 * WaDisableSTUnitPowerOptimization workaround. Make sure the value
	 * programmed by userspace doesn't change this.
	 */
	if (REG_EQUAL(reg, HALF_SLICE_CHICKEN2))
		val = val & ~_MASKED_BIT_ENABLE(GEN8_ST_PO_DISABLE);

	/* WAIT_FOR_RC6_EXIT has only one bit fullfilling the function
	/*
	 * WAIT_FOR_RC6_EXIT has only one bit fulfilling the function
	 * indicated by its name and a bunch of selection fields used by OA
	 * configs.
	 */
Loading