<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.elphel.com/index.php?action=history&amp;feed=atom&amp;title=SATA_issues</id>
	<title>SATA issues - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.elphel.com/index.php?action=history&amp;feed=atom&amp;title=SATA_issues"/>
	<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=SATA_issues&amp;action=history"/>
	<updated>2026-08-03T01:58:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.elphel.com/index.php?title=SATA_issues&amp;diff=13861&amp;oldid=prev</id>
		<title>Andrey.filippov at 18:18, 2 October 2017</title>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=SATA_issues&amp;diff=13861&amp;oldid=prev"/>
		<updated>2017-10-02T18:18:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:18, 2 October 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l49&quot;&gt;Line 49:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 49:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/font&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/font&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This disk can be used from the system without this issue although long run tests have not been performed.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This disk can be used from the system without this issue although long run tests have not been performed.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;== Current state ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;These errors and some other were corrected. No known SATA issues since April 13, 2017&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Andrey.filippov</name></author>
	</entry>
	<entry>
		<id>https://wiki.elphel.com/index.php?title=SATA_issues&amp;diff=13860&amp;oldid=prev</id>
		<title>Mikhail: Created page with &quot;== Issue 1: Handshake Error during fast recording == === Description === AHCI controller sets Handshake Error bit in PxSERR register and Interface Fatal Error Status bit in PxIS ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.elphel.com/index.php?title=SATA_issues&amp;diff=13860&amp;oldid=prev"/>
		<updated>2016-12-22T20:20:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Issue 1: Handshake Error during fast recording == === Description === AHCI controller sets Handshake Error bit in PxSERR register and Interface Fatal Error Status bit in PxIS ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Issue 1: Handshake Error during fast recording ==&lt;br /&gt;
=== Description ===&lt;br /&gt;
AHCI controller sets Handshake Error bit in PxSERR register and Interface Fatal Error Status bit in PxIS register. If debug messages for AHCI driver are enabled in sysfs then system log will contain the following record:&lt;br /&gt;
&amp;lt;font size=&amp;#039;2&amp;#039;&amp;gt;&lt;br /&gt;
 elphel_irq_handler: elphel-ahci 80000000.elphel-ahci: irq_stat = 0x8000000, host irq_stat = 0x1, SErr = 0x400000&lt;br /&gt;
&amp;lt;/font&amp;gt;&lt;br /&gt;
The status of controller registers read from Python interface after system driver has started recovery is the following:&lt;br /&gt;
&amp;lt;font size=&amp;#039;2&amp;#039;&amp;gt;&lt;br /&gt;
 &amp;gt;&amp;gt;&amp;gt; sata.reg_status()&lt;br /&gt;
 HBA_PORT__PxIS: 0x04000000 [80000110]&lt;br /&gt;
        1 : INFS (Interface Non-Fatal Error Status (sect. 6.1.2))&lt;br /&gt;
 HBA_PORT__PxCMD: 0x00040007 [80000118]&lt;br /&gt;
        1 : HPCP (Hot Plug Capable Port)&lt;br /&gt;
        1 : POD (Power On Device (RW with Cold Presence Detection))&lt;br /&gt;
        1 : SUD (Spin-Up Device (RW with Staggered Spin-Up Support))&lt;br /&gt;
        1 : ST (Start (HBA may process commands). See section 10.3.1)&lt;br /&gt;
 HBA_PORT__PxTFD: 0x000001d0 [80000120]&lt;br /&gt;
        1 : ERR (Latest Copy of Task File Error Register)&lt;br /&gt;
        1 : STS.BSY (Latest Copy of Task File Status Register: BSY)&lt;br /&gt;
        5 : STS.64 (Latest Copy of Task File Status Register: command-specific bits 4..6 )&lt;br /&gt;
 HBA_PORT__PxSIG: 0x00000101 [80000124]&lt;br /&gt;
      101 : SIG (Data in the first D2H Register FIS)&lt;br /&gt;
 HBA_PORT__PxSSTS: 0x00000123 [80000128]&lt;br /&gt;
        1 : IPM (Interface Power Management)&lt;br /&gt;
        2 : SPD (Interface Speed)&lt;br /&gt;
        3 : DET (Device Detection (should be detected if COMINIT is received))&lt;br /&gt;
 HBA_PORT__PxSERR: 0x00400000 [80000130]&lt;br /&gt;
        1 : DIAG.H (Handshake Error (i.e. Device got CRC error))&lt;br /&gt;
 HBA_PORT__PxCI: 0x00000001 [80000138]&lt;br /&gt;
        1 : CI (Command Issued: bit per Port, only set when PxCMD.ST==1, also cleared by PxCMD.ST: 1-&amp;gt;0 by soft)&lt;br /&gt;
&amp;lt;/font&amp;gt;&lt;br /&gt;
=== How to reproduce ===&lt;br /&gt;
This error can be reliably reproduced during fast recording to SanDisk SD7SF6S256G1122 mSATA SSD connected to eSATA port. All camera related software should be disabled during test as it will interfere with the test program. Edit /etc/init.d/init_elphel393&lt;br /&gt;
&amp;lt;font size=&amp;#039;2&amp;#039;&amp;gt;&lt;br /&gt;
 $CONFDIR/init_elphel393.py &amp;quot;{\&amp;quot;usb_hub\&amp;quot;         :0,\&amp;quot;ip\&amp;quot;              :1,\&amp;quot;mcntrl\&amp;quot;          :0,\&amp;quot;imgsrv\&amp;quot;          :0,\&amp;quot;port1\&amp;quot;           :0,\&amp;quot;port2\&amp;quot;           :0,\&amp;quot;port3\&amp;quot;           :0,\&amp;quot;port4\&amp;quot;           :0,\&amp;quot;framepars\&amp;quot; &amp;lt;br/&amp;gt;&lt;br /&gt;
 :0,\&amp;quot;autoexp_daemon\&amp;quot;  :0,\&amp;quot;autocampars\&amp;quot;     :0,\&amp;quot;autoexp\&amp;quot;         :0,\&amp;quot;autowb\&amp;quot;          :0,\&amp;quot;sata\&amp;quot;            :0,\&amp;quot;gps\&amp;quot;             :0,\&amp;quot;eyesis\&amp;quot;          :0 }&amp;quot;&lt;br /&gt;
&amp;lt;/font&amp;gt;&lt;br /&gt;
and restart camera. Start AHCI controller configuration program,&lt;br /&gt;
&amp;lt;font size=&amp;#039;2&amp;#039;&amp;gt;&lt;br /&gt;
 root@elphel393:~# x393sata.py&lt;br /&gt;
&amp;lt;/font&amp;gt;&lt;br /&gt;
switch SATA multiplexer to external disk (from browser)&lt;br /&gt;
&amp;lt;font size=&amp;#039;2&amp;#039;&amp;gt;&lt;br /&gt;
 http://192.168.0.38/x393_vsc330x.php?c:zynq=esata&lt;br /&gt;
&amp;lt;/font&amp;gt;&lt;br /&gt;
and reload disk driver. Start test program and the error will most likely appear within several seconds of recording:&lt;br /&gt;
&amp;lt;font size=&amp;#039;2&amp;#039;&amp;gt;&lt;br /&gt;
 root@elphel393:~# camogm_test -d /dev/sda2 -b 3000000 -c 1000&lt;br /&gt;
&amp;lt;/font&amp;gt;&lt;br /&gt;
This disk can be used from the system without this issue although long run tests have not been performed.&lt;/div&gt;</summary>
		<author><name>Mikhail</name></author>
	</entry>
</feed>