Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Aravind Iddamsetty <aravind.iddamsetty@linux.intel.com>
To: Gustavo Sousa <gustavo.sousa@intel.com>, intel-xe@lists.freedesktop.org
Subject: Re: [Intel-xe] [PATCH] drm/xe: Fix kernel doc warning for PMU events
Date: Thu, 21 Sep 2023 11:13:57 +0530	[thread overview]
Message-ID: <da8b66d6-ea3f-bdde-dcd8-07b6c2c6f272@linux.intel.com> (raw)
In-Reply-To: <169521609276.7665.8316775804745308048@gjsousa-mobl2>


On 20/09/23 18:51, Gustavo Sousa wrote:
> Quoting Aravind Iddamsetty (2023-09-20 05:26:56-03:00)
>> On 19/09/23 18:57, Gustavo Sousa wrote:
>>> Quoting Aravind Iddamsetty (2023-09-19 03:36:11-03:00)
>>>> Add DOC keyword to PMU events comment in include/drm/xe_drm.h to make it
>>>> kernel doc format.
>>>>
>>>> Fixes: 4a9681392cec ("drm/xe/pmu: Enable PMU interface")
>>>>
>>>> Signed-off-by: Aravind Iddamsetty <aravind.iddamsetty@linux.intel.com>
>>>> ---
>>>> include/uapi/drm/xe_drm.h | 2 +-
>>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>>
>>>> diff --git a/include/uapi/drm/xe_drm.h b/include/uapi/drm/xe_drm.h
>>>> index 63863eda8355..6ab85c7fed36 100644
>>>> --- a/include/uapi/drm/xe_drm.h
>>>> +++ b/include/uapi/drm/xe_drm.h
>>>> @@ -1054,7 +1054,7 @@ struct drm_xe_vm_madvise {
>>>> };
>>>>
>>>> /**
>>>> - * XE PMU event config IDs
>>>> + * DOC: XE PMU event config IDs
>>> That was my first thought when writing [1], but then I realized that the
>>> XE_PMU_*() macros would not show up in the generated documentation.
>>> Not sure if there is a special kernel-doc syntax to make them appear
>>> there. Maybe we should just list them in this kernel-doc?
>> IIUC as per Documentation/doc-guide/kernel-doc.rst it allows
>> for source code comments and code itself can't be part of the comment
>> so I don't think we need to list the defines in the comment.
> But then the generated HTML will not contain the ids we refer by "these ID's".
> If we are not going to list them, maybe change the wording to help the user
> locate them in the header file? Otherwise, I'm not sure it would make much sense
> to keep this as a kernel-doc.
ok will update the comment accordingly
>
> By the way, I built the docs locally and there is an issue with the code block:
>
>     (...)/Documentation/gpu/driver-uapi:24: ./include/uapi/drm/xe_drm.h:1063: ERROR: Error in "code-block" directive:
>     maximum 1 argument(s) allowed, 13 supplied.
>
> It just needs a line break after the code-block directive.

thanks for letting me know will fix this.

Regards,
Aravind.
>
>
> Gustavo Sousa
>
>>
>> Thanks,
>> Aravind.
>>> [1] https://patchwork.freedesktop.org/series/123887/
>>>
>>>>  *
>>>>  * Check 'man perf_event_open' to use these ID's in 'struct perf_event_attr'
>>>>  * as part of perf_event_open syscall to read a particular event.
>>>> -- 
>>>> 2.25.1
>>>>

      reply	other threads:[~2023-09-21  5:41 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-19  6:36 [Intel-xe] [PATCH] drm/xe: Fix kernel doc warning for PMU events Aravind Iddamsetty
2023-09-19  6:29 ` [Intel-xe] ✓ CI.Patch_applied: success for " Patchwork
2023-09-19  6:29 ` [Intel-xe] ✗ CI.checkpatch: warning " Patchwork
2023-09-19  6:30 ` [Intel-xe] ✓ CI.KUnit: success " Patchwork
2023-09-19  6:37 ` [Intel-xe] ✓ CI.Build: " Patchwork
2023-09-19  6:38 ` [Intel-xe] ✓ CI.Hooks: " Patchwork
2023-09-19  6:39 ` [Intel-xe] ✓ CI.checksparse: " Patchwork
2023-09-19  6:47 ` [Intel-xe] [PATCH] " Dixit, Ashutosh
2023-09-19  7:07   ` Aravind Iddamsetty
2023-09-19  7:10 ` [Intel-xe] ✓ CI.BAT: success for " Patchwork
2023-09-19  7:46 ` [Intel-xe] [PATCH] " Thomas Hellström
2023-09-19  7:59   ` Aravind Iddamsetty
2023-09-19 13:27 ` Gustavo Sousa
2023-09-20  8:26   ` Aravind Iddamsetty
2023-09-20 13:21     ` Gustavo Sousa
2023-09-21  5:43       ` Aravind Iddamsetty [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=da8b66d6-ea3f-bdde-dcd8-07b6c2c6f272@linux.intel.com \
    --to=aravind.iddamsetty@linux.intel.com \
    --cc=gustavo.sousa@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox