public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Allen Hubbe <allen.hubbe@amd.com>
To: Jakub Kicinski <kuba@kernel.org>,
	Abhijit Gangurde <abhijit.gangurde@amd.com>
Cc: jgg@ziepe.ca, leon@kernel.org, brett.creeley@amd.com,
	andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
	pabeni@redhat.com, nikhil.agarwal@amd.com,
	linux-rdma@vger.kernel.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/4] net: ionic: Add PHC state page for user space access
Date: Fri, 10 Apr 2026 09:10:09 -0400	[thread overview]
Message-ID: <52cee89f-50e2-4569-a622-b03e711ab26b@amd.com> (raw)
In-Reply-To: <20260401170600.312a23d1@kernel.org>

On 4/1/2026 8:06 PM, Jakub Kicinski wrote:
> Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
> 
> 
> On Wed, 1 Apr 2026 15:54:59 +0530 Abhijit Gangurde wrote:
>> diff --git a/include/uapi/rdma/ionic-abi.h b/include/uapi/rdma/ionic-abi.h
>> index 7b589d3e9728..97f695510380 100644
>> --- a/include/uapi/rdma/ionic-abi.h
>> +++ b/include/uapi/rdma/ionic-abi.h
>> @@ -112,4 +112,15 @@ struct ionic_srq_resp {
>>        __aligned_u64 rq_cmb_offset;
>>   };
>>
>> +struct ionic_phc_state {
>> +     __u32 seq;
>> +     __u32 rsvd;
>> +     __aligned_u64 mask;
>> +     __aligned_u64 tick;
>> +     __aligned_u64 nsec;
>> +     __aligned_u64 frac;
>> +     __u32 mult;
>> +     __u32 shift;
>> +};
> 
> You're just exposing kernel timecounter internals.
> Why is this ionic uAPI and not something reusable by other drivers?

The simple answer is just following the same approach as an existing 
implementation.  See struct mlx5_ib_clock_info and 
mlx5_update_clock_info_page().

Making this common might risk presuming that other implementations will 
be a similar design.  Compare these to the sfc driver.  The clock is 
quite different from ionic and mlx5, not using timecounter, because 
instead of a free-running cycle counter the hardware itself provides an 
adjustable clock for timestamping.

  reply	other threads:[~2026-04-10 13:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-01 10:24 [PATCH 0/4] ionic: RDMA completion timestamping support Abhijit Gangurde
2026-04-01 10:24 ` [PATCH 1/4] net: ionic: register PHC for rdma timestamping Abhijit Gangurde
2026-04-01 10:24 ` [PATCH 2/4] net: ionic: Add PHC state page for user space access Abhijit Gangurde
2026-04-02  0:06   ` Jakub Kicinski
2026-04-10 13:10     ` Allen Hubbe [this message]
2026-04-01 10:25 ` [PATCH 3/4] RDMA/ionic: map PHC state into user space Abhijit Gangurde
2026-04-01 10:25 ` [PATCH 4/4] RDMA/ionic: add completion timestamp to CQE format Abhijit Gangurde

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=52cee89f-50e2-4569-a622-b03e711ab26b@amd.com \
    --to=allen.hubbe@amd.com \
    --cc=abhijit.gangurde@amd.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=brett.creeley@amd.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=jgg@ziepe.ca \
    --cc=kuba@kernel.org \
    --cc=leon@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=nikhil.agarwal@amd.com \
    --cc=pabeni@redhat.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