From: Damien Le Moal <damien.lemoal@opensource.wdc.com>
To: Dinu Marius <marius@psihoexpert.ro>
Cc: linux-ide@vger.kernel.org
Subject: Re: Bug report for ahci-mvebu driver
Date: Thu, 24 Nov 2022 11:40:31 +0900 [thread overview]
Message-ID: <5b5d7816-5e43-88e8-1337-769cce825f78@opensource.wdc.com> (raw)
In-Reply-To: <C9DCFF5E79814EAB9E9BE94B81A1CD7F@graph>
On 11/19/22 03:24, Dinu Marius wrote:
> I checked the cable and connections. Everything looks OK. The cable is ~ 40cm
> long.
>
> I made these timeout changes:
>
> const unsigned long sata_deb_timing_normal[] = { 5, 1000, 20000 };
> const unsigned long sata_deb_timing_hotplug[] = { 25, 5000, 20000 };
>
> And I have these results:
>
> [ 180.907460][ T104] hardreset, Online=>Offline
> [ 180.912991][ T104] resume, do loop
> [ 181.140866][ T104] resume, after do loop
> [ 181.200866][ T104] debounce, SCR: 0x100
> [ 181.250866][ T104] debounce, SCR: 0x101
[...]
> [ 190.960865][ T104] debounce, SCR: 0x101
> [ 190.964803][ T104] debounce, loop end with timeout
> [ 190.968740][ T104] resume, sata_link_debounce check failed
> [ 190.973640][ T104] hardreset, sata_link_resume check failed
> [ 190.984916][ T104] ata2: COMRESET failed (errno=-32)
>
> Then it repeats...
> Shorter timouts have mostly the same results. It never changes to anything other
> than 0x100, 0x101 or 0x0.
So the hardware is failing to detect the device presence. No clue why.
Only an ATA bus trace could tell us more here (do you have an ATA bus
analyzer around ?).
So options are:
1) Involve the router vendor and/or SoC vendor to see if they can help.
2) Use UDB connection between your router & drive box ? (if you can)
Another thing is: Did you try earlier kernel versions ? Any earlier kernel
working ? (I forgot if that is the case). If yes, then we should be able
to figure out the change that broke the driver (which may be something
changed in the SoC support rather than the mvebu driver itself).
gi-bisect will likely not be of any help given that you are not getting a
crash. So you will need to try out different kernel versions, starting
with LTS kernels, and refine (use Linus tags, including RCs, to find the
last working kernel). That may take some time, but will likely narrow down
the search for fixing this (if that is possible given the hardware setup
you have).
> When I connect the laptop HDD I get this:
>
> [ 453.239378][ T104] resume, do loop
> [ 453.450866][ T104] resume, after do loop
> [ 453.500866][ T104] debounce, SCR: 0x123
> [ 453.560866][ T104] debounce, SCR: 0x123
> ... same line repeats a lot ...
> [ 458.450866][ T104] debounce, SCR: 0x123
> [ 458.510866][ T104] debounce, SCR: 0x123
> [ 458.514804][ T104] resume, return at end of function
> [ 458.518741][ T104] hardreset, Offline=>Online
> [ 458.528273][ T104] hardreset, sata_pmp_supported, before check_ready
> [ 458.534747][ T104] [104] libata:ata_port_classify:344: ata2: found ata
> device by sig
> [ 458.720868][ T104] [104] libata:ata_port_classify:344: ata2: found ata
> device by sig
> [ 458.728734][ T104] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
> [ 459.044097][ T104] [104] libata:ata_dev_configure:2596: ata2.00:
> ata_dev_configure: cfg 49:2f00 82:346b 83:7d09 84:6123 85:3469 86:bc09 87:6123
> 88:007f
> [ 459.057814][ T104] [104] libata:ata_dump_id:1363: ata2.00: 49==0x2f00
> 53==0x0007 63==0x0407 64==0x0003 75==0x001f
> [ 459.057814][ T104] 80==0x01f0 81==0x0029 82==0x346b 83==0x7d09
> 84==0x6123
> [ 459.057814][ T104] 88==0x007f 93==0x0000
> [ 459.079904][ T104] ata2.00: ATA-8: ST9500325AS, 0001SDM1, max UDMA/133
> [ 459.086551][ T104] ata2.00: 976773168 sectors, multi 16: LBA48 NCQ (depth
> 32)
> [ 459.093816][ T104] [104] libata:ata_dev_set_xfermode:4305: ata2.00: set
> features - xfer mode
> [ 459.104657][ T104] [104] libata:ata_dev_configure:2596: ata2.00:
> ata_dev_configure: cfg 49:2f00 82:346b 83:7d09 84:6123 85:3469 86:bc09 87:6123
> 88:407f
> [ 459.118372][ T104] [104] libata:ata_dump_id:1363: ata2.00: 49==0x2f00
> 53==0x0007 63==0x0007 64==0x0003 75==0x001f
> [ 459.118372][ T104] 80==0x01f0 81==0x0029 82==0x346b 83==0x7d09
> 84==0x6123
> [ 459.118372][ T104] 88==0x407f 93==0x0000
> [ 459.140464][ T104] [104] libata:ata_dev_set_mode:3344: ata2.00:
> xfer_shift=12, xfer_mode=0x46
> [ 459.149116][ T104] ata2.00: configured for UDMA/133
> [ 459.154268][ T82] scsi 1:0:0:0: Direct-Access ATA ST9500325AS
> SDM1 PQ: 0 ANSI: 5
>
> Can it be a hardware init / setup problem? In the Armada 38x Functional
> Specifications there is a chapter about "Amplitude and Pre-emphasize level" at
> the end of SATA.
It could be. See above about searching for a working kernel version, if
there is one.
>
> Marius Dinu
>
>
--
Damien Le Moal
Western Digital Research
next prev parent reply other threads:[~2022-11-24 2:40 UTC|newest]
Thread overview: 67+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-01 19:21 Bug report for ahci-mvebu driver Dinu Marius
2022-11-06 7:05 ` Damien Le Moal
2022-11-07 9:22 ` marius
2022-11-08 6:27 ` Damien Le Moal
2022-11-09 19:52 ` marius
2022-11-09 19:55 ` marius
2022-11-10 2:05 ` Damien Le Moal
2022-11-11 22:32 ` marius
2022-11-12 1:57 ` Damien Le Moal
2022-11-14 20:52 ` marius
2022-11-15 3:02 ` Damien Le Moal
2022-11-15 7:28 ` marius
2022-11-15 8:10 ` Damien Le Moal
2022-11-18 18:24 ` Dinu Marius
2022-11-24 2:40 ` Damien Le Moal [this message]
2022-12-04 1:41 ` marius
2022-12-04 10:22 ` Pali Rohár
2022-12-04 21:14 ` marius
2022-12-04 21:46 ` Pali Rohár
2022-12-05 2:02 ` Damien Le Moal
2022-12-06 6:08 ` Damien Le Moal
2022-12-07 18:27 ` marius
2022-12-07 21:54 ` Damien Le Moal
2022-12-07 22:51 ` Damien Le Moal
2022-12-08 18:06 ` marius
2022-12-09 0:34 ` Damien Le Moal
2022-12-09 2:58 ` Damien Le Moal
2022-12-09 7:31 ` marius
2022-12-09 9:28 ` Damien Le Moal
2022-12-09 18:30 ` marius
2023-01-14 18:01 ` marius
2023-01-15 23:37 ` Damien Le Moal
2023-01-17 8:26 ` Damien Le Moal
2023-01-18 19:43 ` marius
2023-01-19 0:29 ` Damien Le Moal
2023-01-19 18:46 ` marius
2023-01-23 7:02 ` Damien Le Moal
2023-01-23 20:00 ` marius
2023-01-23 23:00 ` Damien Le Moal
2023-01-24 8:04 ` marius
2023-01-24 9:53 ` Damien Le Moal
2023-01-24 17:02 ` marius
2023-01-27 5:13 ` Damien Le Moal
2023-01-27 6:28 ` Damien Le Moal
2023-01-28 17:08 ` marius
2023-01-29 2:23 ` Damien Le Moal
2023-01-29 10:24 ` marius
2023-01-30 1:16 ` Damien Le Moal
2023-01-30 2:38 ` Damien Le Moal
2023-01-30 7:23 ` marius
2023-01-30 7:37 ` Damien Le Moal
2023-01-30 23:22 ` Damien Le Moal
2023-01-31 7:20 ` marius
2023-01-31 7:28 ` Damien Le Moal
2023-02-07 18:40 ` marius
2023-02-07 23:39 ` Damien Le Moal
2023-02-08 12:17 ` marius
2023-02-08 23:00 ` Damien Le Moal
2023-02-12 13:14 ` marius
2023-02-12 23:11 ` Damien Le Moal
2023-01-24 17:06 ` Bug report for sata_via driver marius
2023-01-25 1:26 ` Damien Le Moal
2022-12-08 21:26 ` Bug report for ahci-mvebu driver Pali Rohár
2022-12-09 1:54 ` Damien Le Moal
2022-11-26 14:26 ` Pali Rohár
2023-01-23 9:10 ` Hajo Noerenberg
2023-01-23 12:13 ` Damien Le Moal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5b5d7816-5e43-88e8-1337-769cce825f78@opensource.wdc.com \
--to=damien.lemoal@opensource.wdc.com \
--cc=linux-ide@vger.kernel.org \
--cc=marius@psihoexpert.ro \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox