From: itoral <itoral@igalia.com>
To: Maira Canal <mcanal@igalia.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH 2/3] drm/v3d: update UAPI to match user-space for V3D 7.x
Date: Fri, 29 Sep 2023 06:30:42 +0000 [thread overview]
Message-ID: <19eb6f26c4f560a8ab3fcba7e74c1230@igalia.com> (raw)
In-Reply-To: <d01bd636-1cd4-1adc-208c-f92f10ce4a34@igalia.com>
On 2023-09-28 15:05, Maira Canal wrote:
> Hi Iago,
>
> On 9/28/23 08:45, Iago Toral Quiroga wrote:
>> V3D t.x takes a new parameter to configure TFU jobs that needs
>
> I believe t.x should be 7.x.
>
>> to be provided by user space.
>
> As I mentioned before, please, add your s-o-b.
>
>> ---
>> include/uapi/drm/v3d_drm.h | 5 +++++
>> 1 file changed, 5 insertions(+)
>>
>> diff --git a/include/uapi/drm/v3d_drm.h b/include/uapi/drm/v3d_drm.h
>> index 3dfc0af8756a..1a7d7a689de3 100644
>> --- a/include/uapi/drm/v3d_drm.h
>> +++ b/include/uapi/drm/v3d_drm.h
>> @@ -319,6 +319,11 @@ struct drm_v3d_submit_tfu {
>> /* Pointer to an array of ioctl extensions*/
>> __u64 extensions;
>> +
>> + struct {
>> + __u32 ioc;
>> + __u32 pad;
>> + } v71;
>
> Is there any possibility that the name of the struct could be more
> meaningful?
The v71 stands for the hardware version where this field was introduced,
so I am not sure how much more meaningful we can make it :)
The idea for this was to pack version-specific fields into structs named
vXX so that you can quickly tell in which version specific fields
started being relevant directly from the code without having to look for
documentation elsewhere. I don't have a better alternative for the name,
since the point is to make the version explicit, but I am open to
suggestions if you have any.
Of course, we can also get rid of the struct if you prefer that, but
then we should document explicitly that this field only applies to v71
hardware and we would lose the explicit versioning when accessing the
field from the code (unless we decide to add the v71 as a prefix or
suffix in the ioc field, but that is kind of the same thing).
Iago
>
> Best Regards,
> - Maíra
>
>> };
>> /* Submits a compute shader for dispatch. This job will block on any
next prev parent reply other threads:[~2023-09-29 6:30 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-28 11:45 [PATCH 0/3] V3D module changes for Pi5 Iago Toral Quiroga
2023-09-28 11:45 ` [PATCH 1/3] drm/v3d: fix up register addresses for V3D 7.x Iago Toral Quiroga
2023-09-28 15:03 ` Maira Canal
2023-09-29 6:33 ` itoral
2023-09-28 11:45 ` [PATCH 2/3] drm/v3d: update UAPI to match user-space " Iago Toral Quiroga
2023-09-28 15:05 ` Maira Canal
2023-09-29 6:30 ` itoral [this message]
2023-09-28 11:45 ` [PATCH 3/3] drm/v3d: add brcm,2712-v3d as a compatible V3D device Iago Toral Quiroga
2023-09-28 15:06 ` [PATCH 3/3] drm/v3d: add brcm, 2712-v3d " Maira Canal
2023-09-29 5:34 ` Stefan Wahren
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=19eb6f26c4f560a8ab3fcba7e74c1230@igalia.com \
--to=itoral@igalia.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=mcanal@igalia.com \
/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