[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b3522d39-89c9-44cc-b5cf-0c31c1b30e00@arm.com>
Date: Wed, 28 Aug 2024 12:50:40 +0100
From: Mihail Atanassov <mihail.atanassov@....com>
To: Boris Brezillon <boris.brezillon@...labora.com>,
Mary Guillemard <mary.guillemard@...labora.com>
Cc: linux-kernel@...r.kernel.org, kernel@...labora.com,
Christopher Healy <healych@...zon.com>, Steven Price <steven.price@....com>,
Liviu Dudau <liviu.dudau@....com>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>, Thomas Zimmermann <tzimmermann@...e.de>,
David Airlie <airlied@...il.com>, Daniel Vetter <daniel@...ll.ch>,
dri-devel@...ts.freedesktop.org
Subject: Re: [PATCH v3] drm/panthor: Add DEV_QUERY_TIMESTAMP_INFO dev query
On 28/08/2024 12:30, Boris Brezillon wrote:
> On Mon, 19 Aug 2024 13:25:08 +0200
> Mary Guillemard <mary.guillemard@...labora.com> wrote:
>
>> +/**
>> + * struct drm_panthor_timestamp_info - Timestamp information
>> + *
>> + * Structure grouping all queryable information relating to the GPU timestamp.
>> + */
>> +struct drm_panthor_timestamp_info {
>> + /** @timestamp_frequency: The frequency of the timestamp timer. */
>> + __u64 timestamp_frequency;
>> +
>> + /** @current_timestamp: The current timestamp. */
>> + __u64 current_timestamp;
>> +
>> + /** @timestamp_offset: The offset of the timestamp timer. */
>> + __u64 timestamp_offset;
>
> I'm not sure we should expose the offset to be honest. It looks like
> something that's related to suspend/resume which only the kernel needs
> to know.
Just for some context: it's necessary information to verify that the GPU
timestamp correlates well with the CPU timestamp. It's untestable (in
userspace) without the offset.
The struct can be extended later if really needed, so while I'd like to
have the field stay, I'm not going to argue very hard against removing it.
>
>> +};
--
Mihail Atanassov <mihail.atanassov@....com>
Powered by blists - more mailing lists