76
User Zone / Re: ata4: softreset failed. ata4.00 disabled (SATA devices not working sometimes)
« on: February 02, 2020, 04:48:46 am »Have you tried to disconnect the BD-drive, whether the problem disappears or persists?
Not yet, I am trying to diagnose the problem by changing only one small thing (step-by-step). But I am almost quite sure it works if no NVMe SSD is attached so it looks like a hardware incompatibility.
Currently I have applied the libata.force=norst kernel parameter to disable hard and soft resets
and the optical drive is working currently (but the problem is non-deterministic so I have to wait until the error occurs again).
I have already unplugged the attached Seagate SATA HDD so I would exclude this device from the suspects.
Next step would be to change the cable, then disconnect (no more SATA devices)...
BTW The kernel.org doc for kernel parameters explains the options for libata.force quite well:
https://www.kernel.org/doc/html/v4.14/admin-guide/kernel-parameters.html
Quote
libata.force= [LIBATA] Force configurations. The format is comma separated list of "[ID:]VAL" where ID is
PORT[.DEVICE]. PORT and DEVICE are decimal numbers matching port, link or device. Basically, it matches
the ATA ID string printed on console by libata. If the whole ID part is omitted, the last PORT and DEVICE
values are used. If ID hasn't been specified yet, the configuration applies to all ports, links and devices.
If only DEVICE is omitted, the parameter applies to the port and all links and devices behind it. DEVICE
number of 0 either selects the first device or the first fan-out link behind PMP device. It does not
select the host link. DEVICE number of 15 selects the host link and device attached to it.
The VAL specifies the configuration to force. As long as there's no ambiguity shortcut notation is allowed.
For example, both 1.5 and 1.5G would work for 1.5Gbps. The following configurations can be forced.
* Cable type: 40c, 80c, short40c, unk, ign or sata. Any ID with matching PORT is used.
* SATA link speed limit: 1.5Gbps or 3.0Gbps.
* Transfer mode: pio[0-7], mwdma[0-4] and udma[0-7]. udma[/][16,25,33,44,66,100,133] notation is also allowed.
* [no]ncq: Turn on or off NCQ.
* [no]ncqtrim: Turn off queued DSM TRIM.
* nohrst, nosrst, norst: suppress hard, soft and both resets.
* rstonce: only attempt one reset during hot-unplug link recovery
* dump_id: dump IDENTIFY data.
* atapi_dmadir: Enable ATAPI DMADIR bridge support
* disable: Disable this device.
If there are multiple matching configurations changing the same attribute, the last one is used.