Tested-by: Samuel Salin <[email protected]>

> -----Original Message-----
> From: Intel-wired-lan <[email protected]> On Behalf Of
> Przemyslaw Korba
> Sent: Monday, May 25, 2026 1:38 AM
> To: [email protected]
> Cc: [email protected]; Nguyen, Anthony L
> <[email protected]>; Kitszel, Przemyslaw
> <[email protected]>; Ilichev, Konstantin
> <[email protected]>; Lobakin, Aleksander
> <[email protected]>; Korba, Przemyslaw
> <[email protected]>; [email protected]; Loktionov, Aleksandr
> <[email protected]>
> Subject: [Intel-wired-lan] [PATCH iwl-net] idpf: add padding to PTP virtchnl
> structures
> 
> Add padding to virtchnl2 PTP structures to match the Control Plane expected
> message sizes:
> * virtchnl2_ptp_get_dev_clk_time: 8 -> 16 bytes
> * virtchnl2_ptp_set_dev_clk_time: 8 -> 16 bytes
> * virtchnl2_ptp_get_cross_time: 16 -> 24 bytes
> 
> The FW expects the above sizes and PTP negotiation fails due to the mismatch.
> Previously neither the FW nor the driver checked message/reply sizes strictly,
> so the problem appeared only after recent validation improvements.
> 
> reproduction steps:
> ptp4l -i <pf> -m
> Observe: failed to open /dev/ptp0: Permission denied
> 
> Fixes: bf27283ba594 ("virtchnl: add PTP virtchnl definitions")
> Cc: [email protected]
> Reviewed-by: Aleksandr Loktionov <[email protected]>
> Reviewed-by: Alexander Lobakin <[email protected]>
> Signed-off-by: Przemyslaw Korba <[email protected]>
> ---
> 2.47.3

Reply via email to