Bug 213795

Summary: CD-ROM opens after suspend
Product: IO/Storage Reporter: M G Berberich (kernel)
Component: Serial ATAAssignee: Tejun Heo (tj)
Status: NEW ---    
Severity: low CC: gabriele.svelto, limanyi, quuuux
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 5.13.7 Tree: Mainline
Regression: No
Attachments: kernel-log

Description M G Berberich 2021-07-20 06:47:58 UTC
Created attachment 297943 [details]
kernel-log

Hello,

after suspend the cd-rom tray opens. This is new with 5.13.2, does not happen with 5.12.11.

System boot

ata5: SATA max UDMA/133 abar m2048@0xf7e1a000 port 0xf7e1a300 irq 32
ata5: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata5.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
ata5.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
ata5.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
ata5.00: ATAPI: TEAC    DV-W524GSC, RT11, max UDMA/100
ata5.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
ata5.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
ata5.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
ata5.00: configured for UDMA/100
scsi 4:0:0:0: CD-ROM            TEAC     DV-W524GSC       RT11 PQ: 0 ANSI: 5
sr 4:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
cdrom: Uniform CD-ROM driver Revision: 3.20
sr 4:0:0:0: Attached scsi CD-ROM sr0
sr 4:0:0:0: Attached scsi generic sg4 type 5


After suspend

ata5: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata5.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
ata5.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
ata5.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
ata5.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
ata5.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
ata5.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
ata5.00: configured for UDMA/100

After suspend

ata5: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
ata5.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
ata5.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
ata5.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
ata5.00: ACPI cmd ef/10:06:00:00:00:00 (SET FEATURES) succeeded
ata5.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
ata5.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
ata5.00: configured for UDMA/100
Comment 1 M G Berberich 2021-07-31 07:49:35 UTC
Problem still exists in 5.13.6
Comment 2 M G Berberich 2021-08-02 20:45:37 UTC
The problem seems to start with 5.12.15.
Still exists in 5.13.7
Comment 3 Gabriele Svelto 2021-08-04 12:56:37 UTC
This happens to me too on kernel 5.10.52, the tray opens after resuming from suspend. I've traced the issue to this commit:

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7dd753ca59d6c8cc09aa1ed24f7657524803c7f3

Reverting it solves the problem for me.
Comment 4 Gabriele Svelto 2021-08-04 13:03:01 UTC
v5.13-rc7 appears to be the first version affected and the fix was backported to various stable branches.
Comment 5 Gabriele Svelto 2021-08-04 13:04:40 UTC
Sorry, I meant that the regressing change was backported to the various stable branches, so it appears to be present in them too.