# Re: \[PATCH v14 08/10\] ptp: arm64: Enable ptp\_kvm for arm64

- From: Marc Zyngier \<maz@kernel.org\>
- Date: 2020-09-06 10:00:45 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2020/09/6095271
- Thread: https://ratatoskr.run/netdev/2020/09/6093940/t.md

```text
On Sat, 05 Sep 2020 12:01:42 +0100,
Marc Zyngier [ref] wrote:
> 
> On Fri, 04 Sep 2020 10:27:42 +0100,
> Jianyong Wu [ref] wrote:

[...]

> > +{
> > +	ktime_t ktime;
> > +
> > +	arm_smccc_1_1_invoke(ARM_SMCCC_VENDOR_HYP_KVM_PTP_FUNC_ID,
> > +			     hvc_res);
> > +	if ((long long)(hvc_res->a0) < 0)
> > +		return -EOPNOTSUPP;
> 
> Really? What if the cycle counter is a full 64 bit value, as it is
> *mandated* on ARMv8.6? It means that the counter is now invalid for
> half the lifetime of the system. Not acceptable either.

Having re-read this, this field doesn't contain the cycle counter, but
the time in ns. So checking for a negative value should actually be
fine for quite a while. My other comments still stand though.

Thanks,

	M.

-- 
Without deviation from the norm, progress is not possible.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
```
