cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
447 Views
Registered: ‎05-04-2014

ZCU104 sata failed during boot

Hi,

I referred to AR# 71584 and created the project at zcu104. However, there were ata errors during bootup as below screenshot.sata filed  dme coherence.PNG

To avoid these errors, I need to remove "dma-coherent" from device tree.

&sata {
   dma-coherent;
};

How to solve it?

 

Thanks

Sitting

0 Kudos
5 Replies
Highlighted
Explorer
Explorer
286 Views
Registered: ‎09-26-2014

Hello.

I have same problem. You find solution?

0 Kudos
Highlighted
Explorer
Explorer
223 Views
Registered: ‎09-26-2014

Somebody answer this question
I returned a lot of questions on this forum, and not a single answer.
Why is it needed then

0 Kudos
Highlighted
Explorer
Explorer
199 Views
Registered: ‎05-04-2014

Hi,

I checked all the steps of AR# 71584 and rebuilt again. It worked well.

 

 

Thanks

Sitting

0 Kudos
Highlighted
Moderator
Moderator
192 Views
Registered: ‎04-24-2017

Hi @sitting , @jack1977 ,

Before creating the AR steps has been validated several time and same is shared with few customer as well.

Can you point what is not working and which steps are broken so that I can investigate on this one.

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Highlighted
Explorer
Explorer
163 Views
Registered: ‎09-26-2014

Hello.

I followed the instructions AR# 71584

Enable CCI (Coherency) for the SATA controller in the Vivado design and generate the HDF as shown below.

2 I creat project and export HDF use   petalinux-config --get-hw-description=/home/user/petalinux/2019.2

3 I add in system-user.dtsi 

&sata {
ceva,p0-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
ceva,p0-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
ceva,p0-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
ceva,p0-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
ceva,p1-burst-params = /bits/ 8 <0x13 0x08 0x4A 0x06>;
ceva,p1-cominit-params = /bits/ 8 <0x18 0x40 0x18 0x28>;
ceva,p1-comwake-params = /bits/ 8 <0x06 0x14 0x08 0x0E>;
ceva,p1-retry-params = /bits/ 16 <0x96A4 0x3FFC>;
status = "okay";
xlnx,tz-nonsecure-sata0 = <0x0>;
xlnx,tz-nonsecure-sata1 = <0x0>;
phy-names = "sata-phy";
phys = <&lane0 1 0 3 150000000>;
};

&sata {
   dma-coherent;
};
 
 4 in <plnx-proj-root>/porject-spec/hw-description/psu_init.c:
 

/*
* SATA TZ
*/

PSU_Mask_Write(0xFD690020, 0x0000000FU, 0x0000000FU);
/*
* PCIE TZ
*/
/*
* Register : slcr_pcie @ 0XFD690030

In  /project-spec/meta-user/recipes-bsp/fsbl/fsbl_%.bbappend
 i add 
 
do_compile_prepend(){
install -m 0644 ${TOPDIR}/../project-spec/hw-description/psu_init.c ${B}/fsbl/psu_init.c
}
 
6 In /project-spec/meta-user/recipes-apps and enable this package in <plnx-proj-root>/project-spec/meta-user/conf/petalinuxbsp.conf 
 
IMAGE_INSTALL += "\
hdparm-xlnx \
"
 
7 I build images, and in boot stage i get this errors
 
 
xilinx-psgtr fd400000.zynqmp_phy: Lane:0 type:2 protocol:2 pll_locked:yes
[ 2.624206] ahci-ceva fd0c0000.ahci: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[ 2.633162] ahci-ceva fd0c0000.ahci: flags: 64bit ncq sntf pm clo only pmp fbs pio slum part ccc sds apst
[ 2.643471] scsi host0: ahci-ceva
[ 2.647084] zynqmp_pll_disable() clock disable failed for dpll_int, ret = -13
[ 2.654258] scsi host1: ahci-ceva
[ 2.657710] ata1: SATA max UDMA/133 mmio [mem 0xfd0c0000-0xfd0c1fff] port 0x100 irq 37
[ 2.665622] ata2: SATA max UDMA/133 mmio [mem 0xfd0c0000-0xfd0c1fff] port 0x180 irq 37
 
2.983884] ata2: SATA link down (SStatus 0 SControl 330)
 
12.673522] ata1: softreset failed (1st FIS failed)
[ 13.138302] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 330)
[ 18.514306] ata1.00: qc timeout (cmd 0xec)
[ 18.518401] ata1.00: failed to IDENTIFY (I/O error, err_mask=0x4)
[ 18.986302] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 330)
[ 29.266301] ata1.00: qc timeout (cmd 0xec)
[ 29.270394] ata1.00: failed to IDENTIFY (I/O error, err_mask=0x4)
[ 29.276486] ata1: limiting SATA link speed to 3.0 Gbps
[ 29.746302] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 320)
[ 59.986302] ata1.00: qc timeout (cmd 0xec)
[ 59.990399] ata1.00: failed to IDENTIFY (I/O error, err_mask=0x4)
[ 69.996715] ata1: softreset failed (1st FIS failed)
[ 80.001475] ata1: softreset failed (1st FIS failed)
[ 115.006649] ata1: softreset failed (1st FIS failed)
[ 115.011520] ata1: limiting SATA link speed to 1.5 Gbps
[ 120.016630] ata1: softreset failed (1st FIS failed)
[ 120.021503] ata1: reset failed, giving up
 
then i remove dma-coherent from system-user.dsi, i can normaly use SATA in ata1 port.
 
ata2 port not used, SSD not connected.
 
 
 
 
 
 
 
 
 
0 Kudos