* [PATCH 1/2] drm/amdgpu: fix kernel-doc in amdgpu_ualink.c
@ 2026-11-04 15:06 Aryan Sinha
2026-11-04 15:06 ` [PATCH 2/2] drm/amdgpu: use str_enable_disable() in amdgpu_ualink_set_irq_state() Aryan Sinha
0 siblings, 1 reply; 2+ messages in thread
From: Aryan Sinha @ 2026-11-04 15:06 UTC (permalink / raw)
To: Alex Deucher, Christian König
Cc: David Airlie, Simona Vetter, amd-gfx, dri-devel, linux-kernel,
Aryan Sinha, kernel test robot
The two comments do not describe what follows them. The one above
amdgpu_ualink_npa_vm_unmap_range() is missing the ualink prefix, and the other one for amdgpu_ualink_gart_npa_addr() sits above two defines instead of the function, so kernel-doc attaches it to the first defined one.
hence, Move the defines up and fix the name.
The description also had a stray blank line splitting it in two and said dst_accid_id where it meant dst_accel_id, so join & fix it back up.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/r/202609241952.zFr1FYRB-lkp@intel.com/
Signed-off-by: Aryan Sinha <sinha.aryan03@gmail.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c | 17 +++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c
index 6cd3927a7..f875209e5 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c
@@ -4631,7 +4631,7 @@ static int amdgpu_ualink_npa_vm_map_range(struct amdgpu_device *adev, struct amd
}
/**
- * amdgpu_npa_vm_unmap_range - Unmap a range from the NPA VM
+ * amdgpu_ualink_npa_vm_unmap_range - Unmap a range from the NPA VM
* @adev: amdgpu device pointer
* @bo: buffer object backing the mapping
* @pte_flags: page table entry flags
@@ -4727,6 +4727,9 @@ static u64 amdgpu_ualink_npa_addr(struct amdgpu_device *adev, u32 type,
return npa;
}
+#define AMDGPU_UALINK_GART_NPA_ADDR_GPUID_SHIFT 41
+#define AMDGPU_UALINK_GART_NPA_ADDR_GPUID_MASK GENMASK_ULL(50, 41)
+
/**
* amdgpu_ualink_gart_npa_addr - Get GART-mapped NPA address for ring buffer
* @adev: amdgpu device pointer
@@ -4734,18 +4737,12 @@ static u64 amdgpu_ualink_npa_addr(struct amdgpu_device *adev, u32 type,
* @src_accel_id: Source accelerator ID
* @dst_accel_id: Destination accelerator ID
*
- * Computes the NPA address suitable for GART mapping by adding dst_accid_id to
- * NPA address to access remote by SDMA.
-
- * clears the source GPU ID bits from the NPA address which is set for
- * address-identification mode.
+ * Computes the NPA address suitable for GART mapping by adding dst_accel_id to
+ * NPA address to access remote by SDMA. It also clears the source GPU ID bits
+ * from the NPA address which is set for address-identification mode.
*
* Return: NPA address adjusted for GART mapping
*/
-
-#define AMDGPU_UALINK_GART_NPA_ADDR_GPUID_SHIFT 41
-#define AMDGPU_UALINK_GART_NPA_ADDR_GPUID_MASK GENMASK_ULL(50, 41)
-
static u64 amdgpu_ualink_gart_npa_addr(struct amdgpu_device *adev, u32 type,
u32 src_accel_id, u32 dst_accel_id)
{
--
2.46.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 2/2] drm/amdgpu: use str_enable_disable() in amdgpu_ualink_set_irq_state()
2026-11-04 15:06 [PATCH 1/2] drm/amdgpu: fix kernel-doc in amdgpu_ualink.c Aryan Sinha
@ 2026-11-04 15:06 ` Aryan Sinha
0 siblings, 0 replies; 2+ messages in thread
From: Aryan Sinha @ 2026-11-04 15:06 UTC (permalink / raw)
To: Alex Deucher, Christian König
Cc: David Airlie, Simona Vetter, amd-gfx, dri-devel, linux-kernel,
Aryan Sinha
Replace the open coded ternary with the helper from the string_choices.h.
Same output.
Signed-off-by: Aryan Sinha <sinha.aryan03@gmail.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c
index f875209e5..a307d165a 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c
@@ -34,6 +34,7 @@
#include <linux/math.h>
#include <linux/sysfs.h>
#include <linux/string.h>
+#include <linux/string_choices.h>
static void deactivate_accelerator(struct amdgpu_device *adev);
static int amdgpu_ualink_remote_interrupt(struct amdgpu_device *adev,
@@ -6558,7 +6559,7 @@ static int amdgpu_ualink_set_irq_state(struct amdgpu_device *adev,
* interrupt driver.
*/
dev_dbg(adev->dev, "ualink interrupt %s\n",
- state == AMDGPU_IRQ_STATE_ENABLE ? "enable" : "disable");
+ str_enable_disable(state == AMDGPU_IRQ_STATE_ENABLE));
return 0;
}
--
2.46.0
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-04 15:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04 15:06 [PATCH 1/2] drm/amdgpu: fix kernel-doc in amdgpu_ualink.c Aryan Sinha
2026-11-04 15:06 ` [PATCH 2/2] drm/amdgpu: use str_enable_disable() in amdgpu_ualink_set_irq_state() Aryan Sinha
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®