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.

Desktop Linux SDK DSP reset functionality doesn't work

Hi,

DSP reset functionality doesn't work in latest Desktop Linux SDK 1.0.3.0 with DSPC-8681 card.

It doesn't work when I try to do it using scripts\dsp_utils and when I call dnldmgr_reset_dsp() directly from my code.

It times out when while getting out of reset call.

Can you please help?


P.S.

Similar reset functionality from Advantech Lightning drivers works fine.

Regards,

Andrey Lisnevich

  • Hi,

    DSP reset command is not properly working on old version C6678 EVM, the issue is fixed on latest EVM revisions. But i am not sure the same issue on DSPC-8681 EVM, Please provide the detail log message. All 4 DSP's are not responding the reset command or specific DSP is not responding?

    Have you tried the both commands "./dspallreset.sh" and "./dspreset.sh 4"?

    Thanks,
  • Yes I tried both scripts and commands with different number of DSPs to reset.

    Interesting thing is that DSP reset from Advantech Lightning driver works. And after I reset using it Desktop Linux SDK also starts to work:

    ~/build/desktop-linux-sdk_01_00_03_00/demos/scripts$ sudo ./dspreset.sh 1
    " ERROR: Reset code is not working : Timedout
    Dsp 0: DSP Reset Fail !

    ~/build/desktop-linux-sdk_01_00_03_00/demos/scripts$ sudo ./dspreset.sh 1
    " ERROR: Reset code is not working : Timedout
    Dsp 0: DSP Reset Fail !

    ~/build/Lightning_PCIE_0_8/examples/script/DSPC8681E$ sudo ./dspreset.sh 1

    Iterations waited for entry point to clear 1
    Dsp 0: DSP Reset success !

    ~/build/desktop-linux-sdk_01_00_03_00/demos/scripts$ sudo ./dspreset.sh 1

    Iterations waited for entry point to clear 1
    Dsp 0: DSP Reset success !

    ~/build/desktop-linux-sdk_01_00_03_00/demos/scripts$ sudo ./dspreset.sh 1

    Iterations waited for entry point to clear 1
    Dsp 0: DSP Reset success !

    ~/build/Lightning_PCIE_0_8/examples/script/DSPC8681E - directory with Lightning DSP reset.
    ~/build/desktop-linux-sdk_01_00_03_00/demos/scripts - directory with Desktop Linux SDK reset.

    After reboot Desktop Linux SDK reset again doesn't work. I have few DSPC cards on different servers - DSP reset fails on all the cards in the same way.

    Regards,
    Andrey Lisnevich
  • Thanks for your detailed log message. I will try to test the same on my DSPC-8681 card and get back to you.

    Please provide your test PC linux OS version and try the DSP reset for other DSP's(1-3), DSPC-8681 have four C6678 DSP's.

    Thanks,
  • I use Ubuntu 14.04 and 14.10.
    For other DSPs the logs are the same.
  • I don't have Ubuntu 14.04 and 14.10 test machine. I have tested the DSPC-8681 card reset command with Ubuntu 12.04, it is working fine. PFA

    dspc8681_reset.txt
    Linux@TestPC:~$ lspci
    00:00.0 Host bridge: Intel Corporation 82975X Memory Controller Hub
    00:01.0 PCI bridge: Intel Corporation 82975X PCI Express Root Port
    00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 01)
    00:1c.0 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 1 (rev 01)
    00:1c.4 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 5 (rev 01)
    00:1c.5 PCI bridge: Intel Corporation 82801GR/GH/GHM (ICH7 Family) PCI Express Port 6 (rev 01)
    00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 01)
    00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 01)
    00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 01)
    00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 01)
    00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 01)
    00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev e1)
    00:1f.0 ISA bridge: Intel Corporation 82801GB/GR (ICH7 Family) LPC Interface Bridge (rev 01)
    00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 01)
    00:1f.2 SATA controller: Intel Corporation NM10/ICH7 Family SATA Controller [AHCI mode] (rev 01)
    00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 01)
    01:00.0 VGA compatible controller: NVIDIA Corporation NV44 [Quadro NVS 285] (rev a1)
    02:00.0 PCI bridge: PLX Technology, Inc. PEX 8624 24-lane, 6-Port PCI Express Gen 2 (5.0 GT/s) Switch [ExpressLane] (rev bb)
    03:04.0 PCI bridge: PLX Technology, Inc. PEX 8624 24-lane, 6-Port PCI Express Gen 2 (5.0 GT/s) Switch [ExpressLane] (rev bb)
    03:05.0 PCI bridge: PLX Technology, Inc. PEX 8624 24-lane, 6-Port PCI Express Gen 2 (5.0 GT/s) Switch [ExpressLane] (rev bb)
    03:06.0 PCI bridge: PLX Technology, Inc. PEX 8624 24-lane, 6-Port PCI Express Gen 2 (5.0 GT/s) Switch [ExpressLane] (rev bb)
    03:08.0 PCI bridge: PLX Technology, Inc. PEX 8624 24-lane, 6-Port PCI Express Gen 2 (5.0 GT/s) Switch [ExpressLane] (rev bb)
    03:09.0 PCI bridge: PLX Technology, Inc. PEX 8624 24-lane, 6-Port PCI Express Gen 2 (5.0 GT/s) Switch [ExpressLane] (rev bb)
    05:00.0 Non-VGA unclassified device: Texas Instruments Device b005 (rev 01)
    06:00.0 Non-VGA unclassified device: Texas Instruments Device b005 (rev 01)
    07:00.0 Non-VGA unclassified device: Texas Instruments Device b005 (rev 01)
    08:00.0 Non-VGA unclassified device: Texas Instruments Device b005 (rev 01)
    0a:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5754 Gigabit Ethernet PCI Express (rev 02)
    Linux@TestPC:~$ cd ti/desktop-linux-sdk_01_00_03_00/demos/scripts/
    Linux@TestPC:~/ti/desktop-linux-sdk_01_00_03_00/demos/scripts$ ./dspreset.sh 1
    
     Iterations waited for entry point to clear 2
    Dsp 0:  DSP Reset success ! 
    Linux@TestPC:~/ti/desktop-linux-sdk_01_00_03_00/demos/scripts$ ./dspallreset.sh 
    Num of devices 4
    
     Iterations waited for entry point to clear 2
    Dsp 0:  DSP Reset success ! 
    
     Iterations waited for entry point to clear 2
    Dsp 1:  DSP Reset success ! 
    
     Iterations waited for entry point to clear 2
    Dsp 2:  DSP Reset success ! 
    
     Iterations waited for entry point to clear 2
    Dsp 3:  DSP Reset success ! 
    Linux@TestPC:~/ti/desktop-linux-sdk_01_00_03_00/demos/scripts$ ./dspreset.sh 1
    
     Iterations waited for entry point to clear 2
    Dsp 0:  DSP Reset success ! 
    Linux@TestPC:~/ti/desktop-linux-sdk_01_00_03_00/demos/scripts$ ./dspreset.sh 2
    
     Iterations waited for entry point to clear 2
    Dsp 0:  DSP Reset success ! 
    
     Iterations waited for entry point to clear 2
    Dsp 1:  DSP Reset success ! 
    Linux@TestPC:~/ti/desktop-linux-sdk_01_00_03_00/demos/scripts$ ./dspreset.sh 3
    
     Iterations waited for entry point to clear 2
    Dsp 0:  DSP Reset success ! 
    
     Iterations waited for entry point to clear 2
    Dsp 1:  DSP Reset success ! 
    
     Iterations waited for entry point to clear 2
    Dsp 2:  DSP Reset success ! 
    Linux@TestPC:~/ti/desktop-linux-sdk_01_00_03_00/demos/scripts$ ./dspreset.sh 4
    
     Iterations waited for entry point to clear 2
    Dsp 0:  DSP Reset success ! 
    
     Iterations waited for entry point to clear 2
    Dsp 1:  DSP Reset success ! 
    
     Iterations waited for entry point to clear 2
    Dsp 2:  DSP Reset success ! 
    
     Iterations waited for entry point to clear 2
    Dsp 3:  DSP Reset success ! 
    Linux@TestPC:~/ti/desktop-linux-sdk_01_00_03_00/demos/scripts$ 
    
    

    The desktop SDK package is meant to be used on a Linux desktop PC with Ubuntu 12.04 LTS, with a DSP card with PCIe interface installed.

    Thanks,

  • Hi,

    I did tests and can confirm that reset works with Ubuntu 12.04 and doesn't work with 14.10 and 14.04. All other functionality works fine with all Ubuntu versions.

    Also Advantech's Lightning driver reset works with all Ubuntu versions.

    Is it possible to fix reset for latest Ubuntu releases?

    Regards,
    Andrey Lisnevich
  • I have tested the reset command in Ubuntu 14.04. It is working fine.
  • Hi Ganapathi,

    I got different results. What I do:

    1) Install from scratch Ubuntu 12.04 or 14.04 on the same server
    2) Do 'apt-get update' and 'apt-get dist-upgrade' to install latest kernel for the Ubuntu version
    3) Reboot
    4) Do 'apt-get install build-essential libpciaccess-dev binutils-dev'
    5) Run make for Desktop Linux SDK
    6) Run reset script using 'sudo' (reset doesn't require cmem driver to be installed or udev configured when running from superuser)

    Results from 12.04:

    andrey@pub:~/build/desktop-linux-sdk_01_00_03_00/demos/scripts$ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 12.04.5 LTS
    Release: 12.04
    Codename: precise
    andrey@pub:~/build/desktop-linux-sdk_01_00_03_00/demos/scripts$ uname -a
    Linux pub 3.13.0-49-generic #81~precise1-Ubuntu SMP Wed Mar 25 16:32:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
    andrey@pub:~/build/desktop-linux-sdk_01_00_03_00/demos/scripts$ sudo ./get_devices_info.sh
    Number of TI PCI devices: 4
    dsp_id 0 Switch device: 8624
    dsp_id 1 Switch device: 8624
    dsp_id 2 Switch device: 8624
    dsp_id 3 Switch device: 8624
    0:path ../../../devices/pci0000:00/0000:00:06.0/0000:07:00.0/0000:08:05.0/0000:0a:00.0
    1:path ../../../devices/pci0000:00/0000:00:06.0/0000:07:00.0/0000:08:06.0/0000:0b:00.0
    2:path ../../../devices/pci0000:00/0000:00:06.0/0000:07:00.0/0000:08:08.0/0000:0c:00.0
    3:path ../../../devices/pci0000:00/0000:00:06.0/0000:07:00.0/0000:08:09.0/0000:0d:00.0
    andrey@pub:~/build/desktop-linux-sdk_01_00_03_00/demos/scripts$ sudo ./dspallreset.sh
    Num of devices 4

    Iterations waited for entry point to clear 1
    Dsp 0: DSP Reset success !

    Iterations waited for entry point to clear 1
    Dsp 1: DSP Reset success !

    Iterations waited for entry point to clear 1
    Dsp 2: DSP Reset success !

    Iterations waited for entry point to clear 1
    Dsp 3: DSP Reset success !

    Results from 14.04:

    andrey@pub:~/build/desktop-linux-sdk_01_00_03_00/demos/scripts$ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 14.04.2 LTS
    Release: 14.04
    Codename: trusty
    andrey@pub:~/build/desktop-linux-sdk_01_00_03_00/demos/scripts$ uname -a
    Linux pub 3.16.0-34-generic #47~14.04.1-Ubuntu SMP Fri Apr 10 17:49:16 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
    andrey@pub:~/build/desktop-linux-sdk_01_00_03_00/demos/scripts$ sudo ./get_devices_info.sh
    Number of TI PCI devices: 4
    dsp_id 0 Switch device: 8624
    dsp_id 1 Switch device: 8624
    dsp_id 2 Switch device: 8624
    dsp_id 3 Switch device: 8624
    0:path ../../../devices/pci0000:00/0000:00:06.0/0000:07:00.0/0000:08:05.0/0000:0a:00.0
    1:path ../../../devices/pci0000:00/0000:00:06.0/0000:07:00.0/0000:08:06.0/0000:0b:00.0
    2:path ../../../devices/pci0000:00/0000:00:06.0/0000:07:00.0/0000:08:08.0/0000:0c:00.0
    3:path ../../../devices/pci0000:00/0000:00:06.0/0000:07:00.0/0000:08:09.0/0000:0d:00.0
    andrey@pub:~/build/desktop-linux-sdk_01_00_03_00/demos/scripts$ sudo ./dspallreset.sh
    Num of devices 4
    " ERROR: Reset code is not working : Timedout
    Dsp 0: DSP Reset Fail !
    " ERROR: Reset code is not working : Timedout
    Dsp 1: DSP Reset Fail !
    " ERROR: Reset code is not working : Timedout
    Dsp 2: DSP Reset Fail !
    " ERROR: Reset code is not working : Timedout
    Dsp 3: DSP Reset Fail !

    So hardware and sources are the same. OS and kernel differ. Reset results are also different.

    Regards,
    Andrey Lisnevich

  • Hi,

    Is it going to be fixed?

    Regards,
    Andrey Lisnevich
  • Hi Andrey,

    I have tested the reset functionality for DSPC8681E board on Ubuntu linux 14.04 host machine.

  • Can you guys test on 64-bit Ubuntu 14.04 release?  Titus's Ubuntu 14.04 is the 32-bit version.


    I am seeing the same failures on my 64-bit Ubuntu 14.04:

    ~/desktop-linux-sdk_01_00_03_00/demos/scripts$ cat /etc/os-release
    NAME="Ubuntu"
    VERSION="14.04.2 LTS, Trusty Tahr"
    ID=ubuntu
    ID_LIKE=debian
    PRETTY_NAME="Ubuntu 14.04.2 LTS"
    VERSION_ID="14.04"
    HOME_URL="http://www.ubuntu.com/"
    SUPPORT_URL="http://help.ubuntu.com/"
    BUG_REPORT_URL="bugs.launchpad.net/ubuntu"


    ~/desktop-linux-sdk_01_00_03_00/demos/scripts$ uname -a
    Linux udb0321491 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

    ~/desktop-linux-sdk_01_00_03_00/demos/scripts$ sudo ./dspreset.sh 1
    " ERROR: Reset code is not working : Timedout
     Dsp 0:  DSP Reset Fail !

    ~/desktop-linux-sdk_01_00_03_00/demos/scripts$ sudo ./dspreset.sh 4
    " ERROR: Reset code is not working : Timedout
     Dsp 0:  DSP Reset Fail !
    " ERROR: Reset code is not working : Timedout
     Dsp 1:  DSP Reset Fail !
    " ERROR: Reset code is not working : Timedout
     Dsp 2:  DSP Reset Fail !
    " ERROR: Reset code is not working : Timedout
     Dsp 3:  DSP Reset Fail !

  • Hi,

    As you see I described steps to reproduce the issue from scratch. I use 64 bit Ubuntu. It is reproducible on Ubuntu 14.04 and later and doesn't reproduce on Ubuntu 12.04. Behavior is the same on different servers of different vendors.

    Assuming facts above it is less likely that I do something wrong and more likely that compatibility problem exists in driver.

    Regards,
    Andrey Lisnevich

  • Andrey-


    You can also get a demo version of DirectCore software to test and debug basic functions including reset, run, program download, network I/O init, etc with Advantech 32-core and 64-core c66x cards.  DirectCore uses its own drivers and libs and has been tested on various servers, Linux distros, and kernel versions.  It has some application demo programs also -- video streaming, OpenCV, transcoding -- but those are not needed to debug basic card/server/software compatibility issues.

    More info on DirectCore here.

    -Jeff
    Signalogic