[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2969879b-c536-47b5-b03f-e5428a0db5c5@linux.dev>
Date: Tue, 2 Dec 2025 22:18:04 +0000
From: Vadim Fedorenko <vadim.fedorenko@...ux.dev>
To: Jakub Kicinski <kuba@...nel.org>, Michael Chan <michael.chan@...adcom.com>
Cc: davem@...emloft.net, netdev@...r.kernel.org, edumazet@...gle.com,
pabeni@...hat.com, andrew+netdev@...n.ch, pavan.chebbi@...adcom.com,
andrew.gospodarek@...adcom.com, Somnath Kotur <somnath.kotur@...adcom.com>
Subject: Re: [PATCH net-next 7/7] bnxt_en: Add PTP .getcrosststamp() interface
to get device/host times
On 28/11/2025 02:59, Jakub Kicinski wrote:
> On Wed, 26 Nov 2025 13:56:48 -0800 Michael Chan wrote:
>> + ptm_local_ts = le64_to_cpu(resp->ptm_local_ts);
>> + *device = ns_to_ktime(bnxt_timecounter_cyc2time(ptp, ptm_local_ts));
>> + /* ptm_system_ts is 64-bit */
>> + system->cycles = le64_to_cpu(resp->ptm_system_ts);
>> + system->cs_id = CSID_X86_ART;
>> + system->use_nsecs = true;
>
> Non-x86 hosts exist? Also, I'd like to give Vadim F a chance to TAL
> and he's out for the rest of the week. So perhaps we can hold this
> one off until after the MW?
>
> I'll apply up to this point in the meantime.
I did test this code, but only on x86 platform, unfortunately.
Powered by blists - more mailing lists