[pso] Primul interrupt de read are bufferul gol

Dorin Barcan dbarcan at gmail.com
Tue Apr 15 22:10:24 EEST 2008


Salut,
  De cateva zile tot incerc sa dau de cap la o problema. La primul interrupt
de read din buffer se citeste 0 si astfel apare un decalaj intre bufferul
citit si cel scris. Cand primesc un interrupt verific si IIR(base + 2) si
LSR(base+5). A mai patit cineva chestia asta sau are idee de la ce poate fi?

mai jos este o bucata de syslog:

mesajele au formatul:  crt_interrupt IRQ num_irq RECEIVED IIR_register
LSR_register


Apr 12 13:07:13 blackwing kernel:
---------------------------------------------------------------------------------------------------------------------
Apr 12 13:07:13 blackwing kernel:
Apr 12 13:07:13 blackwing kernel: 1 IRQ 4 RECEIVED 193 96<6>
Apr 12 13:07:13 blackwing kernel: 2 IRQ 4 RECEIVED 194 96<6>
Apr 12 13:07:13 blackwing kernel: 3 IRQ 4 RECEIVED 194 96<6>
Apr 12 13:07:13 blackwing kernel: 1 IRQ 3 RECEIVED 193 96<6>
Apr 12 13:07:13 blackwing kernel: 2 IRQ 3 RECEIVED 194 96<6>
Apr 12 13:07:14 blackwing kernel: 3 IRQ 3 RECEIVED 194 96<6>
Apr 12 13:07:14 blackwing kernel: 4 IRQ 4 RECEIVED 194 96<6>
Apr 12 13:07:14 blackwing kernel: 5 IRQ 4 RECEIVED 204 97<6>
Apr 12 13:07:14 blackwing kernel: READ LOOPIIIIIING 204 97 4<6>  <-- IRQ 4
intru in read IIR = 1100 1100 (FIFO TIMEOUT RDAI) LSR=0110 0001 (... DATA
READY )
Apr 12 13:07:14 blackwing kernel:
-r-|30|<6>                                    <-- citesc 0!!!
Apr 12 13:07:14 blackwing kernel: LEFT READLOOP 193 96 4<6>    <-- ies din
read
Apr 12 13:07:14 blackwing kernel: 4 IRQ 3 RECEIVED 204 97<6>
Apr 12 13:07:14 blackwing kernel: READ LOOPIIIIIING 204 97 3<6>   <-- IRQ 3
intru in read cu acelasi IIR si LSR ca mai sus
Apr 12 13:07:14 blackwing kernel:
-r-|30|<6>                                     <-- citesc 0!!!
Apr 12 13:07:14 blackwing kernel: READ LOOPIIIIIING 204 97 3<6>   <--
acelasi IIR si LSR
Apr 12 13:07:14 blackwing kernel:
-r-|55|<6>                                     <-- citesc prima valoare
Apr 12 13:07:14 blackwing kernel: READ LOOPIIIIIING 196 97 3<6>
Apr 12 13:07:14 blackwing kernel: -r-|ffffffc0|<6>
......................................
......................................

Mentionez ca am incercat sa dau enable la interupturi in diferite combinatii
(IIR setat la 0x03, 0x07, 0xf) dar tot timpul citesc un 0 la inceput si
momentan sunt "clueless".

Barcan Dorin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20080415/1d7f7f1d/attachment.htm 


More information about the pso mailing list