On 02/01/2012 04:15 PM, Daniel Lezcano wrote:
Yes, but the problem is the same also. Did you try by removing atomic_inc and set nrunnings to nrkthread ?
Unfortunately it's still here:
Unable to handle kernel paging request at virtual address 7f0a411c pgd = 80004000 [7f0a411c] *pgd=bf163811, *pte=00000000, *ppte=00000000 Internal error: Oops: 80000007 [#1] PREEMPT SMP Modules linked in: [last unloaded: testmod] CPU: 0 Tainted: G O (3.3.0-rc2+ #2) PC is at 0x7f0a411c LR is at __schedule+0x684/0x6e4 pc : [<7f0a411c>] lr : [<802c0bdc>] psr: 600f0113 sp : bf3b5f78 ip : 00000000 fp : 00000000 r10: 00000000 r9 : 00000000 r8 : 7f0a4538 r7 : 00000002 r6 : 00000400 r5 : 0000003c r4 : 00000001 r3 : 00000000 r2 : bf3b5eb0 r1 : bf219580 r0 : 00000001 Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel Control: 10c5387d Table: bfbec04a DAC: 00000015 Process test/124 (pid: 6772, stack limit = 0xbf3b42f8) Stack: (0xbf3b5f78 to 0xbf3b6000) 5f60: 7b11940d 0000003c 5f80: 000f4240 00000000 00000001 000b07b6 bf8c9e44 00000000 7f0a4000 00000013 5fa0: 00000000 80049260 00000000 00000000 00000000 00000000 00000000 00000000 5fc0: dead4ead ffffffff ffffffff 8048b2b8 00000000 00000000 8036a4d9 bf3b5fdc 5fe0: bf3b5fdc 271aee1c bf8c9e44 800491d4 8000eabc 8000eabc bfefc811 bfefcc11 Code: bad PC value
If someone wants to look at it, I'm attaching everything. The patch is almost nothing beyond exporting irq_time_read() to modules.
Note it's quite rare - to reproduce it, I do
while true; do insmod testmod.ko usehrtime=1 && rmmod testmod.ko; sleep 1; done
and wait for a few minutes.
Dmitry