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.

Problem with EDMA interrupt boot example.

Hello all,

Project "EDMA interrupt boot example" from
mcsdk_2_01_02_06\tools\boot_loader\examples\pcie\
after 1-st commands
"sudo insmod pciedemo.ko"
gives message to TeraTerm:
Debug: GEM-INTC Configuration...
Debug: GEM-INTC Configuration Completed
Debug: CPINTC-0 Configuration...
Debug: CPINTC-0 Configuration Completed
DSP receives interrupt from host.
DSP generates interrupt to host.
and
after that Linux hangs-up.

Please suggest me what necesary to do to avoid Linux's hangs.

I used:
Code Composer Studio 5.2.1.00018
mcsdk_2_01_02_06
MDSEVM6678L/MDXEVMPCI boards
OS - Debian7, Ubuntu10.04

Sourse codes of the example is in the attachment.

Best regards.

2742.pcie_EDMA.zip

  • Hi Viktor,

    Please enter the following command "sudo lspci -v" and share the log to me.

    I think Linux PC can't receive the interrupt generated by DSP. Take a look at below thread

    http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/p/291119/1015879.aspx#1015879

    Thanks,

  • Hi Ganapathi,

    Thank you for your quick answer.

    Please look lspci.log in the attachment.

    Best regards,

    Viktor.

    0250.lspci.log
    administrator@vict:~$ sudo lspci -v
    00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 10)
            Subsystem: Giga-byte Technology Device 5000
            Flags: bus master, fast devsel, latency 0
            Capabilities: [e0] Vendor Specific Information: Len=0b <?>
            Kernel driver in use: agpgart-intel
    
    00:01.0 PCI bridge: Intel Corporation 82G33/G31/P35/P31 Express PCI Express Root Port (rev 10) (prog-if 00 [Normal decode])
            Flags: bus master, fast devsel, latency 0
            Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
            Memory behind bridge: e3100000-e31fffff
            Prefetchable memory behind bridge: 00000000e0000000-00000000e1ffffff
            Capabilities: [88] Subsystem: Giga-byte Technology Device 5000
            Capabilities: [80] Power Management version 3
            Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
            Capabilities: [a0] Express Root Port (Slot+), MSI 00
            Capabilities: [100] Virtual Channel
            Capabilities: [140] Root Complex Link
            Kernel driver in use: pcieport
    
    00:02.0 VGA compatible controller: Intel Corporation 82G33/G31 Express Integrated Graphics Controller (rev 10) (prog-if 00 [VGA controller])
            Subsystem: Giga-byte Technology Device d000
            Flags: bus master, fast devsel, latency 0, IRQ 44
            Memory at e3300000 (32-bit, non-prefetchable) [size=512K]
            I/O ports at e000 [size=8]
            Memory at d0000000 (32-bit, prefetchable) [size=256M]
            Memory at e3000000 (32-bit, non-prefetchable) [size=1M]
            Expansion ROM at <unassigned> [disabled]
            Capabilities: [90] MSI: Enable+ Count=1/1 Maskable- 64bit-
            Capabilities: [d0] Power Management version 2
            Kernel driver in use: i915
    
    00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 01)
            Subsystem: Giga-byte Technology Device a002
            Flags: bus master, fast devsel, latency 0, IRQ 45
            Memory at e3380000 (64-bit, non-prefetchable) [size=16K]
            Capabilities: [50] Power Management version 2
            Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
            Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
            Capabilities: [100] Virtual Channel                                                                                            
            Capabilities: [130] Root Complex Link                                                                                          
            Kernel driver in use: snd_hda_intel                                                                                            
                                                                                                                                           
    00:1c.0 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 1 (rev 01) (prog-if 00 [Normal decode])                        
            Flags: bus master, fast devsel, latency 0                                                                                      
            Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
            I/O behind bridge: 0000b000-0000bfff
            Memory behind bridge: 7f600000-7f7fffff
            Prefetchable memory behind bridge: 000000007f800000-000000007f9fffff
            Capabilities: [40] Express Root Port (Slot+), MSI 00
            Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
            Capabilities: [90] Subsystem: Giga-byte Technology Device 5001
            Capabilities: [a0] Power Management version 2
            Capabilities: [100] Virtual Channel
            Capabilities: [180] Root Complex Link
            Kernel driver in use: pcieport
    
    00:1c.1 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 2 (rev 01) (prog-if 00 [Normal decode])
            Flags: bus master, fast devsel, latency 0
            Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
            I/O behind bridge: 0000d000-0000dfff
            Memory behind bridge: e2000000-e2ffffff
            Prefetchable memory behind bridge: 00000000e3200000-00000000e32fffff
            Capabilities: [40] Express Root Port (Slot+), MSI 00
            Capabilities: [80] MSI: Enable+ Count=1/1 Maskable- 64bit-
            Capabilities: [90] Subsystem: Giga-byte Technology Device 5001
            Capabilities: [a0] Power Management version 2
            Capabilities: [100] Virtual Channel
            Capabilities: [180] Root Complex Link
            Kernel driver in use: pcieport
    
    00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHC20140731 20:22:19 Hangup (0:00:00)
    20140801 18:14:51 Hangup (0:00:00)I Controller #1 (rev 01) (prog-if 00 [UHCI])
            Subsystem: Giga-byte Technology Device 5004
            Flags: bus master, medium devsel, latency 0, IRQ 23
            I/O ports at e100 [size=32]
            Kernel driver in use: uhci_hcd
    
    00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 01) (prog-if 00 [UHCI])
            Subsystem: Giga-byte Technology Device 5004
            Flags: bus master, medium devsel, latency 0, IRQ 19
            I/O ports at e200 [size=32]
            Kernel driver in use: uhci_hcd
    
    00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 01) (prog-if 00 [UHCI])
            Subsystem: Giga-byte Technology Device 5004
            Flags: bus master, medium devsel, latency 0, IRQ 18
            I/O ports at e300 [size=32]
            Kernel driver in use: uhci_hcd
    
    00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 01) (prog-if 00 [UHCI])
            Subsystem: Giga-byte Technology Device 5004
            Flags: bus master, medium devsel, latency 0, IRQ 16
            I/O ports at e400 [size=32]
            Kernel driver in use: uhci_hcd
    
    00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 01) (prog-if 20 [EHCI])
            Subsystem: Giga-byte Technology Device 5006
            Flags: bus master, medium devsel, latency 0, IRQ 23
            Memory at e3384000 (32-bit, non-prefetchable) [size=1K]20140731 20:22:19 Hangup (0:00:00)
    20140801 18:14:51 Hangup (0:00:00)
            Capabilities: [50] Power Management version 2
            Kernel driver in use: ehci_hcd
    
    00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1) (prog-if 01 [Subtractive decode])
            Flags: bus master, fast devsel, latency 0
            Bus: primary=00, secondary=04, subordinate=04, sec-latency=32
            I/O behind bridge: 0000c000-0000cfff
            Capabilities: [50] Subsystem: Giga-byte Technology GA-EP45-DS5 Motherboard
    
    00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
            Subsystem: Giga-byte Technology Device 5001
            Flags: bus master, medium devsel, latency 0
            Capabilities: [e0] Vendor Specific Information: Len=0c <?>
    
    00:1f.2 IDE interface: Intel Corporation NM10/ICH7 Family SATA Controller [IDE mode] (rev 01) (prog-if 8a [Master SecP PriP])
            Subsystem: Giga-byte Technology Device b002
            Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 19
            I/O ports at 01f0 [size=8]
            I/O ports at 03f4 [size=1]
            I/O ports at 0170 [size=8]
            I/O ports at 0374 [size=1]
            I/O ports at f000 [size=16]
            Capabilities: [70] Power Management version 2
            Kernel driver in use: ata_piix
    
    00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 01)
            Subsystem: Giga-byte Technology GA-8I945PG-RH Mainboard
            Flags: medium devsel, IRQ 19
            I/O ports at 0500 [size=32]
            Kernel driver in use: i801_smbus
    
    01:00.0 Multimedia controller: Texas Instruments Device b005 (rev 01)
            Flags: bus master, fast devsel, latency 0, IRQ 12
            Memory at e3100000 (32-bit, non-prefetchable) [size=1M]
            Memory at e1400000 (32-bit, prefetchable) [size=512K]
            Memory at e1000000 (32-bit, prefetchable) [size=4M]
            Memory at e0000000 (32-bit, prefetchable) [size=16M]
            Memory at e1490000 (32-bit, prefetchable) [size=4K]
            Memory at e1480000 (32-bit, prefetchable) [size=64K]
            Capabilities: [40] Power Management version 3
            Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
            Capabilities: [70] Express Endpoint, MSI 00
            Capabilities: [100] Advanced Error Reporting
    
    03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
            Subsystem: Giga-byte Technology Device e000
            Flags: bus master, fast devsel, latency 0, IRQ 43
            I/O ports at d000 [size=256]
            Memory at e3210000 (64-bit, prefetchable) [size=4K]
            Memory at e3200000 (64-bit, prefetchable) [size=64K]
            [virtual] Expansion ROM at e3220000 [disabled] [size=128K]
            Capabilities: [40] Power Management version 3
            Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
            Capabilities: [70] Express Endpoint, MSI 01
            Capabilities: [ac] MSI-X: Enable- Count=2 Masked-
            Capabilities: [cc] Vital Product Data
            Capabilities: [100] Advanced Error Reporting
            Capabilities: [140] Virtual Channel
            Capabilities: [160] Device Serial Number 04-00-00-00-ff-ff-00-00
            Kernel driver in use: r8169
    
    

  • Hi Viktor,

    Log file shows correct BAR configuration detail.

    Have you checked your host PC grup settings?

    Thanks,

  • Hi Ganapathi,

    Yes, I have changed

    GRUB_CMDLINE_LINUX_DEFAULT="quiet"

    to

    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash irqpoll"

    and have saved file "grub"

    1425.grub_.txt
    # If you change this file, run 'update-grub' afterwards to update
    # /boot/grub/grub.cfg.
    # For full documentation of the options in this file, see:
    #   info -f grub -n 'Simple configuration'
    
    GRUB_DEFAULT=0
    GRUB_TIMEOUT=5
    GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
    GRUB_CMDLINE_LINUX_DEFAULT="quiet splash irqpoll"
    GRUB_CMDLINE_LINUX=""
    
    # Uncomment to enable BadRAM filtering, modify to suit your needs
    # This works with Linux (no patch required) and with any kernel that obtains
    # the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
    #GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
    
    # Uncomment to disable graphical terminal (grub-pc only)
    #GRUB_TERMINAL=console
    
    # The resolution used on graphical terminal
    # note that you can use only modes which your graphic card supports via VBE
    # you can see them in real GRUB with the command `vbeinfo'
    #GRUB_GFXMODE=1280x720x32
    
    # Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
    #GRUB_DISABLE_LINUX_UUID=true
    
    # Uncomment to disable generation of recovery mode menu entries
    #GRUB_DISABLE_RECOVERY="true"
    
    # Uncomment to get a beep at grub start
    #GRUB_INIT_TUNE="480 440 1"
    
    .

    After rebooting of the OS and starting 

    "sudo insmod pciedemo.ko"

    Debian7  hungs-up.

    I'll try to do the same within Ubuntu.

    Copy of the file "grub" - in the attachment.

    Best regards,

    Viktor.

  • Hi Victor,

    Before inserting the .ko module, Please take a remote connection of your Host PC via SSH then clear the dmesg log. Once the remote SSH connection done successfully, you can insmod the .ko module via host pc terminal.

    If host PC hungs-up you take a dmesg in ssh conction and share to me.

    Thanks,

  • Hi Victor,

    Any update, Please help us to close this thread.

    Thanks,

  • Hi Ganapathi,

    Excuse me for the late reply.

    I have found the mistake.

    Thank you for your advice and patience.

    Best regards,

    Viktor.