• Michal Michalik's avatar
    ice: Fix PTP TX timestamp offset calculation · 71a579f0
    Michal Michalik authored
    The offset was being incorrectly calculated for E822 - that led to
    collisions in choosing TX timestamp register location when more than
    one port was trying to use timestamping mechanism.
    
    In E822 one quad is being logically split between ports, so quad 0 is
    having trackers for ports 0-3, quad 1 ports 4-7 etc. Each port should
    have separate memory location for tracking timestamps. Due to error for
    example ports 1 and 2 had been assigned to quad 0 with same offset (0),
    while port 1 should have offset 0 and 1 offset 16.
    
    Fix it by correctly calculating quad offset.
    
    Fixes: 3a749623 ("ice: implement basic E822 PTP support")
    Signed-off-by: default avatarMichal Michalik <michal.michalik@intel.com>
    Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel)
    Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
    71a579f0
ice_ptp.h 10.1 KB