lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <15501b84-2c35-466c-8347-c9ca406affb9@linux.dev>
Date: Tue, 2 Dec 2025 22:21:00 +0000
From: Vadim Fedorenko <vadim.fedorenko@...ux.dev>
To: Michael Chan <michael.chan@...adcom.com>, davem@...emloft.net
Cc: netdev@...r.kernel.org, edumazet@...gle.com, kuba@...nel.org,
 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 26/11/2025 21:56, Michael Chan wrote:

[...]

> +static int bnxt_ptp_getcrosststamp(struct ptp_clock_info *ptp_info,
> +				   struct system_device_crosststamp *xtstamp)
> +{
> +	struct bnxt_ptp_cfg *ptp = container_of(ptp_info, struct bnxt_ptp_cfg,
> +						ptp_info);
> +
> +	if (!(ptp->bp->fw_cap & BNXT_FW_CAP_PTP_PTM))
> +		return -EOPNOTSUPP;

to have it enabled for x86-only (as the only supported platform as of
now), additional check is needed:

if (pcie_ptm_enabled(ptp->bp->pdev) && boot_cpu_has(X86_FEATURE_ART))
	return -EOPNOTSUPP;

> +	return get_device_system_crosststamp(bnxt_phc_get_syncdevicetime,
> +					     ptp, NULL, xtstamp);
> +}
> +

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ