Re: Multiple errors with DVD drive

J.J. Berkhout
2022-05-27T08:50:55Z

[-- Attachment #1.1: Type: text/plain, Size: 2084 bytes --]

On 27-05-2022 01:36, Damien Le Moal wrote:
> On 2022/05/26 21:38, J.J. Berkhout wrote:
>> The problem is:
>> After going from Linux Mint 19.3 Cinnamon kernel 5.4.0-97 to Linux Mint
>> 20.3 Cinnamon kernel 5.4.0-107 I discovered that I could not (reliably)
>> access my optical drive anymore.
>> It produces errors like:
>> ata1.00: exception Emask 0x10 SAct 0x0 SErr 0x40d0000 action 0xe frozen
>> ata1: SError: { PHYRdyChg CommWake 10B8B DevExch }
>> ata1.00: cmd a0/00:00:00:00:fc/00:00:00:00:00/a0 tag 0 pio 131072 in
>> Read(10) 28 00 00 00 05 61 00 00 40 00res
>> 50/00:03:00:00:00/00:00:00:00:00/a0 Emask 0x10 (ATA bus error)
>> blk_update_request: I/O error, dev sr0, sector 5508 op 0x0:(READ) flags
>> 0x80700 phys_seg 19 prio class 0
>> ata1.00: failed to set xfermode (err_mask=0x1)
>>
>> The system was Linux Mint 20.3 Cinnamon with kernel 5.4.0-107-generic,
>> mobo ASRock model X570 Taichi.
>> After some tests I found out:
>> Kernel 5.4.0-99 works OK;
>> Kernel 5.4.0-100 has the problem;
>> Kernel 5.13.0-30 works OK;
>> Kernel 5.13.0-35 has the problem.
>
> It looks like your distro is backporting patches so the patch causing the
> problem could be found by bisecting. While 5.4 kernel is an LTS kernel, the
> latest release is 5.4.196... 5.4.0-100 is the distro version number which does
> not tell me what set of patches it got on top of 5.4.0. These are not
> stable/vanilla kernels.
>
> To get help from this list, you will need to try with a vanilla kernel, ideally
> from git. You could try the latest mainline 5.18 first to see if the problem is
> there or not.

OK, will start working on it. I never before tried a kernel not from
the repository, so I have to find out how to manage it.

>> Also, what AHCI adapter is this machine using (lspci) ?

Output from sudo lspci | grep -i ahci:

0b:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA
Controller [AHCI mode] (rev 51)
0c:00.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA
Controller [AHCI mode] (rev 51)