Re: Please help me.How could this happen?



Op Fri, 07 Mar 2008 11:24:58 +0100 schreef huxuelei630@xxxxxxxxx <huxuelei630@xxxxxxxxx>:
Hi,I have a PCI card with PLX9656 as a bridge which transfer data from
Local Bus to PCi Bus.The transferring happened in every 30ms and the
amount of data is 16KB.This is a very hard work for me.
My work is to read these datas and send them out by socket and write
them in the hard disk at the same time.Also there will be a GUI to
control where the data would be sent.
The most unbelievable thing happend at this time.When I load the PCI
card's driver, open the interrupt, the system will not work correct.I
lost many datas after I checked the file on the disk and received
through socket.
But I also test my OS with out the PCI card.It's work very well.
Can anyone help to analyze how could this happen?

If you are not buffering or using synchronous writes, then you could easily miss interrupts.

You have to make sure that you have finished processing the interrupt before the next one arrives.

Which OS are you using?



--
Gemaakt met Opera's revolutionaire e-mailprogramma: http://www.opera.com/mail/
.



Relevant Pages

  • Re: can someone explain...[ PCI interrupts]
    ... interrupts for PCI devices are roughly split up into two categories: INTx interrupt lines and MSI interrupts. ... Each processor contains a local APIC that can receive messages from other APICs and send messages to other local APICs. ... Basically, an IRQ value is a cookie useful for binding a device interrupt tuple or an ISA IRQ) to a x86 interrupt tuple. ...
    (freebsd-current)
  • 2.6.17-rc3 "Bus #03 (-#06) is hidden behind transparent bridge"
    ... PCI: PCI BIOS revision 2.10 entry at 0xf031f, ... ACPI: Interpreter enabled ... Using PIC for interrupt routing ... Using APIC driver default ...
    (Linux-Kernel)
  • Re: wont work: 2.6.0 && SiI 3112 SATA
    ... PCI: PCI BIOS revision 2.10 entry at 0xf0031, ... PCI: Found IRQ 10 for device 0000:00:1f.1 ... hde: lost interrupt ...
    (Linux-Kernel)
  • Re: Thinkpad X31 und CF-Card-Reader
    ... ACPI: bus type pci registered ... Embedded Controller interrupt mode. ... hde: ... ide: failed opcode was: unknown ...
    (de.comp.os.unix.linux.hardware)
  • Re: can someone explain...[ PCI interrupts]
    ... interrupts for PCI devices are roughly split up into two categories: INTx interrupt lines and MSI interrupts. ... Each processor contains a local APIC that can receive messages from other APICs and send messages to other local APICs. ... Basically, an IRQ value is a cookie useful for binding a device interrupt tuple or an ISA IRQ) to a x86 interrupt tuple. ...
    (freebsd-current)