Skip to contentSkip to conversation

drm/amdgpu: add the argument description for inst

PATCH Superseded Sunil Khatri 2 participants 3 messages Nov 13, 2024

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 drm/amdgpu: add the argument description for inst

Add argument description for the input argument
inst for amdgpu_device_ip_set_powergating_state.

Fixes the warning raised by the compiler:
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:2182:
warning: Function parameter or struct member 'inst' not described in 'amdgpu_device_ip_set_powergating_state'

---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -0
index bb530dd2b3e3..b3ca911e55d6 100644
@@ -2170,6 +2170,7 @@ int amdgpu_device_ip_set_clockgating_state(void *dev,
  * @dev: amdgpu_device pointer
  * @block_type: Type of hardware IP (SMU, GFX, UVD, etc.)
  * @state: powergating state (gate or ungate)
+ * @inst: Instance id of the specific block_type
  *
  * Sets the requested powergating state for all instances of
  * the hardware IP specified.
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/2 drm/amdgpu: add the argument description for gpu_addr

Add argument description for the input argument gpu_addr for amdgpu_device_ip_set_powergating_state.

Fixes the warning raised by the compiler:
drivers/gpu/drm/amd/amdgpu/amdgpu_seq64.c:168:
warning: Function parameter or struct member 'gpu_addr' not described in 'amdgpu_seq64_alloc

Cc Arunpravin Paneer Selvam <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_seq64.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_seq64.c +1 -0
index 0defad71044c..d392cb0cbf61 100644
@@ -157,6 +157,7 @@ void amdgpu_seq64_unmap(struct amdgpu_device *adev, struct amdgpu_fpriv *fpriv)
  * @adev: amdgpu_device pointer
  * @va: VA to access the seq in process address space
  * @cpu_addr: CPU address to access the seq
+ * @gpu_addr: GPU address to access the seq
  *
  * Alloc a 64 bit memory from seq64 pool.
  *
Signature · 1 line
2.34.1
#2 lore raw

Re: [PATCH v1 2/2] drm/amdgpu: add the argument description for gpu_addr

Quoted 2 lines · Sunil Khatri

Add argument description for the input argument gpu_addr for amdgpu_device_ip_set_powergating_state.

for amdgpu_seq64_alloc?

Quoted 16 lines

Fixes the warning raised by the compiler:
drivers/gpu/drm/amd/amdgpu/amdgpu_seq64.c:168:
warning: Function parameter or struct member 'gpu_addr' not described in 'amdgpu_seq64_alloc

Cc Arunpravin Paneer Selvam <[email protected]>
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_seq64.c | 1 +
  1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_seq64.c +0 -0
index 0defad71044c..d392cb0cbf61 100644

drivers/gpu/drm/amd/amdgpu/amdgpu_seq64.c void amdgpu_seq64_unmap(struct amdgpu_device *adev, struct amdgpu_fpriv *fpriv) · line 158

Quoted 2 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_seq64.c +0 -0
@@ -157,6 +157,7 @@ void amdgpu_seq64_unmap(struct amdgpu_device *adev, struct amdgpu_fpriv *fpriv)
   * @adev: amdgpu_device pointer
   * @va: VA to access the seq in process address space

may be @gpu_addr description follows after the @va as per the input argument order in the function?

Regards,
Arun.

Quoted 5 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_seq64.c +1 -0
   * @cpu_addr: CPU address to access the seq
+ * @gpu_addr: GPU address to access the seq
   *
   * Alloc a 64 bit memory from seq64 pool.
   *