This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5726: TI Errata i940 patch for 4.9 kernel doesn't work with AM5726 CPU

Part Number: AM5726

Hi, Sir/Madam

   I am desperately needing help to get a working patch of Errata i940, for our 4.9 kernel.

   I found this post AM5716: AM5716 COUNTER_REALTIME Overflow  from e2e forum, found and I downloaded the patch gpt_2D00_clksrc_2D00_4.9_2D00_v2.tar.gz . Unfortunately, the patch seems doesn't work with our AM5726 cpu, it hangs while loading kernel.

   Here are some info of our platform and things I had tried:

  1. We are using a customized board with AM5726 SoC, the product is quite stable. I can send more details about our board if you need it.
  2. We are using Linux kernel 4.9.272.
  3. After applying the patch, kernel compilation failed, until I add following line to file "debian/config/armhf/config.am5726", otherwise compiler complaints “unsolved omap3_gptimer_timer_init”.
      CONFIG_ARCH_OMAP3=y
  4. I also search through TI Linux 5.10 kernel git commits, found that there are 3 patches to address Errata i940 already:

            clocksource/drivers/timer-ti-dm: Prepare to handle dra7 timer wrap issue (commit: 3efe7a878a11c13b5297057bfc1e5639ce1241ce)
            clocksource/drivers/timer-ti-dm: Handle dra7 timer wrap errata i940 (commit: 25de4ce5ed02994aea8bc111d133308f6fd62566)
            clocksource/drivers/timer-ti-dm: Fix regression from errata i940 fix (commit: bceaae3bac0ce27c549bb050336d8d08abc2ee54)

            Unfortunately, after reading the code, above commits seems can't be backported to 4.9 kernel, not from my perspective as an TI product user.

   

 Can anyone help me out here? Either point a way to make existed 4.9 patch (gpt_2D00_clksrc_2D00_4.9_2D00_v2.tar.gz) working with AM5726, or provide a newer version of patch.

 Thanks in advance.

-Tao