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.

PCIe Issues (Silicon Image Sil3132 can't be detected) in DM8168

Other Parts Discussed in Thread: TMS320DM8168

Hi, all:

 I have problems in pcie interface that can't detect  PCIe to SATA device(Silicon Image Sil3132 ).

The bus width of PCIe device is x1.

My environment setting as follow: 

* HW: DM8168 EVM with DDR3 

* SW: rootfs is DM8168_DVRRDK_01.01.00.04 

         kernel is kerneel_40012 (Linux-2.6.37)

 

I have already reference the "DM816x C6A816x AM389x PCI Express Root Complex Driver User Guide" 

(http://processors.wiki.ti.com/index.php/DM816x_C6A816x_AM389x_PCI_Express_Root_Complex_Driver_User_Guide).

The following steps that i have done:

    1. set SW5 ---> PCIe RST = ON 

    2. Controlling PERSTn Using I2C Writes

    3. Kernel Config for PCIe support

        [*] PCI support

[*] Message Signaled Interrupts (MSI and MSI-X)

[*] PCI Debugging

    4. Kernel Config for PCIe to SATA device driver support.

--- Serial ATA and Parallel ATA drivers

[*] Silicon image 3124/3132 SATA support.

    5. Modify PCIe Endpoint in Sil3123 driver:

  from pcie_set_readrq(pdev, 4096) to pcie_set_readrq(pdev, 256)

    6. Replace resistor R218 to 0 ohm. 

 

BTW, in step 1, no matter what i set is On or Off in SW5, the device still can't be detected.

I have cheked  the reference clock is 100MHz and A11 pin of PCIe slot can be reset from low to hight and keep in hight after booting.

Any help will be appricated, Thanks.

 

Reference information:

----- using command to verify pci device -----

root@dvr:/opt/dvr_rdk/ti816x# cat /proc/bus/pci/devices   (result: can't get anything) 

root@dvr:/opt/dvr_rdk/ti816x# du /sys/bus/pci/

0       /sys/bus/pci/devices

0       /sys/bus/pci/drivers/pci-stub

0       /sys/bus/pci/drivers/serial

0       /sys/bus/pci/drivers/sata_sil24

0       /sys/bus/pci/drivers

0       /sys/bus/pci/slots

0       /sys/bus/pci

root@dvr:/opt/dvr_rdk/ti816x# ls /sys/bus/pci/devices/   (result :can't get anything) 

root@dvr:/opt/dvr_rdk/ti816x#

 

 

----- using command to check iomem -----

root@dvr:/opt/dvr_rdk/ti816x#  cat /proc/iomem

00000000-00000000 : omap2-nand.0

08000000-08000003 : omap2-nand

20000000-2fffffff : pcie-nonprefetch

47401000-474017ff : musb-hdrc.0

47401800-47401fff : musb-hdrc.1

48010000-480100ff : omap-iommu.1

 48010000-480100ff : omap-iommu.1

48020000-48021fff : omap_uart.0

 48020000-48021fff : omap_uart

48022000-48023fff : omap_uart.1

 48022000-48023fff : omap_uart

48024000-48025fff : omap_uart.2

 48024000-48025fff : omap_uart

48028000-48028fff : omap_i2c.1

 48028000-48028fff : omap_i2c

4802a000-4802afff : omap_i2c.2

 4802a000-4802afff : omap_i2c

48030100-480301ff : omap2_mcspi.1

 48030100-480301ff : omap2_mcspi.1

48032000-48032fff : omap_gpio.0

48038000-4803afff : mcasp0

 48038000-4803afff : davinci-mcasp

4804c000-4804cfff : omap_gpio.1

48050000-48052fff : mcasp

 48050000-48052fff : davinci-mcasp

48060100-480700ff : mmci-omap-hs.0

 48060100-480700ff : mmci-omap-hs

480c2000-480c2fff : omap_wdt

 480c2000-480c2fff : omap_wdt

480c8000-480c8143 : omap-mailbox

48188000-48188fff : sr_hvt

4818a000-4818afff : sr_svt

49000000-49007fff : edma_cc0

 49000000-49007fff : edma

49800000-498003ff : edma_tc0

49900000-499003ff : edma_tc1

49a00000-49a003ff : edma_tc2

49b00000-49b003ff : edma_tc3

4a100000-4a103fff : davinci_emac.0

 4a100800-4a1008ff : davinci_mdio.0

   4a100800-4a1008ff : davinci_mdio.0

4a120000-4a123fff : davinci_emac.1

4a140000-4a150fff : ahci.0

51000000-51003fff : pcie-regs

55082000-550820ff : omap-iommu.0

 55082000-550820ff : omap-iommu.0

80000000-ffffffff : pcie-inbound0

 80000000-87ffffff : System RAM

   80039000-80499fff : Kernel text

   8049a000-80516dbf : Kernel data

 

----- using command to ioports -----

root@dvr:/opt/dvr_rdk/ti816x# cat /proc/ioports

40000000-402fffff : PCI I/O

 40000000-402fffff : pcie-io

 

----- using command to dump register -----

root@dvr:/opt/dvr_rdk/ti816x# ./devmem2 0x51001728

/dev/mem opened.

Memory mapped at address 0x4030d000.

Value at address 0x51001728 (0x4030d728): 0xC00BC47

root@dvr:/opt/dvr_rdk/ti816x# ./devmem2 0x51001728

/dev/mem opened.

Memory mapped at address 0x402bd000.

Value at address 0x51001728 (0x402bd728): 0xC00BC47

root@dvr:/opt/dvr_rdk/ti816x# ./devmem2 0x51001728

/dev/mem opened.

Memory mapped at address 0x4025e000.

Value at address 0x51001728 (0x4025e728): 0xC000007

root@dvr:/opt/dvr_rdk/ti816x# ./devmem2 0x51001728

/dev/mem opened.

Memory mapped at address 0x40107000.

Value at address 0x51001728 (0x40107728): 0xC003906

root@dvr:/opt/dvr_rdk/ti816x# ./devmem2 0x51001728

/dev/mem opened.

Memory mapped at address 0x40308000.

Value at address 0x51001728 (0x40308728): 0xC009406

root@dvr:/opt/dvr_rdk/ti816x# ./devmem2 0x51001728

/dev/mem opened.

Memory mapped at address 0x40285000.

Value at address 0x51001728 (0x40285728): 0xC004A07

root@dvr:/opt/dvr_rdk/ti816x# ./devmem2 0x51001728

/dev/mem opened.

Memory mapped at address 0x4026f000.

Value at address 0x51001728 (0x4026f728): 0xC00A901

root@dvr:/opt/dvr_rdk/ti816x# ./devmem2 0x51001728

/dev/mem opened.

Memory mapped at address 0x40047000.

Value at address 0x51001728 (0x40047728): 0xC004A07

  • Hi,

    We are also facing same issue with our Highpoint technologies PCI Express II to SATA III Host Adapter card.

    After some debug using PCIE Analyzer we observed that DM8168 is hanging after some device enumeration.

    We saw that intially DM8168 detecting SATA controller and could able read the Config space and MM Space also, but after some time suddenly DM8168 is hanging and not sending any transactions on Link. As per PCI protocol link partner must recieve atleast one SKP order sets for every 128us and SATA board not recieved it and entered into Recovery state. But DM8168 is still maintaining in L0 only and maintaing Logical IDLE on lanes

    We are also waiting for suggetions/fix. If you found anything please share with us

     

     

    Thanks

    Valeswara Rao D

  • Jason,

    Just to confirm, the SATA card is PCIe GEN1, right?

    Can you please try with following register write sequence after kernel is booted and shell prompt available?

    (This sequence forces x1 GEN configuration and re-initiates link training):

    1) Disable Link

    devmem2 0x51001080 w 0x10110018


    2) At this point, LTSSM state will transition to DISABLED_IDLE (0x18)


    3) Set max width=x1 , GEN1 link capability

    devmem2 0x5100107c w 0x135411

    4) Optional - set port configuration for x1
    devmem2 0x51001710 w 0x00010120

    5) Enable Link

    devmem2 0x51001080 w 0x10110008

    6) Force link training (first clear link training enable etc bits)

    devmem2 0x51000004 w 0xa00

    devmem2 0x51000004 w 0xa07

    7) Now check LTSSM state by reading 0x51001728 if the LS 5 bits show L0 status (0x11)

     

       Hemant

  • Hi, Hemant

    Thanks for your quick reply.

     

    Yes, The Silicon Image Sil3132  should be PCIe GEN1. 

    ( But i searched the slicon website can't get  any information about PCIe generation, this information was got from another website:

       Brief description: * Item: PCI-E SATA Card * Controller Chip: SIL3132 * Compliant with PCI-Express Revision 1.0a * 1-Lane (x1) PCI-Express with transfer rate 2.5Gb/s full duplex channel )

     

    After follow the steps you gave:

    i face the problem in step 6, the messages as follow:

    --------

     

    root@dvr:~# devmem2 0x51001080 w 0x10110018

    /dev/mem opened.

    Memory mapped at address 0x4032d000.

    Read at address  0x51001080 (0x4032d080): 0x10110008

    Write at address 0x51001080 (0x4032d080): 0x10110018, readback 0x10110018

    root@dvr:~# devmem2 0x5100107c w 0x135411

    /dev/mem opened.

    Memory mapped at address 0x40381000.

    Read at address  0x5100107C (0x4038107c): 0x00135422

    Write at address 0x5100107C (0x4038107c): 0x00135411, readback 0x00135411

    root@dvr:~# devmem2 0x51001710 w 0x00010120

    /dev/mem opened.

    Memory mapped at address 0x4025a000.

    Read at address  0x51001710 (0x4025a710): 0x00030120

    Write at address 0x51001710 (0x4025a710): 0x00010120, readback 0x00010120

    root@dvr:~# devmem2 0x51001080 w 0x10110008

    /dev/mem opened.

    Memory mapped at address 0x40309000.

    Read at address  0x51001080 (0x40309080): 0x10110018

    Write at address 0x51001080 (0x40309080): 0x10110008, readback 0x10110008

    root@dvr:~# devmem2 0x51000004 w 0xa00

    /dev/mem opened.

    Memory mapped at address 0x4023a000.

    Read at address  0x51000004 (0x4023a004): 0x00000A07

    Write at address 0x51000004 (0x4023a004): 0x00000A00, readback 0x00000A00

    root@dvr:~# devmem2 0x51000004 w 0xa07

    /dev/mem opened.Unhandled fault: Precise External Abort on non-linefetch (0x1018) at 0x40331004

     

    Memory mapped at address 0x40331000.

    Bus error

    root@dvr:~# devmem2 0x51001728

    /dev/mem opened.Unhandled fault: Precise External Abort on non-linefetch (0x1018) at 0x400ee728

     

    Memory mapped at address 0x400ee000.

    Bus error

    root@dvr:~# devmem2 0x51001728

    /dev/mem opened.Unhandled fault: Precise External Abort on non-linefetch (0x1018) at 0x400cd728

     

    Memory mapped at address 0x400cd000.

    Bus error

    root@dvr:~# devmem2 0x51001728

    /dev/mem opened.Unhandled fault: Precise External Abort on non-linefetch (0x1018) at 0x40235728

     

    Memory mapped at address 0x40235000.

    Bus error

    root@dvr:~# devmem2 0x51001728

    /dev/mem opened.Unhandled fault: Precise External Abort on non-linefetch (0x1018) at 0x401e3728

     

    Memory mapped at address 0x401e3000.

    Bus error

    root@dvr:~# devmem2 0x51001728

    /dev/mem opened.Unhandled fault: Precise External Abort on non-linefetch (0x1018) at 0x40282728

     

    Memory mapped at address 0x40282000.

    Bus error

    root@dvr:~# devmem2 0x51001728

    /dev/mem opened.Unhandled fault: Precise External Abort on non-linefetch (0x1018) at 0x402b2728

     

    Memory mapped at address 0x402b2000.

    Bus error

     

    --------

    I think the problem should be the second time to set 0x51000004 , is the value  correct?

     

    Another thing is i can't find the detail registers of PCIE settings you gave.

    It seems not in "Technical Reference Manual (sprugx8.pdf)" and so does TMS320DM816x DaVinci Digital Media Processors (sprs614_101810.pdf) 

    could you please give me the link to download?

     

    Thanks your kindly help again.

     

     

     

  • Jason,

    Looks like some issue when  we re-trigger link training.

    To avoid this (and force x1, GEN1 at the beginning itself), can you please try with applying the patch I sent on http://e2e.ti.com/support/embedded/f/354/p/118939/432701.aspx#432701 (scroll to my post with comments "Looks like you are using x1").

    Please note that there may be conflicts in applying the patch.

    Let me know your observations after this patch - the only difference from the earlier sequence you tried is, not forcing link retrain.

       Hemant

     

     

  • Valeswara Rao D,

    Can you please create a new thread and copy this message there?

    Also, is it possible for you to attach the TLP/DLLP packet trace image captured from analyzer (preferably as many exchanges as possible before the DM8168 PCIe stops sending packets)?

       Hemant

  • Hi, Hemant:

    Thanks for your fast reply. 

     

    The patch you gave from http://e2e.ti.com/support/embedded/f/354/p/118939/432701.aspx#432701 is a little bit different with latest kernel (kerneel_40012)

    The codes in pcie-ti816x.c that i add as below:

    ---------------------------------------------------------------------------------------------------------

            if (clk_enable(pcie_ck)

                goto err_clken;

     

           >>>>> start to add patch  <<<<<<<<<<

          ...........

           >>>>> end of  adding patch  <<<<<<<<<<

            /*

             * TI81xx devices do not support h/w autonomous link up-training to GEN2

             * form GEN1 in either EP/RC modes. The software needs to initiate speed

             * change.

             */

            __raw_writel(DIR_SPD | __raw_readl(

                            reg_virt + SPACE0_LOCAL_CFG_OFFSET + PL_GEN2),

                            reg_virt + SPACE0_LOCAL_CFG_OFFSET + PL_GEN2);

    /*

             * Initiate Link Training. We will delay for L0 as specified by

    --------------------------------------------------------------------------------------------------------------

     

        Q1:  Should i need to disable these codes that new add in latest kernel as upon showing?

       

     

     After patching, Sli3132 device could be detected, as follow :

        -----------------------------PCI log of booting----------------------------------------------------------

    ti816x_pcie: Invoking PCI BIOS...

    ti816x_pcie: Setting up Host Controller...

    ti816x_pcie: Register base mapped @0xc8820000

    ti816x_pcie: MSI info not available, disabled

    ti816x_pcie: Starting PCI scan...

    PCI: bus0: Fast back to back transfers disabled

    PCI: bus1: Fast back to back transfers disabled

    pci 0000:00:00.0: BAR 8: assigned [mem 0x20000000-0x200fffff]

    pci 0000:00:00.0: BAR 9: assigned [mem 0x20100000-0x201fffff pref]

    pci 0000:00:00.0: BAR 7: can't assign io (size 0x1000)

    pci 0000:01:00.0: BAR 6: assigned [mem 0x20100000-0x2017ffff pref]

    pci 0000:01:00.0: BAR 2: assigned [mem 0x20000000-0x20003fff 64bit]

    pci 0000:01:00.0: BAR 2: set to [mem 0x20000000-0x20003fff 64bit] (PCI address [0x20000000-0x20003fff])

    pci 0000:01:00.0: BAR 0: assigned [mem 0x20004000-0x2000407f 64bit]

    pci 0000:01:00.0: BAR 0: set to [mem 0x20004000-0x2000407f 64bit] (PCI address [0x20004000-0x2000407f])

    pci 0000:01:00.0: BAR 4: can't assign io (size 0x80)

    pci 0000:00:00.0: PCI bridge to [bus 01-01]

    pci 0000:00:00.0:   bridge window [io  disabled]

    pci 0000:00:00.0:   bridge window [mem 0x20000000-0x200fffff]

    pci 0000:00:00.0:   bridge window [mem 0x20100000-0x201fffff pref]

    PCI: enabling device 0000:00:00.0 (0140 -> 0143)

     

       -------------------------------------------------------------------------------------------------------------

    root@dvr:~# lspci -xxxv

    00:00.0 Class 0604: Device 104c:8888 (rev 01)

            Flags: bus master, fast devsel, latency 0

            Memory at <ignored> (32-bit, non-prefetchable)

            Memory at <ignored> (32-bit, prefetchable)

            Bus: primary=00, secondary=01, subordinate=01, sec-latency=0

            Memory behind bridge: 20000000-200fffff

            Prefetchable memory behind bridge: 20100000-201fffff

            Capabilities: [40] Power Management version 3

            Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+

            Capabilities: [70] Express Root Port (Slot-), MSI 00

            Capabilities: [100] Advanced Error Reporting

    00: 4c 10 88 88 47 01 10 00 01 00 04 06 10 00 01 00

    10: 00 00 00 51 08 00 00 80 00 01 01 00 f0 00 00 00

    20: 00 20 00 20 10 20 10 20 00 00 00 00 00 00 00 00

    30: 00 00 00 00 40 00 00 00 00 00 00 00 30 01 01 00

    40: 01 50 03 00 00 00 00 00 00 00 00 00 00 00 00 00

    50: 05 70 80 00 00 00 00 00 00 00 00 00 00 00 00 00

    60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    70: 10 00 42 00 01 80 00 00 10 28 09 00 11 54 13 00

    80: 08 00 11 30 40 00 00 00 c0 03 40 00 00 00 00 00

    90: 00 00 00 00 1f 00 00 00 00 00 00 00 00 00 00 00

    a0: 02 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00

    b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    01:00.0 Class 0180: Device 1095:3132 (rev 01)

            Subsystem: Device 1095:3132

            Flags: bus master, fast devsel, latency 0, IRQ 48

            Memory at 20004000 (64-bit, non-prefetchable) [size=128]

            Memory at 20000000 (64-bit, non-prefetchable) [size=16K]

            I/O ports at <unassigned> [disabled]

            [virtual] Expansion ROM at 20100000 [disabled] [size=512K]

            Capabilities: [54] Power Management version 2

            Capabilities: [5c] MSI: Enable- Count=1/1 Maskable- 64bit+

            Capabilities: [70] Express Legacy Endpoint, MSI 00

            Capabilities: [100] Advanced Error Reporting

            Kernel driver in use: sata_sil24

    00: 95 10 32 31 46 01 10 20 01 00 80 01 10 00 00 00

    10: 04 40 00 20 00 00 00 00 04 00 00 20 00 00 00 00

    20: 01 00 00 00 00 00 00 00 00 00 00 00 95 10 32 31

    30: 00 00 00 00 54 00 00 00 00 00 00 00 30 01 00 00

    40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    50: 00 00 00 00 01 5c 22 06 00 20 00 0c 05 70 80 00

    60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    70: 10 00 11 00 03 00 00 00 00 50 00 00 11 f4 03 00

    80: 00 00 11 10 00 00 00 00 00 00 00 00 00 00 00 00

    90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    d0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

    -------------------------------------------------------------------------------------------------------------

           But when i access hard-disk on pcie bus , i got a lot of messages as follow:

            -------------- Error messages of access HD on pcie bus ------------------------------------------

    root@dvr:~time sh -c "dd if=/dev/zero of=/media/sda7/test_file bs=8k count=500000 && sync" ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen ata4.00: irq_stat 0x00020002, PCI master abort while transferring data ata4.00: failed command: WRITE DMA EXT ata4.00: cmd 35/00:60:8a:18:12/00:00:19:00:00/e0 tag 0 dma 49152 out res 6a/86:00:00:00:00/00:00:00:00:6a/00 Emask 0x22 (host bus error) ata4.00: status: { DRDY DF DRQ } ata4.00: error: { ICRC ABRT } ata4: hard resetting link ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 10) ata4.00: configured for UDMA/33 ata4: EH complete ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen ata4.00: irq_stat 0x00020002, PCI master abort while transferring data ata4.00: failed command: WRITE DMA EXT ata4.00: cmd 35/00:60:8a:18:12/00:00:19:00:00/e0 tag 0 dma 49152 out res 6a/86:00:00:00:00/00:00:00:00:6a/00 Emask 0x22 (host bus error) ata4.00: status: { DRDY DF DRQ } ata4.00: error: { ICRC ABRT } ata4: hard resetting link ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 10) ata4.00: configured for UDMA/33 ata4: EH complete ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen ata4.00: irq_stat 0x00020002, PCI master abort while transferring data ata4.00: failed command: WRITE DMA EXT ata4.00: cmd 35/00:60:8a:18:12/00:00:19:00:00/e0 tag 0 dma 49152 out res 6a/86:00:00:00:00/00:00:00:00:6a/00 Emask 0x22 (host bus error) ata4.00: status: { DRDY DF DRQ } ata4.00: error: { ICRC ABRT } ata4: hard resetting link ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 10) ata4.00: configured for UDMA/33 ata4: EH complete ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen ata4.00: irq_stat 0x00020002, PCI master abort while transferring data ata4.00: failed command: WRITE DMA EXT ata4.00: cmd 35/00:60:8a:18:12/00:00:19:00:00/e0 tag 0 dma 49152 out res 6a/86:00:00:00:00/00:00:00:00:6a/00 Emask 0x22 (host bus error) ata4.00: status: { DRDY DF DRQ } ata4.00: error: { ICRC ABRT } ata4: hard resetting link ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 10) ata4.00: configured for UDMA/33 ata4: EH complete ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen ata4.00: irq_stat 0x00020002, PCI master abort while transferring data ata4.00: failed command: WRITE DMA EXT ata4.00: cmd 35/00:60:8a:18:12/00:00:19:00:00/e0 tag 0 dma 49152 out res 6a/86:00:00:00:00/00:00:00:00:6a/00 Emask 0x22 (host bus error) ata4.00: status: { DRDY DF DRQ } ata4.00: error: { ICRC ABRT } ata4: hard resetting link ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 10) ata4.00: configured for UDMA/33 ata4: EH complete ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen ata4.00: irq_stat 0x00020002, PCI master abort while transferring data ata4.00: failed command: WRITE DMA EXT ata4.00: cmd 35/00:60:8a:18:12/00:00:19:00:00/e0 tag 0 dma 49152 out res 6a/86:00:00:00:00/00:00:00:00:6a/00 Emask 0x22 (host bus error) ata4.00: status: { DRDY DF DRQ } ata4.00: error: { ICRC ABRT } ata4: hard resetting link ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 10) ata4.00: configured for UDMA/33 sd 3:0:0:0: [sda] Result: hostbyte=0x00 driverbyte=0x08 sd 3:0:0:0: [sda] Sense Key : 0xb [current] [descriptor] Descriptor sense data with sense descriptors (in hex): 72 0b 47 00 00 00 00 0c 00 0a 80 00 00 00 6a 00 00 00 00 00 sd 3:0:0:0: [sda] ASC=0x47 ASCQ=0x0 sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 19 12 18 8a 00 00 60 00 end_request: I/O error, dev sda, sector 420616330 Buffer I/O error on device sda7, logical block 118784 lost page write due to I/O error on sda7 Buffer I/O error on device sda7, logical block 118785 lost page write due to I/O error on sda7 Buffer I/O error on device sda7, logical block 118786 lost page write due to I/O error on sda7 Buffer I/O error on device sda7, logical block 118787 lost page write due to I/O error on sda7 Buffer I/O error on device sda7, logical block 118788 lost page write due to I/O error on sda7 Buffer I/O error on device sda7, logical block 118789 lost page write due to I/O error on sda7 Buffer I/O error on device sda7, logical block 118790 lost page write due to I/O error on sda7 Buffer I/O error on device sda7, logical block 118791 lost page write due to I/O error on sda7 Buffer I/O error on device sda7, logical block 118792 lost page write due to I/O error on sda7 ata4: EH complete ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen ata4.00: irq_stat 0x00020002, PCI master abort while transferring data ata4.00: failed command: WRITE DMA EXT ata4.00: cmd 35/00:00:f2:18:12/00:04:19:00:00/e0 tag 0 dma 524288 out res 6a/86:00:00:00:00/00:00:00:00:6a/00 Emask 0x22 (host bus error) ata4.00: status: { DRDY DF DRQ } ata4.00: error: { ICRC ABRT } ata4: hard resetting link ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 10) ata4.00: configured for UDMA/33 ata4: EH complete ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen ata4.00: irq_stat 0x00020002, PCI master abort while transferring data ata4.00: failed command: WRITE DMA EXT ata4.00: cmd 35/00:00:f2:18:12/00:04:19:00:00/e0 tag 0 dma 524288 out res 6a/86:00:00:00:00/00:00:00:00:6a/00 Emask 0x22 (host bus error) ata4.00: status: { DRDY DF DRQ } ata4.00: error: { ICRC ABRT } ata4: hard resetting link

    ........

            ........

    -------------------------------------------------------------------------------------------------------------

    This Hard Disk  works correctly by  using  on board SATA .

            Any advice will be very appreciated.

           Thanks.

     

     

  • Jason,

    You have applied the patch correctly. Good to see that the device is detected now.

    Looking at lspci dump, it seems the read request setting change has not come to effect - I see that the SATA controller PCIe settings show 101b in read request setting - can you confirm this and fix it to use 256 bytes (0001b) max?

       Hemant

     

  • Hi, Hemant:

     

    Sorry for that  i use old codes that don't modify pcie_set_readrq() to 256 bytes.

    When i use new codes, it works perfectly, thanks very much.

     

    BTW, is there any document about PCIe detail registers (for example: 0x51001728) ??

     

  • Jason,

    The register data should be available in DM816x TRM.

    Particularly the version from http://www.ti.com/product/tms320dm8168 (sprugx8.pdf) has the 0x51001728 register in the section 17.4.12.10

    Let me know if you have any doubts.

       Hemant

     

  • Hi, Hemant,

    I have no problems in the register.

    The problem of mine is that use old sprugx8.pdf released at 01 Mar 2011 that can't find that register.

    I think i should  check out the new released documents periodically. 

    Thanks your assist again.

     

      Jason

  • Dear  Hemant:

       The PCIe issue occurs again in new kernel (psp-04.00.01.13) from latest RDK_01.09.00.16. 

       I am using TI-EVM board rev. F and PCIe to SATA (Silicon Image Sil3132 ), and follow 5 steps as above the i find some strange things that are:

     * The codes of force the link to x1 lane seem to be faulted  in pcie-ti81xx.c .

    The messages after plugging in sil3132 on evm board and mount hard disk on the sata port as follow:

    root@dvr:~# devmem2 0x51001728
    /dev/mem opened.Unhandled fault: external abort on non-linefetch (0x1018) at 0x40089728

    Memory mapped at address 0x40089000.
    Bus error
    root@dvr:~# devmem2 0x51001728
    /dev/mem opened.Unhandled fault: external abort on non-linefetch (0x1018) at 0x4030c728

    Memory mapped at address 0x4030c000.
    Bus error
    root@dvr:~# devmem2 0x51001728
    /dev/mem opened.Unhandled fault: external abort on non-linefetch (0x1018) at 0x402b8728

    Memory mapped at address 0x402b8000.
    Bus error
    root@dvr:~# devmem2 0x51001728
    /dev/mem opened.Unhandled fault: external abort on non-linefetch (0x1018) at 0x402cd728

    Memory mapped at address 0x402cd000.
    Bus error
    root@dvr:~# devmem2 0x51001728
    /dev/mem opened.Unhandled fault: external abort on non-linefetch (0x1018) at 0x40236728

    Memory mapped at address 0x40236000.
    Bus error
    root@dvr:~# devmem2 0x51001728
    /dev/mem opened.Unhandled fault: external abort on non-linefetch (0x1018) at 0x403bb728

    Memory mapped at address 0x403bb000.
    Bus error
    root@dvr:~# devmem2 0x51001728
    /dev/mem opened.Unhandled fault: external abort on non-linefetch (0x1018) at 0x401f5728

    Memory mapped at address 0x401f5000.

    Any help will be appricated, Thanks.

    --------------- > Reference information:
    ----- using command to verify pci device -----
    root@dvr:~#  cat /proc/bus/pci/devices   (result: can't get anything) 

    root@dvr:~# du /sys/bus/pci/
    0 /sys/bus/pci/devices
    0 /sys/bus/pci/drivers/serial
    0 /sys/bus/pci/drivers/sata_sil24
    0 /sys/bus/pci/drivers
    0 /sys/bus/pci/slots
    0 /sys/bus/pci
    root@dvr:~#
    
    
    ----- using command to check iomem -----
    root@dvr:~#  cat /proc/iomem
    00000000-00000000 : omap2-nand.0
    08000000-08000003 : omap2-nand
    47400000-47400fff : usbss
    47401000-474017ff : musb0
    47401000-474017ff : musb0
    47401800-47401fff : musb1
    47401800-47401fff : musb1
    48010000-480100ff : omap-iommu.1
    48010000-480100ff : omap-iommu.1
    48020000-48021fff : omap_uart.0
    48020000-48021fff : omap_uart
    48022000-48023fff : omap_uart.1
    48022000-48023fff : omap_uart
    48024000-48025fff : omap_uart.2
    48024000-48025fff : omap_uart
    48028000-48028fff : omap_i2c.1
    48028000-48028fff : omap_i2c
    4802a000-4802afff : omap_i2c.2
    4802a000-4802afff : omap_i2c
    48030100-480301ff : omap2_mcspi.1
    48030100-480301ff : omap2_mcspi.1
    48032000-48032fff : omap_gpio.0
    48038000-4803afff : mcasp0
    48038000-4803afff : davinci-mcasp
    4804c000-4804cfff : omap_gpio.1
    48050000-48052fff : mcasp
    48050000-48052fff : davinci-mcasp
    48060100-480700ff : mmci-omap-hs.0
    48060100-480700ff : mmci-omap-hs
    480c0000-480c0fff : omap_rtc
    480c0000-480c0fff : omap_rtc
    480c2000-480c2fff : omap_wdt
    480c2000-480c2fff : omap_wdt
    480c8000-480c8143 : omap-mailbox
    48105500-481058ff : ti81xxvin
    48105a00-48105dff : ti81xxvin
    49000000-49007fff : edma_cc0
    49000000-49007fff : edma
    49800000-498003ff : edma_tc0
    49900000-499003ff : edma_tc1
    49a00000-49a003ff : edma_tc2
    49b00000-49b003ff : edma_tc3
    4a100000-4a103fff : davinci_emac.0
    4a100800-4a1008ff : davinci_mdio.0
    4a100800-4a1008ff : davinci_mdio.0
    4a120000-4a123fff : davinci_emac.1
    4a140000-4a150fff : ahci.0
    55082000-550820ff : omap-iommu.0
    55082000-550820ff : omap-iommu.0
    80000000-8fdfffff : System RAM
    80039000-8049efff : Kernel text
    804a0000-80526047 : Kernel data
    
    

    ----- using command to ioports -----

    root@dvr:/opt/dvr_rdk/ti816x# cat /proc/ioports

    (Nothing!!!!)

    
    

  • Jason,

    That is strange because there is not much change in PCIe code between those releases which would impact DM8168.

    Can you please confirm the following:

    1) The patch needs to be manually merged as there is is some addition to force x1 on 814x platforms. Of course, the code should still go after clock enable.

    2) Please also check if getting rid of speed change helps

    3) Ensure that force_x1 is 0 for your setup

      Hemant

  • Hemant,

        I find the problem is that RDK-01.09.00.16 has definition ( CONFIG_MACH_TI8168_DVR ) to  disable pice initial function that is different in old RDK when using dvr_config to build kernel image.

        After codes modified , pcie to sata card can be detected correctly.

        Thanks for  your kindly assistance.

         

  • Dear Hemant,

    I had modified pcie_set_readrq(pdev, 256), but still encountered the below error when I R/W the hard disk. Can you give me some hints about this portion? Thanks in advance.

    ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    root@dvr:/mnt/disk# cp test_file_3 test_file_1
    ata4: failed to read log page 10h (errno=-5)
    ata4.00: exception Emask 0x1 SAct 0x1 SErr 0x0 action 0x6
    ata4.00: irq_stat 0x00020002, device error via SDB FIS
    ata4.00: failed command: READ FPDMA QUEUED
    ata4.00: cmd 60/00:00:38:c9:b3/02:00:00:00:00/40 tag 0 ncq 262144 in
             res ac/9b:00:00:00:00/00:00:00:00:ac/00 Emask 0x3 (HSM violation)
    ata4.00: status: { Busy }
    ata4.00: error: { ICRC IDNF }
    ata4: hard resetting link
    ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
    ata4.00: failed to read native max address (err_mask=0x1)
    ata4.00: HPA support seems broken, skipping HPA handling
    ata4.00: failed to set xfermode (err_mask=0x1)
    ata4: hard resetting link
    ata4: SATA link up 3.0 Gbps (SStatus 123 SControl 0)
    ata4.00: failed to set xfermode (err_mask=0x1)
    ata4: limiting SATA link speed to 1.5 Gbps
    ata4.00: limiting speed to UDMA/100:PIO3
    ata4: hard resetting link
    ata4: SATA link up 1.5 Gbps (SStatus 113 SControl 10)
    ata4.00: failed to set xfermode (err_mask=0x1)
    ata4.00: disabled
    ata4: EH complete
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x28: 28 00 00 b3 c9 38 00 02 00 00
    end_request: I/O error, dev sda, sector 11782456
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x28: 28 00 00 b3 c9 38 00 00 08 00
    end_request: I/O error, dev sda, sector 11782456
    cp: read error: sd 3:0:0:0: [sda] Unhandled error code
    Input/output errsd 3:0:0:0: [sda]  or
    Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 3c a0 00 04 00 00
    end_request: I/O error, dev sda, sector 20004000
    Buffer I/O error on device sda2, logical block 2436240
    lost page write due to I/O error on sda2
    Buffer I/O error on device sda2, logical block 2436241
    lost page write due to I/O error on sda2
    Buffer I/O error on device sda2, logical block 2436242
    lost page write due to I/O error on sda2
    Buffer I/O error on device sda2, logical block 2436243
    lost page write due to I/O error on sda2
    Buffer I/O error on device sda2, logical block 2436244
    lost page write due to I/O error on sda2
    Buffer I/O error on device sda2, logical block 2436245
    lost page write due to I/O error on sda2
    Buffer I/O error on device sda2, logical block 2436246
    lost page write due to I/O error on sda2
    Buffer I/O error on device sda2, logical block 2436247
    lost page write due to I/O error on sda2
    Buffer I/O error on device sda2, logical block 2436248
    lost page write due to I/O error on sda2
    Buffer I/O error on device sda2, logical block 2436249
    lost page write due to I/O error on sda2
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 40 a0 00 04 00 00
    end_request: I/O error, dev sda, sector 20005024
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 44 a0 00 04 00 00
    end_request: I/O error, dev sda, sector 20006048
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 07 ea 38 00 00 08 00
    end_request: I/O error, dev sda, sector 518712
    JBD: I/O error detected when updating journal superblock for sda2.
    sd 3:0:0:0: [sda] READ CAPACITY(16) failed
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] Sense not available.
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 48 a0 00 04 00 00
    end_request: I/O error, dev sda, sector 20007072
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 4c a8 00 04 00 00
    end_request: I/O error, dev sda, sector 20008104
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 50 a8 00 04 00 00
    end_request: I/O error, dev sda, sector 20009128
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 54 a8 00 04 00 00
    end_request: I/O error, dev sda, sector 20010152
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 58 a8 00 04 00 00
    end_request: I/O error, dev sda, sector 20011176
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 5c a8 00 04 00 00
    end_request: I/O error, dev sda, sector 20012200
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 60 a8 00 04 00 00
    end_request: I/O error, dev sda, sector 20013224
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 64 a8 00 04 00 00
    end_request: I/O error, dev sda, sector 20014248
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 68 a8 00 04 00 00
    end_request: I/O error, dev sda, sector 20015272
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 6c b0 00 04 00 00
    end_request: I/O error, dev sda, sector 20016304
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 70 b0 00 04 00 00
    end_request: I/O error, dev sda, sector 20017328
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 74 b0 00 04 00 00
    end_request: I/O error, dev sda, sector 20018352
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 78 b0 00 04 00 00
    end_request: I/O error, dev sda, sector 20019376
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 7c b0 00 04 00 00
    end_request: I/O error, dev sda, sector 20020400
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 80 b0 00 04 00 00
    end_request: I/O error, dev sda, sector 20021424
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 84 b0 00 04 00 00
    end_request: I/O error, dev sda, sector 20022448
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 88 b0 00 04 00 00
    end_request: I/O error, dev sda, sector 20023472
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 8c b8 00 04 00 00
    end_request: I/O error, dev sda, sector 20024504
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 90 b8 00 04 00 00
    end_request: I/O error, dev sda, sector 20025528
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 94 b8 00 04 00 00
    end_request: I/O error, dev sda, sector 20026552
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 98 b8 00 04 00 00
    end_request: I/O error, dev sda, sector 20027576
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 9c b8 00 04 00 00
    end_request: I/O error, dev sda, sector 20028600
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 a0 b8 00 04 00 00
    end_request: I/O error, dev sda, sector 20029624
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 a4 b8 00 04 00 00
    end_request: I/O error, dev sda, sector 20030648
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 a8 b8 00 04 00 00
    end_request: I/O error, dev sda, sector 20031672
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 ac c0 00 04 00 00
    end_request: I/O error, dev sda, sector 20032704
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 b0 c0 00 04 00 00
    end_request: I/O error, dev sda, sector 20033728
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 b4 c0 00 04 00 00
    end_request: I/O error, dev sda, sector 20034752
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 b8 c0 00 04 00 00
    end_request: I/O error, dev sda, sector 20035776
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 bc c0 00 04 00 00
    end_request: I/O error, dev sda, sector 20036800
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 c0 c0 00 04 00 00
    end_request: I/O error, dev sda, sector 20037824
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 c4 c0 00 04 00 00
    end_request: I/O error, dev sda, sector 20038848
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 c8 c0 00 04 00 00
    end_request: I/O error, dev sda, sector 20039872
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 cc c8 00 04 00 00
    end_request: I/O error, dev sda, sector 20040904
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 d0 c8 00 04 00 00
    end_request: I/O error, dev sda, sector 20041928
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 d4 c8 00 04 00 00
    end_request: I/O error, dev sda, sector 20042952
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 d8 c8 00 04 00 00
    end_request: I/O error, dev sda, sector 20043976
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 dc c8 00 04 00 00
    end_request: I/O error, dev sda, sector 20045000
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 e0 c8 00 04 00 00
    end_request: I/O error, dev sda, sector 20046024
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 e4 c8 00 04 00 00
    end_request: I/O error, dev sda, sector 20047048
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 e8 c8 00 04 00 00
    end_request: I/O error, dev sda, sector 20048072
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 ec d0 00 04 00 00
    end_request: I/O error, dev sda, sector 20049104
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 f0 d0 00 04 00 00
    end_request: I/O error, dev sda, sector 20050128
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 f4 d0 00 04 00 00
    end_request: I/O error, dev sda, sector 20051152
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 f8 d0 00 04 00 00
    end_request: I/O error, dev sda, sector 20052176
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 31 fc d0 00 04 00 00
    end_request: I/O error, dev sda, sector 20053200
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 00 d0 00 04 00 00
    end_request: I/O error, dev sda, sector 20054224
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 04 d0 00 04 00 00
    end_request: I/O error, dev sda, sector 20055248
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 08 d0 00 04 00 00
    end_request: I/O error, dev sda, sector 20056272
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 0c d8 00 04 00 00
    end_request: I/O error, dev sda, sector 20057304
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 10 d8 00 04 00 00
    end_request: I/O error, dev sda, sector 20058328
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 14 d8 00 04 00 00
    end_request: I/O error, dev sda, sector 20059352
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 18 d8 00 04 00 00
    end_request: I/O error, dev sda, sector 20060376
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 1c d8 00 04 00 00
    end_request: I/O error, dev sda, sector 20061400
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 20 d8 00 04 00 00
    end_request: I/O error, dev sda, sector 20062424
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 24 d8 00 04 00 00
    end_request: I/O error, dev sda, sector 20063448
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 28 d8 00 04 00 00
    end_request: I/O error, dev sda, sector 20064472
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 2c e0 00 04 00 00
    end_request: I/O error, dev sda, sector 20065504
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 30 e0 00 04 00 00
    end_request: I/O error, dev sda, sector 20066528
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 34 e0 00 04 00 00
    end_request: I/O error, dev sda, sector 20067552
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 38 e0 00 04 00 00
    end_request: I/O error, dev sda, sector 20068576
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 3c e0 00 04 00 00
    end_request: I/O error, dev sda, sector 20069600
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 40 e0 00 04 00 00
    end_request: I/O error, dev sda, sector 20070624
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 44 e0 00 04 00 00
    end_request: I/O error, dev sda, sector 20071648
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 48 e0 00 04 00 00
    end_request: I/O error, dev sda, sector 20072672
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 4c e8 00 04 00 00
    end_request: I/O error, dev sda, sector 20073704
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 50 e8 00 04 00 00
    end_request: I/O error, dev sda, sector 20074728
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 54 e8 00 04 00 00
    end_request: I/O error, dev sda, sector 20075752
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 58 e8 00 04 00 00
    end_request: I/O error, dev sda, sector 20076776
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 5c e8 00 04 00 00
    end_request: I/O error, dev sda, sector 20077800
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 60 e8 00 04 00 00
    end_request: I/O error, dev sda, sector 20078824
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 64 e8 00 04 00 00
    end_request: I/O error, dev sda, sector 20079848
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 68 e8 00 04 00 00
    end_request: I/O error, dev sda, sector 20080872
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 6c f0 00 04 00 00
    end_request: I/O error, dev sda, sector 20081904
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 70 f0 00 04 00 00
    end_request: I/O error, dev sda, sector 20082928
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 74 f0 00 04 00 00
    end_request: I/O error, dev sda, sector 20083952
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 78 f0 00 04 00 00
    end_request: I/O error, dev sda, sector 20084976
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 7c f0 00 04 00 00
    end_request: I/O error, dev sda, sector 20086000
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 80 f0 00 04 00 00
    end_request: I/O error, dev sda, sector 20087024
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 84 f0 00 04 00 00
    end_request: I/O error, dev sda, sector 20088048
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 88 f0 00 04 00 00
    end_request: I/O error, dev sda, sector 20089072
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 8c f8 00 04 00 00
    end_request: I/O error, dev sda, sector 20090104
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 90 f8 00 04 00 00
    end_request: I/O error, dev sda, sector 20091128
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 94 f8 00 04 00 00
    end_request: I/O error, dev sda, sector 20092152
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 98 f8 00 04 00 00
    end_request: I/O error, dev sda, sector 20093176
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 01 32 9c f8 00 00 80 00
    end_request: I/O error, dev sda, sector 20094200
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x28: 28 00 00 07 ea 98 00 00 08 00
    end_request: I/O error, dev sda, sector 518808
    journal_bmap: journal block not found at offset 12 on sda2
    Aborting journal on device sda2.
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 07 ea 38 00 00 08 00
    end_request: I/O error, dev sda, sector 518712
    JBD: I/O error detected when updating journal superblock for sda2.
    __journal_remove_journal_head: freeing b_committed_data
    sd 3:0:0:0: [sda] READ CAPACITY failed
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 07 ea 40 00 00 08 00
    end_request: I/O error, dev sda, sector 518720
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 07 ea 48 00 00 08 00
    end_request: I/O error, dev sda, sector 518728
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 07 ea 50 00 00 08 00
    end_request: I/O error, dev sda, sector 518736
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 07 ea 58 00 00 08 00
    end_request: I/O error, dev sda, sector 518744
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 07 ea 60 00 00 08 00
    end_request: I/O error, dev sda, sector 518752
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 07 ea 68 00 00 08 00
    end_request: I/O error, dev sda, sector 518760
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 07 ea 70 00 00 08 00
    end_request: I/O error, dev sda, sector 518768
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 07 ea 78 00 00 08 00
    end_request: I/O error, dev sda, sector 518776
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 07 ea 80 00 00 08 00
    end_request: I/O error, dev sda, sector 518784
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 07 ea 88 00 00 08 00
    end_request: I/O error, dev sda, sector 518792
    sd 3:0:0:0: [sda] Unhandled error code
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] CDB: cdb[0]=0x2a: 2a 00 00 07 ea 90 00 00 08 00
    end_request: I/O error, dev sda, sector 518800
    sd 3:0:0:0: [sda]  Result: hostbyte=0x04 driverbyte=0x00
    sd 3:0:0:0: [sda] Sense not available.
    sd 3:0:0:0: [sda] Write Protect is on
    sd 3:0:0:0: [sda] Asking for cache data failed
    sd 3:0:0:0: [sda] Assuming drive cache: write through
    sda: detected capacity change from 1000204886016 to 0
    root@dvr:/mnt/disk# ls -lh
    drwx------    2 root     root        16.0K Mar 12  2012 lost+found
    -rw-r--r--    1 root     root       142.1M Apr 11 10:17 test_file_1
    -rw-r--r--    1 root     root         4.8G Apr 11 10:20 test_file_2
    -rw-r--r--    1 root     root         3.9G Apr 11 10:21 test_file_3
    root@dvr:/mnt/disk# rm -f test_file_1
    EXT3-fs (sda2): error: ext3_journal_start_sb: Detected aborted journal
    EXT3-fs (sda2): error: remounting filesystem read-only
    rm: cannot remove 'test_file_1': Read-only file system
    root@dvr:/mnt/disk#

    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

    B.R.

    OC

  • Hello,

    I had similar problem with ASMedia 1061 SATA controller on PCI Express card, but solved it using instructions to limit the link to x1 gen1. It's now working OK on the EVM.

    However I have problem on our own DM8168-based board. The main difference is that we have a Pericom PCIe2USB "swidge" (three-port switch with an integrated USB 2.0 controller on one of the ports). One of two remaining ports is disabled, and one is connected to PCI Express slot.

    USBs on that "swidge" are working fine, but there is a problem with cards inserted into a slot. Sooner or later (mostly sooner) the driver crashes so I can't get the system running stable. We also tried Intel gigabit ethernet PCIe card (using e1000e driver) and it behaves similarly.

    Does anyone have experience with Pericom PCIe switches on DM8168 and compatible chips?

    Thanks!