mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
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: Nitin Gote <nitin.r.gote@intel.com>
Reviewed-by: Krzysztof Niemiec <krzysztof.niemiec@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250120081517.3237326-9-nitin.r.gote@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
parent
c55af00652
commit
381ab12d48
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 ||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ struct i915_pmu {
|
|||
/**
|
||||
* @timer_last:
|
||||
*
|
||||
* Timestmap of the previous timer invocation.
|
||||
* Timestamp of the previous timer invocation.
|
||||
*/
|
||||
ktime_t timer_last;
|
||||
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@
|
|||
* Try to name registers according to the specs. If the register name changes in
|
||||
* the specs from platform to another, stick to the original name.
|
||||
*
|
||||
* Try to re-use existing register macro definitions. Only add new macros for
|
||||
* Try to reuse existing register macro definitions. Only add new macros for
|
||||
* new register offsets, or when the register contents have changed enough to
|
||||
* warrant a full redefinition.
|
||||
*
|
||||
|
|
@ -492,8 +492,9 @@
|
|||
#define MBUS_ABOX_BT_CREDIT_POOL1_MASK (0x1F << 0)
|
||||
#define MBUS_ABOX_BT_CREDIT_POOL1(x) ((x) << 0)
|
||||
|
||||
/* Make render/texture TLB fetches lower priorty than associated data
|
||||
* fetches. This is not turned on by default
|
||||
/*
|
||||
* Make render/texture TLB fetches lower priority than associated data
|
||||
* fetches. This is not turned on by default.
|
||||
*/
|
||||
#define MI_ARB_RENDER_TLB_LOW_PRIORITY (1 << 15)
|
||||
|
||||
|
|
|
|||
|
|
@ -473,7 +473,7 @@ static bool __request_in_flight(const struct i915_request *signal)
|
|||
* to avoid tearing.]
|
||||
*
|
||||
* Note that the read of *execlists->active may race with the promotion
|
||||
* of execlists->pending[] to execlists->inflight[], overwritting
|
||||
* of execlists->pending[] to execlists->inflight[], overwriting
|
||||
* the value at *execlists->active. This is fine. The promotion implies
|
||||
* that we received an ACK from the HW, and so the context is not
|
||||
* stuck -- if we do not see ourselves in *active, the inflight status
|
||||
|
|
|
|||
|
|
@ -161,7 +161,7 @@ enum {
|
|||
* parent-child relationship (parallel submission, multi-lrc) that
|
||||
* hit an error while generating requests in the execbuf IOCTL.
|
||||
* Indicates this request should be skipped as another request in
|
||||
* submission / relationship encoutered an error.
|
||||
* submission / relationship encountered an error.
|
||||
*/
|
||||
I915_FENCE_FLAG_SKIP_PARALLEL,
|
||||
|
||||
|
|
@ -187,7 +187,7 @@ enum {
|
|||
* RCU lookup of it that may race against reallocation of the struct
|
||||
* from the slab freelist. We intentionally do not zero the structure on
|
||||
* allocation so that the lookup can use the dangling pointers (and is
|
||||
* cogniscent that those pointers may be wrong). Instead, everything that
|
||||
* cognisant that those pointers may be wrong). Instead, everything that
|
||||
* needs to be initialised must be done so explicitly.
|
||||
*
|
||||
* The requests are reference counted.
|
||||
|
|
|
|||
|
|
@ -778,8 +778,8 @@ bool i915_gem_valid_gtt_space(struct i915_vma *vma, unsigned long color)
|
|||
* @flags: mask of PIN_* flags to use
|
||||
*
|
||||
* First we try to allocate some free space that meets the requirements for
|
||||
* the VMA. Failiing that, if the flags permit, it will evict an old VMA,
|
||||
* preferrably the oldest idle entry to make room for the new VMA.
|
||||
* the VMA. Failing that, if the flags permit, it will evict an old VMA,
|
||||
* preferably the oldest idle entry to make room for the new VMA.
|
||||
*
|
||||
* Returns:
|
||||
* 0 on success, negative error code otherwise.
|
||||
|
|
@ -877,7 +877,7 @@ i915_vma_insert(struct i915_vma *vma, struct i915_gem_ww_ctx *ww,
|
|||
* objects which need to be tightly packed into the low 32bits.
|
||||
*
|
||||
* Note that we assume that GGTT are limited to 4GiB for the
|
||||
* forseeable future. See also i915_ggtt_offset().
|
||||
* foreseeable future. See also i915_ggtt_offset().
|
||||
*/
|
||||
if (upper_32_bits(end - 1) &&
|
||||
vma->page_sizes.sg > I915_GTT_PAGE_SIZE &&
|
||||
|
|
@ -1001,7 +1001,7 @@ rotate_pages(struct drm_i915_gem_object *obj, unsigned int offset,
|
|||
|
||||
/*
|
||||
* The DE ignores the PTEs for the padding tiles, the sg entry
|
||||
* here is just a conenience to indicate how many padding PTEs
|
||||
* here is just a convenience to indicate how many padding PTEs
|
||||
* to insert at this spot.
|
||||
*/
|
||||
sg_set_page(sg, NULL, left, 0);
|
||||
|
|
|
|||
|
|
@ -682,7 +682,7 @@ static void i85x_init_clock_gating(struct drm_i915_private *i915)
|
|||
* Have FBC ignore 3D activity since we use software
|
||||
* render tracking, and otherwise a pure 3D workload
|
||||
* (even if it just renders a single frame and then does
|
||||
* abosultely nothing) would not allow FBC to recompress
|
||||
* absolutely nothing) would not allow FBC to recompress
|
||||
* until a 2D blit occurs.
|
||||
*/
|
||||
intel_uncore_write(&i915->uncore, SCPD0,
|
||||
|
|
|
|||
|
|
@ -265,7 +265,7 @@ void intel_gvt_driver_remove(struct drm_i915_private *dev_priv)
|
|||
}
|
||||
|
||||
/**
|
||||
* intel_gvt_resume - GVT resume routine wapper
|
||||
* intel_gvt_resume - GVT resume routine wrapper
|
||||
*
|
||||
* @dev_priv: drm i915 private *
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1260,7 +1260,7 @@ static int iterate_bxt_mmio(struct intel_gvt_mmio_table_iter *iter)
|
|||
|
||||
/**
|
||||
* intel_gvt_iterate_mmio_table - Iterate the GVT MMIO table
|
||||
* @iter: the interator
|
||||
* @iter: the iterator
|
||||
*
|
||||
* This function is called for iterating the GVT MMIO table when i915 is
|
||||
* taking the snapshot of the HW and GVT is building MMIO tracking table.
|
||||
|
|
|
|||
|
|
@ -375,7 +375,7 @@ void intel_runtime_pm_enable(struct intel_runtime_pm *rpm)
|
|||
* leave the device suspended skipping the driver's suspend handlers
|
||||
* if the device was already runtime suspended. This is needed due to
|
||||
* the difference in our runtime and system suspend sequence and
|
||||
* becaue the HDA driver may require us to enable the audio power
|
||||
* because the HDA driver may require us to enable the audio power
|
||||
* domain during system suspend.
|
||||
*/
|
||||
dev_pm_set_driver_flags(kdev, DPM_FLAG_NO_DIRECT_COMPLETE);
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ struct drm_printer;
|
|||
* it can be changed with the standard runtime PM files from sysfs.
|
||||
*
|
||||
* The irqs_disabled variable becomes true exactly after we disable the IRQs and
|
||||
* goes back to false exactly before we reenable the IRQs. We use this variable
|
||||
* goes back to false exactly before we re-enable the IRQs. We use this variable
|
||||
* to check if someone is trying to enable/disable IRQs while they're supposed
|
||||
* to be disabled. This shouldn't happen and we'll print some error messages in
|
||||
* case it happens.
|
||||
|
|
|
|||
|
|
@ -2477,7 +2477,7 @@ static int sanity_check_mmio_access(struct intel_uncore *uncore)
|
|||
|
||||
/*
|
||||
* Sanitycheck that MMIO access to the device is working properly. If
|
||||
* the CPU is unable to communcate with a PCI device, BAR reads will
|
||||
* the CPU is unable to communicate with a PCI device, BAR reads will
|
||||
* return 0xFFFFFFFF. Let's make sure the device isn't in this state
|
||||
* before we start trying to access registers.
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user