[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <77d405d0-0f1a-202f-886d-c0a283a9d2cf@amd.com>
Date: Mon, 19 Aug 2024 12:50:44 -0700
From: Lizhi Hou <lizhi.hou@....com>
To: Jeffrey Hugo <quic_jhugo@...cinc.com>, <ogabbay@...nel.org>,
<dri-devel@...ts.freedesktop.org>
CC: <linux-kernel@...r.kernel.org>, <min.ma@....com>, <max.zhen@....com>,
<sonal.santan@....com>, <king.tam@....com>
Subject: Re: [PATCH V2 09/10] accel/amdxdna: Add query functions
On 8/9/24 09:42, Jeffrey Hugo wrote:
> On 8/5/2024 11:39 AM, Lizhi Hou wrote:
>> +/**
>> + * struct amdxdna_drm_query_hwctx - The data for single context.
>> + * @context_id: The ID for this context.
>> + * @start_col: The starting column for the partition assigned to
>> this context.
>> + * @num_col: The number of columns in the partition assigned to this
>> context.
>> + * @pid: The Process ID of the process that created this context.
>> + * @command_submissions: The number of commands submitted to this
>> context.
>> + * @command_completions: The number of commands completed by this
>> context.
>> + * @migrations: The number of times this context has been moved to a
>> different partition.
>> + * @preemptions: The number of times this context has been preempted
>> by another context in the
>> + * same partition.
>> + * @pad: MBZ.
>
> Did you make the documentation? This looks like it'll generate errors
> from missing fields, and not having the same order as the struct.
make htmldocs and make W=1 did not capture this (it seems doc is
generated for .c file but not .h?). And kernel test robot did not complain.
I will review header files and fix this kind of issue. Please let me
know if there is a tool I need to run through.
Thanks,
Lizhi
>
>> + */
>> +struct amdxdna_drm_query_hwctx {
>> + __u32 context_id;
>> + __u32 start_col;
>> + __u32 num_col;
>> + __u32 pad;
>> + __s64 pid;
>> + __u64 command_submissions;
>> + __u64 command_completions;
>> + __u64 migrations;
>> + __u64 preemptions;
>> + __u64 errors;
>> +};
Powered by blists - more mailing lists