Skip to content

Commit a752b07

Browse files
committed
drm/i915/gvt: Fix function comment doc errors
Caught by W=1 to fix left wrong function comment doc. Reviewed-by: Hang Yuan <hang.yuan@intel.com> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
1 parent 63ef262 commit a752b07

10 files changed

Lines changed: 37 additions & 8 deletions

File tree

‎drivers/gpu/drm/i915/gvt/cfg_space.c‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ static const u8 pci_cfg_space_rw_bmp[PCI_INTERRUPT_LINE + 4] = {
5656

5757
/**
5858
* vgpu_pci_cfg_mem_write - write virtual cfg space memory
59+
* @vgpu: target vgpu
60+
* @off: offset
61+
* @src: src ptr to write
62+
* @bytes: number of bytes
5963
*
6064
* Use this function to write virtual cfg space memory.
6165
* For standard cfg space, only RW bits can be changed,
@@ -91,6 +95,10 @@ static void vgpu_pci_cfg_mem_write(struct intel_vgpu *vgpu, unsigned int off,
9195

9296
/**
9397
* intel_vgpu_emulate_cfg_read - emulate vGPU configuration space read
98+
* @vgpu: target vgpu
99+
* @offset: offset
100+
* @p_data: return data ptr
101+
* @bytes: number of bytes to read
94102
*
95103
* Returns:
96104
* Zero on success, negative error code if failed.
@@ -278,6 +286,10 @@ static int emulate_pci_bar_write(struct intel_vgpu *vgpu, unsigned int offset,
278286

279287
/**
280288
* intel_vgpu_emulate_cfg_read - emulate vGPU configuration space write
289+
* @vgpu: target vgpu
290+
* @offset: offset
291+
* @p_data: write data ptr
292+
* @bytes: number of bytes to write
281293
*
282294
* Returns:
283295
* Zero on success, negative error code if failed.

‎drivers/gpu/drm/i915/gvt/display.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ void intel_vgpu_clean_display(struct intel_vgpu *vgpu)
462462
/**
463463
* intel_vgpu_init_display- initialize vGPU virtual display emulation
464464
* @vgpu: a vGPU
465+
* @resolution: resolution index for intel_vgpu_edid
465466
*
466467
* This function is used to initialize vGPU virtual display emulation stuffs
467468
*

‎drivers/gpu/drm/i915/gvt/edid.c‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,9 @@ static int gmbus2_mmio_write(struct intel_vgpu *vgpu, unsigned int offset,
340340
/**
341341
* intel_gvt_i2c_handle_gmbus_read - emulate gmbus register mmio read
342342
* @vgpu: a vGPU
343+
* @offset: reg offset
344+
* @p_data: data return buffer
345+
* @bytes: access data length
343346
*
344347
* This function is used to emulate gmbus register mmio read
345348
*
@@ -365,6 +368,9 @@ int intel_gvt_i2c_handle_gmbus_read(struct intel_vgpu *vgpu,
365368
/**
366369
* intel_gvt_i2c_handle_gmbus_write - emulate gmbus register mmio write
367370
* @vgpu: a vGPU
371+
* @offset: reg offset
372+
* @p_data: data return buffer
373+
* @bytes: access data length
368374
*
369375
* This function is used to emulate gmbus register mmio write
370376
*
@@ -437,6 +443,9 @@ static inline int get_aux_ch_reg(unsigned int offset)
437443
/**
438444
* intel_gvt_i2c_handle_aux_ch_write - emulate AUX channel register write
439445
* @vgpu: a vGPU
446+
* @port_idx: port index
447+
* @offset: reg offset
448+
* @p_data: write ptr
440449
*
441450
* This function is used to emulate AUX channel register write
442451
*

‎drivers/gpu/drm/i915/gvt/gtt.c‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,6 +1113,10 @@ static inline void ppgtt_generate_shadow_entry(struct intel_gvt_gtt_entry *se,
11131113
}
11141114

11151115
/**
1116+
* Check if can do 2M page
1117+
* @vgpu: target vgpu
1118+
* @entry: target pfn's gtt entry
1119+
*
11161120
* Return 1 if 2MB huge gtt shadowing is possilbe, 0 if miscondition,
11171121
* negtive if found err.
11181122
*/
@@ -1942,7 +1946,7 @@ void intel_vgpu_unpin_mm(struct intel_vgpu_mm *mm)
19421946

19431947
/**
19441948
* intel_vgpu_pin_mm - increase the pin count of a vGPU mm object
1945-
* @vgpu: a vGPU
1949+
* @mm: target vgpu mm
19461950
*
19471951
* This function is called when user wants to use a vGPU mm object. If this
19481952
* mm object hasn't been shadowed yet, the shadow will be populated at this
@@ -2462,8 +2466,7 @@ static int setup_spt_oos(struct intel_gvt *gvt)
24622466
/**
24632467
* intel_vgpu_find_ppgtt_mm - find a PPGTT mm object
24642468
* @vgpu: a vGPU
2465-
* @page_table_level: PPGTT page table level
2466-
* @root_entry: PPGTT page table root pointers
2469+
* @pdps: pdp root array
24672470
*
24682471
* This function is used to find a PPGTT mm object from mm object pool
24692472
*

‎drivers/gpu/drm/i915/gvt/gvt.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,6 @@ static const struct intel_gvt_ops intel_gvt_ops = {
188188

189189
/**
190190
* intel_gvt_init_host - Load MPT modules and detect if we're running in host
191-
* @gvt: intel gvt device
192191
*
193192
* This function is called at the driver loading stage. If failed to find a
194193
* loadable MPT module or detect currently we're running in a VM, then GVT-g
@@ -302,7 +301,7 @@ static int init_service_thread(struct intel_gvt *gvt)
302301

303302
/**
304303
* intel_gvt_clean_device - clean a GVT device
305-
* @gvt: intel gvt device
304+
* @dev_priv: i915 private
306305
*
307306
* This function is called at the driver unloading stage, to free the
308307
* resources owned by a GVT device.

‎drivers/gpu/drm/i915/gvt/handlers.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3405,6 +3405,7 @@ bool intel_gvt_in_force_nonpriv_whitelist(struct intel_gvt *gvt,
34053405
* @offset: register offset
34063406
* @pdata: data buffer
34073407
* @bytes: data length
3408+
* @is_read: read or write
34083409
*
34093410
* Returns:
34103411
* Zero on success, negative error code if failed.

‎drivers/gpu/drm/i915/gvt/mmio.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
/**
4040
* intel_vgpu_gpa_to_mmio_offset - translate a GPA to MMIO offset
4141
* @vgpu: a vGPU
42+
* @gpa: guest physical address
4243
*
4344
* Returns:
4445
* Zero on success, negative error code if failed
@@ -228,7 +229,7 @@ int intel_vgpu_emulate_mmio_write(struct intel_vgpu *vgpu, uint64_t pa,
228229
/**
229230
* intel_vgpu_reset_mmio - reset virtual MMIO space
230231
* @vgpu: a vGPU
231-
*
232+
* @dmlr: whether this is device model level reset
232233
*/
233234
void intel_vgpu_reset_mmio(struct intel_vgpu *vgpu, bool dmlr)
234235
{

‎drivers/gpu/drm/i915/gvt/opregion.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,6 @@ static void virt_vbt_generation(struct vbt *v)
216216
/**
217217
* intel_vgpu_init_opregion - initialize the stuff used to emulate opregion
218218
* @vgpu: a vGPU
219-
* @gpa: guest physical address of opregion
220219
*
221220
* Returns:
222221
* Zero on success, negative error code if failed.

‎drivers/gpu/drm/i915/gvt/page_track.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ struct intel_vgpu_page_track *intel_vgpu_find_page_track(
4141
* intel_vgpu_register_page_track - register a guest page to be tacked
4242
* @vgpu: a vGPU
4343
* @gfn: the gfn of guest page
44+
* @handler: page track handler
45+
* @priv: tracker private
4446
*
4547
* Returns:
4648
* zero on success, negative error code if failed.

‎drivers/gpu/drm/i915/gvt/scheduler.c‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,6 +1135,7 @@ int intel_vgpu_setup_submission(struct intel_vgpu *vgpu)
11351135
/**
11361136
* intel_vgpu_select_submission_ops - select virtual submission interface
11371137
* @vgpu: a vGPU
1138+
* @engine_mask: either ALL_ENGINES or target engine mask
11381139
* @interface: expected vGPU virtual submission interface
11391140
*
11401141
* This function is called when guest configures submission interface.
@@ -1187,7 +1188,7 @@ int intel_vgpu_select_submission_ops(struct intel_vgpu *vgpu,
11871188

11881189
/**
11891190
* intel_vgpu_destroy_workload - destroy a vGPU workload
1190-
* @vgpu: a vGPU
1191+
* @workload: workload to destroy
11911192
*
11921193
* This function is called when destroy a vGPU workload.
11931194
*
@@ -1279,6 +1280,7 @@ static int prepare_mm(struct intel_vgpu_workload *workload)
12791280
/**
12801281
* intel_vgpu_create_workload - create a vGPU workload
12811282
* @vgpu: a vGPU
1283+
* @ring_id: ring index
12821284
* @desc: a guest context descriptor
12831285
*
12841286
* This function is called when creating a vGPU workload.

0 commit comments

Comments
 (0)