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.

Patches to make cpu time measurement and oprofile work on linux-2.6.34-psp04.00.00.07

Hey Folks,

We have noticed that things like ps and top do not work correctly on the TI816x with linux-2.6.34-psp04.00.00.07. In addition oprofile does not work either (no samples are collected.

It turns out that these problems are due to kernel bugs.

The ps/top issue is due to an incorrect implementation of sched_clock() for the TI816x and the oprofile problem is due to the PMU interrupt not being specified for the TI816x.

Attached, find two patches for the kernel source that fix these two problems.

B.J.

patches.zip
  • B.J.

    Thanks for the patches.

    Yes, we have already identified those issues and the first one (top) was already fixed in subsequent release. The patch for the same is available here.

    Regarding the PMU interrupt hookup, we have a fix for this too and the corresponding patch will be pushed to ti81xx-master on Arago shortly.

    Thanks.

       Hemant

     

  • Hi Hermant,

    Thanks for the feedback.

    Related question. I have tried to use the 2.6.37 kernel from the PSP tree (that was the first thing I tried when I was trying to figure out why these tools were not working), but I have not gotten too far. While I know about the ttyO vs. ttyS issue, I am finding that if I build and use the 2.6.37 kernel, I cannot boot with an NFS root filesystem; right as I get to the point that the NFS filesystem is to be mounted the system kernel panics. I noticed that the MDIO bus # is different between 2.6.34 and 2.6.37.

    I would like to use 2.6.37 for a number of reasons; do you folks have any idea why it won't mount the NFS root, or what I can do to fix that?

    Best Regards,

    B.J.