← Back to team overview

kernel-packages team mailing list archive

[Bug 1552627] [NEW] mlx4_en didn't choose time-stamping shift value according to HW frequency

 

Public bug reported:

Hi,

    Previously, the shift value used for time-stamping was constant and didn't
    depend on the HW chip frequency. Change that to take the frequency into account
    and calculate the maximal value in cycles per wraparound of ten seconds. This
    time slot was chosen since it gives a good accuracy in time synchronization.

    Algorithm for shift value calculation:
     * Round up the maximal value in cycles to nearest power of two

     * Calculate maximal multiplier by division of all 64 bits set
       to above result

     * Then, invert the function clocksource_khz2mult() to get the shift from
       maximal mult value


below is the upstream commit that should fix the issue

commit 31c128b66e5b28f468076e4f3ca3025c35342041

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: trusty wily xenial

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1552627

Title:
  mlx4_en didn't choose time-stamping shift value according to HW
  frequency

Status in linux package in Ubuntu:
  New

Bug description:
  Hi,

      Previously, the shift value used for time-stamping was constant and didn't
      depend on the HW chip frequency. Change that to take the frequency into account
      and calculate the maximal value in cycles per wraparound of ten seconds. This
      time slot was chosen since it gives a good accuracy in time synchronization.

      Algorithm for shift value calculation:
       * Round up the maximal value in cycles to nearest power of two

       * Calculate maximal multiplier by division of all 64 bits set
         to above result

       * Then, invert the function clocksource_khz2mult() to get the shift from
         maximal mult value


  below is the upstream commit that should fix the issue

  commit 31c128b66e5b28f468076e4f3ca3025c35342041

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1552627/+subscriptions


Follow ups